.rv-admin{--blue:#2563eb;--navy:#13233f;--muted:#718198;--border:#e1e8f2;--bg:#f6f8fc;max-width:1240px;margin:0 auto;padding:10px 0 28px;color:var(--navy);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.rv-admin *{box-sizing:border-box}.rv-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 22px;margin-bottom:18px;background:linear-gradient(135deg,#eef4ff,#fff);border:1px solid var(--border);border-radius:18px}.rv-kicker{display:inline-block;color:var(--blue);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.rv-page-head h1{margin:5px 0 6px;font-size:30px;line-height:1.15}.rv-page-head p{margin:0;max-width:760px;color:var(--muted);font-size:13px;line-height:1.55}.rv-actions{display:flex;gap:8px;flex-wrap:wrap}.rv-btn{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:8px 14px;border:1px solid #cfdbea;border-radius:10px;background:#fff;color:#38516f;text-decoration:none!important;font-weight:700;cursor:pointer}.rv-btn.primary{border-color:#2563eb;background:linear-gradient(135deg,#2f76ff,#1e5ed7);color:#fff!important}.rv-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.rv-stat{padding:16px;border-radius:16px;border:1px solid var(--border);background:#fff;box-shadow:0 8px 20px rgba(32,58,96,.04)}.rv-stat span,.rv-stat small{display:block;color:var(--muted);font-size:11px}.rv-stat strong{display:block;margin:7px 0 5px;font-size:27px}.rv-stat.blue{background:#f4f8ff}.rv-stat.purple{background:#faf6ff}.rv-stat.green{background:#f2fbf7}.rv-stat.orange{background:#fff8ef}.rv-grid{display:grid;gap:16px;margin-bottom:18px}.rv-grid.two{grid-template-columns:1fr 1fr}.rv-grid.form-list{grid-template-columns:minmax(340px,.85fr) minmax(480px,1.45fr)}.rv-card{padding:18px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(32,58,96,.04);margin-bottom:18px}.rv-card h2{margin:0 0 14px;font-size:20px}.rv-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.rv-card-head h2{margin:0}.rv-card-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.rv-link{color:var(--blue);font-weight:700;text-decoration:none}.rv-flow{display:grid;gap:9px}.rv-flow a{display:flex;gap:12px;align-items:center;padding:12px;border-radius:13px;background:#f8faff;border:1px solid #e7edf6;color:inherit;text-decoration:none!important}.rv-flow b{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#e7f0ff;color:var(--blue)}.rv-flow strong,.rv-flow small{display:block}.rv-flow small{margin-top:3px;color:var(--muted)}.rv-ai-box{display:flex;gap:14px;padding:16px;border-radius:14px;background:linear-gradient(135deg,#f2f6ff,#fbf8ff)}.rv-ai-icon{font-size:32px;color:#7c3aed}.rv-ai-box p{margin:5px 0 0;color:var(--muted);font-size:12px}.rv-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.rv-mini-grid div{padding:12px;border:1px solid var(--border);border-radius:12px}.rv-mini-grid strong,.rv-mini-grid span{display:block}.rv-mini-grid span{color:var(--muted);font-size:11px}.rv-form{display:grid;gap:12px}.rv-form label{display:block;color:#425674;font-size:12px;font-weight:700}.rv-form input,.rv-form select,.rv-form textarea,.rv-search input{width:100%;margin-top:6px;border:1px solid #d4deeb;border-radius:10px;padding:9px 11px;background:#fff;color:#263c5b;outline:none}.rv-form input,.rv-form select{height:40px}.rv-form textarea{resize:vertical}.rv-fields{display:grid;gap:10px}.rv-fields.two{grid-template-columns:1fr 1fr}.rv-checks{display:flex;gap:14px;flex-wrap:wrap}.rv-checks label{display:flex;align-items:center;gap:6px;font-weight:500}.rv-checks input{width:auto;height:auto;margin:0}.rv-alert{padding:11px 13px;border-radius:10px;margin-bottom:12px}.rv-alert.success{background:#e9f9f1;color:#147a4d}.rv-alert.danger{background:#feeeee;color:#b84747}.rv-question-list{display:grid;gap:9px;max-height:720px;overflow:auto}.rv-question-item{display:flex;justify-content:space-between;gap:12px;padding:13px;border:1px solid #e6edf6;border-radius:13px;background:#fbfdff}.rv-question-item strong{display:block;margin-top:6px}.rv-question-item p{margin:5px 0;color:#64758b;font-size:12px}.rv-question-item small{color:#8b9aab}.rv-type{display:inline-block;padding:4px 8px;border-radius:999px;background:#edf4ff;color:#2b67c8;font-size:10px;font-weight:700}.rv-row-actions{display:flex;gap:8px;align-items:flex-start}.rv-row-actions a{color:#2563eb;font-weight:700;text-decoration:none}.rv-row-actions a.danger{color:#d14c4c}.rv-search{display:flex;gap:6px}.rv-search input{margin:0;min-width:220px}.rv-search button{border:0;border-radius:9px;padding:0 12px;background:#2563eb;color:#fff}.rv-table-wrap{overflow:auto}.rv-table{width:100%;border-collapse:collapse}.rv-table th,.rv-table td{padding:11px 9px;border-bottom:1px solid #e6edf5;text-align:left;font-size:12px}.rv-table th{background:#f5f8fc;color:#607189}.rv-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef4ff;color:#36669f;font-size:10px}.rv-column-guide{display:flex;flex-wrap:wrap;gap:7px}.rv-column-guide code{padding:6px 8px;border-radius:8px;background:#f1f5fa;color:#315275}.rv-progress-chart{min-height:240px;padding:14px;border-radius:13px;background:#f8faff}.rv-progress-row{display:flex;align-items:flex-end;gap:4px;height:150px;padding:10px;border-bottom:1px solid #dfe7f0}.rv-progress-bar{flex:1;min-width:18px;border-radius:7px 7px 0 0;background:linear-gradient(180deg,#6e8fff,#2d6df6)}.rv-progress-label{margin-top:7px;font-size:11px;color:#75869d}.rv-essay-fields{display:none}.rv-essay-mode .rv-essay-fields{display:block}.rv-essay-mode .rv-mcq-fields{display:none}@media(max-width:980px){.rv-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rv-grid.two,.rv-grid.form-list{grid-template-columns:1fr}.rv-page-head{flex-direction:column}.rv-fields.two{grid-template-columns:1fr 1fr}}@media(max-width:620px){.rv-stats,.rv-fields.two{grid-template-columns:1fr}.rv-admin{padding-left:6px;padding-right:6px}.rv-question-item{flex-direction:column}}
.rv-essay-review-list{display:grid;gap:10px;margin-bottom:14px}.rv-essay-review{padding:14px;border:1px solid #e4ebf4;border-radius:13px;background:#fbfdff}.rv-essay-review p{margin:7px 0;color:#607189;font-size:12px;line-height:1.5}

/* v4.0.30 - XLSX import compatibility fix */
.rv-import-steps,.rv-assignment-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.rv-import-steps>div,.rv-assignment-summary>div{display:flex;align-items:center;gap:10px;padding:13px 14px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(32,58,96,.035)}.rv-import-steps>div>span:first-child{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:#eaf2ff;color:var(--blue);font-weight:800}.rv-import-steps strong,.rv-import-steps small,.rv-assignment-summary strong,.rv-assignment-summary span{display:block}.rv-import-steps small,.rv-assignment-summary span{color:var(--muted);font-size:11px;margin-top:2px}.rv-assignment-summary i{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#edf4ff;color:#2563eb;font-size:15px}.rv-upload-card{min-height:100%}.rv-dropzone{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:190px;padding:22px!important;border:2px dashed #b9cceb!important;border-radius:16px!important;background:#f7faff!important;text-align:center;cursor:pointer}.rv-dropzone i{font-size:34px;color:#2563eb;margin-bottom:9px}.rv-dropzone strong{font-size:15px;color:#2c4566}.rv-dropzone span{display:block;color:var(--muted);font-weight:500;margin-top:4px}.rv-dropzone input{height:auto!important;border:0!important;padding:10px 0 0!important;background:transparent!important}.rv-check{display:flex!important;align-items:center;gap:7px!important;font-weight:500!important}.rv-check input{width:auto!important;height:auto!important;margin:0!important}.rv-btn-block{width:100%}.rv-field-guide{display:grid;grid-template-columns:1fr;gap:7px}.rv-field-guide>div{display:grid;grid-template-columns:minmax(130px,.8fr) 1.4fr;gap:10px;align-items:center;padding:8px 10px;border:1px solid #e6edf6;border-radius:10px;background:#fbfdff}.rv-field-guide code{color:#245fae;font-weight:700}.rv-field-guide span{color:#6b7c91;font-size:12px}.rv-template-note{display:flex;gap:9px;align-items:flex-start;margin-top:12px;padding:11px 12px;border-radius:11px;background:#eef5ff;color:#526b8d;font-size:12px;line-height:1.45}.rv-template-note i{color:#2563eb;margin-top:2px}.rv-template-note.success{background:#edf9f3;color:#3f725c}.rv-template-note.success i{color:#14945a}.rv-import-errors{margin:7px 0 0 18px;padding:0}.rv-alert.warning{background:#fff7e6;color:#9b6b16}.rv-rule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.rv-rule-grid>div{padding:12px;border:1px solid #e6edf6;border-radius:12px;background:#fbfdff}.rv-rule-grid i{display:block;color:#2563eb;font-size:18px;margin-bottom:8px}.rv-rule-grid strong,.rv-rule-grid span{display:block}.rv-rule-grid span{margin-top:4px;color:#6c7d92;font-size:11px;line-height:1.45}.rv-member-methods{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rv-member-method{padding:12px;border:1px solid #e4ebf4;border-radius:13px;background:#fbfdff}.rv-member-method.is-excel{background:#f4fbf7;border-color:#dcefe5}.rv-member-method-head{display:flex;gap:9px;align-items:center;margin-bottom:9px}.rv-member-method-head i{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:#eaf2ff;color:#2563eb}.rv-member-method.is-excel .rv-member-method-head i{background:#e3f7ec;color:#16945a}.rv-member-method-head strong,.rv-member-method-head span{display:block}.rv-member-method-head span{color:var(--muted);font-size:11px;margin-top:2px}.rv-member-method textarea,.rv-member-method input[type=file]{width:100%;border:1px solid #d7e1ee;border-radius:10px;padding:9px;background:#fff}.rv-template-mini{display:grid;gap:5px;margin-top:9px}.rv-template-mini a{color:#148454;font-weight:700;text-decoration:none}.rv-template-mini span{color:#6b7c91;font-size:11px;line-height:1.45}.rv-assignment-row{align-items:center}.rv-assignment-meta{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.rv-assignment-meta span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:#eef4ff;color:#48698f;font-size:10px;white-space:nowrap}
@media(max-width:980px){.rv-import-steps,.rv-assignment-summary,.rv-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rv-member-methods{grid-template-columns:1fr}}@media(max-width:620px){.rv-import-steps,.rv-assignment-summary,.rv-rule-grid{grid-template-columns:1fr}.rv-field-guide>div{grid-template-columns:1fr}.rv-assignment-meta{justify-content:flex-start}}


/* v4.0.32 - frontend site UI fix */
.rv-site{--rv-blue:#2563eb;--rv-blue-dark:#1649b8;--rv-navy:#152742;--rv-muted:#6f8098;--rv-border:#dfe7f1;--rv-card:#ffffff;--rv-bg:#f5f8fc;max-width:100%;width:100%;margin:0 auto 24px;padding:12px 0 6px;color:var(--rv-navy);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}.rv-site *{box-sizing:border-box}.rv-site-head,.rv-exam-header,.rv-result-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:24px;border:1px solid var(--rv-border);border-radius:22px;background:linear-gradient(135deg,#f5f9ff 0%,#ffffff 100%);box-shadow:0 10px 28px rgba(31,63,115,.06);margin-bottom:18px}.rv-site-kicker{display:inline-block;padding:6px 10px;border-radius:999px;background:#e9f1ff;color:var(--rv-blue);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.rv-site h1,.rv-exam-header h1,.rv-result-hero h1{margin:8px 0 8px;font-size:40px;line-height:1.12;color:#12233d}.rv-site p,.rv-exam-header p,.rv-result-hero p{margin:0;color:var(--rv-muted);font-size:15px;line-height:1.65}.rv-user-chip{min-width:220px;padding:16px 18px;border:1px solid var(--rv-border);border-radius:18px;background:#fff}.rv-user-chip span{display:block;color:var(--rv-muted);font-size:13px}.rv-user-chip strong{display:block;margin-top:8px;font-size:22px;color:#183865}.rv-site-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.rv-site-stats>div{padding:18px;border-radius:18px;border:1px solid var(--rv-border);background:var(--rv-card);box-shadow:0 8px 22px rgba(31,63,115,.05)}.rv-site-stats span{display:block;color:var(--rv-muted);font-size:13px}.rv-site-stats strong{display:block;margin-top:8px;font-size:32px;line-height:1.1;color:#112747}.rv-site-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:18px}.rv-site-card{padding:20px;border:1px solid var(--rv-border);border-radius:20px;background:var(--rv-card);box-shadow:0 10px 25px rgba(31,63,115,.05)}.rv-site-card h2{margin:0 0 4px;font-size:24px;color:#12233d}.rv-site-card-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px}.rv-site-card-head p,.rv-muted{color:var(--rv-muted);font-size:14px;line-height:1.55}.rv-exam-list,.rv-history-list,.rv-question-stack{display:grid;gap:14px}.rv-exam-card,.rv-history-item,.rv-question-card{padding:18px;border:1px solid var(--rv-border);border-radius:18px;background:#fbfdff}.rv-exam-card h3,.rv-question-card h3{margin:12px 0 8px;font-size:22px;line-height:1.35}.rv-exam-card p{margin:0;color:var(--rv-muted);font-size:14px;line-height:1.55}.rv-exam-top,.rv-question-head,.rv-exam-meta,.rv-submit-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center}.rv-tag{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;background:#edf3ff;color:var(--rv-blue);font-size:12px;font-weight:700}.rv-exam-meta span,.rv-question-head span{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#f1f5fa;color:#5f728c;font-size:12px}.rv-site-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:12px;background:linear-gradient(135deg,var(--rv-blue) 0%,var(--rv-blue-dark) 100%);color:#fff!important;border:none;text-decoration:none!important;font-weight:700;cursor:pointer;box-shadow:0 10px 24px rgba(37,99,235,.22)}.rv-site-btn:hover{opacity:.95}.rv-disabled{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border-radius:12px;background:#eef2f7;color:#76879e;font-size:13px;font-weight:700}.rv-history-item{display:flex;justify-content:space-between;align-items:center;gap:14px;color:inherit;text-decoration:none!important}.rv-history-item strong{display:block;font-size:16px;color:#183152}.rv-history-item small{display:block;margin-top:4px;color:var(--rv-muted);font-size:13px}.rv-history-item span{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:10px 12px;border-radius:14px;background:#edf3ff;color:var(--rv-blue);font-size:22px;font-weight:800}.rv-empty{padding:20px;border:1px dashed #c8d7eb;border-radius:18px;background:#fbfdff;color:#43607e}.rv-empty strong{display:block;font-size:18px;color:#1a3558}.rv-empty span{display:block;margin-top:6px;color:var(--rv-muted);font-size:14px;line-height:1.55}.rv-empty-inline{margin-top:12px}.rv-exam-page{max-width:100%}.rv-timer{min-width:210px;padding:16px 18px;border-radius:18px;background:#fff;border:1px solid var(--rv-border);text-align:center}.rv-timer span{display:block;color:var(--rv-muted);font-size:13px}.rv-timer strong{display:block;margin-top:8px;font-size:36px;color:var(--rv-blue)}.rv-question-card textarea{width:100%;min-height:180px;padding:14px;border:1px solid #d5dfec;border-radius:14px;background:#fff;font:inherit;color:#17304d;resize:vertical;outline:none}.rv-options{display:grid;gap:12px;margin-top:12px}.rv-options label{display:grid;grid-template-columns:auto auto 1fr;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid #dce6f1;border-radius:14px;background:#fff;cursor:pointer;transition:.18s ease}.rv-options label:hover{border-color:#b7cbec;background:#f8fbff}.rv-options input{margin-top:3px}.rv-options span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:#edf3ff;color:var(--rv-blue);font-size:13px;font-weight:700}.rv-submit-bar{margin-top:18px;padding:18px;border-radius:18px;background:#f7faff;border:1px solid var(--rv-border)}.rv-submit-bar span{color:var(--rv-muted);font-size:14px}.rv-score-circle{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:152px;min-height:152px;border-radius:999px;background:linear-gradient(135deg,#2d6df6 0%,#173fa6 100%);color:#fff;box-shadow:0 14px 32px rgba(23,63,166,.22)}.rv-score-circle strong{font-size:48px;line-height:1}.rv-score-circle span{margin-top:6px;font-size:15px;opacity:.92}.rv-trend-chart{display:flex;align-items:flex-end;gap:12px;min-height:250px;padding:12px;border:1px solid var(--rv-border);border-radius:16px;background:#fbfdff}.rv-trend-bar{flex:1;display:flex;align-items:flex-start;justify-content:center;position:relative;min-width:38px;max-width:72px;border-radius:14px 14px 8px 8px;background:linear-gradient(180deg,#7ea4ff 0%,#2d6df6 100%)}.rv-trend-bar span{position:absolute;bottom:-28px;left:50%;transform:translateX(-50%);font-size:12px;color:#5f728c;font-weight:700}.rv-feedback{min-height:112px;padding:14px 16px;border:1px solid var(--rv-border);border-radius:16px;background:#fbfdff;color:#314964;line-height:1.65;white-space:pre-line;margin-bottom:16px}.rv-feedback:empty:before{content:'Chưa có nhận xét.';color:#7b8ca3}.rv-breadcrumb-fix .fr.breadcrumb{margin-bottom:14px}@media(max-width:1100px){.rv-site-grid{grid-template-columns:1fr}.rv-site-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:768px){.rv-site{padding:6px 0 0}.rv-site-head,.rv-exam-header,.rv-result-hero,.rv-submit-bar{flex-direction:column;align-items:flex-start}.rv-site h1,.rv-exam-header h1,.rv-result-hero h1{font-size:30px}.rv-user-chip,.rv-timer,.rv-score-circle{min-width:0;width:100%}.rv-score-circle{min-height:140px;border-radius:28px}.rv-history-item{flex-direction:column;align-items:flex-start}.rv-history-item span{min-width:0}}@media(max-width:580px){.rv-site-stats{grid-template-columns:1fr}.rv-question-card,.rv-site-card,.rv-exam-card{padding:16px}.rv-trend-chart{gap:8px;padding-bottom:34px}.rv-trend-bar{min-width:28px}}

/* v4.0.34 - result page fallback + clearer result dashboard */
.rv-result-notice{margin-bottom:14px;padding:12px 14px;border:1px solid #d4e3fa;border-radius:14px;background:#f3f8ff;color:#38628f;font-size:13px;font-weight:700}.rv-result-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:18px;margin-bottom:18px}.rv-result-history{display:grid;gap:9px}.rv-result-history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #e2eaf4;border-radius:13px;background:#fbfdff;color:inherit;text-decoration:none!important;transition:.16s ease}.rv-result-history-item:hover{border-color:#bed0ec;background:#f7fbff}.rv-result-history-item.is-active{border-color:#8eb2ee;background:#eef5ff;box-shadow:inset 3px 0 0 #2563eb}.rv-result-history-item strong,.rv-result-history-item small{display:block}.rv-result-history-item small{margin-top:3px;color:#74859b;font-size:11px}.rv-result-history-item>span{display:inline-flex;align-items:center;justify-content:center;min-width:60px;padding:7px 10px;border-radius:11px;background:#edf3ff;color:#2563eb;font-size:18px;font-weight:800}.rv-result-feedback-grid{margin-top:0}.rv-result-actions{display:flex;justify-content:flex-end;margin-top:18px}.rv-result-empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:180px;justify-content:center}.rv-result-empty .rv-site-btn{margin-top:6px}.rv-result-page .rv-trend-chart{padding-bottom:38px}.rv-result-page .rv-site-card h2{margin-top:0}@media(max-width:980px){.rv-result-layout{grid-template-columns:1fr}}@media(max-width:640px){.rv-result-actions{justify-content:stretch}.rv-result-actions .rv-site-btn{width:100%}}
