:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --ink: #102a43;
  --muted: #5b6978;
  --line: rgba(16, 42, 67, 0.12);
  --line-strong: rgba(16, 42, 67, 0.22);
  --navy: #102a43;
  --brand-blue: #243cff;
  --gold: #bf8a32;
  --teal: #0f766e;
  --danger: #b42318;
  --warning: #b76e00;
  --success: #0f766e;
  --shadow-soft: 0 24px 54px rgba(16, 42, 67, 0.12);
  --shadow-card: 0 18px 34px rgba(16, 42, 67, 0.1);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
button {
  -webkit-user-select: auto;
  user-select: auto;
}

img {
  -webkit-user-drag: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

body[data-page="simulator"] {
  background: #ffffff;
}

body[data-page="home"] {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 206, 255, 0.3), transparent 0 7%, transparent 16%),
    radial-gradient(circle at 82% 32%, rgba(63, 200, 255, 0.44), transparent 0 12%, transparent 24%),
    linear-gradient(135deg, #041320 0%, #082233 46%, #06131f 100%);
}

body[data-page="home"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(106, 223, 255, 0.22) 0 2px, transparent 2px 72px),
    linear-gradient(rgba(106, 223, 255, 0.16) 0 2px, transparent 2px 72px);
  background-size: 180px 180px;
  opacity: 0.16;
  mask: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.86) 34%, transparent 72%);
  pointer-events: none;
}

body[data-page="home"]::after {
  content: "";
  position: fixed;
  top: 50%;
  right: -170px;
  z-index: -1;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 18px solid rgba(92, 214, 255, 0.16);
  box-shadow:
    0 0 0 30px rgba(92, 214, 255, 0.11),
    0 0 0 58px rgba(92, 214, 255, 0.06),
    0 0 90px rgba(80, 210, 255, 0.34);
  pointer-events: none;
}

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

body[data-page="home"] .site-shell::before,
body[data-page="home"] .site-shell::after {
  display: none;
}

body[data-page="home"] .entry-site-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-screen {
  width: 100%;
  display: flex;
  justify-content: center;
}

.entry-card {
  position: relative;
  width: min(100%, 650px);
  padding: 26px 46px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(18, 61, 118, 0.22);
  box-shadow:
    0 22px 54px rgba(3, 14, 26, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.82);
  text-align: center;
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(73, 191, 255, 0.1);
  pointer-events: none;
}

.entry-logo {
  width: min(100%, 400px);
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.entry-branding {
  display: grid;
  gap: 6px;
}

.entry-title {
  margin: 0;
  color: #163a7a;
  font-family: Arial, sans-serif;
  font-size: clamp(2.15rem, 4.1vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.entry-subtitle {
  margin: 0;
  color: #163a7a;
  font-family: Arial, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.82rem);
  font-weight: 700;
}

.entry-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  color: #ffd400;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 0 #b97800,
    0 2px 6px rgba(255, 196, 0, 0.38);
}

.entry-copy {
  max-width: 62ch;
  margin: 7px auto 0;
  color: #173463;
  font-size: 1rem;
  line-height: 1.35;
  text-align: justify;
  text-align-last: center;
}

.entry-form {
  width: min(100%, 560px);
  margin: 20px auto 0;
  display: grid;
  gap: 10px;
}

.entry-field {
  position: relative;
  display: block;
}

.entry-field input,
.entry-field select {
  width: 100%;
  min-height: 52px;
  padding: 11px 72px 11px 18px;
  border: 2px solid rgba(24, 37, 58, 0.74);
  border-radius: 10px;
  background: #ffffff;
  color: #1f2731;
  font-family: Arial, sans-serif;
  font-size: 1.04rem;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.entry-field input::placeholder {
  color: #1f2731;
  opacity: 1;
}

.entry-field select {
  appearance: none;
  cursor: pointer;
}

.entry-field select:disabled {
  background: #f3f6fb;
  color: #738196;
  cursor: not-allowed;
}

.entry-field input:focus,
.entry-field select:focus {
  border-color: #2555bb;
  box-shadow: 0 0 0 4px rgba(37, 85, 187, 0.14);
}

.entry-select-field .select-caret {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 56px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, #2556bf 0%, #1c4699 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 58% 100%);
  pointer-events: none;
}

.entry-submit {
  min-height: 52px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #2458c3 0%, #163f94 100%);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(17, 53, 131, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.entry-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(17, 53, 131, 0.28);
}

.forgot-link {
  justify-self: center;
  border: none;
  padding: 0;
  background: none;
  color: #214aac;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.entry-status {
  min-height: 18px;
  margin-top: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.entry-status.is-error {
  color: #b42318;
}

.entry-status.is-info {
  color: #1f4fae;
}

.entry-status.is-success {
  color: #0f766e;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  width: min(1380px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
}

.site-shell::before {
  top: 18px;
  left: -90px;
  background: radial-gradient(circle, rgba(16, 42, 67, 0.08), transparent 70%);
}

.site-shell::after {
  top: 90px;
  right: -100px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.08), transparent 72%);
}

body[data-page="simulator"] .site-shell::before,
body[data-page="simulator"] .site-shell::after {
  display: none;
}

.site-header,
.subpage-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  padding: 24px 30px 22px;
  border: 3px solid var(--brand-blue);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 60, 255, 0.12);
  overflow: hidden;
}

