/* ============================================================
   NHT Training Practice Hub €” Trainee Experience
   Clean blue-and-white corporate learning dashboard
   ============================================================ */

:root{
  --blue-900:#0a1628;
  --blue-800:#0b1b3a;
  --blue-700:#0b3d91;
  --blue-600:#1453c4;
  --blue-500:#2967e0;
  --blue-400:#5b8af0;
  --blue-300:#9bb8f9;
  --blue-200:#c5d7fb;
  --blue-100:#e6effd;
  --blue-50:#f3f8ff;
  --bg:#eef4fb;
  --card:#fff;
  --ink:#13243f;
  --muted:#6b7a93;
  --line:#dbe4f2;
  --gold:#f4b400;
  --gold-dark:#c49000;
  --good:#1f9d55;
  --bad:#d9453c;
  --warn:#e08a00;
  --shadow-sm:0 2px 8px rgba(11,27,58,.06);
  --shadow:0 4px 16px rgba(11,27,58,.08);
  --shadow-lg:0 8px 30px rgba(11,27,58,.12);
  --radius:16px;
  --radius-sm:10px;
  --radius-xs:6px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Segoe UI,Roboto,system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--ink);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

/* ===== TOP NAVIGATION ===== */
.banner{
  background:linear-gradient(135deg,var(--blue-800),var(--blue-700));
  color:#fff;
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 24px;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 2px 12px rgba(11,27,58,.25);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  font-weight:800;
  font-size:16px;
  letter-spacing:.2px;
  text-decoration:none;
  color:#fff;
}
.brand:hover{text-decoration:none}
.brand-mark{
  width:34px;
  height:34px;
  background:var(--gold);
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:900;
  color:var(--blue-800);
  flex-shrink:0;
}
.brand-name{font-size:15px}
.nav{display:flex;gap:4px;margin-left:8px}
.nav a{
  color:rgba(255,255,255,.82);
  text-decoration:none;
  padding:9px 15px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:all .15s;
}
.nav a:hover{background:rgba(255,255,255,.14);color:#fff}
.nav a.active{
  background:#fff;
  color:var(--blue-800);
  font-weight:700;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.who{
  margin-left:auto;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-weight:600;
  padding:7px 14px;
  border-radius:999px;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
}
.who-btn{
  background:rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  border-radius:999px;
  padding:4px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:all .15s;
}
.who-btn:hover{background:rgba(255,255,255,.3)}

/* ===== MAIN LAYOUT ===== */
main{
  padding:28px 24px 40px;
  max-width:1120px;
  margin:0 auto;
  min-height:calc(100vh - 80px);
}

/* ===== HERO SECTION ===== */
.hero{
  background:linear-gradient(135deg,var(--blue-800) 0%,var(--blue-700) 50%,var(--blue-600) 100%);
  color:#fff;
  border-radius:20px;
  padding:30px 34px;
  box-shadow:var(--shadow-lg);
  display:flex;
  gap:28px;
  flex-wrap:wrap;
  margin-bottom:22px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  top:-40%;
  right:-10%;
  width:400px;
  height:400px;
  background:radial-gradient(circle,rgba(255,255,255,.06) 0%,transparent 70%);
  border-radius:50%;
  pointer-events:none;
}
.hero-l{flex:1;min-width:280px;position:relative;z-index:1}
.hero h1{
  font-size:30px;
  font-weight:800;
  margin:0 0 4px;
  letter-spacing:-.3px;
  line-height:1.2;
}
.hero .sub{font-size:16px;color:rgba(255,255,255,.85);font-weight:500;margin:2px 0}
.hero .welcome{
  font-size:14px;
  color:rgba(255,255,255,.72);
  margin-top:10px;
  max-width:520px;
  line-height:1.55;
}
.hero .meta-line{
  font-size:13px;
  color:rgba(255,255,255,.68);
  margin-top:4px;
}
.hero .meta-line strong{color:rgba(255,255,255,.92);font-weight:600}
.hero-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.hero-tag{
  display:inline-block;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:5px 12px;
  font-size:12px;
  font-weight:600;
  color:rgba(255,255,255,.88);
}
.hero-r{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap;position:relative;z-index:1}
.kpi-card{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  padding:16px 20px;
  text-align:center;
  min-width:110px;
  backdrop-filter:blur(4px);
}
.kpi-card .kpi-label{
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.7px;
  opacity:.72;
  margin-bottom:3px;
}
.kpi-card .kpi-value{
  font-size:26px;
  font-weight:800;
  line-height:1.1;
}
.kpi-card .kpi-sub{
  font-size:11.5px;
  opacity:.68;
  margin-top:3px;
}
.kpi-card.empty .kpi-value{font-size:14px;font-weight:500;opacity:.55}

/* ===== CARDS ===== */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px 22px;
  box-shadow:var(--shadow-sm);
  margin-bottom:16px;
}
.card-no-margin{margin-bottom:0}
.card-sm{padding:14px 16px}

/* ===== SECTION HEADERS ===== */
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:4px;
}
.section-head h2{
  font-size:19px;
  font-weight:700;
  color:var(--blue-800);
  margin:0;
}
.section-head .section-count{
  font-size:12.5px;
  color:var(--muted);
  font-weight:500;
}
.card-sub{
  font-size:13px;
  color:var(--muted);
  margin:0 0 14px;
}

/* ===== PRODUCT SELECTOR ===== */
.product-selector{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px 24px;
  box-shadow:var(--shadow-sm);
  margin-bottom:16px;
}
.product-selector-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.product-selector-head h3{
  font-size:16px;
  font-weight:700;
  color:var(--blue-800);
  margin:0;
}
.product-selector-head .ps-hint-text{
  font-size:12.5px;
  color:var(--muted);
}
.product-dropdown-wrap{margin-top:14px}
.product-dropdown-wrap label{
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:var(--blue-700);
  margin-bottom:5px;
}
.product-select-field{position:relative}
.product-select-field select{
  width:100%;
  max-width:480px;
  padding:11px 14px;
  border:1.5px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--card);
  font-size:14px;
  color:var(--ink);
  cursor:pointer;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230b3d91' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:32px;
  transition:border-color .15s,box-shadow .15s;
}
.product-select-field select:focus{
  outline:none;
  border-color:var(--blue-400);
  box-shadow:0 0 0 3px var(--blue-100);
}

