/* =========================================================================
   EAU — Thang đo đánh giá trách nhiệm sử dụng AI
   Giao diện lấy cảm hứng từ TopCV (trắc nghiệm MBTI): tông xanh lá thương
   hiệu, thẻ bo tròn, panel tiến trình bên phải khi làm bài trắc nghiệm.
   ========================================================================= */

:root {
  --green-950: #06301c;
  --green-900: #0a3f26;
  --green-800: #0d5230;
  --green-700: #0d6b3c;
  --green-600: #0c8a49;
  --green: #00b14f;
  --green-500: #17b768;
  --green-400: #3fca82;
  --green-100: #d9f5e4;
  --green-50: #eefaf3;
  --gold: #ffb800;
  --ink: #14251d;
  --ink-soft: #37473f;
  --muted: #647268;
  --muted-2: #8b978f;
  --line: #e3ebe6;
  --bg: #f5f8f6;
  --white: #ffffff;
  --danger: #e05353;
  --warning: #f0a93a;
  --info: #2f9e6e;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 40, 25, 0.06), 0 1px 1px rgba(10, 40, 25, 0.04);
  --shadow: 0 8px 24px rgba(10, 40, 25, 0.08);
  --shadow-lg: 0 20px 50px rgba(8, 35, 22, 0.18);
  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40; flex: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, var(--green-500), var(--green-800));
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .3px;
}
.brand-mark.small { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; margin-bottom: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; color: var(--green-800); letter-spacing: .2px; }
.brand-text small { font-size: 11px; color: var(--muted); }
.main-nav { display: flex; gap: 26px; margin-left: 8px; flex: 1; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--green-700); }
.header-actions { display: flex; gap: 10px; }

/* ----------------------------------------------------------------- btns */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1.5px solid transparent;
  padding: 11px 22px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  color: #fff; box-shadow: 0 10px 20px rgba(13, 107, 60, .25);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 12px 26px rgba(13, 107, 60, .35); }
.btn-outline {
  background: #fff; color: var(--green-700); border-color: var(--green-500);
}
.btn-outline:hover { background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-50); border-color: var(--green-400); color: var(--green-800); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn-icon { padding: 10px; border-radius: 50%; }

