:root {
  /* Sayfa zemini — renk seçicideki değerle birebir: rgb(247, 232, 208) / #f7e8d0 (≈ hsl(37, 68%, 89%)) */
  --page-bg: rgb(247, 232, 208);
  --black-hsl: 96, 15.15%, 12.94%;

  --bg: var(--page-bg);
  /* Form / tablo başlığı: aynı ton, biraz daha koyu */
  --bg-2: rgb(241, 225, 198);
  --card: #ffffff;
  --text: hsl(var(--black-hsl));
  --text2: hsl(96, 18%, 18%);
  --muted: hsl(96, 10%, 38%);
  --muted2: hsl(96, 8%, 52%);

  --accent: hsl(99.23, 24.53%, 20.78%);
  --accent-2: hsl(99.23, 28%, 32%);
  --accent-3: hsl(99.23, 30%, 16%);
  --accent-light: hsl(36, 74.07%, 89.41%);
  --accent-soft: rgba(58, 74, 42, 0.07);
  --accent-soft-2: rgba(58, 74, 42, 0.12);

  --coral: #e25a3c;           /* STC signal accent */
  --coral-2: #c84727;
  --coral-soft: rgba(226, 90, 60, 0.10);

  --border: rgb(225, 208, 182);
  --border-light: rgb(236, 223, 202);

  --good: #4f7a2e;
  --good-bg: #e8f1d9;
  --good-border: #cfe0b3;
  --warn: #b67724;
  --warn-bg: #fbf0d6;
  --warn-border: #f1dca0;
  --bad: #c4452a;
  --bad-bg: #fbe5dd;
  --bad-border: #f5c8b8;

  --shadow-xs: 0 1px 2px rgba(34, 30, 20, 0.04);
  --shadow-sm: 0 2px 8px rgba(34, 30, 20, 0.05), 0 1px 2px rgba(34, 30, 20, 0.03);
  --shadow:    0 6px 22px rgba(34, 30, 20, 0.06), 0 1px 3px rgba(34, 30, 20, 0.04);
  --shadow-lg: 0 14px 44px rgba(34, 30, 20, 0.10), 0 2px 8px rgba(34, 30, 20, 0.05);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* STC pattern — sağda; düşük opaklık ki açık krem zemin bozulmasın */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/STC_Pattern_transparent.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto min(96vh, 920px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 36px 40px;
  position: relative;
  z-index: 1;
}

/* ── Brand bar ── */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 18px;
  margin-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  flex-shrink: 0;
}
/* Subtitle only — project name lives in the logo */
.brand-text {
  line-height: 1.25;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.brand-link > span {
  font-size: inherit;
  font-weight: inherit;
}
.brand-link-logo {
  display: block;
  height: 20px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.88;
}
.brand-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(58, 74, 42, 0.35);
}
.brand-link:hover .brand-link-logo { opacity: 1; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ── Hero ── */
.hero {
  background:
    radial-gradient(circle at 85% 15%, hsla(36, 74.07%, 89.41%, 0.22), transparent 55%),
    linear-gradient(140deg, hsl(99.23, 30%, 16%) 0%, hsl(99.23, 24.53%, 22%) 45%, hsl(99.23, 26%, 32%) 100%);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 44px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/STC_Pattern_transparent.webp");
  background-repeat: repeat;
  background-size: 360px auto;
  opacity: 1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -110px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248,231,206,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(248, 231, 206, 0.15);
  color: var(--accent-light);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.card .eyebrow,
#step-info .card .eyebrow {
  background: var(--accent-soft);
  color: var(--accent);
}

h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--text);
}
.hero h1 { color: white; font-size: 34px; }
h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 6px;
}
h3 { font-size: 15px; font-weight: 700; color: var(--text2); margin-bottom: 4px; }
p { margin: 4px 0; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.55; }
.hero .muted { color: rgba(255,255,255,0.78); max-width: 720px; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.mini {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(248, 231, 206, 0.15);
  border-radius: var(--radius-xs);
  padding: 16px 14px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.mini .k {
  color: rgba(248, 231, 206, 0.75);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.mini .v {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
  color: white;
  letter-spacing: -0.01em;
}

/* ── Quiz Layout ── */
.quiz-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
@media (min-width: 961px) {
  .quiz-layout { grid-template-columns: 1fr 340px; }
}
.quiz-main { min-width: 0; }
.quiz-sidebar { position: relative; }
@media (min-width: 961px) {
  .quiz-sidebar { position: sticky; top: 22px; align-self: start; }
}

/* ── Sticky Summary ── */
.sticky-summary {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Progress ── */
.progress-shell {
  height: 7px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 10px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .45s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Sections ── */
.section {
  padding: 30px;
  margin-bottom: 22px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Form ── */
.info-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.info-form .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.info-form .field.full { grid-column: 1 / -1; }
.info-form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.info-form input,
.info-form select {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-2);
  color: var(--text);
  transition: var(--transition);
}
.info-form input:focus,
.info-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}
.info-form input.error {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(196, 69, 42, 0.10);
}

/* ── Questions ── */
.question {
  padding: 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 14px;
  background: white;
  transition: var(--transition);
}
.question:hover { border-color: #d8d2c2; }
.question.answered {
  border-color: var(--good-border);
  background: #fbfff5;
}
.question-title {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text2);
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
}
.options-grid {
  display: grid;
  gap: 7px;
}

/* Custom radio options */
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border-light);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  color: var(--text2);
  transition: var(--transition);
  position: relative;
  user-select: none;
}
.option:hover {
  border-color: var(--accent-light);
  background: #fbf6ea;
}
.option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  background: white;
}
.option input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.option input[type="radio"]:checked {
  border-color: var(--accent);
}
.option input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}
.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--text);
  font-weight: 600;
}