/* ===== SELECTED PRODUCT DETAILS ===== */
.product-details{margin-top:14px;display:none}
.product-details.visible{display:block}
.product-details-inner{
  background:linear-gradient(135deg,var(--blue-50),#fff);
  border:1px solid var(--blue-200);
  border-radius:var(--radius);
  padding:16px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}
.product-details-name{
  font-size:18px;
  font-weight:700;
  color:var(--blue-800);
}
.product-details-version{
  font-size:12.5px;
  color:var(--muted);
  font-weight:500;
  margin-bottom:4px;
}
.product-details-stats{
  display:flex;
  gap:22px;
  text-align:right;
}
.pd-stat .pd-stat-label{
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--muted);
  font-weight:600;
}
.pd-stat .pd-stat-value{
  font-size:20px;
  font-weight:800;
  color:var(--blue-700);
  line-height:1.15;
}
.pd-stat .pd-stat-unit{
  font-size:12px;
  color:var(--muted);
  font-weight:500;
}

/* ===== START PRACTICING BUTTON ===== */
.start-practice-wrap{margin-top:16px}
.start-practice-btn{
  background:var(--gold);
  color:var(--blue-800);
  border:none;
  border-radius:11px;
  padding:13px 32px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:all .15s;
  box-shadow:0 4px 12px rgba(244,180,0,.3);
  letter-spacing:.2px;
  min-width:180px;
}
.start-practice-btn:hover{
  background:#ffd633;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(244,180,0,.35);
  filter:brightness(1.04);
}
.start-practice-btn:active{transform:translateY(0)}
.start-practice-btn:disabled{
  background:#dbe4f2;
  color:var(--muted);
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
  font-weight:600;
}
.start-practice-hint{
  font-size:12.5px;
  color:var(--muted);
  margin-top:7px;
  min-height:16px;
}