/* -------------------------------------------------------------- sections */
#app { flex: 1 1 auto; display: flex; flex-direction: column; }
#app > * { flex: 1 1 auto; }
.section { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===================================================================== */
/*  LANDING                                                               */
/* ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 480px at 15% -10%, #12703f 0%, transparent 60%), linear-gradient(160deg, var(--green-900), var(--green-950) 70%);
  padding: 72px 20px 130px;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.35) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 18%, transparent 40%);
  mask-image: linear-gradient(135deg, #000 0%, #000 18%, transparent 40%);
  opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--green-100); margin-bottom: 22px; letter-spacing: .2px;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.18;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--gold); }
.hero .hero-sub {
  margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.82); line-height: 1.7;
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.hero-cta { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: 13.5px; }
.hero-meta b { color: #fff; font-size: 15px; display: block; }

.tier-preview {
  position: relative; margin-top: -78px; margin-bottom: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tier-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px 20px; text-align: left;
  border: 1px solid var(--line); border-top: 4px solid var(--tier-color, var(--green));
}
.tier-card .tier-icon {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tier-color, var(--green)) 14%, white); color: var(--tier-color, var(--green));
  margin-bottom: 14px;
}
.tier-card .tier-icon svg { width: 22px; height: 22px; }
.tier-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tier-card p { font-size: 13.2px; color: var(--muted); line-height: 1.55; }
.tier-card .tier-range { font-size: 12px; font-weight: 700; color: var(--tier-color, var(--green)); margin-bottom: 8px; display: block; }

.info-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin: 10px 0 60px;
}
.info-strip .g-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.info-strip .g-card .g-icon {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px;
  background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center;
}
.info-strip .g-card .g-icon svg { width: 24px; height: 24px; }
.info-strip .g-card h4 { font-size: 13.5px; font-weight: 700; }

.about-block { padding: 10px 0 70px; }
.about-block h2 { font-size: 24px; margin-bottom: 14px; color: var(--green-900); }
.about-block .lead { font-size: 15.5px; color: var(--ink-soft); line-height: 1.8; max-width: 820px; }
.method-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method-grid .m-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.method-grid .m-card .num { font-size: 26px; font-weight: 800; color: var(--green-500); margin-bottom: 8px; }
.method-grid .m-card h4 { font-size: 15px; margin-bottom: 6px; }
.method-grid .m-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ===================================================================== */
/*  INFO FORM (thay cho đăng nhập)                                       */
/* ===================================================================== */
.form-screen {
  min-height: calc(100vh - 130px);
  background: linear-gradient(180deg, var(--green-900), var(--green-950));
  display: flex; align-items: center; justify-content: center; padding: 60px 20px;
}
.form-card {
  background: #fff; width: 100%; max-width: 460px; border-radius: var(--radius-lg);
  padding: 38px 34px; box-shadow: var(--shadow-lg); text-align: center;
}
.form-card .form-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px;
  background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center;
}
.form-card .form-icon svg { width: 30px; height: 30px; }
.form-card h2 { font-size: 21px; margin-bottom: 8px; }
.form-card .form-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; line-height: 1.6; }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fbfdfc;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); background: #fff;
}
.field .err { display: none; color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form-note { margin-top: 18px; font-size: 12.3px; color: var(--muted-2); line-height: 1.6; }

/* ===================================================================== */
/*  QUIZ SCREEN                                                           */
/* ===================================================================== */
.quiz-screen { background: linear-gradient(180deg, var(--green-900) 0%, var(--green-950) 340px, var(--bg) 340px); min-height: calc(100vh - 130px); }
.quiz-topbar { max-width: 1180px; margin: 0 auto; padding: 22px 20px 0; color: #fff; }
.quiz-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.quiz-progress-count {
  font-weight: 700; font-size: 15px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.quiz-progress-count:hover { background: rgba(255,255,255,.2); }
.quiz-timer {
  font-weight: 700; font-size: 15px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.quiz-timer.danger { background: rgba(224,83,83,.28); border-color: rgba(224,83,83,.7); color: #ffe3e3; }
.quiz-progress-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.quiz-progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--green-400)); transition: width .35s ease; }
.quiz-groupname { margin-top: 12px; font-size: 13px; color: var(--green-100); display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.quiz-groupname svg { width: 16px; height: 16px; }

.quiz-body {
  max-width: 1180px; margin: 0 auto; padding: 26px 20px 80px;
  display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start;
}
.quiz-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 34px 36px; min-height: 380px; display: flex; flex-direction: column;
}
.quiz-card .q-index { font-size: 13px; font-weight: 700; color: var(--green-600); letter-spacing: .4px; margin-bottom: 10px; }
.quiz-card .q-text { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--ink); margin-bottom: 26px; }
.options-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.option-btn {
  display: flex; align-items: flex-start; gap: 14px; text-align: left; width: 100%;
  padding: 15px 18px; border-radius: 14px; border: 1.6px solid var(--line); background: #fbfdfc;
  cursor: pointer; font-size: 14.8px; line-height: 1.55; color: var(--ink-soft);
  transition: all .14s ease;
}
.option-btn:hover { border-color: var(--green-400); background: var(--green-50); }
.option-btn .opt-letter {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.6px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--muted);
  background: #fff; transition: all .14s ease;
}
.option-btn.selected {
  border-color: var(--green-600); background: var(--green-50);
  box-shadow: 0 0 0 3px var(--green-100);
}
.option-btn.selected .opt-letter { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.option-btn.selected { color: var(--green-900); font-weight: 600; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.quiz-nav .spacer { flex: 1; }

.quiz-sidebar {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 22px; position: sticky; top: 88px;
}
.quiz-sidebar h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.quiz-sidebar .side-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--ink-soft); }
.filter-row input { accent-color: var(--green-600); width: 16px; height: 16px; }
.qnum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.qnum-btn {
  border: 1.5px solid var(--line); background: #fbfdfc; border-radius: 10px;
  padding: 9px 4px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: all .12s ease;
}
.qnum-btn:hover { border-color: var(--green-400); }
.qnum-btn.answered { background: var(--green-50); border-color: var(--green-500); color: var(--green-800); }
.qnum-btn.current { outline: 2px solid var(--green-600); outline-offset: 1px; }
.qnum-btn .dot-check { width: 16px; height: 16px; border-radius: 50%; background: var(--green-600); color: #fff; display: none; align-items: center; justify-content: center; }
.qnum-btn .dot-check svg { width: 10px; height: 10px; }
.qnum-btn.answered .dot-check { display: flex; }
.qnum-btn.answered .dot-empty { display: none; }
.qnum-btn .dot-empty { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); }

