/* variables */
:root {
  --gads-primary: #83231c;
  --gads-primary-dark: #680f0b;
  --gads-primary-strong: #93000b;
  --gads-primary-hover: #88000a;
  --gads-secondary: #5b7897;
  --gads-accent: #b22020;
  --gads-soft: #f0f5fe;
  --gads-gray: #86858a;
  --background: #f6f7f9;
  --surface: #ffffff;
  --surface-secondary: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #198754;
  --warning: #f59e0b;
  --danger: #dc3545;
  --info: #0ea5e9;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --sidebar-width: 300px;
}

/* base */
html { font-size: 14px; min-height: 100%; }
@media (min-width: 768px) { html { font-size: 15px; } }
body { min-height: 100vh; margin: 0; background: var(--background); color: var(--text-primary); font-family: Mulish, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--gads-primary); text-decoration: none; }
a:hover { color: var(--gads-primary-hover); }
:focus-visible { outline: 3px solid rgba(131, 35, 28, .22); outline-offset: 2px; }
.gads-logo { max-height: 42px; width: auto; object-fit: contain; }
.text-muted { color: var(--text-muted) !important; }

/* bootstrap refinements */
.btn { border-radius: 10px; font-weight: 700; transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-success, .btn-info { background: var(--gads-primary) !important; border-color: var(--gads-primary) !important; color: #fff !important; }
.btn-primary:hover, .btn-success:hover, .btn-info:hover { background: var(--gads-primary-dark) !important; border-color: var(--gads-primary-dark) !important; }
.btn-outline-primary { color: var(--gads-primary); border-color: rgba(131, 35, 28, .35); }
.btn-outline-primary:hover { background: var(--gads-primary); border-color: var(--gads-primary); }
.btn-outline-secondary { border-color: var(--border); color: var(--text-secondary); background: #fff; }
.btn-outline-secondary:hover { background: var(--surface-secondary); color: var(--text-primary); border-color: #d1d5db; }
.btn-link { color: var(--gads-primary); }
.btn-link:hover { color: var(--gads-primary-hover); }
.text-primary { color: var(--gads-primary) !important; }
.bg-primary { background-color: var(--gads-primary) !important; }
.border-primary { border-color: var(--gads-primary) !important; }
.nav-pills .nav-link { color: var(--text-secondary); border-radius: 10px; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--gads-primary) !important; color: #fff !important; }
.list-group-item.active { background-color: var(--gads-primary) !important; border-color: var(--gads-primary) !important; }
.dropdown-item.active, .dropdown-item:active { background-color: var(--gads-primary) !important; color: #fff !important; }
.page-link { color: var(--gads-primary); }
.active > .page-link, .page-link.active { background-color: var(--gads-primary); border-color: var(--gads-primary); }
.link-primary { color: var(--gads-primary) !important; }
.form-check-input:checked { background-color: var(--gads-primary); border-color: var(--gads-primary); }
.btn-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: #fff; }
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header, .card-footer { border-color: var(--border); }
.form-control, .form-select { border-color: var(--border); border-radius: 10px; min-height: 42px; }
.form-control:focus, .form-select:focus { border-color: rgba(131, 35, 28, .45); box-shadow: 0 0 0 .2rem rgba(131, 35, 28, .12); }
.form-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); font-weight: 800; }
.table { --bs-table-color: var(--text-primary); }
.table thead th { color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; border-bottom-color: var(--border); white-space: nowrap; }
.table td { vertical-align: middle; border-color: var(--border); }
.badge { border-radius: 999px; padding: .42rem .65rem; font-weight: 800; }
.progress { height: .55rem; background: #eef2f7; border-radius: 999px; }
.progress-bar { background: var(--gads-primary); }

/* admin layout */
.admin-body { overflow-x: hidden; }
.admin-shell { min-height: 100vh; display: flex; }
.admin-sidebar { width: var(--sidebar-width); background: #fff; border-right: 1px solid var(--border); padding: 22px 18px; box-shadow: 8px 0 30px rgba(17, 24, 39, .03); }
.sidebar-brand { display: grid; gap: 14px; padding: 4px 6px 24px; border-bottom: 1px solid var(--border); margin-bottom: 18px; color: var(--text-primary); }
.sidebar-brand:hover { color: var(--text-primary); }
.sidebar-brand .gads-logo { max-height: 58px; max-width: 220px; }
.sidebar-brand strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.sidebar-brand span { display: block; color: var(--text-muted); font-size: .82rem; }
.sidebar-nav { display: grid; gap: 6px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 12px; color: var(--text-secondary); font-weight: 800; }
.sidebar-nav a i { font-size: 1.1rem; color: var(--gads-secondary); }
.sidebar-nav a:hover { background: var(--gads-soft); color: var(--text-primary); }
.sidebar-nav a.active { background: rgba(131, 35, 28, .09); color: var(--gads-primary); box-shadow: inset 3px 0 0 var(--gads-primary); }
.sidebar-nav a.active i { color: var(--gads-primary); }
.admin-main { min-width: 0; flex: 1; }
.admin-topbar { min-height: 78px; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 14px 28px; position: sticky; top: 0; z-index: 20; }
.admin-topbar h1 { font-size: 1.35rem; line-height: 1.2; margin: 0; font-weight: 900; }
.breadcrumb-lite { color: var(--text-muted); font-size: .84rem; margin-top: 3px; }
.user-menu { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-secondary); }
.admin-content { padding: 28px; max-width: 1680px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.page-header h1, .page-header h2 { margin: 0; font-size: 1.7rem; font-weight: 900; }
.page-header p { margin: 5px 0 0; color: var(--text-muted); }

/* components */
.metric { height: 100%; border: 1px solid rgba(229,231,235,.8); }
.metric .card-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem; }
.metric span { color: var(--text-muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.metric strong { font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.metric-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(131, 35, 28, .09); color: var(--gads-primary); margin-bottom: .7rem; }
.filter-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.truncate-question { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; color: var(--text-primary); font-weight: 700; }
.question-bank-table { width: 100%; table-layout: fixed; }
.question-bank-table th, .question-bank-table td { overflow: hidden; }
.question-bank-table th:nth-child(1) { width: 31%; }
.question-bank-table th:nth-child(2) { width: 18%; }
.question-bank-table th:nth-child(3) { width: 12%; }
.question-bank-table th:nth-child(4) { width: 9%; }
.question-bank-table th:nth-child(5) { width: 7%; }
.question-bank-table th:nth-child(6) { width: 7%; }
.question-bank-table th:nth-child(7) { width: 5%; }
.question-bank-table th:nth-child(8) { width: 6%; }
.question-bank-table th:nth-child(9) { width: 10rem; }
.question-bank-table th:nth-child(10) { width: 3rem; }
.question-bank-table .truncate-question { max-width: 100%; }
.question-bank-table td:nth-child(3), .question-bank-table td:nth-child(4) { overflow-wrap: anywhere; }
.avatar-initials { width: 42px; height: 42px; border-radius: 50%; background: rgba(131, 35, 28, .1); color: var(--gads-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.answer-box, .review-panel { white-space: pre-wrap; background: var(--surface-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin: 0; font-family: inherit; }
.review-panel.criteria { background: #fbfbfd; }
.mini-progress { min-width: 110px; }
.mini-progress .progress { height: .38rem; margin-top: .25rem; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.2rem; color: var(--gads-secondary); margin-bottom: 12px; }
.dropdown-toggle.no-caret::after { display: none; }
.level-basico, .level-básico { background: rgba(25, 135, 84, .12); color: #0f5132; }
.level-intermedio { background: rgba(245, 158, 11, .18); color: #7c4a03; }
.level-avanzado { background: rgba(14, 116, 144, .13); color: #155e75; }
.level-experto { background: rgba(220, 53, 69, .12); color: #842029; }
.area-badge { background: var(--gads-soft); color: var(--gads-secondary); }

/* public */
.public-header .navbar { background: #fff; border-bottom: 1px solid var(--border); }
.public-header .navbar-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; color: var(--text-primary); }

/* login */
.login-body { overflow: hidden; background: #f2f0e6; }
.portal-login-scene { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; background: linear-gradient(145deg, #f7f5ed, #edf0e7); }
.portal-login-nature { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.flat-person { position: absolute; z-index: 1; width: clamp(130px, 16vw, 220px); filter: drop-shadow(0 14px 14px rgba(48,66,52,.12)); }
.flat-person-left { left: max(3%, calc(50% - 560px)); bottom: 6%; }
.flat-person-center { left: calc(50% - 115px); bottom: -3%; z-index: 3; }
.flat-person-right { right: max(7%, calc(50% - 570px)); bottom: 7%; }
.flat-person-far { right: max(1%, calc(50% - 730px)); bottom: 10%; width: clamp(100px, 11vw, 150px); }
.portal-login-card-wrap { position: relative; z-index: 2; display: grid; place-items: center; min-height: 100vh; padding: 2rem; }
.portal-login-card { width: min(100%, 420px); padding: 2rem 2.45rem 2.35rem; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: #fff; box-shadow: 0 22px 55px rgba(50,65,53,.17); }
.portal-login-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.portal-login-brand strong { color: #39474a; font-size: 1.1rem; letter-spacing: -.05em; }.portal-login-brand strong b { color: #9d382b; }.portal-login-brand span { color: #8b968a; font-size: .62rem; font-weight: 900; letter-spacing: .13em; }
.portal-login-user { display: grid; place-items: center; width: 56px; height: 56px; margin: 1.7rem auto 1rem; border-radius: 50%; background: #385260; color: #fff; font-size: 1.45rem; }
.portal-login-card h1 { margin: 0; color: #304048; font-size: 1.5rem; font-weight: 900; letter-spacing: -.035em; text-align: center; }.portal-login-card > p { margin: .55rem auto 1.65rem; max-width: 280px; color: #718078; font-size: .9rem; line-height: 1.55; text-align: center; }
.portal-login-form .form-label { margin-bottom: .4rem; color: #65736d; }.portal-login-input { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: 0 .9rem; border: 1px solid #d8e5ed; border-radius: 11px; background: #eef7fb; }.portal-login-input:focus-within { border-color: #8ba4ad; box-shadow: 0 0 0 .2rem rgba(139,164,173,.16); }.portal-login-input i { color: #6c8b98; }.portal-login-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #304048; }.portal-login-input input::placeholder { color: #9cabb0; }.portal-login-form .form-check { color: #718078; font-size: .86rem; }
.portal-login-submit { min-height: 50px; border: 0; border-radius: 11px; background: #8d2f23; color: #fff; font-weight: 900; box-shadow: 0 10px 18px rgba(141,47,35,.22); }.portal-login-submit:hover { background: #722419; color: #fff; }.portal-login-submit i { margin-left: .45rem; }
.site-login { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 1.5rem; background: #243c3b url('/images/Login.jpg') center / cover no-repeat; }
.site-login-overlay { position: absolute; inset: 0; background: rgba(31, 53, 50, .32); }
.site-login-card { position: relative; width: min(100%, 400px); padding: 2rem 2.1rem 2.2rem; border: 1px solid rgba(255,255,255,.45); border-radius: 14px; background: rgba(255,255,255,.55); box-shadow: 0 18px 38px rgba(0,0,0,.32); backdrop-filter: blur(8px); }
.site-login-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #334443; }.site-login-brand strong { font-size: 1.05rem; letter-spacing: -.05em; }.site-login-brand b { color: #8d2f23; }.site-login-brand span { color: #6c7b79; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.site-login-avatar { display: grid; width: 70px; height: 70px; place-items: center; margin: 1.8rem auto 1rem; border-radius: 50%; background: #315c58; }.site-login-avatar svg { width: 36px; fill: #fff; }
.site-login-card h1 { margin: 0; color: #2f3d3d; font-size: 1.45rem; font-weight: 900; text-align: center; }.site-login-card > p { margin: .45rem 0 1.6rem; color: #74817f; font-size: .9rem; text-align: center; }
.site-login-form { display: grid; gap: .7rem; }.site-login-input { display: flex; align-items: center; gap: .75rem; min-height: 47px; padding: 0 .8rem; border: 1px solid #d9dddd; border-radius: 7px; background: #f9f9f9; }.site-login-input:focus-within { border-color: #315c58; box-shadow: 0 0 0 3px rgba(49,92,88,.12); }.site-login-input svg { width: 18px; flex: 0 0 auto; fill: #75817f; }.site-login-input input { width: 100%; border: 0; outline: 0; background: transparent; color: #333; }.site-login-input input::placeholder { color: #87908f; }
.site-login-remember { margin: .25rem 0 .45rem; color: #687674; font-size: .85rem; }.site-login-remember input { accent-color: #315c58; }.site-login-submit { min-height: 47px; border: 0; border-radius: 7px; background: #8d2f23; color: #fff; font-size: .88rem; font-weight: 900; letter-spacing: .04em; }.site-login-submit:hover { background: #70241b; }

/* candidate */
.candidate-body { background: linear-gradient(180deg, #fff 0%, #f7f8fb 44%, #f3f5f8 100%); }
.candidate-header { background: #fff; border-bottom: 3px solid var(--gads-primary); }
.candidate-header-inner { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 900; color: var(--text-primary); }
.candidate-main { max-width: 1120px; margin: 0 auto; padding: 36px 24px; }
.candidate-shell { max-width: 900px; margin: 0 auto; }
.shared-result { max-width: 1120px; }
.candidate-hero-card { border-radius: 22px; box-shadow: var(--shadow); }
.info-tile { background: var(--surface-secondary); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; height: 100%; }
.info-tile span { display: block; color: var(--text-muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.info-tile strong { display: block; margin-top: .35rem; font-size: 1.05rem; }
.exam-app { max-width: 980px; margin: 0 auto; }
.exam-header { border-radius: 18px; box-shadow: var(--shadow-sm); }
.timer { font-size: 1.55rem; font-weight: 900; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.timer.warning { color: var(--warning); }
.timer.danger { color: var(--danger); }
.question-card { border-radius: 18px; box-shadow: var(--shadow); }
.question-text { white-space: pre-line; line-height: 1.65; font-size: 1.2rem; font-weight: 800; }
.option-row { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; margin-bottom: .8rem; background: #fff; cursor: pointer; font-weight: 700; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.option-row:hover { background: #fcfcfd; border-color: rgba(131, 35, 28, .35); }
.option-row:has(input:checked) { border-color: var(--gads-primary); box-shadow: 0 0 0 3px rgba(131, 35, 28, .1); background: #fffafa; }
.option-row input { margin-top: .2rem; accent-color: var(--gads-primary); }
.answer-text, textarea.answer-text { font-family: inherit; font-size: 1rem; line-height: 1.55; }
.question-card textarea.answer-text { min-height: 170px; }
.question-card[data-code="true"] textarea, textarea.code-answer { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; background: #0f172a; color: #e5e7eb; }
.question-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.qnav { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: .55rem; font-size: .9rem; font-weight: 800; }
.qnav.active { border-color: var(--gads-primary); box-shadow: 0 0 0 .15rem rgba(131,35,28,.14); }
.qnav.answered { background: #ecfdf5; color: #065f46; border-color: #86efac; }

/* shared executive result */
.executive-dashboard { max-width: 1180px; margin: 0 auto; padding: 1.5rem 0 3rem; }
.executive-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(135deg, #1f2937, #111827); color: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 .4rem; color: var(--gads-secondary); font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.executive-hero .eyebrow { color: #c6d6e8; }
.executive-hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.04em; }
.hero-position { margin: .35rem 0 1.75rem; color: #d1d5db; font-size: 1.05rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; margin: 0; }
.hero-meta div { min-width: 100px; }
.hero-meta dt, .hero-meta dd { margin: 0; }
.hero-meta dt { color: #aab6c5; font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.hero-meta dd { margin-top: .25rem; font-weight: 800; }
.hero-outcome { align-self: center; padding: 1.5rem; border-radius: 18px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); text-align: right; }
.hero-outcome > span { display: block; color: #cbd5e1; font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.hero-outcome > strong { display: block; margin: .2rem 0 .35rem; font-size: 3.5rem; line-height: 1; letter-spacing: -.07em; }
.hero-outcome > b { display: inline-block; padding: .4rem .65rem; border-radius: 999px; font-size: .78rem; letter-spacing: .04em; }
.hero-outcome > small { display: block; margin-top: .7rem; color: #d1d5db; font-weight: 700; }
.classification-alert { color: #a14336 !important; }
.hero-outcome.classification-alert > b { background: #f5d9d3; color: #7b271e; }
.classification-positive { color: #19725b !important; }
.hero-outcome.classification-positive > b { background: #cfecdf; color: #11543e; }
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.kpi-grid article { min-height: 112px; padding: 1rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.kpi-grid span { display: block; margin-bottom: .7rem; color: var(--text-muted); font-size: .68rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.kpi-grid strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.dashboard-section { margin-top: 1rem; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; font-size: 1.3rem; font-weight: 900; letter-spacing: -.025em; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--text-muted); text-align: right; }
.competency-list { display: grid; gap: 1.1rem; }
.competency-row { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(140px, 2fr) minmax(110px, .55fr); gap: 1rem; align-items: center; }
.competency-name strong, .competency-score strong { display: block; font-size: .93rem; }
.competency-name span, .competency-score span { display: block; margin-top: .2rem; color: var(--text-muted); font-size: .8rem; }
.competency-bar { height: .7rem; overflow: hidden; background: #edf1f6; border-radius: 999px; }
.competency-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gads-secondary), #86a4bf); }
.competency-score { text-align: right; }
.coverage-section { background: #f9fbfd; }
.coverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.coverage-grid div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .85rem; border: 1px solid #e3e9f0; border-radius: 10px; background: #fff; }
.coverage-grid span { color: var(--text-secondary); font-size: .83rem; font-weight: 700; }
.coverage-grid strong { color: var(--gads-secondary); }
.dashboard-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.compact-section { min-width: 0; }
.question-summary-list { display: grid; gap: .7rem; }
.question-summary-list article { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--border); }
.question-summary-list article:first-child { border-top: 0; padding-top: 0; }
.question-summary-list strong, .question-summary-list span, .question-summary-list b, .question-summary-list em { display: block; }
.question-summary-list span { margin-top: .2rem; color: var(--text-muted); font-size: .8rem; }
.question-summary-list article > div:last-child { min-width: 80px; text-align: right; }
.question-summary-list b { font-size: .8rem; }
.question-summary-list em { margin-top: .15rem; color: var(--gads-secondary); font-size: .95rem; font-style: normal; font-weight: 900; }
.gap-list em { color: #a14336; }
.distribution-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.distribution-grid div { padding: .85rem .65rem; border-left: 3px solid var(--gads-secondary); background: #f8fafc; }
.distribution-grid span, .distribution-grid small, .distribution-grid strong { display: block; }
.distribution-grid span { color: var(--text-secondary); font-size: .75rem; font-weight: 800; }
.distribution-grid strong { margin: .3rem 0; font-size: 1.5rem; }
.distribution-grid small { color: var(--text-muted); }
.difficulty-list { display: grid; gap: .6rem; }
.difficulty-list div { display: grid; grid-template-columns: 1fr auto auto; gap: .7rem; align-items: baseline; padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.difficulty-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.difficulty-list span { font-weight: 800; }
.difficulty-list strong { color: var(--gads-secondary); }
.difficulty-list small { color: var(--text-muted); text-align: right; }
.conclusion-section { background: #f7f9fc; }
.conclusion-section > h2 { margin: 0 0 1.3rem; font-size: 1.4rem; font-weight: 900; }
.conclusion-section dl { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; margin: 0; }
.conclusion-section dt { color: var(--text-muted); font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.conclusion-section dd { margin: .2rem 0 0; font-weight: 900; }
.competency-conclusions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.3rem; }
.competency-conclusions p { margin: 0; padding: .8rem; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.competency-conclusions span, .competency-conclusions strong { display: block; }
.competency-conclusions span { margin-bottom: .25rem; color: var(--text-muted); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.narrative-section p:last-child { max-width: 820px; margin: 0; white-space: pre-wrap; line-height: 1.65; }
.narrative-section h2 { margin: 0; font-size: 1.25rem; }
.detail-filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.detail-filters .form-select { width: min(100%, 240px); }
.detail-item { overflow: hidden; border: 1px solid var(--border); border-radius: 12px !important; margin-bottom: .6rem; }
.detail-item .accordion-button { gap: .8rem; padding: .85rem 1rem; box-shadow: none; }
.detail-item .accordion-button:not(.collapsed) { color: var(--text-primary); background: #f8fafc; }
.question-number { flex: 0 0 auto; color: var(--gads-secondary); font-weight: 900; }
.detail-title { min-width: 0; flex: 1; }
.detail-title strong, .detail-title small { display: block; }
.detail-title small { margin-top: .2rem; overflow: hidden; color: var(--text-muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.detail-score { min-width: 88px; margin-right: .5rem; text-align: right; color: var(--text-secondary); font-size: .78rem; font-weight: 700; }
.detail-score b { display: block; color: var(--gads-secondary); font-size: .95rem; }
.detail-evidence { display: grid; gap: 1rem; }
.detail-evidence section > span { display: block; margin-bottom: .35rem; color: var(--text-muted); font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.detail-evidence p, .detail-evidence pre { margin: 0; padding: .9rem; overflow-x: auto; white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; line-height: 1.6; }

/* responsive */
@media (max-width: 991.98px) {
  .admin-sidebar { width: min(86vw, var(--sidebar-width)); }
  .admin-content { padding: 20px; }
  .admin-topbar { padding: 12px 18px; }
  .user-menu span { display: none; }
  .page-header { flex-direction: column; }
  .question-grid { grid-template-columns: repeat(5, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question-bank-table th:nth-child(3), .question-bank-table td:nth-child(3),
  .question-bank-table th:nth-child(6), .question-bank-table td:nth-child(6),
  .question-bank-table th:nth-child(7), .question-bank-table td:nth-child(7),
  .question-bank-table th:nth-child(9), .question-bank-table td:nth-child(9) { display: none; }
  .flat-person-left { left: 2%; }.flat-person-right { right: 2%; }.flat-person-far { display: none; }
}
@media (max-width: 575.98px) {
  .admin-content, .candidate-main { padding: 16px; }
  .candidate-header-inner { padding: 14px 16px; }
  .question-bank-table th:nth-child(2), .question-bank-table td:nth-child(2),
  .question-bank-table th:nth-child(4), .question-bank-table td:nth-child(4),
  .question-bank-table th:nth-child(5), .question-bank-table td:nth-child(5) { display: none; }
  .gads-logo { max-height: 34px; }
  .timer { font-size: 1.25rem; }
  .question-text { font-size: 1.05rem; }
  .question-grid { grid-template-columns: repeat(4, 1fr); }
  .executive-dashboard { padding-top: 0; }
  .executive-hero, .dashboard-split { grid-template-columns: 1fr; }
  .hero-outcome { text-align: left; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid article { min-height: 92px; }
  .competency-row { grid-template-columns: 1fr; gap: .45rem; }
  .competency-score { text-align: left; }
  .coverage-grid, .competency-conclusions { grid-template-columns: 1fr; }
  .distribution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .5rem; text-align: left; }
  .difficulty-list div { grid-template-columns: 1fr auto; }
  .difficulty-list small { grid-column: 1 / -1; text-align: left; }
  .detail-item .accordion-button { align-items: flex-start; }
  .detail-score { display: none; }
  .portal-login-card-wrap { align-items: start; padding: 1.25rem; }
  .portal-login-card { margin-top: 1rem; padding: 1.7rem 1.35rem 2rem; border-radius: 20px; }
  .portal-login-brand span { font-size: .55rem; }
  .portal-login-user { width: 52px; height: 52px; margin-top: 1.4rem; }
  .flat-person-left, .flat-person-right, .flat-person-far { display: none; }
  .flat-person-center { left: calc(50% - 72px); bottom: -2%; width: 145px; opacity: .7; }
}
}
