:root {
    --bg-main: #f8fafc;        
    --bg-card: #ffffff;
    --text-dark: #1e293b;      
    --text-muted: #64748b;     
    --border-color: #e2e8f0;   
    --nta-blue: #3b82f6;       
    --accent-green: #10b981;   
    --accent-red: #f43f5e;     
    --accent-gray: #f1f5f9;    
    --accent-purple: #6366f1;  
    
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 10px 15px -3px rgba(99, 102, 241, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background-color: var(--bg-main); color: var(--text-dark); min-height: 100vh; padding: 20px; display: flex; justify-content: center; }
.app-wrapper { width: 100%; max-width: 1400px; display: flex; flex-direction: column; gap: 16px; }

/* REGISTRATION MODULE PANELS VIEW */
.gallery-viewboard { display: flex; flex-direction: column; gap: 24px; animation: fadeIn 0.3s ease; }

.registration-hero-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px;
    display: grid; grid-template-columns: 140px 1fr; gap: 34px; align-items: start; box-shadow: var(--shadow-premium);
}
.reg-left-pane { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.reg-avatar-preview {
    width: 120px; height: 120px; border-radius: 50%; background: #eff6ff; border: 2px dashed #bfdbfe;
    display: flex; justify-content: center; align-items: center; font-size: 48px; color: #60a5fa; overflow: hidden;
}
.reg-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.custom-file-upload {
    display: inline-block; padding: 8px 16px; cursor: pointer; background: #f1f5f9;
    border: 1px solid var(--border-color); border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--text-muted); transition: all 0.2s;
}
.custom-file-upload:hover { background: #e2e8f0; color: var(--text-dark); }
.file-upload-row input[type="file"] { display: none; }

.reg-form-fields h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.reg-form-fields p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }

.registration-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: 100%; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: #475569; }
.form-group input, .form-group select {
    padding: 10px 14px; font-size: 13.5px; border: 1px solid var(--border-color); border-radius: 8px; outline: none; background: #ffffff; width: 100%;
}
.form-group input:focus, .form-group select:focus { border-color: var(--nta-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.exam-catalog-section h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.test-panel-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px;
    box-shadow: var(--shadow-soft); cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; gap: 10px;
}
.test-panel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-premium); border-color: #cbd5e1; }
.card-tag { background: #fef2f2; color: #ef4444; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; align-self: flex-start; }
.test-panel-card h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.meta-strip { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.btn-card-launch { background: #f1f5f9; border: none; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--nta-blue); cursor: pointer; text-align: center; margin-top: 10px; }
.test-panel-card:hover .btn-card-launch { background: var(--nta-blue); color: white; }

/* REPLICATED OFFICIAL SYSTEM CANDIDATE PROFILE HEADER BANNER */
.nta-profile-header {
    background: var(--bg-card); border: 1px solid var(--border-color); padding: 14px 24px;
    display: flex; justify-content: space-between; align-items: center; border-radius: 12px; box-shadow: var(--shadow-soft);
}
.left-profile-cluster { display: flex; align-items: center; gap: 24px; }
.avatar-frame { width: 72px; height: 72px; background: #eff6ff; border: 1px solid #d0e2ff; display: flex; justify-content: center; align-items: center; font-size: 34px; border-radius: 50%; overflow: hidden; }
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.meta-data-columns { display: flex; flex-direction: column; gap: 4px; }
.meta-row { display: flex; font-size: 13px; align-items: center; line-height: 1.3; }
.meta-label { font-weight: 600; width: 110px; color: var(--text-muted); }
.meta-separator { width: 15px; text-align: center; color: #cbd5e1; }
.meta-value { color: var(--text-dark); font-weight: 600; }
.highlight-name { color: #8b5cf6; font-weight: 700; }

.timer-countdown-pill { background: #ef4444; border-radius: 6px; padding: 3px 12px; display: inline-flex; align-items: center; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15); }
#timer-display { color: #ffffff !important; font-weight: 700; font-size: 14px; font-family: monospace; }
.btn-nta-action-view { background: var(--bg-card); border: 1px solid var(--border-color); padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 8px; color: var(--text-dark); transition: all 0.2s ease; }
.btn-nta-action-view:hover { background: #f1f5f9; border-color: #cbd5e1; }

/* BRANCH ROUTERS TAB CONTROL HOOK MATRICES */
.nta-subject-navigation-bar { display: flex; background: var(--bg-card); border: 1px solid var(--border-color); padding: 6px; gap: 6px; border-radius: 10px; box-shadow: var(--shadow-soft); margin-top: 14px; }
.sub-tab { padding: 10px 28px; border: 1px solid transparent; background: transparent; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: 8px; transition: all 0.2s ease; }
.sub-tab:hover { background: #f1f5f9; color: var(--text-dark); }
.sub-tab.active-tab { background: #eff6ff; color: #1d4ed8 !important; border: 1px solid #bfdbfe; font-weight: 700; }

/* CENTRAL CORE EXAMINATION RUNTIME WORKSPACE ENVIRONMENT GRID */
.dashboard-layout { display: grid; grid-template-columns: 1fr 350px; gap: 16px; align-items: start; margin-top: 14px; }
.question-viewport { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; display: flex; flex-direction: column; box-shadow: var(--shadow-premium); overflow: hidden; }
.panel-header { padding: 16px 24px; background: #f8fafc; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.question-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.tag-badge { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border-color); margin-left: 6px; }
.badge-marks { background: #fff7ed; border-color: #ffedd5; color: #c2410c; }
.badge-marks .pos { color: var(--accent-green); }
.badge-marks .neg { color: var(--accent-red); }
.badge-type { background: #f1f5f9; color: var(--text-muted); }

.image-workspace { padding: 30px; background: #ffffff; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.image-workspace img { max-width: 100%; max-height: 440px; object-fit: contain; }

.response-area { padding: 20px 24px; background: #ffffff; border-top: 1px solid var(--border-color); }
.options-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.option-card { background: #f8fafc; border: 2px solid var(--border-color); border-radius: 12px; padding: 14px 0; cursor: pointer; display: flex; justify-content: center; transition: all 0.2s ease; }
.option-card .letter { font-size: 16px; font-weight: 700; color: var(--text-muted); }
.option-card:hover { background: #f1f5f9; border-color: #cbd5e1; transform: translateY(-1px); }
.option-card.selected { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); }
.option-card.selected .letter { color: #2563eb; }

/* THE INTEGRATED DUAL ACTION CONTROL FOOTERS ROW STRIP */
.nta-integrated-control-footer { background: #f8fafc; border-top: 1px solid var(--border-color); padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.control-tier-upper { display: flex; justify-content: flex-start; gap: 8px; width: 100%; flex-wrap: wrap; }
.control-tier-lower { display: flex; justify-content: space-between; align-items: center; width: 100%; border-top: 1px solid var(--border-color); padding-top: 12px; }
.directional-left-cluster { display: flex; gap: 8px; }

.btn-nta { font-size: 12px; font-weight: 700; padding: 12px 20px; border-radius: 6px; cursor: pointer; text-align: center; border: 1px solid var(--border-color); transition: all 0.15s ease; }
.btn-save-next { background: var(--accent-green); color: white; border: none; }
.btn-save-next:hover { background: #059669; }
.btn-clear { background: #ffffff; color: var(--text-dark); }
.btn-clear:hover { background: #f1f5f9; }
.btn-save-mark { background: var(--accent-purple); color: white; border: none; }
.btn-save-mark:hover { background: #4f46e5; }
.btn-mark-review { background: #eab308; color: white; border: none; }
.btn-mark-review:hover { background: #ca8a04; }
.btn-nav-step { background: #ffffff; color: var(--text-dark); min-width: 90px; }
.btn-nta-submit { background: #ef4444; color: white; border: none; min-width: 100px; font-weight: bold; }
.btn-nta-submit:hover { background: #dc2626; }

/* RIGHT PALETTE CONTAINER MATRIX BLOCKS */
.control-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--bg-card); padding: 18px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow-premium); }
.status-summary-card { display: flex; flex-direction: column; gap: 10px; }
.summary-row { display: flex; align-items: center; gap: 14px; }
.summary-label { font-size: 13px; color: var(--text-dark); font-weight: 600; }
.summary-label.text-small { font-size: 11px; line-height: 1.4; color: var(--text-muted); }
.summary-indicator { width: 36px; height: 30px; border-radius: 6px; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: 700; color: white; flex-shrink: 0; }

.palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-height: 270px; overflow-y: auto; padding-right: 4px; }
.palette-item { height: 36px; font-size: 13px; font-weight: 700; display: flex; justify-content: center; align-items: center; cursor: pointer; position: relative; box-shadow: var(--shadow-soft); transition: all 0.15s ease; }
.palette-item:hover { transform: scale(1.08); z-index: 2; }

.palette-item.not-visited, .symbol-unvisited { background: var(--accent-gray) !important; color: var(--text-muted) !important; border: 1px solid #cbd5e1; border-radius: 6px; }
.palette-item.not-answered, .symbol-unanswered { background: var(--accent-red) !important; color: white !important; border-radius: 6px 6px 16px 16px; }
.palette-item.answered, .symbol-answered { background: var(--accent-green) !important; color: white !important; border-radius: 16px 16px 6px 6px; }
.palette-item.marked, .symbol-marked { background: var(--accent-purple) !important; color: white !important; border-radius: 50%; }
.palette-item.saved-marked, .symbol-saved-marked { background: var(--accent-purple) !important; color: white !important; border-radius: 50%; }
.palette-item.saved-marked::after, .symbol-saved-marked::after { content: "✓"; position: absolute; bottom: -3px; right: -3px; width: 14px; height: 14px; background: #059669; color: white; font-size: 9px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid white; }
.palette-item.active { outline: 2px solid var(--nta-blue); outline-offset: 2px; transform: scale(1.05); }

/* EXAM MODAL DIALOG INSTRUCTIONS WINDOWS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 5000; }
.modal-window { background: #ffffff; width: 100%; max-width: 680px; height: 82vh; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); }
.modal-header-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border-color); background: #f8fafc; }
.modal-header-bar h2 { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.close-modal-btn { background: transparent; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }

.modal-scroll-content { padding: 24px; overflow-y: auto; flex-grow: 1; display: flex; flex-direction: column; gap: 14px; }
.exam-meta-title { font-size: 20px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.5px; }
.exam-meta-strip { display: flex; gap: 16px; color: var(--text-muted); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.section-heading { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-top: 8px; }
.ordered-rules-list, .unordered-rules-list { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #475569; line-height: 1.5; }
.sub-instruction-text { font-size: 13.5px; font-weight: 600; color: var(--text-dark); }

.legend-stack { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; padding-left: 4px; }
.legend-item { display: flex; align-items: center; gap: 16px; }
.legend-box { width: 40px; height: 32px; border-radius: 4px; flex-shrink: 0; box-shadow: var(--shadow-soft); }
.legend-text { font-size: 13px; color: #475569; font-weight: 500; line-height: 1.4; }

.modal-start-gate-footer { background: #f8fafc; border-top: 1px solid var(--border-color); padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.declaration-checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.declaration-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; }
.declaration-checkbox-row label { font-size: 12.5px; color: #475569; font-weight: 600; line-height: 1.4; }

.btn-proceed-test { background: var(--accent-green); color: white; border: none; padding: 14px 0; width: 100%; font-size: 14px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-proceed-test:hover:not(:disabled) { background: #059669; }
.btn-proceed-test:disabled { background: #cbd5e1; color: #94a3b8; cursor: not-allowed; }
.modal-footer-banner { background: #fff1f2; color: #e11d48; border-top: 1px solid #fecdd3; padding: 14px; text-align: center; font-weight: 700; font-size: 12px; }

/* ========================================================================= */
/* DIAGNOSTICS REPORT SHEET INTEGRATED DESIGNS PANELS */
/* ========================================================================= */
.result-dashboard { display: flex; justify-content: center; padding: 24px 0; width: 100%; }
.analytics-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.analytics-header { text-align: left; border-bottom: 2px solid var(--border-color); padding-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.analytics-header h2 { font-size: 26px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.75px; }
.analytics-header .subtitle { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.kpi-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-premium); display: flex; flex-direction: column; gap: 12px; transition: all 0.25s; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow), var(--shadow-premium); }

.score-kpi { border-left: 5px solid var(--accent-green); }
.accuracy-kpi { border-left: 5px solid var(--accent-purple); }
.metrics-summary-kpi { border-left: 5px solid var(--nta-blue); }

.kpi-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.kpi-value-container { display: flex; align-items: baseline; gap: 4px; }
.kpi-value-big { font-size: 38px; font-weight: 800; color: var(--text-dark); line-height: 1; letter-spacing: -1px; }
.kpi-value-max { font-size: 15px; font-weight: 700; color: var(--text-muted); }
.kpi-subtext { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

.progress-bar-wrapper { width: 100%; height: 8px; background: #f1f5f9; border-radius: 20px; overflow: hidden; margin-top: auto; border: 1px solid #f1f5f9; }
.progress-fill { height: 100%; width: 0%; border-radius: 20px; transition: width 1.2s ease; }
.progress-fill.green { background: linear-gradient(90deg, #10b981, #059669); }
.progress-fill.purple { background: linear-gradient(90deg, #6366f1, #4f46e5); }

.mini-stats-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: #475569; padding-bottom: 4px; border-bottom: 1px dashed #f1f5f9; }
.mini-row:last-child { border-bottom: none; padding-bottom: 0; }
.mini-row-left { display: flex; align-items: center; gap: 8px; }
.mini-row .bullet { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mini-row .bullet.correct { background: var(--accent-green); box-shadow: 0 0 8px rgba(16,185,129,0.4); }
.mini-row .bullet.incorrect { background: var(--accent-red); box-shadow: 0 0 8px rgba(244,63,94,0.4); }
.mini-row .bullet.skipped { background: #94a3b8; }
.mini-row strong { color: var(--text-dark); font-weight: 700; }

.analytics-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-premium); display: flex; flex-direction: column; gap: 16px; }
.analytics-card h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.25px; }
.section-desc { font-size: 13.5px; color: var(--text-muted); font-weight: 500; margin-top: -6px; }

/* THE VERTICAL NET MARKS DOMAIN COLUMNS CHART GRAPH */
.bar-chart-viewport { display: flex; justify-content: space-around; align-items: flex-end; height: 240px; padding: 20px 40px; background: #f8fafc; border: 1px solid var(--border-color); border-radius: 12px; margin-top: 10px; }
.bar-column { display: flex; flex-direction: column; align-items: center; width: 70px; height: 100%; justify-content: flex-end; gap: 8px; }
.bar-track { width: 24px; height: 160px; background: #e2e8f0; border-radius: 20px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.bar-fill { width: 100%; height: 0%; border-radius: 20px; transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.blue-grad   { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.orange-grad { background: linear-gradient(180deg, #fb923c, #ea580c); }
.green-grad  { background: linear-gradient(180deg, #34d399, #059669); }
.purple-grad { background: linear-gradient(180deg, #a78bfa, #7c3aed); }

.bar-axis-label { font-size: 12px; font-weight: 700; color: #475569; }
.bar-score-label { font-size: 13px; font-weight: 800; color: var(--text-dark); background: #ffffff; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border-color); }

/* THE HIGH-FIDELITY CONIC ACCURACY RATIO DONUT PLOTS */
.pie-charts-flex-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.subject-pie-widget { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.subject-pie-widget h5 { font-size: 13px; font-weight: 700; color: #475569; text-transform: uppercase; }

.nta-donut-chart {
    width: 110px; height: 110px; border-radius: 50%;
    background: conic-gradient(var(--accent-green) 0% var(--slice-correct), var(--accent-red) var(--slice-correct) var(--slice-incorrect), #cbd5e1 var(--slice-incorrect) 100%);
    position: relative; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
}
.nta-donut-chart::after { content: ""; position: absolute; width: 82px; height: 82px; background: var(--bg-card); border-radius: 50%; }
.donut-center-text { position: absolute; z-index: 10; font-size: 16px; font-weight: 800; color: var(--text-dark); }

.pie-widget-legend { display: flex; gap: 8px; width: 100%; justify-content: center; }
.legend-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.legend-pill.c { background: #e6fcf5; color: #0ca678; }
.legend-pill.w { background: #fff5f5; color: #f03e3e; }

/* SUBJECT SUMMARY GRID STABLE PERFORMANCE RECORDS TABLE */
.table-responsive-wrapper { width: 100%; border-radius: 10px; border: 1px solid var(--border-color); overflow: hidden; }
.subject-analysis-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.subject-analysis-table th { padding: 14px 18px; background: #f8fafc; font-weight: 700; color: #475569; border-bottom: 2px solid var(--border-color); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; }
.subject-analysis-table td { padding: 16px 18px; border-bottom: 1px solid var(--border-color); font-weight: 600; color: #334155; }
.subject-analysis-table tr:last-child td { border-bottom: none; }
.subject-analysis-table tr:hover td { background: #f8fafc; }
.subject-analysis-table td .subject-tag { color: var(--nta-blue); font-weight: 700; background: #eff6ff; padding: 4px 10px; border-radius: 6px; border: 1px solid #d0e2ff; }

/* THE RESPONSE AUDITING CELLS REVIEW ENGINE */
.audit-matrix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 12px; max-height: 350px; overflow-y: auto; padding: 4px; }
.audit-matrix-grid::-webkit-scrollbar { width: 6px; }
.audit-matrix-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.audit-cell-block { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s ease; }
.audit-cell-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: #cbd5e1; }
.audit-cell-block .q-index { color: var(--text-muted); font-size: 11.5px; font-weight: bold; }
.audit-badge { width: 100%; padding: 4px 0; border-radius: 6px; text-align: center; font-size: 11px; font-weight: 700; }
.audit-badge.user-ans { background: #f8fafc; color: var(--text-muted); border: 1px dashed #cbd5e1; }
.audit-badge.user-ans.match { background: #e6fcf5; color: #0ca678; border: 1px solid #c3fae8; }
.audit-badge.user-ans.mismatch { background: #fff5f5; color: #f03e3e; border: 1px solid #ffe3e3; }
.audit-badge.key-ans { background: #edf2ff; color: #3b5bdb; border: 1px solid #dbe4ff; }

.analytics-action-footer { display: flex; justify-content: center; gap: 14px; padding: 12px 0; }

.analytics-container .btn-restart-test { background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; padding: 14px 44px; font-size: 14px; font-weight: 700; border-radius: 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); transition: all 0.25s; }
.analytics-container .btn-restart-test:hover { background: linear-gradient(135deg, #059669, #047857); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }

.analytics-container .btn-download-report { background: linear-gradient(135deg, var(--nta-blue), #1d4ed8); color: white; border: none; padding: 14px 36px; font-size: 14px; font-weight: 700; border-radius: 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3); transition: all 0.25s; }
.analytics-container .btn-download-report:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }

.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ========================================================================= */
/* ADAPTIVE VISIBILITY CONTROL STATE ENGINE SYSTEM MATRIX */
/* ========================================================================= */
#test-view.results-mode .btn-nta-action-view,
#test-view.results-mode .nta-subject-navigation-bar {
    display: none !important;
}

@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    body { background: #ffffff !important; color: #000000 !important; padding: 0 !important; }
    .app-wrapper { max-width: 100% !important; }
    .analytics-action-footer { display: none !important; }
    /* Completely hide operational workspace strips from the compiled print sheets */
    .btn-nta-action-view, .nta-subject-navigation-bar { display: none !important; }
    .analytics-container { gap: 30px !important; }
    .analytics-card { box-shadow: none !important; border: 1px solid #cbd5e1 !important; page-break-inside: avoid !important; }
    .audit-matrix-grid { max-height: none !important; overflow: visible !important; display: grid !important; }
}