.site-header::before,
.subpage-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--brand-blue);
}

.site-header::after,
.subpage-header::after {
  display: none;
}

.site-logo {
  width: min(100%, 700px);
  max-width: 700px;
  height: auto;
  display: block;
  object-fit: contain;
  image-rendering: auto;
}

.header-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(36, 60, 255, 0.22);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.brand-wordmark {
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.brand-name {
  margin: 0;
  color: #0d2f6d;
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  margin: 0;
  color: #0d2f6d;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-block,
.subpage-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  text-align: center;
}

.header-title-wrap {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.brand-block h1,
.subpage-copy h1 {
  font-size: clamp(2.25rem, 4.7vw, 4.05rem);
  line-height: 0.94;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.eyebrow,
.metric-label,
.search-label {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
}

.lead,
.section-copy,
.brand-block p:last-child,
.subpage-copy p:last-child,
.hero-copy p:last-child,
.panel p,
.area-card p,
.simulator-card p,
.runner-card p,
.sidebar-card p,
.signal-box span,
.empty-card p,
.info-box p {
  color: var(--muted);
  line-height: 1.72;
}

.lead,
.brand-block p:last-child,
.subpage-copy p:last-child,
.hero-copy p:last-child {
  margin-top: 14px;
  max-width: 66ch;
  font-size: 1.02rem;
  margin-left: auto;
  margin-right: auto;
}

.brand-block .lead {
  margin-top: 0;
}

.corporate-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(36, 60, 255, 0.22);
}

.menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #f5f8fc;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.menu-link:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 42, 67, 0.22);
  background: #eef4fb;
}

.menu-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), #1f4c73);
  border-color: var(--navy);
}

.menu-button {
  appearance: none;
}

.menu-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px dashed rgba(16, 42, 67, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.register-link,
.legal-back {
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  color: #0648d8 !important;
}

.legal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 8px;
}

.legal-meta .eyebrow {
  margin: 0;
}

.register-link {
  display: inline-block;
  justify-self: center;
  color: #0648d8;
}

.entry-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 1rem;
  font-weight: 700;
}

.entry-legal-links a { color: #0648d8; }

.legal-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.legal-card {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.legal-card h1 { margin: 12px 0 18px; font-size: clamp(2rem, 5vw, 3.2rem); }
.legal-document h2 { margin-top: 28px; font-size: 1.25rem; }
.legal-document p, .registration-card > p { margin-top: 12px; color: var(--muted); line-height: 1.75; }
.legal-action { display: inline-flex; margin-top: 22px; text-decoration: none; }

.registration-form { display: grid; gap: 16px; margin-top: 28px; }
.registration-form > label:not(.consent-row) { display: grid; gap: 7px; font-weight: 750; color: var(--navy); }
.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"] {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; background: #fff;
}
.registration-form small { color: var(--muted); font-weight: 500; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; }
.registration-form button:disabled { opacity: .6; cursor: wait; }

.page-stack {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.hero-panel,
.panel,
.metric-card,
.area-card,
.simulator-card,
.sidebar-card,
.runner-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

body[data-page="simulator"] .hero-panel,
body[data-page="simulator"] .panel,
body[data-page="simulator"] .sidebar-card,
body[data-page="simulator"] .runner-card,
body[data-page="simulator"] .metric-card,
body[data-page="simulator"] .info-box {
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(16, 42, 67, 0.06);
}

.hero-panel,
.panel,
.sidebar-card,
.runner-card,
.empty-card {
  padding: 24px;
}

.hero-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 20px;
  overflow: hidden;
}

.hero-home::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 70%);
}

body[data-page="simulator"] .hero-panel::after,
body[data-page="simulator"] .runner-card::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-home h2,
.panel-header h2,
.section-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero-metrics,
.stats-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.panel-header,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.area-grid,
.simulator-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

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

.admin-users-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.area-card,
.simulator-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.area-card::before,
.simulator-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, var(--area-accent, var(--teal)), rgba(255, 255, 255, 0.2));
}

.area-card::after,
.simulator-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--area-accent, var(--teal)) 18%, white), transparent 70%);
}

