/* v17 chấm bài: báo cáo band + 4 tiêu chí + lỗi trên bài + viết lại theo band + luyện tiếp. */
.gr-page{--c-TR:#1553a5;--c-TR-bg:#e6effb;--c-TA:#1553a5;--c-TA-bg:#e6effb;--c-CC:#0b6b5f;--c-CC-bg:#dff3ee;--c-LR:#6a3fb0;--c-LR-bg:#efe8fb;--c-GRA:#a4470b;--c-GRA-bg:#fdecdc;--c-FC:#0b6b5f;--c-FC-bg:#dff3ee;--c-PR:#8a2f5c;--c-PR-bg:#f9e6ef;--gold:#e8b100}
.gr-page [data-crit=TR]{--c:var(--c-TR);--cb:var(--c-TR-bg)}.gr-page [data-crit=TA]{--c:var(--c-TA);--cb:var(--c-TA-bg)}.gr-page [data-crit=CC]{--c:var(--c-CC);--cb:var(--c-CC-bg)}.gr-page [data-crit=LR]{--c:var(--c-LR);--cb:var(--c-LR-bg)}.gr-page [data-crit=GRA]{--c:var(--c-GRA);--cb:var(--c-GRA-bg)}.gr-page [data-crit=FC]{--c:var(--c-FC);--cb:var(--c-FC-bg)}.gr-page [data-crit=PR]{--c:var(--c-PR);--cb:var(--c-PR-bg)}
.gr-page [data-crit=""]{--c:#526d8c;--cb:#eef3f9}

/* Header actions: sample + back */
.gr-head-actions{display:flex;gap:8px;flex:0 0 auto}
.gr-back-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 16px;border-radius:999px;border:0;background:#14345d;color:#fff;font-weight:700;font-size:13px;cursor:pointer;box-shadow:0 6px 16px rgba(20,52,93,.18);transition:background .16s,transform .16s}
.gr-back-button:hover{background:#1553a5}.gr-back-button:active{transform:translateY(1px)}
.gr-back-button span{font-size:16px;line-height:1}
.gr-sample-button{min-height:44px}
.gr-report.is-sample{border-color:#e8c766;box-shadow:0 0 0 3px #fff3c9}
.gr-sample-disclosure strong{color:#4a3c0d}

/* Overview */
.gr-report-summary{gap:14px;background:linear-gradient(180deg,#f1f6fd,#fff)}
.gr-ov{display:flex;gap:22px;align-items:stretch}
.gr-ov-band{flex:0 0 132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:14px 10px;border-radius:16px;background:#14345d;color:#fff;text-align:center;position:relative;overflow:hidden}
.gr-ov-band:after{content:'';position:absolute;inset:auto -20px -36px auto;width:90px;height:90px;border-radius:50%;background:rgba(232,177,0,.22)}
.gr-ov-band span{font-size:11px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:#cfe0f6}
.gr-ov-band strong{font-family:var(--display,'Baloo 2',sans-serif);font-size:50px;line-height:1.05;font-variant-numeric:tabular-nums;color:#ffd75e}
.gr-ov-band small{font-size:12px;color:#e5eefa;font-variant-numeric:tabular-nums}
.gr-ov-body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:10px}
.gr-ov-body p{margin:0;font-size:14px;line-height:1.75}
.gr-ov-meta{font-size:12px!important;color:#526d8c}
.gr-ov-scale{position:relative;padding-bottom:16px}
.gr-ov-track{display:block;position:relative;height:8px;border-radius:99px;background:#dbe6f4}
.gr-ov-track i{position:absolute;top:-3px;height:14px;border-radius:99px;background:rgba(21,83,165,.25);border:1px solid rgba(21,83,165,.45);box-sizing:border-box}
.gr-ov-track b{position:absolute;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:var(--gold);border:3px solid #14345d;box-sizing:border-box}
.gr-ov-ticks{position:absolute;inset:auto 0 0 0;height:14px}
.gr-ov-ticks em{position:absolute;transform:translateX(-50%);font-style:normal;font-size:10px;color:#64778c;font-variant-numeric:tabular-nums}
.gr-ov-crit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.gr-ov-crit button{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;padding:6px 12px;border-radius:12px;border:1px solid transparent;background:var(--cb);color:var(--c);cursor:pointer;font-weight:700;font-size:13px;transition:border-color .16s,transform .16s}
.gr-ov-crit button:hover{border-color:var(--c)}.gr-ov-crit button:active{transform:translateY(1px)}
.gr-ov-crit strong{font-size:17px;font-variant-numeric:tabular-nums;color:#14345d}

/* Tabs */
.gr-report-tabs button{font-size:13px}

/* Criteria */
.gr-crit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gr-crit-card{border:1px solid var(--gr-line);border-top:4px solid var(--c);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:9px;background:#fff;outline-offset:3px}
.gr-crit-card:focus{outline:3px solid #c28c00}
.gr-crit-card header{display:flex;gap:11px;align-items:flex-start}
.gr-crit-code{flex:0 0 auto;display:grid;place-items:center;min-width:40px;height:40px;padding:0 6px;border-radius:11px;background:var(--cb);color:var(--c);font-weight:800;font-size:13px;box-sizing:border-box}
.gr-crit-card header div{flex:1;min-width:0}
.gr-page .gr-crit-card h3{font-size:14px;line-height:1.35;margin:0}
.gr-crit-card header p{margin:2px 0 0;font-size:12px;color:#526d8c}
.gr-crit-card header strong{font-family:var(--display,'Baloo 2',sans-serif);font-size:28px;line-height:1;color:var(--c);font-variant-numeric:tabular-nums}
.gr-crit-bar{display:block;height:6px;border-radius:99px;background:#e6edf6;overflow:hidden}
.gr-crit-bar i{display:block;height:100%;background:var(--c);border-radius:inherit}
.gr-crit-card>p{margin:0;font-size:13px;line-height:1.75;color:#2c4a6b}
.gr-crit-good b{color:#1b6746}.gr-crit-next{background:var(--cb);border-radius:9px;padding:9px 11px}.gr-crit-next b{color:var(--c)}
.gr-crit-card .gr-link{align-self:flex-start;font-size:13px;color:var(--c);min-height:32px}
.gr-page h3.gr-sub{font-size:15px;margin:26px 0 12px}
.gr-note-item h4{font-size:15px;margin:0 0 7px;line-height:1.5}

/* Criterion tag */
.gr-ctag{display:inline-block;padding:1px 7px;border-radius:6px;background:var(--cb);color:var(--c);font-size:11px;font-weight:800;letter-spacing:.02em;vertical-align:2px}

/* Errors on essay */
.gr-filter{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.gr-filter button{min-height:40px;padding:6px 12px;border-radius:999px;border:1px solid #c8d7ea;background:#fff;color:#2c4a6b;font-weight:700;font-size:12px;cursor:pointer}
.gr-filter button[data-crit]{color:var(--c)}
.gr-filter button b{font-variant-numeric:tabular-nums;opacity:.75;margin-left:2px}
.gr-filter button:hover{border-color:#1553a5}
.gr-filter button[aria-pressed=true]{background:#14345d;border-color:#14345d;color:#fff}
.gr-filter button[data-crit][aria-pressed=true]{background:var(--c);border-color:var(--c)}
.gr-mk-hint{margin:0 0 10px}
.gr-mk-essay{background:#fbfdff;border:1px solid var(--gr-line);border-radius:12px;padding:16px 18px;font-size:15px;line-height:2.05;color:#14345d}
.gr-mk-essay>p{margin:0 0 14px}.gr-mk-essay>p:last-child{margin-bottom:0}
.gr-mk{font:inherit;line-height:inherit;color:inherit;background:var(--cb);border:0;border-bottom:2px solid var(--c);border-radius:4px 4px 0 0;padding:1px 3px;cursor:pointer;transition:background .15s;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.gr-mk sup{font-size:10px;font-weight:800;color:var(--c);padding-left:2px;line-height:0}
.gr-mk:hover{filter:saturate(1.4) brightness(.97)}
.gr-mk[aria-expanded=true]{background:var(--c);color:#fff}.gr-mk[aria-expanded=true] sup{color:#fff}
.gr-mk-card{margin:-4px 0 16px;border:1px solid var(--c);border-left:5px solid var(--c);border-radius:12px;background:#fff;padding:12px 14px 10px;font-family:var(--font,'Be Vietnam Pro',sans-serif);line-height:1.7;box-shadow:0 10px 26px rgba(20,52,93,.12);animation:gr-pop .2s ease-out}
@keyframes gr-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.gr-mk-card header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-right:34px;position:relative}
.gr-mk-card header small{font-size:11px;font-weight:800;color:#526d8c;text-transform:uppercase;letter-spacing:.05em}
.gr-mk-card h4{flex-basis:100%;font-size:14px;margin:2px 0 4px;color:#14345d}
.gr-mk-close{position:absolute;right:-6px;top:-4px;width:40px;height:40px;border:0;background:none;font-size:22px;color:#526d8c;cursor:pointer;border-radius:8px}
.gr-mk-close:hover{background:#eef3f9;color:#14345d}
.gr-mk-was,.gr-mk-fix{display:flex;gap:10px;align-items:baseline;margin:0 0 4px;font-size:14px}
.gr-mk-was span,.gr-mk-fix span{flex:0 0 66px;font-size:11px;font-weight:700;color:#526d8c;text-transform:uppercase;letter-spacing:.04em}
.gr-mk-was s{color:#a72b34;text-decoration-thickness:1.5px}
.gr-mk-fix b{color:#1b6746}
.gr-mk-why{font-size:13px;color:#2c4a6b;margin:6px 0 4px;padding-top:8px;border-top:1px dashed var(--gr-line)}
.gr-mk-nav{display:flex;justify-content:space-between;gap:10px}.gr-mk-nav .gr-link{font-size:12px;min-height:36px}
.gr-mk-list{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.gr-mk-list button{display:flex;align-items:baseline;gap:8px;width:100%;text-align:left;border:0;background:none;padding:9px 10px;border-radius:9px;cursor:pointer;font-size:13px;color:#14345d;line-height:1.6;min-height:44px}
.gr-mk-list button:hover,.gr-mk-list button[aria-current=true]{background:#f0f5fc}
.gr-mk-list small{flex:0 0 18px;font-weight:800;color:#526d8c;font-variant-numeric:tabular-nums}
.gr-mk-list s{color:#a72b34}.gr-mk-list b{color:#1b6746;font-weight:650}
.gr-whole h4 small{color:#526d8c;margin-right:2px}
.gr-whole p{margin:6px 0 0!important}

/* Rewrite by band */
.gr-band-select{flex-wrap:wrap;align-items:center;justify-content:flex-start}
.gr-band-select>span{font-size:13px;font-weight:700}
.gr-band-chips{display:flex;flex-wrap:wrap;gap:6px}
.gr-band-chips button{min-width:56px;min-height:44px;padding:6px 12px;border-radius:12px;border:1px solid #c8d7ea;background:#fff;color:#14345d;font-weight:800;font-size:14px;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .15s,border-color .15s}
.gr-band-chips button:hover{border-color:#1553a5;background:#f0f5fc}
.gr-band-chips button[aria-checked=true]{background:#14345d;border-color:#14345d;color:#ffd75e}
.gr-rewrite-original,.gr-rewrite-text{position:relative}
.gr-rewrite-original span,.gr-rewrite-text span{display:block;font-family:var(--font,'Be Vietnam Pro',sans-serif);font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;margin-bottom:2px}
.gr-rewrite-original{font-size:13px!important;padding:10px 14px;border-radius:9px;background:#f6f8fb;margin-bottom:6px!important}
.gr-rewrite-original span{color:#64778c}
.gr-rewrite-text{border-left:4px solid #1553a5}
.gr-rewrite-text span{color:#1553a5}

/* Next practice */
.gr-practice-lead{margin:0 0 12px}
.gr-next{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.gr-next li{display:flex;gap:14px;padding:16px;border:1px solid var(--gr-line);border-radius:14px;background:#fff}
.gr-next-num{flex:0 0 36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ffd75e;color:#14345d;font-weight:800;font-family:var(--display,'Baloo 2',sans-serif);font-size:18px}
.gr-next li>div{flex:1;min-width:0}
.gr-page .gr-next h3{font-size:15px;margin:4px 0 6px}
.gr-next p{font-size:13px;line-height:1.75;margin:0 0 10px;color:#2c4a6b}
.gr-next-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.gr-next-foot small{font-size:12px;color:#526d8c}
.gr-page a.gr-next-cta{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:8px 16px;border-radius:999px;background:#1553a5;color:#fff;font-weight:700;font-size:13px;text-decoration:none;margin-left:auto}
.gr-page a.gr-next-cta:hover{background:#0b3975}

/* Job steps */
.gr-steps{list-style:none;padding:0;margin:12px 0 4px;display:grid;gap:6px;counter-reset:st}
.gr-steps li{counter-increment:st;display:flex;gap:10px;align-items:center;font-size:13px;color:#526d8c}
.gr-steps li:before{content:counter(st);width:24px;height:24px;flex:0 0 24px;border-radius:50%;display:grid;place-items:center;border:1px solid #b7cae1;font-weight:700;font-size:12px}
.gr-steps li[data-step=done]{color:#1b6746}.gr-steps li[data-step=done]:before{content:'✓';background:#dff3e8;border-color:#1b6746}
.gr-steps li[data-step=now]{color:#14345d;font-weight:700}.gr-steps li[data-step=now]:before{background:#14345d;color:#fff;border-color:#14345d}

/* Footer actions + quota */
.gr-report-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px 24px 22px;border-top:1px solid var(--gr-line);background:#fbfdff}
.gr-report-actions .btn{min-height:46px;font-size:14px;padding:10px 18px}
.gr-report-actions .gr-btn-secondary{min-height:46px}
.gr-quota{font-size:12px;color:#365879;background:#f0f5fc;border-radius:9px;padding:9px 12px;margin:16px 0 0;line-height:1.7}

@media (max-width:1180px){.gr-ov{flex-direction:column}.gr-ov-band{flex-basis:auto;flex-direction:row;gap:12px;justify-content:flex-start;padding:12px 16px}.gr-ov-band strong{font-size:40px}.gr-crit-grid{grid-template-columns:1fr}}
@media (max-width:900px){.gr-ov-crit{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
 .gr-report .gr-panel-head{flex-direction:column;align-items:stretch}
 .gr-head-actions{width:100%}.gr-head-actions>button{flex:1;justify-content:center}
 .gr-report-tabs button{flex:0 0 auto}
 .gr-mk-essay{padding:12px 13px;font-size:15px}
 .gr-mk-was span,.gr-mk-fix span{flex-basis:58px}
 .gr-next li{padding:14px 12px;gap:10px}
 .gr-report-actions{padding:14px 16px 18px}.gr-report-actions>*{flex:1 1 100%;justify-content:center}
 .gr-report-content{padding:18px 16px}
 .gr-report-summary{padding:16px}
}
@media (prefers-reduced-motion:reduce){.gr-mk-card{animation:none}.gr-back-button,.gr-ov-crit button,.gr-mk{transition:none}}
@media print{
 #site-header,#site-footer,.gr-heading,.gr-guide,.gr-statusbar,.gr-composer,.gr-history,.gr-report-tabs,.gr-report-actions,.gr-head-actions,.long-guide,.gr-band-select,.gr-copy,.gr-mk-nav,.gr-mk-close,[class*=anh-long]{display:none!important}
 .gr-page{background:#fff;padding:0}.gr-workspace{display:block}.gr-panel{border:0}
 .gr-report-content>[role=tabpanel]{display:block!important;margin-bottom:18px}
 .gr-ov-band{background:#fff;color:#14345d;border:2px solid #14345d}.gr-ov-band strong{color:#14345d}.gr-ov-band span,.gr-ov-band small{color:#14345d}
}
.gr-mk{display:inline}
.gr-mk:focus-visible{outline:3px solid #c28c00;outline-offset:2px}
.gr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