/* ── Buttons ── */
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
button {
  border: 0;
  border-radius: var(--radius-xs);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 3px rgba(58, 74, 42, 0.30);
}
.primary:hover {
  background: var(--accent-3);
  box-shadow: 0 6px 16px rgba(58, 74, 42, 0.25);
}
.secondary {
  background: white;
  color: var(--text2);
  border: 1.5px solid var(--border);
}
.secondary:hover { background: var(--bg-2); }

.coral {
  background: var(--coral);
  color: white;
  box-shadow: 0 1px 3px rgba(226, 90, 60, 0.3);
}
.coral:hover {
  background: var(--coral-2);
  box-shadow: 0 6px 16px rgba(226, 90, 60, 0.28);
}

/* ── Section Nav ── */
.section-nav {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Results Report ── */
.results-report {
  max-width: 980px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  overflow: hidden;
}

.report-header {
  background:
    radial-gradient(circle at 85% 15%, hsla(36, 74.07%, 89.41%, 0.2), transparent 55%),
    linear-gradient(140deg, hsl(99.23, 30%, 16%) 0%, hsl(99.23, 24.53%, 22%) 45%, hsl(99.23, 26%, 32%) 100%);
  color: white;
  padding: 38px;
  position: relative;
  overflow: hidden;
}
.report-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/STC_Pattern_transparent.webp");
  background-repeat: repeat;
  background-size: 320px auto;
  opacity: 1;
  pointer-events: none;
}
.report-header > * { position: relative; z-index: 1; }
.report-header h1 { color: white; font-size: 26px; margin-bottom: 4px; }
.report-header .report-subtitle { color: rgba(248, 231, 206, 0.85); font-size: 14px; }
.report-header .report-meta {
  display: flex;
  gap: 32px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.report-header .report-meta-item {
  font-size: 12px;
  color: rgba(248, 231, 206, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.report-header .report-meta-item strong {
  color: white;
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
}

.report-body {
  background: white;
  padding: 34px 38px;
}

/* Score cards */
.score-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.score-card {
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.score-card .sc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.score-card .sc-value {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.score-card .sc-value span { font-size: 16px; font-weight: 600; color: var(--muted2); }
.score-card .sc-bar {
  height: 5px;
  background: var(--border-light);
  border-radius: 999px;
  margin-top: 14px;
  overflow: hidden;
}
.score-card .sc-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-card .sc-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.score-card.highlight {
  background: linear-gradient(135deg, #fbf5e6, #f5ecd6);
  border-color: var(--accent-light);
}
.score-card.highlight .sc-value { color: var(--accent); }
.score-card.highlight .sc-bar-fill { background: var(--accent); }
.score-card .sc-bar-fill { background: var(--accent-2); }

/* Level badge */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin: 18px 0 4px;
  letter-spacing: 0.02em;
}
.level-badge.level-low  { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-border); }
.level-badge.level-mid  { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); }
.level-badge.level-high { background: var(--good-bg); color: var(--good); border: 1px solid var(--good-border); }

.report-divider { height: 1px; background: var(--border); margin: 30px 0; }
.report-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Field breakdown bars */
.field-bars { margin-top: 14px; }
.field-bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 50px 110px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.field-bar-row:last-child { border-bottom: 0; }
.field-bar-label { font-weight: 700; color: var(--text2); }
.field-bar-track {
  height: 8px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}
.field-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.field-bar-fill.strong { background: var(--good); }
.field-bar-fill.developing { background: var(--warn); }
.field-bar-fill.support { background: var(--bad); }
.field-bar-score { text-align: center; font-weight: 700; font-size: 13px; color: var(--text2); }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th, td {
  padding: 13px 16px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}
th {
  background: var(--bg-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgb(252, 242, 224); }

/* Level / status chips — muted, editorial (not loud pills) */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(34, 30, 20, 0.04);
  max-width: 100%;
  text-align: center;
}
.tag-strong {
  background: hsl(96, 22%, 93%);
  color: hsl(99, 28%, 26%);
  border-color: hsl(99, 18%, 80%);
}
.tag-developing {
  background: hsl(34, 28%, 94%);
  color: hsl(25, 42%, 30%);
  border-color: hsl(20, 28%, 82%);
}
.tag-support {
  background: hsl(8, 28%, 96%);
  color: hsl(8, 40%, 34%);
  border-color: hsl(6, 22%, 86%);
}

.level-low  { color: var(--bad); }
.level-mid  { color: var(--warn); }
.level-high { color: var(--good); }

/* ── Footer Note ── */
.footer-note {
  margin-top: 26px;
  padding: 17px 18px;
  border-left: 3px solid var(--coral);
  background: #fbf3ef;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Steps ── */
.steps {
  display: flex;
  margin-bottom: 26px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.step {
  flex: 1;
  text-align: center;
  padding: 14px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  background: white;
  border-right: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}
.step:last-child { border-right: 0; }
.step.active {
  background: var(--accent);
  color: white;
}
.step.done {
  background: var(--good-bg);
  color: var(--good);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  font-size: 11px;
  margin-right: 6px;
  font-weight: 800;
}
.step.active .step-num { background: rgba(248, 231, 206, 0.22); color: white; }
.step.done .step-num { background: rgba(79, 122, 46, 0.16); }

/* ── Visibility ── */
.hidden { display: none !important; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: white;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--good); }
.toast.error   { background: var(--bad); }

/* ── Admin / results dashboard ── */
.page-results .admin-login-card {
  margin-top: 40px;
  margin-bottom: 64px;
  padding-top: 36px;
  padding-bottom: 32px;
}
.admin-login-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  margin: 0 auto 18px;
  object-fit: contain;
}
.admin-hero { margin-bottom: 24px; }
.admin-data-card .admin-data-head {
  align-items: flex-end;
  margin-bottom: 0;
}
.admin-data-card .admin-data-head h2 { margin-bottom: 4px; }
.admin-table-mount { margin-top: 22px; min-height: 48px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.metric:hover {
  border-color: #dcd4c4;
  box-shadow: var(--shadow-sm);
}
.metric .label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.metric .value { font-size: 30px; font-weight: 800; margin-top: 6px; color: var(--text); letter-spacing: -0.02em; }
.metric .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.chart-container {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-xs);
  min-height: 300px;
}
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

/* ── Password gate ── */
.token-gate {
  max-width: 440px;
  margin: 120px auto;
  text-align: center;
}
.token-gate .eyebrow { background: var(--accent-soft); color: var(--accent); }
.token-gate h1 { color: var(--text); }
.token-gate input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-family: inherit;
  margin: 22px 0;
  text-align: center;
  letter-spacing: 0.06em;
  background: var(--bg-2);
}
.token-gate input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}

/* Wide participant table on dashboard */
.admin-data-card .table-wrap {
  border-radius: var(--radius-sm);
}
.admin-data-card table {
  font-size: 12.5px;
}
.admin-data-card th,
.admin-data-card td {
  padding: 10px 12px;
  white-space: nowrap;
}
.admin-data-card th:first-child,
.admin-data-card td:first-child { white-space: normal; }
.admin-data-card td:nth-child(2),
.admin-data-card td:nth-child(3) {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Level: allow badge to wrap; Date: comfortable width */
.admin-data-card td:nth-child(7) {
  white-space: normal;
  min-width: 9.5rem;
  vertical-align: middle;
}
.admin-data-card td:last-child {
  min-width: 7.25rem;
}

/* ── Site footer: EU disclaimer, then STC logo + socials ── */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.connect-link:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent-3);
  box-shadow: var(--shadow-xs);
}
.connect-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.eu-disclaimer {
  padding: 32px 36px 28px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(58, 74, 42, 0.04) 100%);
  border-top: 1px solid var(--border);
}
.eu-disclaimer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 24px 32px;
}