.quiz-submit-bar { margin-top: 20px; }
.quiz-submit-bar .hint { font-size: 12px; color: var(--muted-2); text-align: center; margin-top: 8px; }

@media (max-width: 980px) {
  .quiz-body { grid-template-columns: 1fr; }
  .quiz-sidebar { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 60; top: 0; height: 100vh; border-radius: 0; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .quiz-sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(6,20,12,.5); z-index: 55; display: none; }
  .sidebar-backdrop.open { display: block; }
  .sidebar-close { display: inline-flex !important; }
}
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; }
.sidebar-close { display: none; border: none; background: var(--bg); width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); flex: none; }
.sidebar-close svg { width: 15px; height: 15px; }

/* ===================================================================== */
/*  RESULT MODAL (congrats)                                              */
/* ===================================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6, 20, 12, .55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 640px; width: 100%;
  padding: 40px; box-shadow: var(--shadow-lg); position: relative; text-align: left;
  max-height: 92vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--bg); color: var(--muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.modal-close svg { width: 16px; height: 16px; }
.modal .modal-kicker { color: var(--green-600); font-weight: 800; font-size: 18px; margin-bottom: 22px; }
.modal-body { display: flex; gap: 26px; align-items: center; }
.modal-tier-badge {
  flex: none; width: 120px; height: 120px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tier-color, var(--green)) 14%, white);
  color: var(--tier-color, var(--green));
}
.modal-tier-badge svg { width: 60px; height: 60px; }
.modal-tier-title small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.modal-tier-title h3 { font-size: 23px; font-weight: 800; color: var(--tier-color, var(--green)); margin-bottom: 10px; }
.modal-tier-title p { font-size: 14.3px; color: var(--ink-soft); line-height: 1.65; }
.modal-score-line { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.modal-score-line b { font-size: 26px; color: var(--ink); }
.modal-score-line span { color: var(--muted); font-size: 13px; }
.modal-actions { margin-top: 26px; display: flex; gap: 12px; }
.modal-hr { height: 1px; background: var(--line); margin: 26px 0 18px; }
.share-row { display: flex; align-items: center; gap: 10px; }
.share-row span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-soft);
}
.share-btn:hover { border-color: var(--green-500); color: var(--green-700); }
.share-btn svg { width: 16px; height: 16px; }

/* ===================================================================== */
/*  RESULT DETAIL PAGE                                                   */
/* ===================================================================== */
.result-hero {
  background: linear-gradient(160deg, var(--green-900), var(--green-950));
  color: #fff; padding: 46px 20px 90px; text-align: center;
}
.result-hero .who { font-size: 14px; color: var(--green-100); margin-bottom: 10px; }
.result-hero h1 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; }
.result-hero .tier-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.result-hero .tier-pill .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--tier-color, var(--gold)); }