/* ===== BADGES ===== */
.badge-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:12px;
}
.badge-card{
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:var(--radius-sm);
  padding:14px 8px 12px;
  text-align:center;
  box-shadow:var(--shadow-sm);
  transition:all .2s;
  position:relative;
  overflow:hidden;
}
.badge-card.unlocked{
  border-color:var(--gold);
  background:linear-gradient(135deg,#fffafa,#fff8e6);
  box-shadow:0 0 0 2px rgba(244,180,0,.12),var(--shadow-sm);
}
.badge-card.locked{
  opacity:.45;
  filter:grayscale(.5);
  background:var(--card);
}
.badge-card .badge-icon{
  font-size:30px;
  line-height:1;
  margin-bottom:5px;
  display:block;
}
.badge-card.locked .badge-icon{
  filter:grayscale(1);
  opacity:.55;
}
.badge-card .badge-name{
  font-size:12.5px;
  font-weight:700;
  color:var(--blue-800);
  margin-bottom:1px;
}
.badge-card.locked .badge-name{color:var(--muted)}
.badge-card .badge-rule{
  font-size:10.5px;
  color:var(--muted);
  line-height:1.35;
}
.badge-card.locked .badge-rule{color:#aaa;font-style:italic}
.badge-card .badge-check{
  position:absolute;
  top:6px;
  right:8px;
  font-size:12px;
  color:var(--gold-dark);
  font-weight:800;
}

/* ===== PRACTICE CARDS ===== */
.two-card-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:12px;
}
.practice-card{
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:20px 18px 18px;
  box-shadow:var(--shadow-sm);
  transition:all .2s;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
  color:var(--ink);
}
.practice-card:hover:not(.locked){
  transform:translateY(-2px);
  border-color:var(--blue-400);
  box-shadow:var(--shadow);
}
.practice-card.locked{
  opacity:.55;
  cursor:not-allowed;
  background:#f7f9fd;
}
.practice-card .pc-icon{
  font-size:32px;
  margin-bottom:6px;
  display:block;
}
.practice-card .pc-title{
  font-size:19px;
  font-weight:800;
  color:var(--blue-800);
  margin-bottom:2px;
}
.practice-card .pc-subtitle{
  font-size:11.5px;
  color:var(--muted);
  font-weight:500;
  margin-bottom:8px;
}
.practice-card .pc-stats{
  display:flex;
  gap:14px;
  margin-bottom:8px;
  font-size:12.5px;
  color:var(--muted);
}
.practice-card .pc-stat strong{color:var(--blue-700);font-weight:700}
.practice-card .pc-tags{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  margin-top:6px;
}
.practice-card .pc-tag{
  background:var(--blue-100);
  color:var(--blue-700);
  font-size:11px;
  font-weight:600;
  padding:3px 9px;
  border-radius:999px;
}
.practice-card .pc-cta{
  margin-top:12px;
  font-size:13px;
  font-weight:700;
  color:var(--blue-600);
  display:block;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.practice-card:hover:not(.locked) .pc-cta{color:var(--blue-700)}
.practice-card.locked .pc-cta{color:var(--muted)}

/* ===== HOW IT WORKS ===== */
.results-preview{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.result-preview-item{
  background:var(--blue-50);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:9px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.result-preview-item .rp-left{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.result-preview-item .rp-product{
  font-weight:600;
  font-size:13.5px;
  color:var(--ink);
}
.result-preview-item .rp-type{
  font-size:11px;
  color:var(--muted);
  font-weight:500;
}
.result-preview-item .rp-score{
  font-size:17px;
  font-weight:800;
  color:var(--blue-700);
}
.result-preview-item .rp-score.good{color:var(--good)}
.result-preview-item .rp-score.mid{color:var(--warn)}
.result-preview-item .rp-score.low{color:var(--bad)}
.result-preview-item .rp-meta{
  font-size:11px;
  color:var(--muted);
}
.results-empty{
  background:var(--blue-50);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:16px;
  text-align:center;
}
.results-empty p{margin:0 0 2px;font-weight:600;color:var(--ink);font-size:14px}
.results-empty .hint{margin:0;color:var(--muted);font-size:12.5px}

/* ===== HOW IT WORKS ===== */
.steps-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.step-chip{
  flex:0 0 auto;
  background:var(--blue-50);
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 14px;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:13px;
  color:var(--ink);
}
.step-chip .step-num{
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--blue-700);
  color:#fff;
  font-size:11px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.step-chip .step-text{font-weight:600}

/* ===== VIEW ALL LINK ===== */
.view-all-link{
  font-size:13px;
  font-weight:600;
  color:var(--blue-600);
  cursor:pointer;
  padding:2px 0;
  transition:color .15s;
  background:none;border:none;font-family:inherit;
}
.view-all-link:hover{color:var(--blue-700);text-decoration:underline}

/* ===== SCORES PAGE ===== */
.scores-hero{
  background:linear-gradient(135deg,var(--blue-800) 0%,var(--blue-700) 50%,var(--blue-600) 100%);
  color:#fff;
  border-radius:20px;
  padding:28px 32px;
  box-shadow:var(--shadow-lg);
  display:flex;
  gap:26px;
  flex-wrap:wrap;
  margin-bottom:20px;
  position:relative;
  overflow:hidden;
}
.scores-hero::before{
  content:"";
  position:absolute;
  top:-30%;
  right:-5%;
  width:350px;
  height:350px;
  background:radial-gradient(circle,rgba(255,255,255,.05) 0%,transparent 70%);
  border-radius:50%;
  pointer-events:none;
}
.scores-hero h1{
  font-size:28px;
  font-weight:800;
  margin:0 0 4px;
  letter-spacing:-.3px;
}
.scores-hero .hero-sub{font-size:14.5px;color:rgba(255,255,255,.75);margin:2px 0}
.scores-hero .hero-meta{font-size:12.5px;color:rgba(255,255,255,.62);margin-top:3px}
.scores-hero .hero-meta strong{color:rgba(255,255,255,.88);font-weight:600}
.scores-hero .hero-r{position:relative;z-index:1}

.summary-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:16px;
}
.summary-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px 14px;
  text-align:center;
  box-shadow:var(--shadow-sm);
}
.summary-card .sc-label{
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--muted);
  font-weight:600;
  margin-bottom:5px;
}
.summary-card .sc-value{
  font-size:28px;
  font-weight:800;
  color:var(--blue-800);
  line-height:1.1;
}
.summary-card .sc-unit{
  font-size:12px;
  color:var(--muted);
  font-weight:500;
}

.breakdown-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:16px;
}
.breakdown-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px 18px;
  box-shadow:var(--shadow-sm);
}
.breakdown-card h3{
  font-size:14px;
  font-weight:700;
  color:var(--blue-800);
  margin:0 0 8px;
}
.breakdown-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:5px 0;
  font-size:13.5px;
  border-bottom:1px solid var(--line);
}
.breakdown-row:last-child{border-bottom:none}
.breakdown-row .br-label{font-weight:500;color:var(--muted)}
.breakdown-row .br-value{font-weight:700;color:var(--ink)}
.breakdown-row .br-value.good{color:var(--good)}
.breakdown-row .br-value.mid{color:var(--warn)}
.breakdown-row .br-value.low{color:var(--bad)}
.range-bar{
  display:flex;
  gap:3px;
  margin-top:8px;
  height:6px;
  border-radius:999px;
  overflow:hidden;
  background:var(--line);
}
.range-seg{height:100%}

.results-list{margin-top:8px;display:flex;flex-direction:column;gap:8px}
.result-item{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .15s;
}
.result-item:hover{box-shadow:var(--shadow)}
.ri-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
  flex-wrap:wrap;
}
.ri-product{font-weight:700;font-size:14px;color:var(--blue-800)}
.ri-version{font-size:11.5px;color:var(--muted);font-weight:500}
.ri-type-badge{
  font-size:11px;
  font-weight:600;
  padding:3px 9px;
  border-radius:999px;
  background:var(--blue-100);
  color:var(--blue-700);
}
.ri-type-badge.practical{background:#e6f0ff}
.ri-score-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:6px;
}
.ri-score-big{
  font-size:22px;
  font-weight:800;
  line-height:1;
}
.ri-score-big.good{color:var(--good)}
.ri-score-big.mid{color:var(--warn)}
.ri-score-big.low{color:var(--bad)}
.ri-score-detail{font-size:12px;color:var(--muted)}
.ri-timing{
  font-size:11px;
  color:var(--muted);
  margin-top:5px;
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}
.ri-timing span{display:inline-flex;align-items:center;gap:3px}
.ri-actions{margin-top:6px}
.empty-state{
  background:var(--blue-50);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px 20px;
  text-align:center;
}
.empty-state h3{
  font-size:17px;
  font-weight:700;
  color:var(--blue-800);
  margin:0 0 4px;
}
.empty-state p{margin:0;color:var(--muted);font-size:13.5px}
.empty-state .start-btn{margin-top:12px}