.area-card:hover,
.simulator-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--area-accent, var(--teal)) 34%, white);
  box-shadow: 0 22px 40px rgba(16, 42, 67, 0.12);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-pill,
.card-count,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.2;
}

.card-pill {
  color: #ffffff;
  background: var(--area-accent, var(--teal));
}

.card-count,
.chip {
  color: var(--ink);
  background: rgba(16, 42, 67, 0.07);
}

.area-card h3,
.simulator-card h3,
.runner-card h3,
.sidebar-card h2 {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  line-height: 1.08;
}

.mini-list,
.chip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-list span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(16, 42, 67, 0.05);
  font-size: 0.84rem;
}

.card-actions,
.runner-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-link,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.action-link,
.action-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), #1e4b73);
  box-shadow: 0 10px 20px rgba(16, 42, 67, 0.16);
}

.secondary-action {
  color: var(--navy);
  background: rgba(16, 42, 67, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

.action-link:hover,
.action-button:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.action-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.action-button-link {
  border: none;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: end;
}

.search-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(16, 42, 67, 0.34);
  box-shadow: 0 0 0 4px rgba(16, 42, 67, 0.07);
}

.info-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.info-box strong {
  display: block;
  margin-top: 10px;
  font-size: 1.42rem;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-field {
  display: grid;
  gap: 10px;
}

.admin-field > span,
.field-row > span {
  font-weight: 700;
  color: var(--navy);
}

.admin-field input,
.admin-field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 42, 67, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.admin-field input:focus,
.admin-field select:focus {
  border-color: rgba(36, 60, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(36, 60, 255, 0.12);
}

.field-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.toggle-check,
.checklist-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

.toggle-check {
  color: var(--muted);
  font-size: 0.95rem;
}

.toggle-check input,
.checklist-item input {
  margin-top: 2px;
}

.admin-checklist {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7faff;
}

.checklist-item {
  padding: 12px 14px;
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
}

.admin-placeholder {
  padding: 18px;
  border: 1px dashed rgba(16, 42, 67, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-submit {
  width: auto;
  min-width: 230px;
}

.secondary-button {
  min-height: 56px;
  padding: 14px 22px;
  border: 1px solid rgba(16, 42, 67, 0.14);
  border-radius: 14px;
  color: var(--navy);
  background: #f5f8fc;
  font-weight: 700;
}

.secondary-button:hover {
  background: #edf3fb;
}

.status-message {
  min-height: 24px;
  font-weight: 700;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-info {
  color: #1f4fae;
}

.status-message.is-success {
  color: var(--success);
}

.admin-user-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(16, 42, 67, 0.08);
}

.inline-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.subpage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) 330px;
  gap: 22px;
  margin-top: 24px;
}

body[data-page="simulator"] .subpage-layout {
  grid-template-columns: minmax(0, 1.6fr) 320px;
}

.subpage-main,
.subpage-sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.sidebar-card {
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}

.clean-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

#simulatorLevels.clean-list {
  padding-left: 0;
  list-style: none;
}

.level-status-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(16, 42, 67, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.level-status-card strong {
  color: var(--navy);
  font-size: 1rem;
}

.level-status-card span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.level-status-badge {
  display: inline-flex;
  align-items: center;
  justify-self: flex-start;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(16, 42, 67, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.level-status-card.is-active {
  border-color: rgba(36, 60, 255, 0.34);
  background: linear-gradient(180deg, rgba(36, 60, 255, 0.08), rgba(36, 60, 255, 0.03));
  box-shadow: 0 16px 30px rgba(36, 60, 255, 0.12);
  transform: translateY(-1px);
}

.level-status-card.is-active .level-status-badge {
  color: #ffffff;
  background: linear-gradient(135deg, #243cff, #163a9b);
}

.level-status-card.is-completed {
  border-color: rgba(15, 118, 110, 0.26);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.03));
}

.level-status-card.is-completed .level-status-badge {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0b625b);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.breadcrumb a,
.breadcrumb span {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.runner-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.runner-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 42, 67, 0.05), transparent 70%);
}

.runner-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.runner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.timer-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  color: var(--navy);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.06));
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.timer-box strong {
  font-size: 1.75rem;
  line-height: 1;
}

.timer-warning {
  color: var(--warning);
  background: linear-gradient(180deg, rgba(183, 110, 0, 0.12), rgba(183, 110, 0, 0.06));
  border-color: rgba(183, 110, 0, 0.2);
}

.timer-critical {
  color: var(--danger);
  background: linear-gradient(180deg, rgba(180, 35, 24, 0.12), rgba(180, 35, 24, 0.06));
  border-color: rgba(180, 35, 24, 0.22);
}