.result-wrap { max-width: 1100px; margin: -56px auto 60px; padding: 0 20px; display: flex; flex-direction: column; gap: 22px; }
.result-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.panel {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 28px;
}
.panel h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.panel h2 svg { width: 20px; height: 20px; color: var(--green-600); }
.panel .panel-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.score-donut-wrap { display: flex; align-items: center; gap: 22px; }
.score-num { text-align: center; }
.score-num b { font-size: 40px; color: var(--ink); }
.score-num span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.score-bars { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.score-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.8px; }
.score-bar-row .lbl { width: 96px; flex: none; color: var(--ink-soft); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.score-bar-row .lbl svg { width: 15px; height: 15px; color: var(--green-600); flex: none; }
.score-bar-track { flex: 1; height: 9px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-400), var(--green-700)); }
.score-bar-row .val { width: 40px; flex: none; text-align: right; font-weight: 700; color: var(--ink); }

.radar-wrap { display: flex; justify-content: center; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 8px; }
.radar-legend .item { font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.radar-legend .sw { width: 9px; height: 9px; border-radius: 2px; background: var(--green-600); }

.strength-weak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sw-card { border-radius: var(--radius); padding: 20px; border: 1.5px solid var(--line); }
.sw-card.strength { background: var(--green-50); border-color: var(--green-100); }
.sw-card.weak { background: #fdf3ea; border-color: #f7e0c6; }
.sw-card h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sw-card.strength h3 { color: var(--green-800); }
.sw-card.weak h3 { color: #a65c14; }
.sw-item { margin-bottom: 14px; }
.sw-item:last-child { margin-bottom: 0; }
.sw-item .gname { font-weight: 700; font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.sw-item .gname svg { width: 16px; height: 16px; color: inherit; }
.sw-item .gscore { font-size: 12px; color: var(--muted); font-weight: 600; }
.empty-note { font-size: 13px; color: var(--muted); font-style: italic; }

.group-detail-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.group-detail-card:last-child { margin-bottom: 0; }
.gd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.gd-head .gd-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; }
.gd-head .gd-title .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; }
.gd-head .gd-title .ic svg { width: 18px; height: 18px; }
.gd-score-pill { font-weight: 800; font-size: 13px; padding: 5px 14px; border-radius: 999px; }
.gd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gd-cols h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.gd-cols ul { display: flex; flex-direction: column; gap: 8px; }
.gd-cols li { font-size: 13.3px; line-height: 1.6; color: var(--ink-soft); padding-left: 16px; position: relative; }
.gd-cols li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.gd-cols.solutions li::before { background: var(--gold); }

.qa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qa-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.qa-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.qa-table tr:last-child td { border-bottom: none; }
.qa-table .qnum { font-weight: 700; color: var(--ink); white-space: nowrap; }
.qa-table .pts { font-weight: 800; white-space: nowrap; }
.pts.p5 { color: var(--green-700); }
.pts.p35 { color: var(--info); }
.pts.p15 { color: var(--warning); }
.pts.p0 { color: var(--danger); }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

@media (max-width: 860px) {
  .result-grid { grid-template-columns: 1fr; }
  .strength-weak-grid { grid-template-columns: 1fr; }
  .gd-cols { grid-template-columns: 1fr; }
  .score-donut-wrap { flex-direction: column; }
  .tier-preview { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .quiz-card { padding: 24px 20px; }
  .quiz-card .q-text { font-size: 17.5px; }
  .modal { padding: 26px 20px; }
  .modal-body { flex-direction: column; text-align: center; }
  .main-nav { display: none; }
}

/* ------------------------------------------------------------- footer */
.site-footer { flex: none; background: var(--green-950); color: rgba(255,255,255,.72); padding: 40px 20px 26px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-inner p { font-size: 13px; line-height: 1.7; max-width: 480px; }
.footer-note { font-size: 12px; opacity: .7; max-width: 340px; }

/* --------------------------------------------------------------- misc */
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .result-actions, .quiz-sidebar, .modal-overlay { display: none !important; }
  body { background: #fff; }
  .print-only { display: block; }
}