/* ===== SETTINGS PAGE ===== */
.settings-section{margin-bottom:16px}
.settings-section h2{
  font-size:17px;
  font-weight:700;
  color:var(--blue-800);
  margin:0 0 8px;
  padding-bottom:6px;
  border-bottom:2px solid var(--line);
}
.settings-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 20px;
  box-shadow:var(--shadow-sm);
  margin-bottom:10px;
}
.sf-field{margin-bottom:12px}
.sf-field:last-child{margin-bottom:0}
.sf-label{
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:var(--blue-700);
  margin-bottom:4px;
}
.sf-input{
  width:100%;
  padding:9px 12px;
  border:1.5px solid var(--line);
  border-radius:var(--radius-xs);
  font-size:14px;
  font-family:inherit;
  color:var(--ink);
  background:var(--card);
  transition:border-color .15s,box-shadow .15s;
}
.sf-input:focus{
  outline:none;
  border-color:var(--blue-400);
  box-shadow:0 0 0 3px var(--blue-100);
}
.sf-hint{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.4}
.settings-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.settings-info{
  background:var(--blue-50);
  border:1px solid var(--blue-100);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  font-size:13px;
  color:var(--ink);
  line-height:1.55;
  margin-bottom:8px;
}
.settings-info strong{color:var(--blue-700)}
.data-note{
  background:#fff8e6;
  border:1px solid var(--gold);
  border-radius:var(--radius-sm);
  padding:10px 12px;
  font-size:12.5px;
  color:#6b4e00;
  line-height:1.5;
  margin-top:4px;
}
.data-note strong{color:var(--gold-dark)}

/* ===== FOOTER ===== */
.foot{
  text-align:center;
  color:var(--muted);
  font-size:11.5px;
  padding:18px 24px 22px;
  border-top:1px solid var(--line);
  margin-top:16px;
}
.foot span{color:var(--blue-700);font-weight:600}

/* ===== QUIZ / PRACTICAL ENGINES (preserved) ===== */
/* app.js emits class="quiz-head" and class="qprompt"; the older
   stylesheet uses .qhead and .q-prompt. Keep both so either markup
   variant renders correctly. */
