/* Softer typography and mobile-first polish */
body { font-weight: 400; }
.brand-mark { display: none !important; }
.brand { gap: 0 !important; }
.brand { font-weight: 650; }
.btn { font-weight: 600; }
.status-chip, .eyebrow-chip { font-weight: 600; }
.side-label, .stat-label, .field label, .question-tag, .candidate-kicker { font-weight: 650; }
.side-nav a, .filter-btn { font-weight: 550; }
.stat-value { font-weight: 700; }
.score-pill, .action-link { font-weight: 650; }
.candidate-cell, td:first-child { font-weight: 500; }
.candidate-cell small { font-weight: 400; }
.question-card h2, .candidate-intro h1, .page-heading h1 { font-weight: 650; }
.test-header h1, .card-head h2, .candidate-card h2, .login-card h1, .result-card h1 { font-weight: 650; }
.option { font-weight: 400; }
.option-letter, .flow-number { font-weight: 650; }
.timer { font-weight: 650; }
.result-score { font-weight: 750; }
.score-mini strong { font-weight: 650; }

.qr-overlay { position: fixed; inset: 0; z-index: 100; background: #f7fbff; display: grid; place-items: center; padding: 24px; }
.qr-overlay-close { position: fixed; top: 20px; right: 22px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; min-height: 42px; padding: 0 16px; font-weight: 550; box-shadow: 0 8px 20px rgba(20,40,65,.08); }
.qr-overlay-content { text-align: center; display: grid; justify-items: center; gap: 12px; }
.qr-only { width: min(82vw, 620px); height: min(82vw, 620px); object-fit: contain; background: #fff; padding: 18px; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(20,40,65,.12); }
.qr-landing { min-height: 100vh; background: #f7fbff; display: flex; flex-direction: column; }
.qr-landing-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; }
.qr-landing-brand { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.admin-login-link { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; padding: 8px 4px; }
.admin-login-link:hover { color: var(--blue); }
.qr-landing-main { flex: 1; display: grid; place-items: center; align-content: center; gap: 16px; padding: 22px; }
.qr-landing-image { width: min(70vw, 520px); height: min(70vw, 520px); object-fit: contain; background: #fff; padding: 18px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px rgba(20,40,65,.12); }
.qr-landing-caption { color: var(--muted); font-size: 14px; }
.admin-modal-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(13,27,42,.42); }
.admin-modal { width: min(360px,100%); position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 26px 70px rgba(0,0,0,.18); }
.admin-modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: #f1f4f8; color: var(--muted); width: 32px; height: 32px; border-radius: 9px; font-size: 20px; line-height: 1; }
.admin-modal-brand { color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 24px; }
.admin-modal h2 { margin: 0 0 7px; font-weight: 650; letter-spacing: -.03em; }
.admin-modal p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.qr-overlay-kicker { color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.qr-overlay-content h1 { margin: 0; font-weight: 650; letter-spacing: -.04em; }
.qr-overlay-content p { margin: 0; color: var(--muted); }
.qr-overlay-content img { width: min(68vw, 440px); height: min(68vw, 440px); object-fit: contain; background: #fff; padding: 16px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(20,40,65,.12); }
.qr-overlay-content span { color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .topbar { height: 64px; }
  .topbar .btn { min-height: 38px; padding: 0 11px; font-size: 13px; }
  .main { padding: 24px 14px 40px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading br { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .hero-actions a { width: 100%; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 108px; }
  .stat-label { line-height: 1.25; }
  .stat-value { font-size: 25px; }
  .card-head { padding-top: 18px; }
  .qr-panel { gap: 18px; }
  .qr-meta { width: 100%; }
  .search-field { min-width: 100%; }
  .filter-group { width: 100%; }
  .filter-btn { flex: 1; min-width: 0; }
  .candidate-top { gap: 12px; align-items: flex-start; }
  .candidate-top .brand { min-width: 0; }
  .candidate-top .brand > div:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .candidate-top .btn { flex: 0 0 auto; }
  .candidate-intro h1 { font-size: 36px; }
  .candidate-intro p { font-size: 15px; }
  .question-actions { align-items: stretch; flex-direction: column; }
  .question-actions .btn { width: 100%; }
  .question-actions .muted { order: 2; }
  .result-card { padding: 30px 18px; }
  .result-score { font-size: 48px; }
  .score-grid { gap: 6px; }
  .score-mini { padding: 11px 5px; }
  .score-mini span { font-size: 9px; }
}

@media (max-width: 420px) {
  .topbar .brand small { display: none; }
  .hero-actions { grid-template-columns: 1fr; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-value { font-size: 22px; }
  .candidate-wrap { padding: 17px 12px 36px; }
  .candidate-intro h1 { font-size: 31px; }
  .candidate-card { padding: 17px; }
  .test-header { align-items: flex-start; }
  .test-header .status-chip { display: none; }
  .question-card { padding: 17px; }
  .detail-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 17px; }
  .qr-landing-header { padding: 18px 16px; }
  .qr-landing-image { width: min(86vw, 420px); height: min(86vw, 420px); padding: 12px; }
}
