html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body { margin-bottom: 60px; background: #f4f6f8; color: #172033; }

/* Sistema visual del jugador: inspirado en la composición del SmartTest legado. */
.player-body {
  --player-ink: #172033;
  --player-muted: #657287;
  --player-line: rgba(23, 32, 51, .13);
  --player-surface: rgba(255, 255, 255, .96);
  --player-shadow: 0 24px 70px rgba(5, 15, 30, .22);
  --player-radius: 1.15rem;
  background: color-mix(in srgb, var(--smarttest-secondary) 78%, #e7edf2);
  color: var(--player-ink);
  font-family: "Raleway", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  margin: 0;
  min-width: 320px;
}

/* Hito 7B: gramática visual de la experiencia SmartTest legada. */
@font-face {
  font-family: "Raleway Legacy";
  src: url("../fonts/legacy-smarttest/raleway-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Alias original del portal legado, requerido por la descripción de portada. */
@font-face {
  font-family: 'ralewayregular';
  src: url("../fonts/legacy-smarttest/raleway-regular-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway Legacy";
  src: url("../fonts/legacy-smarttest/raleway-bold-webfont.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Raleway Legacy";
  src: url("../fonts/legacy-smarttest/raleway-extrabold-webfont.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

.legacy-body,
.legacy-access {
  margin: 0;
  font-family: "Raleway Legacy", Arial, sans-serif;
  color: #373737;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.legacy-body {
  min-width: 320px;
  min-height: 100vh;
  background: #05070a var(--smarttest-scene-image) center -35px / 1845px auto no-repeat;
}

.legacy-stage {
  min-height: 100vh;
}

.legacy-header {
  width: 100%;
  height: 55px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .16);
  position: relative;
  z-index: 10;
}

.legacy-header-inner {
  width: min(1024px, 100%);
  height: 55px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.legacy-hr-brand {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.legacy-hr-brand img {
  width: 185px;
  height: auto;
  display: block;
}

.legacy-nav {
  height: 55px;
  display: flex;
  align-items: stretch;
  color: #5d5d5d;
  font-size: 12px;
  text-transform: uppercase;
}

.legacy-nav a,
.legacy-nav-user {
  min-width: 104px;
  padding: 0 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  border-left: 1px solid #ececec;
}

.legacy-nav a:hover,
.legacy-nav a:focus-visible {
  color: #fff;
  background: var(--legacy-accent);
}

.legacy-nav-help,
.legacy-nav-retry { min-width: 56px !important; padding: 0 !important; }
.legacy-nav-retry.is-active { color: #fff; background: var(--legacy-accent); }
.legacy-nav-help:hover .legacy-help-icon,
.legacy-nav-help:focus-visible .legacy-help-icon,
.legacy-nav-help[aria-expanded="true"] .legacy-help-icon { background-image: url("../images/legacy-smarttest/ico-normas-active.png"); }
.legacy-nav-retry:hover .legacy-retry-icon,
.legacy-nav-retry:focus-visible .legacy-retry-icon,
.legacy-nav-retry.is-active .legacy-retry-icon { background-image: url("../images/legacy-smarttest/ico-retrymenu-active.png"); }
.legacy-nav-ranking { color: var(--legacy-accent) !important; gap: 5px !important; min-width: 105px !important; padding: 0 14px !important; }
.legacy-ranking-icon { background: url("../images/legacy-smarttest/iconRankin.png") center / contain no-repeat; display: block; height: 29px; width: 31px; }
.legacy-nav-ranking:hover .legacy-ranking-icon,
.legacy-nav-ranking:focus-visible .legacy-ranking-icon,
.legacy-nav-ranking[aria-expanded="true"] .legacy-ranking-icon { background-image: url("../images/legacy-smarttest/iconRankinH.png"); }
.legacy-nav-ranking:hover,
.legacy-nav-ranking:focus-visible,
.legacy-nav-ranking[aria-expanded="true"] { color: #fff !important; }
.legacy-nav-ranking[aria-expanded="true"] { background-color: var(--legacy-accent); }

.legacy-rules-menu {
  width: min(860px, calc(100vw - 32px));
  position: absolute;
  top: 55px;
  right: max(calc((100vw - 1024px) / 2 + 130px), 16px);
  z-index: 30;
  padding: 28px 38px 32px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.legacy-rules-menu::before { content: ""; position: absolute; top: -13px; right: 112px; border: 13px solid transparent; border-top: 0; border-bottom-color: #fff; }
.legacy-rules-menu h2 { margin: 0 0 24px; color: var(--legacy-accent); font: 700 34px/1 "coolvetica", sans-serif; text-align: center; }
.legacy-rules-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.legacy-rules-menu-grid article { padding: 0 25px; text-align: center; border-right: 1px solid #d6d6d6; }
.legacy-rules-menu-grid article:last-child { border-right: 0; }
.legacy-rules-menu-grid img { height: 64px; margin-bottom: 8px; }
.legacy-rules-menu-grid h3 { margin: 0 0 10px; font: 400 23px/1.08 "Raleway Legacy", Arial, sans-serif; }
.legacy-rules-menu-grid h3 span { display: block; color: var(--legacy-accent); font-size: 16px; font-weight: 800; }
.legacy-rules-menu-grid p { margin: 0; color: #6d6d6d; font-size: 14px; line-height: 1.25; }
.legacy-rules-menu-grid .legacy-rules-score { margin-top: 12px; color: var(--legacy-accent); font-weight: 700; }
.legacy-rules-menu-grid .legacy-rules-fine { margin-top: 8px; font-size: 11px; }
.legacy-ranking-menu { background: #fff; box-sizing: border-box; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); color: #4d4d4d; max-height: min(580px, calc(100vh - 75px)); overflow: auto; padding: 18px 20px 22px; position: absolute; right: max(calc((100vw - 1024px) / 2), 0px); top: 55px; width: min(350px, calc(100vw - 16px)); z-index: 40; }
.legacy-ranking-list { list-style: none; margin: 0; padding: 0; }.legacy-ranking-list li { align-items: stretch; border-top: 1px solid #d8d8d8; display: flex; height: 48px; min-width: 0; position: relative; }.legacy-ranking-list li:first-child { border-top: 0; }.legacy-ranking-position, .legacy-ranking-score { align-items: center; color: #fff; display: flex; flex: 0 0 42px; font: 700 22px/1 "coolvetica", sans-serif; justify-content: center; }.legacy-ranking-position { background: #003454; }.legacy-ranking-score { background: #989898; }.legacy-ranking-list .pos-2 .legacy-ranking-position, .legacy-ranking-list .pos-2 .legacy-ranking-score { background: #003765; }.legacy-ranking-list .pos-3 .legacy-ranking-position, .legacy-ranking-list .pos-3 .legacy-ranking-score { background: #2392bf; }.legacy-ranking-list .pos-4 .legacy-ranking-position, .legacy-ranking-list .pos-4 .legacy-ranking-score { background: #62bcd7; }.legacy-ranking-list .pos-5 .legacy-ranking-position, .legacy-ranking-list .pos-5 .legacy-ranking-score { background: #ade2f0; }.legacy-ranking-avatar { background: #fff url("../images/legacy-smarttest/iconUser.png") center / 29px auto no-repeat; border-right: 1px solid #d8d8d8; box-sizing: border-box; flex: 0 0 48px; }.legacy-ranking-name { align-items: center; color: #555; display: flex; flex: 1 1 auto; font-size: 13px; min-width: 0; overflow: hidden; padding: 0 10px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }.legacy-ranking-list li.is-current { background: #fceeee; }.legacy-ranking-list li.is-current .legacy-ranking-position, .legacy-ranking-list li.is-current .legacy-ranking-score { background: #831450; }.legacy-ranking-list li.is-current .legacy-ranking-name { color: var(--legacy-accent); }.legacy-ranking-teams { border-top: 3px solid #e3e3e3; margin-top: 14px; padding-top: 14px; }.legacy-ranking-menu .legacy-ranking-current { color: #4f4f4f; font-size: 11px; margin: 14px 0 0; }.legacy-menu-loading { color: #666; margin: 1rem; text-align: center; }

.legacy-user-icon,
.legacy-retry-icon {
  width: 27px;
  height: 28px;
  flex: 0 0 27px;
  background: url("../images/legacy-smarttest/iconUser.png") center / contain no-repeat;
}

.legacy-retry-icon {
  width: 30px;
  background-image: url("../images/legacy-smarttest/ico-retrymenu.png");
}

.legacy-help-icon {
  width: 28px;
  height: 28px;
  background: url("../images/legacy-smarttest/ico-normas.png") center / contain no-repeat;
}

.legacy-question-mode {
  display: flex;
  align-items: center;
  color: var(--legacy-accent);
  font-weight: 700;
  text-transform: uppercase;
}

.legacy-scene {
  min-height: calc(100vh - 55px);
}

.legacy-scene-inner {
  width: min(1024px, calc(100% - 32px));
  min-height: 625px;
  margin: 0 auto;
  position: relative;
  
}

.legacy-campaign-brand {
  width: 150px;
  height: 62px;
  display: flex;
  align-items: center;
}

.legacy-campaign-brand img {
  display: block;
  max-width: 145px;
  max-height: 58px;
  object-fit: contain;
}

.legacy-hero {
  width: 70%;
  max-width: 1000px;
  margin: -50px auto 0;
  text-align: center;
}

.legacy-hero h1,
.legacy-page-title {
    text-align: center;
	width: 100%;
    margin: 0;
    color: #e76e35;
    font-family: "coolvetica", sans-serif;
    /* font-weight: 900; */
    font-size: 55px;
    line-height: .94;
    /* text-transform: uppercase; */
    letter-spacing: .2px;
    background: linear-gradient(90deg, var(--legacy-accent), var(--legacy-warm));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .2));
}



.legacy-hero-description {
  margin: 14px 0 20px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  text-shadow: 0 2px 6px #000;
  text-align: center;
  padding-top: 10px;
}

.legacy-hero-description p { margin: 0; }

.legacy-pill {
min-width: 142px;
    min-height: 35px;
    font-family: "coolvetica", sans-serif;
    font-size: 20px;
    padding: 12px 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 130px;
    background: linear-gradient(90deg, var(--legacy-accent), var(--legacy-warm));
    color: #fff;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .22);
}

.legacy-pill:hover,
.legacy-pill:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.legacy-pill-light {
  background: #fff;
  color: var(--legacy-accent);
  border: 1px solid var(--legacy-accent);
  box-shadow: none;
}

.legacy-pill-light:hover,
.legacy-pill-light:focus-visible { color: var(--legacy-accent); }

.legacy-start-message {
  margin-top: 145px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.legacy-start-message img { width: 58px; height: 58px; }
.legacy-start-message p {
    margin: 0;
    color: #fff;
    font-family: "coolvetica", sans-serif;
    text-shadow: 1px 1px 6px #000;
    font-size: 42px;
    line-height: 38px;
    font-weight: bold;
    width: 100%;
	padding-top: 290px;
}

.legacy-home-journey {
  width: 1000px;
  height: 235px;
  position: relative;
  display: block;
  margin: -30px auto 0;
  text-align: center;
}

.legacy-home-journey .legacy-home-journey-path {
  width:66px;
  height: auto;
  position: absolute;
  top: 30px;
  left: calc(50% - 40px);
  display: block;
  
}

.legacy-home-journey h2 {
  position: absolute;
  top: 196px;
  left: 0;
  width: 100%;
  margin: 0;
  color: #fff;
  font: 700 25px/1 "Raleway Legacy", Arial, sans-serif;
  text-shadow: 0 3px 8px rgba(0, 0, 0, .8);
}

.legacy-game-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}

.legacy-game-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  position: relative;
  box-sizing: border-box;
  padding: 0 0 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.legacy-game-modal > h1,
.legacy-game-modal > form { margin-left: 38px; margin-right: 38px; }
.legacy-game-modal > h1 { color: #414141; font-size: 22px; line-height: 1.35; }
.legacy-game-modal > form > .legacy-pill { margin: 16px auto 0; display: flex; }
.legacy-game-modal .legacy-modal-close { z-index: 2; }
.legacy-game-empty-modal { width: min(300px, 100%); padding: 42px 26px 28px; text-align: center; }
.legacy-game-empty-modal p { margin: 0; font-size: 16px; }
.legacy-game-result-modal { padding: 30px 38px; }
.legacy-game-result-modal .legacy-pill { margin: 24px auto 0; display: flex; width: max-content; }

.legacy-notification {
  width: min(510px, calc(100% - 32px));
  margin: 116px auto 0;
  padding: 25px 30px 22px;
  border-radius: 3px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.legacy-notification p { margin: 0 0 20px; font-size: 18px; }

.legacy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}

.legacy-modal {
    width: min(280px, 100%);
    height: 94px;
    position: relative;
    box-sizing: border-box;
    padding: 20px 16px 17px;
    background: #fff;
    color: #777;
    font-family: 'ralewayregular', "Raleway Legacy", Arial, sans-serif;
    font-size: 0.9em;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.legacy-modal p { margin: 0; }

.legacy-modal-close-form { margin: 0; }

.legacy-modal-close {
  width: 25px;
  height: 25px;
  position: absolute;
  top: 6px;
  right: 6px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--legacy-accent), var(--legacy-warm));
  color: #fff;
  cursor: pointer;
  font: 700 18px/1 Arial, sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
  text-decoration: none;
}

.legacy-modal-close:hover,
.legacy-modal-close:focus-visible { filter: brightness(1.1); }

.legacy-page-title {
  margin-top: -2px;
  font-size: 40px;
  line-height: 45px;
  text-transform: none;
}

.legacy-rules-panel,
.legacy-recovery-intro,
.legacy-question-panel,
.legacy-result-panel,
.legacy-profile-panel {
  width: calc(100% - 48px);
  margin: 30px auto 0;
  padding: 25px 34px;
  box-sizing: border-box;
  border-radius: 29px;
  background: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, .18);
}

.legacy-rules-panel { min-height: 340px; }
.legacy-rules-panel > h2 { margin: 0; color: var(--legacy-accent); font-size: 23px; }
.legacy-rules-intro { max-width: 830px; margin: 10px 0 20px; }
.legacy-rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.legacy-rules-grid article { padding: 5px 28px; text-align: center; border-right: 1px solid #e5e5e5; }
.legacy-rules-grid article:last-child { border-right: 0; }
.legacy-rules-grid img { height: 44px; max-width: 50px; object-fit: contain; }
.legacy-rules-grid h3 { margin: 10px 0 7px; color: var(--legacy-accent); font-size: 18px; }
.legacy-rules-grid p { margin: 0; font-size: 13px; line-height: 1.5; }
.legacy-back { margin: 25px auto 0; display: flex; width: max-content; }

.legacy-recovery-intro {
  min-height: 189px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.legacy-hero-description strong {
	font-size: 51px;
    font-family: "coolvetica", sans-serif;
    font-weight: 900;
    line-height: 13px;
    text-transform: uppercase;
	color: #FFF;
    max-width: 60%;
    display: inline-block;
}

.legacy-hero-description p {
	font-size: 24px;
    line-height: 21px;
	font-family: 'ralewayregular';
	font-weight: 400;
}

.legacy-recovery-intro { min-height: 0; padding: 28px 42px 24px; justify-content: flex-start; }
.legacy-recovery-question { margin: 0; color: #111; font-size: 24px; font-weight: 800; }
.legacy-recovery-opportunity { max-width: 680px; margin: 11px 0 22px; color: #242424; font-size: 18px; font-weight: 600; line-height: 1.28; }
.legacy-recovery-explanation { margin: 0; color: #8b8b8b; font-size: 15px; line-height: 1.3; }
.legacy-recovery-pending { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #eee; color: var(--legacy-accent); font-size: 19px; font-weight: 700; }

.legacy-recovery-intro img { width: 44px; height: 44px; object-fit: contain; }
.legacy-recovery-intro h2 { margin: 10px 0 4px; color: var(--legacy-accent); font-size: 22px; }
.legacy-recovery-intro p { margin: 0; }
.legacy-recovery-button { margin: 30px auto 0; display: flex; width: max-content; font-family: "ralewayregular"; }

.legacy-question-layout { padding-top: 0px; }
.legacy-question-panel,
.legacy-result-panel { margin-top: 20px; padding: 0 0 28px; overflow: hidden; }
.legacy-question-status {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  color: #fff;
  background: linear-gradient(90deg, var(--legacy-accent), var(--legacy-warm));
  font-size: 16px;
}

.legacy-question-status span { display: flex; align-items: center; gap: 8px; }
.legacy-question-status img { width: 21px; max-height: 21px; object-fit: contain; }
.legacy-question-panel > h1 { margin: 26px 38px 20px; color: #414141; font-size: 22px; line-height: 1.35; }
.legacy-recovery-note { margin: 20px 38px -12px; color: var(--legacy-accent); font-weight: 700; }
.legacy-question-panel form { padding: 0 38px; }
.legacy-options { padding: 0; border: 0; }
.legacy-options label { min-height: 48px; margin-bottom: 9px; padding: 9px 15px; display: flex; align-items: center; gap: 13px; border: 1px solid #ddd; border-radius: 3px; cursor: pointer; }
.legacy-options label:hover { border-color: var(--legacy-accent); background: #fff8f4; }
.legacy-options input { width: 18px; height: 18px; accent-color: var(--legacy-accent); }
.legacy-option-letter { color: var(--legacy-accent); font-weight: 800; }
.legacy-question-panel form > .legacy-pill { margin: 16px auto 0; display: flex; }
.legacy-validation { color: #a30000; font-size: 13px; }

.legacy-result-panel { padding: 30px 38px; }
.legacy-result-heading { display: flex; align-items: center; gap: 18px; }
.legacy-result-heading img { width: 48px; }
.legacy-result-heading h1 { margin: 0; color: var(--legacy-accent); font-size: 34px; }
.legacy-result-heading h1.legacy-result-correct { color: #249b54; }
.legacy-result-heading h1.legacy-result-incorrect { color: #df4d45; }
.legacy-result-heading p { margin: 3px 0 0; }
.legacy-result-question { margin: 22px 0 12px; font-size: 18px; font-weight: 700; }
.legacy-feedback { padding: 15px 18px; background: #f3f3f3; border-left: 4px solid var(--legacy-warm); }
.legacy-feedback p { margin: 5px 0 0; }
.legacy-result-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.legacy-profile-panel { max-width: 620px; }
.legacy-profile-panel form { display: grid; gap: 8px; }
.legacy-profile-panel input { min-height: 44px; padding: 8px 12px; border: 1px solid #bbb; border-radius: 2px; }
.legacy-profile-panel .legacy-pill { margin-top: 12px; width: max-content; }

.legacy-access { min-height: 100vh; background: #fff; }
.legacy-access-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.legacy-login-card { width: min(560px, 100%); min-height: 380px; position: relative; border: 1px solid #dedede; background: #fff; box-shadow: 0 3px 14px rgba(0, 0, 0, .13); }
.legacy-login-stripe { height: 8px; background: #6b2d83; }
.legacy-login-logos { min-height: 94px; padding: 19px 28px 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.legacy-login-logos img { max-width: 145px; max-height: 55px; object-fit: contain; }
.legacy-login-campaign { order: 0; }
.legacy-az-wordmark { color: #69245d; font: 700 25px Arial, sans-serif; }
.legacy-login-content { padding: 24px 54px 35px; text-align: center; }
.legacy-login-content h1 { margin: 0 0 9px; color: #555; font-size: 22px; font-weight: 700; }
.legacy-login-content p { margin: 0 0 19px; font-size: 14px; }
.legacy-login-form { position: relative; display: grid; grid-template-columns: 1fr 122px; gap: 10px; }
.legacy-login-form input { min-width: 0; height: 44px; padding: 8px 12px 8px 42px; border: 1px solid #cfcfcf; border-radius: 2px; font: inherit; }
.legacy-login-user { width: 22px; height: 22px; position: absolute; left: 12px; top: 11px; background: url("../images/legacy-smarttest/iconUser.png") center / contain no-repeat; opacity: .75; }
.legacy-login-form button { border: 0; border-radius: 2px; background: #6b2d83; color: #fff; font: 700 15px "Raleway Legacy", Arial, sans-serif; cursor: pointer; }
.legacy-login-form button:hover { background: #552268; }
.legacy-login-form .legacy-validation { grid-column: 1 / -1; text-align: left; }
.legacy-login-message { padding: 13px; background: #f5edf8; color: #552268; }

@media (max-width: 767px) {
  .legacy-body { background-position: center 55px; background-size: auto 900px; }
  .legacy-header, .legacy-header-inner { height: auto; min-height: 55px; }
  .legacy-header-inner { padding-left: 14px; flex-wrap: wrap; }
  .legacy-nav { width: 100%; height: 49px; order: 2; overflow-x: auto; background: #fff; }
  .legacy-nav a, .legacy-nav-user { min-width: 33.333%; padding: 0 7px; font-size: 10px; }
  .legacy-ranking-menu { right: 8px; width: min(350px, calc(100vw - 16px)); }
  .legacy-user-icon, .legacy-retry-icon { width: 21px; height: 23px; flex-basis: 21px; }
  .legacy-scene-inner { width: calc(100% - 24px); padding-top: 14px; }
  .legacy-campaign-brand { height: 50px; }
  .legacy-campaign-brand img { max-width: 118px; max-height: 47px; }
  .legacy-hero h1 { font-size: 44px; }
  .legacy-start-message { margin-top: 125px; align-items: flex-start; }
  .legacy-start-message p { font-size: 30px; }
  .legacy-rules-panel, .legacy-question-panel, .legacy-result-panel, .legacy-profile-panel { border-radius: 18px; }
  .legacy-rules-grid { grid-template-columns: 1fr; }
  .legacy-rules-grid article { padding: 16px 5px; border-right: 0; border-bottom: 1px solid #e5e5e5; }
  .legacy-rules-grid article:last-child { border-bottom: 0; }
  .legacy-question-panel > h1, .legacy-question-panel form { margin-left: 0; margin-right: 0; padding-left: 20px; padding-right: 20px; }
  .legacy-question-panel > h1 { margin-left: 20px; margin-right: 20px; }
  .legacy-question-status { padding: 0 18px; }
  .legacy-login-content { padding-left: 24px; padding-right: 24px; }
  .legacy-login-form { grid-template-columns: 1fr; }
  .legacy-login-form button { min-height: 44px; }
}

.player-stage {
  background-color: color-mix(in srgb, var(--smarttest-secondary) 76%, #172033);
  background-image: linear-gradient(115deg, rgba(5, 14, 25, .78), rgba(5, 14, 25, .2) 62%, rgba(5, 14, 25, .64)), var(--smarttest-scene-image);
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: clip;
  position: relative;
}

.player-stage::after {
  background: linear-gradient(90deg, var(--smarttest-primary), color-mix(in srgb, var(--smarttest-primary) 35%, #ffd06b));
  bottom: 0;
  content: "";
  height: .35rem;
  left: 0;
  position: absolute;
  right: 0;
}

.player-header, .compact-game-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(23, 32, 51, .1);
  display: flex;
  justify-content: space-between;
  min-height: 5.25rem;
  padding: .7rem clamp(1rem, 4vw, 4.5rem);
  position: relative;
  z-index: 5;
}

.player-logo { display: block; max-height: 3.5rem; max-width: min(13rem, 38vw); object-fit: contain; }
.player-wordmark { color: var(--smarttest-primary); font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.06em; }
.player-wordmark span { color: #667079; font-weight: 500; }
.player-nav { align-items: stretch; display: flex; gap: .15rem; }
.player-nav-form { display: flex; margin: 0; }
.player-nav-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: .75rem;
  color: #3e495b;
  display: flex;
  flex-direction: column;
  font-size: .72rem;
  font-weight: 700;
  gap: .18rem;
  justify-content: center;
  min-height: 3.45rem;
  min-width: 4.25rem;
  padding: .35rem .65rem;
  text-decoration: none;
}
.player-nav-link > span:first-child:not(.player-avatar) { color: var(--smarttest-primary); font-size: 1.35rem; line-height: 1; }
.player-nav-link:hover { background: color-mix(in srgb, var(--smarttest-primary) 9%, white); color: var(--smarttest-primary); }
.player-nav-button { font-family: inherit; }
.player-avatar { align-items: center; background: var(--smarttest-primary); border-radius: 50%; color: var(--smarttest-on-primary); display: flex; font-size: .9rem; height: 1.65rem; justify-content: center; overflow: hidden; width: 1.65rem; }
.player-avatar img { height: 100%; object-fit: cover; width: 100%; }

.player-main { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5.5rem) 1rem 3.5rem; }
.player-main-access { justify-content: center; }
.player-surface { background: var(--player-surface); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--player-radius); box-shadow: var(--player-shadow); }
.access-card { max-width: 34rem; padding: clamp(1.7rem, 5vw, 3.4rem); position: relative; text-align: center; width: 100%; }
.legacy-check { align-items: center; background: var(--smarttest-primary); border-radius: 50%; color: var(--smarttest-on-primary); display: inline-flex; font-size: 1.75rem; font-weight: 800; height: 3.5rem; justify-content: center; transform: rotate(-7deg); width: 3.5rem; }
.player-kicker { color: var(--smarttest-primary); font-size: .74rem; font-weight: 800; letter-spacing: .16em; margin: 1rem 0 .35rem; text-transform: uppercase; }
.access-card h1, .home-intro h1, .detail-card > h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.access-intro, .detail-intro { color: var(--player-muted); margin: 1rem auto 1.6rem; max-width: 32rem; }
.player-form { display: grid; gap: .65rem; text-align: left; }
.player-form label, .profile-fields label { font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.player-input { background: #fff; border: 1px solid #cdd4dc; border-radius: .7rem; color: var(--player-ink); min-height: 3.25rem; padding: .75rem .9rem; width: 100%; }
.player-input:focus { border-color: var(--smarttest-primary); box-shadow: 0 0 0 .23rem color-mix(in srgb, var(--smarttest-primary) 25%, transparent); outline: 0; }
.player-validation { color: #a51d2d; font-size: .88rem; font-weight: 650; }
.player-validation:empty { display: none; }
.player-button { align-items: center; border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-weight: 800; gap: .7rem; justify-content: center; min-height: 3.15rem; padding: .7rem 1.45rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.player-button:hover { transform: translateY(-1px); }
.player-button-primary { background: linear-gradient(110deg, var(--smarttest-primary), color-mix(in srgb, var(--smarttest-primary) 42%, #ffcb63)); box-shadow: 0 9px 22px color-mix(in srgb, var(--smarttest-primary) 28%, transparent); color: var(--smarttest-on-primary); }
.player-button-primary:hover { color: var(--smarttest-on-primary); }
.player-button-secondary { background: #fff; border-color: color-mix(in srgb, var(--smarttest-primary) 55%, #b6bec9); color: var(--smarttest-primary); }
.player-button-secondary:hover { background: color-mix(in srgb, var(--smarttest-primary) 7%, white); color: var(--smarttest-primary); }
.player-form .player-button { margin-top: .75rem; width: 100%; }

.home-intro { color: #fff; margin-bottom: 1.5rem; max-width: 58rem; text-align: center; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); width: 100%; }
.home-intro .player-kicker { color: #fff; margin-top: 0; }
.home-intro h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.phase-label { font-size: .95rem; font-weight: 650; margin-top: .75rem; }
.surface-width { max-width: 58rem; width: 100%; }
.player-pending-dialog { max-width: 58rem; overflow: hidden; padding: clamp(1.25rem, 4vw, 2.5rem); width: 100%; }
.pending-heading { align-items: center; display: flex; gap: 1.1rem; margin-bottom: 1.5rem; }
.pending-heading .player-kicker { margin: 0 0 .25rem; }
.pending-heading h2 { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.pending-grid { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
.pending-item { align-items: center; background: #f4f7f8; border: 1px solid var(--player-line); border-radius: .85rem; display: flex; gap: .8rem; min-width: 0; padding: 1rem; }
.pending-icon, .status-icon { align-items: center; background: var(--smarttest-primary); border-radius: 50%; color: var(--smarttest-on-primary); display: inline-flex; flex: 0 0 auto; font-size: 1.05rem; font-weight: 900; height: 2.4rem; justify-content: center; width: 2.4rem; }
.pending-item-recovery .pending-icon { background: color-mix(in srgb, var(--smarttest-primary) 68%, #6b4fa3); }
.pending-item-score .pending-icon { background: color-mix(in srgb, var(--smarttest-primary) 48%, #e49a17); }
.pending-item div { display: flex; flex-direction: column; min-width: 0; }
.pending-item strong { font-size: 1.55rem; line-height: 1; }
.pending-item div span { color: var(--player-muted); font-size: .76rem; margin-top: .25rem; }
.player-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.completion-copy { color: var(--player-muted); margin: .35rem 0 0; text-align: center; }
.player-notice { align-items: flex-start; background: #f4f7f8; border: 1px solid var(--player-line); border-left: .3rem solid var(--smarttest-primary); border-radius: .7rem; display: flex; gap: .75rem; margin: 1rem 0; padding: .9rem 1rem; text-align: left; }
.player-notice p { margin: 0; }
.player-notice strong { display: block; margin-bottom: .15rem; }
.notice-symbol { align-items: center; background: var(--smarttest-primary); border-radius: 50%; color: var(--smarttest-on-primary); display: inline-flex; flex: 0 0 auto; font-size: .78rem; font-weight: 900; height: 1.5rem; justify-content: center; width: 1.5rem; }
.player-notice-success { border-left-color: #18794e; }
.player-notice-success .notice-symbol { background: #18794e; color: #fff; }
.player-footer { align-items: center; color: rgba(255, 255, 255, .72); display: flex; font-size: .72rem; gap: .55rem; justify-content: center; min-height: 2.7rem; padding: .5rem 1rem 1rem; }

.player-stage-game { background-image: linear-gradient(rgba(240, 244, 246, .92), rgba(240, 244, 246, .96)), var(--smarttest-scene-image); }
.compact-game-header { min-height: 4.5rem; }
.compact-brand { text-decoration: none; }
.compact-brand img { max-height: 2.8rem; max-width: 11rem; }
.game-mode-label { align-items: center; background: color-mix(in srgb, var(--smarttest-primary) 10%, white); border-radius: 999px; color: var(--smarttest-primary); display: inline-flex; font-size: .76rem; font-weight: 850; gap: .45rem; letter-spacing: .06em; padding: .45rem .8rem; text-transform: uppercase; }
.game-mode-label.is-recovery { background: #f2edf9; color: #68449a; }
.question-main { align-items: center; display: flex; flex: 1; padding: clamp(1rem, 4vw, 3rem); }
.question-card { margin: auto; max-width: 58rem; overflow: hidden; padding: clamp(1.15rem, 4vw, 2.75rem); width: 100%; }
.question-status { align-items: center; border-bottom: 1px solid var(--player-line); display: flex; justify-content: space-between; margin: calc(clamp(1.15rem, 4vw, 2.75rem) * -1) calc(clamp(1.15rem, 4vw, 2.75rem) * -1) 0; padding: 1rem clamp(1.15rem, 4vw, 2.75rem); }
.question-status-item { align-items: center; display: flex; gap: .65rem; }
.question-status-item > span:last-child { display: flex; flex-direction: column; }
.question-status-item small { color: var(--player-muted); font-size: .67rem; font-weight: 700; text-transform: uppercase; }
.question-status-item strong { font-size: .95rem; }
.game-timer .status-icon { background: #253242; color: #fff; }
.timer-track { background: #dce1e6; height: .32rem; margin: 0 calc(clamp(1.15rem, 4vw, 2.75rem) * -1) clamp(1.5rem, 4vw, 2.6rem); }
.timer-track span { background: linear-gradient(90deg, var(--smarttest-primary), color-mix(in srgb, var(--smarttest-primary) 45%, #ffca5e)); display: block; height: 100%; transition: width 1s linear; }
.recovery-explanation { background: #f2edf9; border-left: .25rem solid #68449a; border-radius: .4rem; color: #503674; font-size: .87rem; padding: .75rem .9rem; }
.question-card h1 { font-size: clamp(1.35rem, 3.2vw, 2.15rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.25; margin: 0 0 1.6rem; }
.answer-options { border: 0; display: grid; gap: .7rem; margin: 0; padding: 0; }
.answer-options legend { color: var(--player-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; margin-bottom: .55rem; text-transform: uppercase; }
.game-option { align-items: center; background: #fff; border: 1px solid #d5dbe1; border-radius: .75rem; cursor: pointer; display: flex; gap: .85rem; min-height: 3.7rem; padding: .65rem .9rem; transition: border .15s ease, background .15s ease, transform .15s ease; }
.game-option:hover { border-color: color-mix(in srgb, var(--smarttest-primary) 65%, #c8ced6); transform: translateX(.1rem); }
.game-option input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.option-marker { align-items: center; background: #eef1f3; border: 1px solid #d7dce1; border-radius: 50%; display: flex; flex: 0 0 auto; font-size: .78rem; font-weight: 850; height: 2rem; justify-content: center; width: 2rem; }
.game-option:has(input:checked) { background: color-mix(in srgb, var(--smarttest-primary) 8%, white); border-color: var(--smarttest-primary); box-shadow: inset .25rem 0 var(--smarttest-primary); }
.game-option:has(input:checked) .option-marker { background: var(--smarttest-primary); border-color: var(--smarttest-primary); color: var(--smarttest-on-primary); }
.game-option:has(input:focus-visible) { box-shadow: 0 0 0 .24rem color-mix(in srgb, var(--smarttest-primary) 28%, transparent); outline: 2px solid transparent; }
.question-actions { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-top: 1.5rem; }
.text-action { color: #536172; font-size: .82rem; font-weight: 700; }

.result-card { max-width: 58rem; overflow: hidden; padding: clamp(1.25rem, 4vw, 2.75rem); width: 100%; }
.result-summary { align-items: center; display: flex; gap: 1.1rem; margin-bottom: 1.5rem; }
.result-symbol { align-items: center; background: #18794e; border-radius: 50%; color: #fff; display: flex; flex: 0 0 auto; font-size: 2rem; font-weight: 900; height: 4rem; justify-content: center; width: 4rem; }
.result-incorrect .result-symbol { background: #b4233a; }
.result-timeout .result-symbol { background: #8a5b11; }
.result-summary .player-kicker { margin: 0; }
.result-summary h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 850; letter-spacing: -.045em; margin: 0; }
.result-points { margin: .25rem 0 0; }
.result-points strong { font-size: 1.15rem; }
.result-question { background: #f5f7f8; border-radius: .7rem; margin-bottom: 1rem; padding: .9rem 1rem; }
.result-question > span { color: var(--player-muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.result-question p { font-weight: 700; margin: .25rem 0 0; }
.result-options { display: grid; gap: .5rem; }
.result-option { align-items: center; border: 1px solid #dce1e6; border-radius: .65rem; display: flex; gap: .65rem; padding: .75rem .85rem; }
.result-option strong { color: inherit; font-size: .73rem; margin-left: auto; white-space: nowrap; }
.result-option-marker { font-weight: 900; }
.result-correct { background: #e8f6ef; border-color: #3f966d; color: #0e6039; }
.result-selected { background: #fff0f2; border-color: #c85b6b; color: #842033; }
.result-timeout .result-selected { background: #fff7e8; border-color: #b88a3d; color: #70480b; }
.feedback-panel { align-items: flex-start; background: color-mix(in srgb, var(--smarttest-primary) 7%, white); border-left: .3rem solid var(--smarttest-primary); border-radius: .7rem; display: flex; gap: .75rem; margin-top: 1rem; padding: 1rem; }
.feedback-panel h2 { font-size: .82rem; font-weight: 850; margin: 0 0 .3rem; text-transform: uppercase; }
.feedback-panel p { margin: 0; white-space: pre-line; }
.result-actions { justify-content: flex-end; }

.detail-main { justify-content: flex-start; }
.detail-card { max-width: 52rem; padding: clamp(1.3rem, 4vw, 2.75rem); width: 100%; }
.detail-card > .player-kicker { margin-top: 0; }
.profile-form { align-items: start; display: grid; gap: clamp(1.5rem, 5vw, 3rem); grid-template-columns: 10rem 1fr; margin-top: 2rem; }
.profile-picture { align-items: center; aspect-ratio: 1; background: color-mix(in srgb, var(--smarttest-primary) 14%, white); border: .35rem solid #fff; border-radius: 50%; box-shadow: 0 8px 25px rgba(18, 30, 50, .15); color: var(--smarttest-primary); display: flex; font-size: 3.3rem; font-weight: 850; justify-content: center; overflow: hidden; width: 100%; }
.profile-picture img { height: 100%; object-fit: cover; width: 100%; }
.profile-fields { display: grid; gap: .55rem; }
.profile-fields small { color: var(--player-muted); margin-bottom: .7rem; }
.file-input { padding: .55rem; }
.file-input::file-selector-button { background: #eef1f3; border: 0; border-radius: .45rem; font-weight: 700; margin-right: .8rem; padding: .55rem .7rem; }
.profile-fields .player-button { justify-self: start; margin-top: .65rem; }
.help-copy { border-left: .25rem solid var(--smarttest-primary); line-height: 1.7; margin: 1.5rem 0; padding: .2rem 0 .2rem 1rem; white-space: pre-line; }
.help-principles { display: grid; gap: .7rem; margin: 1.5rem 0; }
.help-principles article { align-items: flex-start; background: #f5f7f8; border-radius: .75rem; display: flex; gap: .85rem; padding: 1rem; }
.help-principles article > span { align-items: center; background: var(--smarttest-primary); border-radius: 50%; color: var(--smarttest-on-primary); display: flex; flex: 0 0 auto; font-weight: 900; height: 2.2rem; justify-content: center; width: 2.2rem; }
.help-principles h2 { font-size: .95rem; font-weight: 850; margin: .1rem 0 .2rem; }
.help-principles p { color: var(--player-muted); font-size: .86rem; margin: 0; }
.legacy-ranking-panel { background: #fff; border-radius: 1rem; box-shadow: 0 12px 32px rgba(20, 35, 60, .12); margin: 1rem auto 3rem; max-width: 54rem; padding: clamp(1rem, 4vw, 2rem); }
.legacy-ranking-panel h2 { color: var(--smarttest-primary); font-size: 1.2rem; font-weight: 850; margin: 0 0 .75rem; }
.legacy-ranking-panel h2:not(:first-child) { margin-top: 2rem; }
.legacy-ranking-table-wrap { overflow-x: auto; }.legacy-ranking-table { border-collapse: collapse; min-width: 34rem; width: 100%; }.legacy-ranking-table th, .legacy-ranking-table td { border-bottom: 1px solid #e2e7ed; padding: .7rem .8rem; text-align: left; }.legacy-ranking-table th:first-child, .legacy-ranking-table td:first-child { text-align: center; width: 4rem; }.legacy-ranking-table th:nth-last-child(-n+2), .legacy-ranking-table td:nth-last-child(-n+2) { text-align: right; white-space: nowrap; }.legacy-ranking-table tbody tr.is-current { background: color-mix(in srgb, var(--smarttest-primary) 12%, white); }.legacy-ranking-current { background: color-mix(in srgb, var(--smarttest-primary) 9%, white); border-left: .25rem solid var(--smarttest-primary); margin: 1rem 0 0; padding: .75rem 1rem; }

@media (max-width: 767px) {
  .player-header { align-items: stretch; flex-direction: column; padding: .65rem 1rem 0; }
  .player-brand { align-self: center; min-height: 2.75rem; }
  .player-nav { border-top: 1px solid var(--player-line); justify-content: center; overflow-x: auto; }
  .player-nav-link { min-width: 4.5rem; padding-inline: .4rem; }
  .player-main { padding-top: 2rem; }
  .pending-grid { grid-template-columns: 1fr; }
  .pending-item { padding: .8rem; }
  .question-main { align-items: flex-start; padding: .75rem; }
  .question-card, .result-card { border-radius: .85rem; }
  .question-actions { align-items: stretch; flex-direction: column-reverse; }
  .question-actions .player-button, .result-actions .player-button { width: 100%; }
  .text-action { padding: .6rem; text-align: center; }
  .result-actions { flex-direction: column; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-picture { justify-self: center; max-width: 9rem; }
  .profile-fields .player-button { justify-self: stretch; }
}

@media (max-width: 430px) {
  .player-nav-link { font-size: .65rem; min-width: 4rem; }
  .player-nav-link > span:first-child:not(.player-avatar) { font-size: 1.15rem; }
  .pending-heading .legacy-check { height: 2.8rem; width: 2.8rem; }
  .question-status { align-items: stretch; flex-direction: column; gap: .65rem; }
  .question-status-item { justify-content: space-between; }
  .question-status-item > span:last-child { margin-right: auto; }
  .result-summary { align-items: flex-start; }
  .result-symbol { font-size: 1.5rem; height: 3.2rem; width: 3.2rem; }
  .result-option { align-items: flex-start; flex-wrap: wrap; }
  .result-option strong { flex-basis: 100%; margin-left: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .player-button, .game-option, .player-notice, .result-option { border: 2px solid ButtonText; }
  .game-option:has(input:checked) { outline: 3px solid Highlight; }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.eyebrow {
  display: block;
  color: #0057b8;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.admin-page-header, .campaign-header, .section-heading, .data-panel-header, .data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-page-header { margin: 2.5rem 0 2rem; }
.admin-page-header h1, .campaign-header h1, .admin-form-shell h1 { font-weight: 800; letter-spacing: -.035em; }
.admin-page-header p, .campaign-header p { margin: 0; color: #60708a; }
.header-actions { display: flex; gap: .65rem; }

.admin-card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.admin-card, .admin-section, .admin-form-shell, .auth-placeholder {
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20, 35, 60, .06);
}
.admin-card { padding: 1.5rem; }
.admin-card h2 { font-size: 1.25rem; margin: .65rem 0 .2rem; }
.date-range { color: #60708a; font-size: .85rem; text-align: right; }
.admin-metrics, .summary-grid, .phase-metrics { display: grid; gap: .75rem; margin: 1.25rem 0; }
.admin-metrics { grid-template-columns: 1fr 1fr; }
.admin-metrics div, .summary-grid div, .phase-metrics div { background: #f5f7fa; border-radius: 10px; padding: .7rem .9rem; }
.admin-metrics dt, .summary-grid dt, .phase-metrics dt { color: #68758b; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.admin-metrics dd, .summary-grid dd, .phase-metrics dd { font-size: 1.25rem; font-weight: 800; margin: 0; }
.status-pill { background: #edf0f4; border-radius: 999px; color: #5c687a; display: inline-block; font-size: .72rem; font-weight: 800; padding: .3rem .65rem; text-transform: uppercase; }
.status-pill.active { background: #dff6e8; color: #14733a; }
.empty-state { background: white; border: 2px dashed #d7dee8; border-radius: 18px; padding: 4rem 2rem; text-align: center; }

.campaign-header { background: linear-gradient(120deg, var(--campaign-primary), #12345a); border-radius: 20px; color: var(--campaign-secondary); margin: 2rem 0 1.25rem; padding: 2rem; }
.campaign-header .eyebrow, .campaign-header p, .campaign-header .back-link { color: inherit; opacity: .88; }
.section-nav { background: #fff; border: 1px solid #e1e6ed; border-radius: 12px; display: flex; gap: .25rem; margin-bottom: 1.25rem; overflow-x: auto; padding: .4rem; position: sticky; top: .5rem; z-index: 10; }
.section-nav a { border-radius: 8px; color: #34425a; font-size: .875rem; font-weight: 700; padding: .65rem .8rem; text-decoration: none; white-space: nowrap; }
.section-nav a:hover { background: #edf4fd; color: #0057b8; }
.admin-section { margin: 1.25rem 0; padding: 1.5rem; scroll-margin-top: 5rem; }
.section-heading { margin-bottom: 1.1rem; }
.section-heading h2 { font-size: 1.55rem; font-weight: 800; margin: 0; }
.summary-grid { grid-template-columns: repeat(5, 1fr); }
.operational-warning { background: #fff4d7; border-left: 4px solid #e9a800; border-radius: 8px; color: #604600; margin: 1rem 0; padding: .85rem 1rem; }
.data-panel { border: 1px solid #e1e6ed; border-radius: 14px; margin-top: 1rem; padding: 1.2rem; }
.data-panel-header h3 { font-size: 1.15rem; margin: .45rem 0 .1rem; }.data-panel-header p { color: #68758b; margin: 0; }
.phase-metrics { grid-template-columns: repeat(4, 1fr); }.phase-metrics dd { font-size: 1rem; }
.calendar-row { border-top: 1px solid #e8ecf1; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; padding-top: 1rem; }
.exception-chip { background: #eef3f8; border-radius: 999px; display: inline-flex; margin: .25rem; padding: .25rem .35rem .25rem .7rem; }
.exception-chip button { background: none; border: 0; color: #6c7889; font-size: 1.2rem; line-height: 1; }
.inline-form { display: grid; gap: .5rem; grid-template-columns: 135px 1fr auto; }
.two-column-layout { align-items: start; display: grid; gap: 1.5rem; grid-template-columns: 1.5fr 1fr; }
.data-list { display: grid; gap: .65rem; }.data-row { border: 1px solid #e2e7ee; border-radius: 10px; padding: .8rem 1rem; }.data-row > div:first-child { display: grid; gap: .2rem; }.data-row small, .data-row span { color: #6a778b; }
.compact-form { background: #f5f7fa; border-radius: 12px; display: grid; gap: .75rem; padding: 1rem; }.compact-form h3 { margin: 0; }.compact-form p { color: #68758b; font-size: .85rem; }.compact-form label { font-size: .8rem; font-weight: 700; }
.admin-table td { vertical-align: middle; }.admin-table td:first-child { display: grid; }.admin-table td small { color: #68758b; }.actions { display: flex !important; gap: .4rem; justify-content: flex-end; }
.inline-create-form { background: #f5f7fa; border-radius: 12px; display: grid; gap: .6rem; grid-template-columns: 1fr 1.3fr 1fr 1fr 150px auto; margin-top: 1rem; padding: 1rem; }.inline-create-form h3 { font-size: 1rem; grid-column: 1 / -1; margin: 0; }
.question-row strong { max-width: 760px; }

.admin-form-shell, .auth-placeholder { margin: 2rem auto; max-width: 760px; padding: 2rem; }.admin-form-shell.wide { max-width: 980px; }.auth-placeholder { margin-top: 5rem; text-align: center; }
.back-link { color: #52647d; display: inline-block; font-weight: 600; margin-bottom: 1.5rem; text-decoration: none; }
.admin-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }.admin-form fieldset { border-top: 1px solid #e2e7ed; padding-top: 1.25rem; }.admin-form legend { float: none; font-size: 1.05rem; font-weight: 800; }.admin-form > label, .form-grid label { font-weight: 700; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }.form-grid .full { grid-column: 1 / -1; }
.score-sections { display: grid; gap: 1rem; }
.score-section { background: #f7f9fc; border: 1px solid #e2e7ee; border-radius: 12px; padding: 1rem; }
.score-section h2 { color: #34425a; font-size: .9rem; font-weight: 800; margin: 0 0 .8rem; text-transform: uppercase; }
.score-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.score-grid.single-score { grid-template-columns: minmax(220px, 1fr) 2fr; }
.score-grid label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .35rem; }
.score-grid small { color: #68758b; display: block; font-size: .75rem; line-height: 1.35; margin-top: .4rem; }
.form-hint { color: #6a778b; font-size: .82rem; }.color-field { display: grid; gap: .5rem; grid-template-columns: 1fr 48px; }.color-field input[type=color] { border: 1px solid #ced4da; border-radius: 6px; height: 38px; width: 48px; }
.answer-list { display: grid; gap: .65rem; }.answer-row { align-items: center; display: grid; gap: .75rem; grid-template-columns: 1fr 110px; }.answer-row .form-check { margin: 0; }
.validation-summary, .field-validation-error { color: #a51d2d; }.validation-summary:empty { display: none; }
.access-check-list { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.access-check-list .form-check { background: #f7f9fc; border: 1px solid #e2e7ee; border-radius: 9px; margin: 0; padding: .7rem .8rem .7rem 2.1rem; }
.account-state { background: #f7f9fc; border-radius: 9px; padding: .8rem .8rem .8rem 2.2rem; }
.staff-users-table td:nth-child(3) { max-width: 360px; }
.campaign-actions { justify-content: flex-end; margin-bottom: 1rem; }
.import-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
.import-card { border: 1px solid #e1e6ed; border-radius: 14px; padding: 1.25rem; }
.import-card h2 { font-size: 1.25rem; font-weight: 800; }
.import-card p { color: #60708a; }
.template-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.import-file-name { overflow-wrap: anywhere; word-break: break-word; }
.validation-table td:first-child { display: table-cell; font-weight: 700; white-space: nowrap; }

@media (max-width: 991px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .inline-create-form { grid-template-columns: 1fr 1fr; }
  .inline-create-form h3 { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .admin-page-header, .campaign-header, .section-heading, .data-panel-header { align-items: stretch; flex-direction: column; }
  .header-actions { flex-direction: column; }
  .campaign-header { padding: 1.4rem; }
  .summary-grid, .phase-metrics { grid-template-columns: 1fr 1fr; }
  .calendar-row, .two-column-layout, .form-grid, .score-grid, .score-grid.single-score, .import-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }.inline-form { grid-template-columns: 1fr; }
  .inline-create-form { grid-template-columns: 1fr; }.inline-create-form h3 { grid-column: auto; }
  .admin-section, .admin-form-shell { border-radius: 12px; padding: 1rem; }
  .admin-table { min-width: 720px; }
  .access-check-list { grid-template-columns: 1fr; }
}