.qhead, .quiz-head{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 14px;
  box-shadow:var(--shadow-sm);
  margin-bottom:8px;
}
.qmeta{font-size:12.5px;color:var(--muted);margin:4px 0}
.bar{
  background:var(--line);
  border-radius:999px;
  height:6px;
  overflow:hidden;
  margin-top:6px;
}
.bar span{display:block;height:100%;background:var(--blue-500);transition:.3s}
.q-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px 20px;
  box-shadow:var(--shadow-sm);
  margin:8px 0;
}
.q-prompt, .qprompt{font-size:16px;font-weight:700;margin:8px 0;color:var(--ink)}
.q-topic{
  font-size:15px;
  font-weight:700;
  color:var(--blue-700);
  margin:4px 0;
}
.opts{display:flex;flex-direction:column;gap:8px}
.opt{
  display:flex;
  gap:10px;
  align-items:flex-start;
  text-align:left;
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:10px;
  padding:11px 13px;
  cursor:pointer;
  font-family:inherit;
  font-size:14px;
  color:var(--ink);
  transition:.12s;
}
.opt:hover:not(:disabled){border-color:var(--blue-500);background:var(--blue-50)}
.oletter{
  flex:0 0 24px;
  height:24px;
  border-radius:6px;
  background:var(--blue-100);
  color:var(--blue-700);
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}
.opt.right{border-color:var(--good);background:#e8f7ee}
.opt.right .oletter{background:var(--good);color:#fff}
.opt.wrong{border-color:var(--bad);background:#fdeceb}
.opt.wrong .oletter{background:var(--bad);color:#fff}
.opt:disabled{cursor:default;opacity:1}
.feedback{
  border-radius:10px;
  padding:12px 14px;
  margin-top:12px;
  border:1.5px solid var(--blue-100);
  background:var(--blue-50);
  font-size:13.5px;
}
.feedback.strong{border-color:var(--good);background:#e8f7ee}
.feedback.weak{border-color:var(--bad);background:#fdeceb}
.verdict{font-weight:700;margin-bottom:4px;font-size:14px}
.result{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px 28px;
  text-align:center;
  box-shadow:var(--shadow);
  max-width:560px;
  margin:16px auto;
}
.bigscore{font-size:56px;font-weight:800;color:var(--blue-700);line-height:1.1}
.result .msg{font-weight:700;font-size:15px;margin:6px 0}
.gate{
  background:linear-gradient(135deg,var(--blue-700),var(--blue-600));
  color:#fff;
  border-radius:14px;
  padding:24px 28px;
  box-shadow:var(--shadow);
  text-align:center;
  max-width:580px;
  margin:16px auto;
}
.gate h1{color:#fff;margin:0 0 4px;font-size:22px}
.gate .sub,.gate .hint{color:rgba(255,255,255,.82)}
.gate .hint{font-size:13px}
.typed{margin-top:6px}
.typed .sf-input{font-size:14px}
.type-box{
  width:100%;
  padding:10px 12px;
  border:1.5px solid var(--line);
  border-radius:var(--radius-xs);
  font-size:14px;
  font-family:inherit;
  color:var(--ink);
  background:#fff;
  resize:vertical;
  min-height:80px;
  transition:border-color .15s,box-shadow .15s;
}
.type-box:focus{
  outline:none;
  border-color:var(--blue-400);
  box-shadow:0 0 0 3px var(--blue-100);
}
.mustnote{
  background:#fff4d6;
  border:1px solid var(--gold);
  border-radius:6px;
  padding:7px 10px;
  margin:6px 0;
  font-size:12px;
}
.mustnote .kchip{margin:0 3px;display:inline-block}
.kchip{
  font-size:11px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
}
.kchip.ok{background:#d8f3e3;color:#15683a;border:1px solid var(--good)}
.kchip.no{background:#fadedc;color:#96302a;border:1px solid var(--bad)}
.kchip.must{background:#ffe9a8;color:#6b4e00;border:1px solid var(--gold)}
.note-box{
  background:var(--blue-50);
  border:1px solid var(--blue-100);
  border-radius:8px;
  padding:10px 12px;
  font-size:13px;
  margin:8px 0;
}
.note-box.ok{background:#e8f7ee;border-color:var(--good)}
.note-box.warn{background:#fff5e6;border-color:var(--warn)}
.err{
  background:#fdeceb;
  color:var(--bad);
  border:1px solid var(--bad);
  border-radius:6px;
  padding:8px 10px;
  margin:6px 0;
  font-size:12.5px;
}
.toast{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:var(--ink);
  color:#fff;
  padding:9px 16px;
  border-radius:8px;
  opacity:0;
  transition:.3s;
  z-index:99;
  font-size:13.5px;
  font-weight:500;
}
.toast.show{opacity:1}
.profile{
  background:#fff8e6;
  border:1px solid var(--gold);
  border-left:4px solid var(--gold);
  border-radius:8px;
  padding:10px 12px;
  margin:0 0 10px;
  font-size:13px;
  line-height:1.5;
}
.mustbox{
  background:#fff4d6;
  border:1px solid var(--gold);
  border-radius:6px;
  padding:8px 10px;
  margin:4px 0;
  font-size:12px;
}
.mustbox .kchip{margin:0 2px;display:inline-block}
.pickrow{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:center;
  margin:8px 0;
}
.tpick{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  border-radius:999px;
  padding:6px 11px;
  cursor:pointer;
  font-weight:700;
  font-size:12px;
}
.tpick:hover{background:var(--gold);color:#3a2c00}
.quit-confirm .qs-row{
  display:flex;
  justify-content:space-between;
  padding:4px 0;
  font-size:13px;
  color:rgba(255,255,255,.8);
}
.quit-confirm .qs-row b{color:#fff;font-weight:600}
.quit-summary{
  background:rgba(255,255,255,.1);
  border-radius:8px;
  padding:10px 14px;
  margin:8px 0;
}
.practice-type-pill{
  display:inline-block;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  padding:4px 12px;
  font-size:12.5px;
  font-weight:600;
  color:rgba(255,255,255,.9);
  margin-bottom:6px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .badge-grid{grid-template-columns:repeat(3,1fr)}
  .summary-grid{grid-template-columns:repeat(2,1fr)}
  .breakdown-grid{grid-template-columns:1fr}
  .two-card-grid{grid-template-columns:1fr}
  .hero,.scores-hero{padding:22px}
  .hero h1,.scores-hero h1{font-size:24px}
  .kpi-card{min-width:90px;padding:12px 14px}
  .kpi-card .kpi-value{font-size:22px}
  .product-details-inner{flex-direction:column;align-items:flex-start}
  .product-details-stats{text-align:left}
}
@media(max-width:560px){
  .brand-name{display:none}
  .nav a{padding:7px 10px;font-size:12.5px}
  .badge-grid{grid-template-columns:repeat(2,1fr)}
  .summary-grid{grid-template-columns:repeat(2,1fr)}
  .hero,.scores-hero{padding:18px}
  .hero h1,.scores-hero h1{font-size:20px}
  .product-selector{padding:16px}
  .card{padding:14px 14px}
  .start-practice-btn{min-width:0;width:100%;padding:12px}
  .product-select-field select{max-width:100%}
  .bigscore{font-size:44px}
  main{padding:16px 12px 30px}
  .banner{padding:10px 14px;gap:8px}
  .who{font-size:12px;padding:5px 10px}
  .who-btn{padding:3px 8px;font-size:11px}
}

/* ===== NHT PRODUCTS GRID ===== */
.products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:16px;
  margin-top:4px;
}
.product-card {
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:18px 20px 16px;
  box-shadow:var(--shadow-sm);
  transition:all .2s;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.product-card:hover {
  transform:translateY(-2px);
  border-color:var(--blue-400);
  box-shadow:var(--shadow);
}
.pc-top {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}
.pc-badge {
  font-size:16px;
  font-weight:700;
  color:var(--blue-800);
  line-height:1.3;
}
.pc-version {
  font-size:12px;
  color:var(--muted);
  font-weight:500;
  background:var(--blue-50);
  border:1px solid var(--blue-200);
  border-radius:999px;
  padding:2px 10px;
  white-space:nowrap;
}
.pc-provider {
  font-size:12.5px;
  color:var(--muted);
  font-weight:500;
}
.pc-stats {
  display:flex;
  gap:16px;
  padding:10px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.pc-stat {
  flex:1;
  text-align:center;
}
.pcs-label {
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:var(--muted);
  font-weight:600;
  margin-bottom:2px;
}
.pcs-value {
  font-size:22px;
  font-weight:800;
  color:var(--blue-700);
  line-height:1.1;
}
.pcs-sub {
  font-size:11px;
  color:var(--muted);
  font-weight:500;
  margin-top:1px;
}
.pcs-sub.ready { color:var(--good); font-weight:600; }
.pc-actions {
  display:flex;
  gap:8px;
  margin-top:auto;
}
.pc-actions .btn {
  flex:1;
  padding:9px 12px;
  font-size:13px;
  font-weight:700;
  border-radius:9px;
  cursor:pointer;
  transition:all .15s;
  min-width:0;
}
.btn.start-quiz-btn {
  background:var(--blue-600);
  color:#fff;
  border:none;
  box-shadow:0 2px 8px rgba(11,61,145,.2);
}
.btn.start-quiz-btn:hover:not(:disabled) {
  background:var(--blue-700);
  transform:translateY(-1px);
}
.btn.start-quiz-btn:disabled {
  background:var(--line);
  color:var(--muted);
  cursor:not-allowed;
  box-shadow:none;
}
.btn.start-prac-btn {
  background:var(--gold);
  color:var(--blue-800);
  border:none;
  box-shadow:0 2px 8px rgba(244,180,0,.25);
}
.btn.start-prac-btn:hover:not(:disabled) {
  background:#ffd633;
  transform:translateY(-1px);
}
.btn.start-prac-btn:disabled {
  background:#dbe4f2;
  color:var(--muted);
  cursor:not-allowed;
  box-shadow:none;
}

/* ===== GENERATE MORE (home + products page) ===== */
.product-gen-more{
  margin-top:12px;
  display:flex;
  justify-content:flex-end;
}
.product-gen-more .btn{
  background:var(--blue-50);
  color:var(--blue-700);
  border:1px solid var(--blue-200);
  border-radius:8px;
  padding:6px 14px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:all .15s;
}
.product-gen-more .btn:hover{
  background:var(--blue-100);
  border-color:var(--blue-400);
}
.btn.gen-more-btn{
  background:var(--blue-600);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:7px 16px;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  transition:all .15s;
  align-self:center;
}
.btn.gen-more-btn:hover{
  background:var(--blue-700);
}

/* ===== QUIZ RESULT PAGE ===== */
.quiz-result-page{
  max-width:780px;
  margin:16px auto;
}
.qr-header{
  text-align:center;
  margin-bottom:16px;
}
.qr-header h1{
  font-size:26px;
  font-weight:800;
  color:var(--blue-800);
  margin:0 0 4px;
}
.qr-sub{
  font-size:14px;
  color:var(--muted);
  margin:0;
}
.qr-score-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow-sm);
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}
.qr-score-ring{
  position:relative;
  width:120px;
  height:120px;
  flex-shrink:0;
}
.qr-ring-svg{
  width:100%;
  height:100%;
}
.qr-ring-inner{
  position:absolute;
  top:0;left:0;right:0;bottom:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.qr-pct{
  font-size:30px;
  font-weight:800;
  color:var(--blue-700);
  line-height:1;
}
.qr-score-text{
  font-size:11px;
  color:var(--muted);
  font-weight:500;
  margin-top:3px;
}
.qr-message{
  font-size:14px;
  color:var(--ink);
  font-weight:600;
  line-height:1.5;
  flex:1;
  min-width:200px;
}
.qr-stats-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:16px;
}
.qr-stat{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:12px;
  text-align:center;
  box-shadow:var(--shadow-sm);
}
.qr-stat-val{
  font-size:22px;
  font-weight:800;
  color:var(--blue-700);
  line-height:1.1;
}
.qr-stat-val.good{color:var(--good)}
.qr-stat-val.low{color:var(--bad)}
.qr-stat-label{
  font-size:11px;
  color:var(--muted);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-top:2px;
}
.qr-review-section{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 20px;
  box-shadow:var(--shadow-sm);
  margin-bottom:16px;
}
.review-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:400px;
  overflow-y:auto;
  padding-right:4px;
}
.review-list::-webkit-scrollbar{width:6px}
.review-list::-webkit-scrollbar-thumb{background:var(--blue-200);border-radius:3px}
.review-item{
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:10px 12px;
  background:var(--blue-50);
}
.review-item.correct{
  border-color:var(--good);
  background:#f0faf3;
}
.review-item.incorrect{
  border-color:var(--bad);
  background:#fdeceb;
}
.ri-qnum{
  font-size:11px;
  font-weight:700;
  color:var(--blue-600);
  margin-bottom:3px;
}
.ri-qtext{
  font-size:13.5px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:6px;
  line-height:1.4;
}
.ri-answer-row{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-bottom:4px;
}
.ri-opt{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  padding:3px 8px;
  border-radius:5px;
  background:#fff;
  border:1px solid transparent;
}
.ri-opt.ri-correct{
  background:#e8f7ee;
  border-color:var(--good);
}
.ri-opt.ri-wrong{
  background:#fdeceb;
  border-color:var(--bad);
}
.ri-opt-letter{
  width:20px;
  height:20px;
  border-radius:4px;
  background:var(--blue-100);
  color:var(--blue-700);
  font-weight:700;
  font-size:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.ri-opt.ri-correct .ri-opt-letter{background:var(--good);color:#fff}
.ri-opt.ri-wrong .ri-opt-letter{background:var(--bad);color:#fff}
.ri-opt-text{flex:1;color:var(--ink)}
.ri-mark{
  font-size:12px;
  font-weight:800;
  color:var(--good);
}
.ri-wrong-mark{color:var(--bad)}
.ri-explain{
  font-size:11.5px;
  color:var(--muted);
  line-height:1.4;
  margin-top:3px;
  padding-top:4px;
  border-top:1px dashed var(--line);
}
.ri-explain b{color:var(--blue-700)}
.qr-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}
.qr-actions .btn{
  padding:10px 20px;
  font-size:13.5px;
  font-weight:700;
  border-radius:10px;
  cursor:pointer;
  transition:all .15s;
}
.qr-actions .btn.gold{
  background:var(--gold);
  color:var(--blue-800);
  border:none;
  box-shadow:0 3px 10px rgba(244,180,0,.3);
}
.qr-actions .btn.gold:hover{
  background:#ffd633;
  transform:translateY(-1px);
}
.qr-actions .btn:not(.gold){
  background:var(--card);
  color:var(--blue-700);
  border:1.5px solid var(--line);
}
.qr-actions .btn:not(.gold):hover{
  border-color:var(--blue-400);
  background:var(--blue-50);
}

/* ===== PRACTICAL SCENARIO CARD ===== */
.practical-scenario-card{
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow-sm);
  margin:8px 0;
}
.psc-header{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:2px solid var(--blue-100);
}
.psc-title{
  font-size:17px;
  font-weight:700;
  color:var(--blue-800);
}
.psc-category{
  font-size:11px;
  font-weight:600;
  color:var(--blue-600);
  background:var(--blue-50);
  border:1px solid var(--blue-200);
  border-radius:999px;
  padding:3px 10px;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.sc-profile-card{
  background:var(--blue-50);
  border:1px solid var(--blue-200);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  margin-bottom:10px;
}
.sc-profile-head{
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--blue-600);
  font-weight:700;
  margin-bottom:6px;
}
.sc-profile-body{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.sc-profile-row{
  display:flex;
  gap:8px;
  font-size:13px;
  align-items:flex-start;
}
.sc-profile-row .sc-pl{
  font-weight:600;
  color:var(--blue-700);
  min-width:60px;
  flex-shrink:0;
}
.sc-profile-row .sc-pv{
  color:var(--ink);
  line-height:1.4;
}
.sc-ctx-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  margin-bottom:10px;
}
.sc-ctx-head{
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--blue-600);
  font-weight:700;
  margin-bottom:4px;
}
.sc-ctx-body{
  font-size:13.5px;
  color:var(--ink);
  line-height:1.5;
}
.sc-requirement{
  background:#fff8e6;
  border:1px solid var(--gold);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  margin-bottom:10px;
}
.sc-req-head{
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--gold-dark);
  font-weight:700;
  margin-bottom:4px;
}
.sc-req-body{
  font-size:14px;
  color:var(--ink);
  line-height:1.5;
}
.sc-task-card{
  background:var(--card);
  border:1px solid var(--line);
  border-left:3px solid var(--blue-600);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  margin-bottom:14px;
}
.sc-task-head{
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--blue-600);
  font-weight:700;
  margin-bottom:4px;
}
.sc-task-body{
  font-size:13.5px;
  color:var(--ink);
  line-height:1.5;
}
.sc-response-section{
  margin-top:6px;
}
.sc-response-head{
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--blue-600);
  font-weight:700;
  margin-bottom:6px;
}
.sc-response-box{
  width:100%;
  min-height:90px;
  padding:10px 12px;
  border:1.5px solid var(--line);
  border-radius:var(--radius-xs);
  font-size:14px;
  font-family:inherit;
  color:var(--ink);
  background:#fff;
  resize:vertical;
  transition:border-color .15s,box-shadow .15s;
}
.sc-response-box:focus{
  outline:none;
  border-color:var(--blue-400);
  box-shadow:0 0 0 3px var(--blue-100);
}
.sc-response-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.sc-response-actions .btn{
  padding:9px 20px;
  font-size:13.5px;
  font-weight:700;
  border-radius:9px;
  cursor:pointer;
  transition:all .15s;
}
.sc-response-actions .btn.gold{
  background:var(--gold);
  color:var(--blue-800);
  border:none;
  box-shadow:0 3px 10px rgba(244,180,0,.3);
}
.sc-response-actions .btn.gold:hover{
  background:#ffd633;
  transform:translateY(-1px);
}
.sc-response-actions .btn:not(.gold){
  background:var(--card);
  color:var(--blue-700);
  border:1.5px solid var(--line);
}
.sc-response-actions .btn:not(.gold):hover{
  border-color:var(--blue-400);
  background:var(--blue-50);
}

/* PREMIUM RESULTS TABLE */

.results-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(18, 63, 120, 0.10);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(20, 54, 100, 0.07);
}

.results-table.premium-results-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.premium-results-table thead th {
  padding: 15px 16px;
  background: linear-gradient(135deg, #f5f8fd, #eef4fb);
  border-bottom: 1px solid #dfe8f3;
  color: #52657d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.premium-results-table thead th:first-child {
  border-top-left-radius: 18px;
}

.premium-results-table thead th:last-child {
  border-top-right-radius: 18px;
}

.premium-results-table tbody td {
  padding: 16px;
  border-bottom: 1px solid #edf1f6;
  color: #24364d;
  font-size: 13px;
  vertical-align: middle;
  background: #ffffff;
}

.premium-results-table tbody tr {
  transition: background .18s ease, transform .18s ease;
}

.premium-results-table tbody tr:hover td {
  background: #f8fbff;
}

.premium-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.rt-trainee {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
}

.rt-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b5ed7, #123b78);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(11, 94, 215, .20);
}

.rt-trainee-name {
  color: #172b4d;
  font-weight: 750;
  white-space: nowrap;
}

.rt-time {
  display: inline-block;
  color: #687b92;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.rt-product-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 175px;
}

.rt-product {
  color: #17345f;
  font-weight: 750;
  line-height: 1.35;
}

.rt-product-version {
  color: #8a9aae;
  font-size: 11px;
  font-weight: 650;
}

.premium-results-table .rt-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf5ff;
  color: #0757b8;
  border: 1px solid #d8e9ff;
  font-size: 11px;
  font-weight: 800;
}

.premium-results-table .rt-type.practical {
  background: #fff7e7;
  border-color: #f8dfaa;
  color: #9a6700;
}

.rt-score-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 90px;
}

.premium-results-table .rt-score {
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
}

.rt-score-label {
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.premium-results-table .rt-score.good,
.rt-score-label.good {
  color: #16834b;
}

.premium-results-table .rt-score.mid,
.rt-score-label.mid {
  color: #b87900;
}

.premium-results-table .rt-score.low,
.rt-score-label.low {
  color: #d94a4a;
}

.rt-progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
}

.rt-progress-track {
  width: 90px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.rt-progress-fill {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b5ed7, #4b8fe8);
  transition: width .35s ease;
}

.rt-progress-fill.good {
  background: linear-gradient(90deg, #159957, #55b97d);
}

.rt-progress-fill.mid {
  background: linear-gradient(90deg, #d79a16, #efc35e);
}

.rt-progress-fill.low {
  background: linear-gradient(90deg, #d9534f, #ee8b87);
}

.premium-results-table .rt-count {
  color: #657991;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .results-table-wrap {
    margin-left: -2px;
    margin-right: -2px;
    border-radius: 14px;
  }

  .premium-results-table {
    min-width: 860px;
  }
}

/* PREMIUM SCORES ANALYTICS */

.scores-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 67, 128, .10);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 196, 72, .18), transparent 28%),
    radial-gradient(circle at 12% 100%, rgba(67, 139, 238, .18), transparent 34%),
    linear-gradient(135deg, #0b376f 0%, #0b5fc7 58%, #1976d2 100%);
  box-shadow: 0 18px 45px rgba(15, 55, 105, .18);
}

.scores-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -120px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255,255,255,.035),
    0 0 0 58px rgba(255,255,255,.025);
  pointer-events: none;
}

.scores-hero .hero-title,
.scores-hero h1,
.scores-hero h2 {
  position: relative;
  z-index: 1;
}

.scores-hero .hero-eyebrow,
.scores-hero .eyebrow {
  color: #ffd978;
  font-weight: 800;
  letter-spacing: .12em;
}

.scores-hero h1,
.scores-hero h2 {
  color: #ffffff;
}

.scores-hero p,
.scores-hero .hero-sub {
  color: rgba(255,255,255,.78);
}

.scores-hero .kpi-card {
  position: relative;
  z-index: 2;
  min-width: 185px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}

.scores-hero .kpi-label {
  color: rgba(255,255,255,.70);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.scores-hero .kpi-value {
  margin-top: 7px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.scores-hero .kpi-sub {
  margin-top: 7px;
  color: #ffd978;
  font-size: 11px;
  font-weight: 750;
}

.summary-grid {
  gap: 16px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border: 1px solid #e1eaf4;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 28px rgba(25, 61, 105, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0b5ed7, #4e91e8);
}

.summary-card:nth-child(2)::before {
  background: linear-gradient(90deg, #159957, #55b97d);
}

.summary-card:nth-child(3)::before {
  background: linear-gradient(90deg, #d89b17, #f0c55c);
}

.summary-card:nth-child(4)::before {
  background: linear-gradient(90deg, #6b55c7, #9b8be0);
}

.summary-card:hover {
  transform: translateY(-3px);
  border-color: #cbdced;
  box-shadow: 0 16px 34px rgba(25, 61, 105, .11);
}

.summary-card .sc-label {
  color: #6c7f96;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.summary-card .sc-value {
  margin-top: 9px;
  color: #15345f;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.summary-card .sc-unit {
  margin-top: 9px;
  color: #8a9aae;
  font-size: 11px;
  font-weight: 650;
}

.breakdown-grid {
  gap: 18px;
}

.bd-card,
.sr-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e0e9f3;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 61, 105, .075);
}

.bd-card::before,
.sr-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0b5ed7, #78aef0);
}

.bd-card h3,
.sr-card h3 {
  margin: 0;
  color: #17345f;
  font-size: 15px;
  font-weight: 850;
}

.donut-wrap {
  align-items: center;
  gap: 30px;
}

.donut {
  position: relative;
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  border-radius: 50%;
  background:
    conic-gradient(
      #0b5ed7 0deg,
      #0b5ed7 calc(var(--quiz-pct, 50) * 3.6deg),
      #f0b52f calc(var(--quiz-pct, 50) * 3.6deg),
      #f0b52f 360deg
    );
  box-shadow:
    0 10px 25px rgba(20, 74, 140, .14),
    inset 0 0 0 1px rgba(255,255,255,.6);
}

.donut::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e7edf5;
}

.donut-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #15345f;
  font-size: 27px;
  font-weight: 900;
}

.donut-center small {
  margin-top: 3px;
  color: #8999ad;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legend {
  width: 100%;
}

.legend-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f6;
}

.legend-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #405671;
  font-size: 12px;
  font-weight: 750;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(11,94,215,.08);
}

.legend-dot.quiz {
  background: #0b5ed7;
}

.legend-dot.practical {
  background: #f0b52f;
  box-shadow: 0 0 0 4px rgba(240,181,47,.12);
}

.legend-count {
  color: #17345f;
  font-size: 14px;
  font-weight: 850;
}

.legend-pct {
  color: #8a9aae;
  font-size: 11px;
  font-weight: 700;
}

.bd-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f8fc;
}

.bd-total-label {
  color: #72859c;
  font-size: 11px;
  font-weight: 750;
}

.bd-total-val {
  color: #17345f;
  font-size: 12px;
  font-weight: 850;
}

.sr-row {
  padding: 15px 0;
  border-bottom: 1px solid #edf1f6;
}

.sr-row:last-child {
  border-bottom: 0;
}

.sr-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sr-label span:first-child {
  color: #52677f;
  font-size: 12px;
  font-weight: 750;
}

.sr-count {
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5fa;
  color: #17345f;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.sr-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.sr-bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  transition: width .4s ease;
}

.sr-bar-fill.good {
  background: linear-gradient(90deg, #159957, #63c68c);
}

.sr-bar-fill.mid {
  background: linear-gradient(90deg, #d99b17, #efc85f);
}

.sr-bar-fill.low {
  background: linear-gradient(90deg, #d95752, #ee9290);
}

.results-section {
  border: 1px solid #e0e9f3;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(24, 61, 105, .07);
}

.results-section .section-head h2 {
  color: #17345f;
  font-size: 18px;
  font-weight: 850;
}

.results-section .section-count {
  color: #8a9aae;
  font-size: 11px;
  font-weight: 700;
}

.results-section .card-sub {
  color: #71849b;
  font-size: 12px;
}

/* Keep the Scores dashboard usable on compact screens. */
@media (max-width: 760px) {
  .scores-hero {
    border-radius: 20px;
  }

  .scores-hero .kpi-card {
    min-width: 0;
  }

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

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

  .donut-wrap {
    gap: 20px;
  }
}

@media (max-width: 430px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .summary-card {
    min-height: 118px;
    padding: 16px;
    border-radius: 16px;
  }

  .summary-card .sc-value {
    font-size: 25px;
  }

  .donut-wrap {
    flex-direction: column;
  }

  .donut {
    width: 136px;
    height: 136px;
    flex-basis: 136px;
  }
}