.runner-question-block {
  margin-top: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(16, 42, 67, 0.04);
  width: 100%;
}

.question-audio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.listen-button {
  min-height: 42px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #13998d);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.listen-button:hover {
  background: linear-gradient(135deg, #11877f, #18ab9d);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.24);
}

.listen-button:disabled {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #8aa8a4, #a9bebc);
  border-color: rgba(16, 42, 67, 0.1);
  box-shadow: none;
}

.level-progress-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.level-progress-step {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 18px;
  background: rgba(16, 42, 67, 0.04);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.level-progress-order {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.level-progress-step strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}

.level-progress-step.is-active {
  border-color: rgba(36, 60, 255, 0.34);
  background: linear-gradient(180deg, rgba(36, 60, 255, 0.1), rgba(36, 60, 255, 0.03));
  box-shadow: 0 16px 28px rgba(36, 60, 255, 0.12);
  transform: translateY(-1px);
}

.level-progress-step.is-active .level-progress-order,
.level-progress-step.is-active strong {
  color: #173a97;
}

.level-progress-step.is-completed {
  border-color: rgba(15, 118, 110, 0.26);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(15, 118, 110, 0.03));
}

.level-progress-step.is-completed .level-progress-order,
.level-progress-step.is-completed strong {
  color: #0f766e;
}

.runner-question-paragraph {
  width: 100%;
  max-width: none;
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

.signal-box {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(16, 42, 67, 0.05);
}

.option-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.option-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface-strong);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.option-letter {
  font-weight: 800;
  color: var(--navy);
}

.option-text {
  display: block;
}

.option-button:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 42, 67, 0.3);
  box-shadow: 0 12px 20px rgba(16, 42, 67, 0.08);
}

.option-button:disabled {
  cursor: default;
}

.option-correct {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.08);
}

.option-incorrect {
  border-color: rgba(180, 35, 24, 0.3);
  background: rgba(180, 35, 24, 0.08);
}

.feedback-box {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(16, 42, 67, 0.05);
}

.feedback-box.visible {
  display: block;
}

.feedback-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.feedback-success {
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(15, 118, 110, 0.05));
}

.feedback-danger {
  border-color: rgba(180, 35, 24, 0.24);
  background: linear-gradient(180deg, rgba(180, 35, 24, 0.1), rgba(180, 35, 24, 0.05));
}

.report-card {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.report-header h4,
.report-section h5 {
  margin: 0;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.grade-badge {
  min-width: 120px;
  padding: 16px;
  border: 1px solid rgba(36, 60, 255, 0.18);
  border-radius: 18px;
  text-align: center;
  background: rgba(36, 60, 255, 0.06);
}

.grade-badge strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.report-summary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 42, 67, 0.03);
}

.report-summary strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.3rem;
  color: var(--navy);
}

.report-body {
  display: grid;
  gap: 18px;
}

.report-section {
  padding: 18px;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.96);
}

.report-section p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.78;
  text-align: justify;
}

.empty-card {
  padding: 24px;
}

@media (max-width: 1120px) {
  .site-header,
  .subpage-header,
  .hero-home,
  .subpage-layout,
  .runner-head {
    grid-template-columns: 1fr;
  }

  .level-progress-strip {
    grid-template-columns: 1fr;
  }

  .question-audio-row {
    align-items: flex-start;
  }

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

@media (max-width: 760px) {
  body[data-page="home"]::after {
    right: -220px;
    width: 88vw;
  }

  .entry-card {
    padding: 28px 18px 24px;
  }

  .entry-logo {
    width: min(100%, 320px);
  }

  .entry-copy {
    font-size: 0.98rem;
  }

  .entry-field input,
  .entry-field select,
  .entry-submit {
    min-height: 56px;
    font-size: 1rem;
  }

  .admin-form-grid,
  .admin-users-grid {
    grid-template-columns: 1fr;
  }

  .field-row,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-submit,
  .secondary-button {
    width: 100%;
  }

  .site-shell {
    width: min(100%, calc(100% - 16px));
  }

  .site-header,
  .subpage-header,
  .hero-panel,
  .panel,
  .sidebar-card,
  .runner-card,
  .area-card,
  .simulator-card,
  .empty-card {
    padding: 18px;
  }

  .header-logo-wrap,
  .corporate-menu {
    padding-bottom: 12px;
  }

  .corporate-menu {
    padding-top: 14px;
  }

  .brand-wordmark {
    text-align: center;
  }

  .area-grid,
  .simulator-grid,
  .hero-metrics,
  .stats-grid,
  .report-grid,
  .result-grid,
  .search-layout {
    grid-template-columns: 1fr;
  }

  .card-top,
  .panel-header,
  .section-header,
  .runner-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