.footer-contact-bar {
  padding: 20px 36px 28px;
  border-top: 1px solid var(--border-light);
}
.footer-contact-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer-stc-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.footer-stc-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.footer-contact-bar .connect-links {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
  justify-content: flex-end;
}
.eu-disclaimer .eu-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  max-width: min(220px, 42vw);
}
.eu-logo-wrap img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
}
.eu-text {
  color: var(--text2);
  max-width: 100%;
}
.eu-disclaimer .eu-text {
  flex: 1 1 280px;
  min-width: 0;
}
.eu-text p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 10px;
}
.eu-text p:first-child { color: var(--text2); }
.eu-text strong { color: var(--text2); font-weight: 700; }
.eu-text .project-id {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  font-family: 'Inter', monospace;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-sidebar { position: static; }
  .hero { padding: 32px 26px; }
  .hero h1 { font-size: 28px; }
  h1 { font-size: 24px; }
  .hero-points { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .score-cards { grid-template-columns: 1fr 1fr; }
  .report-header { padding: 30px; }
  .report-body { padding: 26px; }
  .field-bar-row { grid-template-columns: 130px 1fr 40px 90px; gap: 10px; }
}
@media (max-width: 640px) {
  .container { padding: 14px 14px 30px; }
  .hero { padding: 26px 18px; }
  .hero h1 { font-size: 22px; }
  .section { padding: 22px 18px; }
  .sticky-summary { padding: 18px 16px; }
  .info-form { grid-template-columns: 1fr; }
  .score-cards { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr 1fr; }
  .steps { flex-wrap: wrap; }
  .step {
    flex: 1 1 30%;
    border-bottom: 1px solid var(--border-light);
    font-size: 10px;
    padding: 9px 4px;
  }
  .step-num { width: 16px; height: 16px; font-size: 9px; margin-right: 3px; }
  .report-header { padding: 22px 18px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .report-body { padding: 22px 18px; }
  .report-header h1 { font-size: 20px; }
  .field-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
  }
  .field-bar-row .field-bar-track { display: none; }
  .site-footer { margin-top: 36px; }
  .eu-disclaimer { padding: 28px 18px 24px; }
  .eu-disclaimer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .eu-disclaimer .eu-logo-wrap {
    max-width: 220px;
  }
  .eu-disclaimer .eu-text {
    flex: 1 1 auto;
  }
  .footer-contact-bar { padding: 18px 18px 24px; }
  .footer-contact-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-stc-logo { align-self: center; }
  .footer-contact-bar .connect-links {
    justify-content: center;
    min-width: 0;
  }
  .connect-links { gap: 8px; }
  .connect-link { padding: 8px 12px; font-size: 11px; }
  .brand-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand-logo { height: 40px; max-width: min(200px, 70vw); }
  .brand-link-logo { height: 18px; max-width: 88px; }
  .admin-data-card .admin-data-head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .admin-data-card .admin-data-head .primary { width: 100%; justify-content: center; }
  body::before {
    background-size: auto min(72vh, 420px);
  }
}

/* ── Print / PDF ── */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: white !important; font-size: 11px; }
  body::before { display: none !important; }
  .container { padding: 0; max-width: 100%; }
  .steps, .actions, .sticky-summary, .quiz-sidebar, .quiz-layout, .toast, #step-info, .brand-bar, .site-footer { display: none !important; }

  #step-results { display: block !important; }
  .results-report { max-width: 100%; box-shadow: none !important; border-radius: 0; }

  .report-header {
    background: linear-gradient(140deg, #2b3a1d, #4a5e34) !important;
    color: white !important;
    padding: 28px 32px;
    border-radius: 0;
    page-break-inside: avoid;
  }
  .report-header h1 { color: white !important; font-size: 20px; }
  .report-header .report-subtitle { color: rgba(248,231,206,0.85) !important; }
  .report-header .report-meta-item { color: rgba(248,231,206,0.7) !important; }
  .report-header .report-meta-item strong { color: white !important; }
  .report-header .eyebrow { background: rgba(255,255,255,0.15) !important; color: white !important; }

  .report-body { border: 1px solid #ddd; border-top: 0; padding: 24px 32px; border-radius: 0; }

  .score-card { border: 1px solid #ddd; page-break-inside: avoid; background: #fafaf6 !important; }
  .score-card.highlight { background: #fbf5e6 !important; border-color: #e8d9b8 !important; }
  .sc-bar { display: block !important; }

  .level-badge { page-break-inside: avoid; }
  .level-badge.level-high { background: #e8f1d9 !important; color: #4f7a2e !important; border-color: #cfe0b3 !important; }
  .level-badge.level-mid  { background: #fbf0d6 !important; color: #b67724 !important; border-color: #f1dca0 !important; }
  .level-badge.level-low  { background: #fbe5dd !important; color: #c4452a !important; border-color: #f5c8b8 !important; }

  .field-bar-row { page-break-inside: avoid; }
  .field-bar-track { display: block !important; }
  .field-bar-fill.strong { background: #4f7a2e !important; }
  .field-bar-fill.developing { background: #b67724 !important; }
  .field-bar-fill.support { background: #c4452a !important; }

  .table-wrap { border: 1px solid #ddd; border-radius: 0; page-break-inside: avoid; }
  th { background: #f3eee0 !important; color: #6f6f63 !important; }
  th, td { padding: 8px 12px; }

  .tag { border: 1px solid transparent !important; box-shadow: none !important; }
  .tag-strong     { background: hsl(96, 22%, 93%) !important; color: hsl(99, 28%, 26%) !important; border-color: hsl(99, 18%, 80%) !important; }
  .tag-developing { background: hsl(34, 28%, 94%) !important; color: hsl(25, 42%, 30%) !important; border-color: hsl(20, 28%, 82%) !important; }
  .tag-support    { background: hsl(8, 28%, 96%) !important; color: hsl(8, 40%, 34%) !important; border-color: hsl(6, 22%, 86%) !important; }

  .footer-note {
    border-left: 3px solid #e25a3c !important;
    background: #fbf3ef !important;
    page-break-inside: avoid;
  }
  .report-divider { background: #ddd !important; }

  .print-footer {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
    font-size: 9px;
    color: #94a3b8;
    text-align: center;
    display: block !important;
  }
}
.print-footer { display: none; }
