:root {
  --navy: #07153b;
  --pink: #ec3b3b;
  --link-water: #dae6ea;
  --white: #ffffff;
  --black: #000000;
  --bg: #f8f9fb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e2e8ee;
  --error: #dc2626;
  --success: #16a34a;
  --shadow: 0 18px 50px rgba(7, 21, 59, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(218, 230, 234, 0.85), rgba(248, 249, 251, 0.92) 42%, rgba(236, 59, 59, 0.08)),
    var(--bg);
  color: var(--text);
  font-family: "General Sans", "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.assessment-shell {
  width: min(100% - 32px, 720px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

.admin-shell {
  width: min(100% - 32px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.card {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(7, 21, 59, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.admin-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 42px);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.admin-list-panel,
.admin-detail-panel {
  background: var(--white);
  border: 1px solid rgba(7, 21, 59, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.admin-list-panel {
  min-height: 520px;
  overflow: hidden;
}

.admin-detail-panel {
  min-height: 520px;
  padding: 24px;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-header h2,
.admin-detail-panel h2,
.answers-section h3 {
  color: var(--navy);
  font-size: 18px;
}

.admin-panel-header span {
  min-width: 32px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--link-water);
  color: var(--navy);
  font-weight: 800;
}

.submission-list {
  display: grid;
  max-height: calc(100vh - 190px);
  overflow: auto;
}

.submission-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.submission-row.active,
.submission-row:hover {
  background: #fbfdfe;
}

.submission-row strong,
.submission-row small {
  display: block;
}

.submission-row small {
  color: var(--muted);
  font-size: 12px;
}

.score-pill {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(236, 59, 59, 0.1);
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.empty-state,
.admin-muted,
.admin-error {
  color: var(--muted);
  line-height: 1.6;
}

.admin-muted {
  padding: 18px;
}

.admin-error {
  color: var(--error);
  padding: 18px;
  font-weight: 700;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-header h2 {
  margin-top: 6px;
  font-size: 28px;
}

.detail-header p,
.detail-grid dd,
.answer-card p {
  color: #374151;
  line-height: 1.55;
}

.score-card {
  min-width: 130px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.score-card strong {
  display: block;
  color: var(--navy);
  font-size: 34px;
}

.score-card span {
  color: var(--muted);
  font-weight: 700;
}

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

.detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.answers-section {
  display: grid;
  gap: 14px;
}

.answer-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fbfdfe;
}

.answer-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.answer-card h4 {
  margin: 10px 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
}

.brand-header,
.question-topbar,
.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: block;
  width: 192px;
  height: auto;
}

.brand-logo.small {
  width: 132px;
}

.screen-label,
.category-label,
.question-footer p,
.question-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.screen-label {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--link-water);
  color: var(--navy);
  text-align: center;
}

.screen-label.success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
}

.screen-label.error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
}

.intro {
  margin-top: 30px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(31px, 5vw, 48px);
  line-height: 1.06;
}

.question-body h1 {
  margin-top: 12px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 560;
  line-height: 1.18;
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.rules-box {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
  padding: 20px;
}

.rules-box h2 {
  color: var(--navy);
  font-size: 17px;
}

.rules-box ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #374151;
  line-height: 1.55;
}

.applicant-form {
  margin-top: 28px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  outline: none;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 190px;
  resize: vertical;
  padding: 14px;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(236, 59, 59, 0.12);
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  margin-top: 18px;
  color: #374151;
  font-weight: 500;
  line-height: 1.45;
}

.consent input {
  min-height: 20px;
  width: 20px;
  margin-top: 1px;
  accent-color: var(--pink);
}

.error-message {
  margin-top: 14px;
  color: var(--error);
  font-size: 14px;
  font-weight: 700;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  margin-top: 22px;
  background: var(--pink);
  color: var(--white);
}

.primary-button:hover {
  background: #cf3030;
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #d1d5db;
}

.secondary-button {
  margin-top: 24px;
  background: var(--link-water);
  color: var(--navy);
}

.timer {
  display: grid;
  justify-items: center;
  min-width: 94px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfdfe;
}

.timer strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.timer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.timer.warning {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.05);
}

.timer.warning strong {
  color: var(--error);
}

.progress-track {
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--link-water);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
  transition: width 180ms ease;
}

.question-body {
  margin-top: 28px;
}

.answer-area {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.option-label {
  grid-template-columns: 22px 1fr;
  align-items: start;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}

.option-label:hover,
.option-label:has(input:checked) {
  border-color: var(--pink);
  background: rgba(236, 59, 59, 0.045);
}

.option-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--pink);
}

.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.question-footer .primary-button {
  margin-top: 0;
}

.close-note {
  margin-top: 24px;
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 680px) {
  .assessment-shell {
    width: min(100% - 20px, 720px);
    padding: 10px 0;
  }

  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0;
  }

  .card {
    padding: 20px;
  }

  .admin-header,
  .admin-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-header {
    display: grid;
  }

  .brand-header,
  .question-topbar,
  .question-footer {
    display: grid;
  }

  .question-meta {
    align-items: center;
  }

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

  .timer {
    min-width: 84px;
  }
}
