/* AdjudIQ design system.
   Tokens, components and breakpoints follow the approved MVP prototype
   (navy #0A1F3D, teal #00A8B5, green #1EC47F, surface #F2F4F7; Montserrat,
   16px body / 14px labels, 44px controls, 12px cards, 8px inputs).
   The prototype-only chrome (scenario switcher, screen-flow catalogue) is left out;
   everything below "Workflow additions" is new and covers pages the prototype
   does not describe, above all the admin section. */

:root{--navy:#0a1f3d;--deep:#0b3c6f;--teal:#008d9d;--aqua:#00a8b5;--green:#168455;--paper:#f2f4f7;--line:#dde2e7;--muted:#5d6c80;--red:#b6323e;--shadow:0 4px 20px #0a1f3d06}
*{box-sizing:border-box}
body{margin:0;background:#f5f7fa;color:var(--navy);font-family:Montserrat,'Aptos','Segoe UI',Arial,sans-serif;font-size:16px;line-height:1.55}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button,a{transition:background .15s}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.48}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #00a8b5;outline-offset:3px}
button{border:0}
h1,h2,h3,p{margin-top:0}
h1{font-size:32px;line-height:1.2;letter-spacing:-.8px;margin-bottom:10px}
h2{font-size:22px;line-height:1.3;letter-spacing:-.4px}
h3{font-size:17px}
p{margin-bottom:16px}
.muted,small{color:var(--muted)}
small,.small{font-size:14px}
.eyebrow{color:var(--teal);font-size:12px;font-weight:750;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:12px}
.wrap{max-width:1320px;margin:auto}
.topbar{background:var(--navy);color:white;min-height:80px;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:18px;color:white}
.brand img{width:156px;height:auto;display:block;background:white;padding:3px 6px;border-radius:5px}
.brand span{border-left:1px solid #ffffff35;padding-left:20px;font-size:14px}
.topbar nav{display:flex;gap:26px;align-items:center}
.topbar nav a{color:#d5e4f0;font-size:14px}
.topbar nav a[aria-current=page]{color:#58e0e6}
.credit-pill{background:#173651;padding:8px 14px;border:1px solid #28506a;border-radius:30px}
.user-link{display:flex;gap:10px;align-items:center}
.avatar{display:grid;place-items:center;border-radius:50%;width:32px;height:32px;background:#0d6577;color:#a7faff;font-weight:700}
main{max-width:1320px;margin:auto;padding:38px 32px 70px}
.page-head{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:26px}
.page-head p{margin:0;color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;min-height:44px;padding:11px 18px;background:var(--teal);color:white;font-size:14px;font-weight:650;text-decoration:none!important;border:1px solid transparent}
.btn:hover{background:#00717f}
.btn.secondary{background:white;border-color:#cbd7e3;color:var(--navy)}
.btn.secondary:hover{background:#eff4f8}
.btn.ghost{background:transparent;color:var(--teal)}
.btn.danger{background:#fff2f2;color:#a32c36;border-color:#e5bfc2}
.btn.dark{background:var(--navy)}
.btn.tiny{min-height:34px;padding:6px 10px;font-size:13px}
.btn.wide{width:100%}
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:24px;margin-bottom:20px}
.panel h2{margin-bottom:18px}
.panel-title{display:flex;justify-content:space-between;gap:20px;align-items:center}
.panel-title h2{margin-bottom:12px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:26px}
.stat{background:white;border:1px solid var(--line);padding:20px 24px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.stat strong{font-size:28px;display:block;letter-spacing:-1px}
.stat p{margin:0;font-size:14px;color:var(--muted)}
.stat .symbol{font-size:25px;background:#eaf6f7;border-radius:10px;width:48px;height:48px;display:grid;place-items:center;color:var(--teal)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.two-thirds{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}
.pill{display:inline-flex;align-items:center;font-size:12px;font-weight:700;padding:5px 10px;border-radius:20px;background:#eff2f6;color:#586a7c;white-space:nowrap}
.pill.done{background:#e4f4eb;color:#237045}
.pill.running{background:#e3f3f6;color:#087080}
.pill.waiting{background:#fff2d6;color:#876118}
.pill.error{background:#fbe7e9;color:#a32d3a}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left}
th{font-size:12px;letter-spacing:.3px;color:#5d6c80;background:#f8fafc;padding:14px 18px;font-weight:650;white-space:nowrap}
td{padding:18px;border-top:1px solid #e7ecf1;font-size:14px;vertical-align:top}
td strong{display:block;margin-bottom:3px}
td p{margin:0}
table .actions{flex-wrap:nowrap}
.job-title{font-weight:650;color:var(--navy)}
.date{font-size:12px;color:var(--muted)}
.banner{border-radius:9px;padding:15px 18px;display:flex;align-items:center;gap:16px;background:#edf6fa;border:1px solid #cce4ed;margin-bottom:20px;font-size:14px}
.banner p{margin:0}
.banner.warning{background:#fff8e8;border-color:#ecd8aa;color:#785716}
.banner.error{background:#fff1f3;border-color:#ebc5cc;color:#9a2e3b}
.banner.success{background:#edf8f1;border-color:#c2e1ce;color:#246b41}
.banner .grow{flex:1}
.empty{text-align:center;padding:58px 22px}
.empty .symbol{font-size:32px;color:var(--teal);margin-bottom:12px}
.stepper{display:flex;gap:30px;align-items:center;font-size:12px;color:var(--muted)}
.stepper span{display:flex;align-items:center;gap:8px}
.stepper b{border:1px solid #c8d5e1;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;background:white}
.stepper .on{color:var(--teal)}
.stepper .on b{background:var(--teal);color:white;border-color:var(--teal)}
.service{position:relative;border:1px solid #d2dce7;border-radius:11px;padding:20px;display:block;background:white;color:var(--navy);text-align:left;width:100%;min-height:180px}
.service.selected{border:2px solid var(--teal);padding:19px;background:#f0fafb}
.service h3{margin-bottom:4px}
.service .service-title{display:flex;gap:16px;align-items:center;margin-bottom:18px}
.service .symbol{width:44px;height:44px;border-radius:50%;background:#e1f2f5;color:var(--teal);font-size:22px;display:grid;place-items:center}
.service .radio{position:absolute;right:18px;top:20px;width:20px;height:20px;border:2px solid #bfcedb;border-radius:50%}
.service.selected .radio{border:5px solid var(--teal)}
.service p{margin:4px 0;color:var(--muted);font-size:14px}
.service-checks{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}
.tag{font-size:12px;background:#e5f4f5;color:#126f7b;padding:4px 9px;border-radius:5px}
.option{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:14px 16px;font-size:14px;background:white}
.option input{width:19px;height:19px;accent-color:var(--teal)}
.option small{display:block;margin-top:2px}
.options{display:flex;gap:16px;margin-top:20px}
.options>*{flex:1}
.field{display:block;margin-bottom:18px}
.field>span,.field>label{display:block;font-size:14px;font-weight:650;margin-bottom:8px}
input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid #cbd7e3;border-radius:8px;padding:12px 14px;background:white;color:var(--navy);width:100%;min-height:46px}
textarea{resize:vertical;line-height:1.6;min-height:180px}
.input-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-weight:650;font-size:14px}
.lang{font-size:12px;border:1px solid var(--line);padding:5px 10px;border-radius:6px;font-weight:400;color:var(--muted)}
.text-count{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;margin-top:8px}
.credit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;background:#f3f8fa;border-radius:10px;padding:22px}
.credit-grid p{font-size:12px;color:var(--muted);margin-bottom:4px}
.credit-grid strong{font-size:20px}
.bottom-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:4px}
.badge-grade{display:inline-grid;place-items:center;width:50px;height:54px;border-radius:9px;font-size:32px;font-weight:750;background:#e9f5ee;color:#168455}
.badge-grade.B{background:#edf3db;color:#638321}
.badge-grade.C{background:#fff0dc;color:#ad690d}
.grade-panel{display:flex;align-items:center;justify-content:space-between;gap:28px}
.grades{display:flex;gap:22px;align-items:center}
.grades .label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}
.arrow{color:#a4b1be;font-size:26px}
.grades .badge-grade{width:72px;height:80px;font-size:48px}
.quality-scale{display:flex;gap:5px;max-width:260px;margin-top:20px}
.quality-scale span{width:58px;text-align:center;color:white;padding:3px;border-radius:4px;font-size:14px;background:#168455}
.quality-scale span:nth-child(2){background:#819c2f}
.quality-scale span:nth-child(3){background:#d48821}
.quality-scale span:nth-child(4){background:#bb3c48}
.segments{min-width:950px;table-layout:fixed}
.segments th:nth-child(1){width:30px}
.segments th:nth-child(2),.segments th:nth-child(3){width:25%}
.segments th:nth-child(4),.segments th:nth-child(5){width:23%}
.segments td{font-size:14px;line-height:1.7;padding:16px 12px}
.segments th{padding:12px}
.score{display:inline-grid;place-items:center;min-width:27px;height:27px;background:#e5f4eb;color:#1b753e;border-radius:5px;font-weight:750;margin-bottom:8px;font-size:14px}
.score.s1{background:#e8f1d0;color:#4b6615}
.score.s2{background:#ffebad;color:#785000}
.score.s3{background:#fae0e3;color:#a22c3b}
.score.na{background:#edf0f4;color:#6a7685;font-size:11px;min-width:96px}
.segmentation{min-width:700px}
.segmentation td{width:43%}
.segmentation td:first-child{width:5%}
.segmentation td:last-child{width:9%}
.segmentation textarea{min-height:120px}
.segmentation .edit-only{display:none}
.segmentation tr.editing .edit-only{display:block}
.segmentation tr.editing .view-only{display:none}
.segment-actions{display:flex;flex-direction:column;gap:8px}
.segment-actions .btn{width:100%;white-space:nowrap}
.unpaired td{background:#fff8ed}
.missing{color:#9a6c16;display:block;border:1px dashed #dcb970;border-radius:7px;padding:16px}
.edited{border-left:3px solid var(--teal)}
.tabs{display:flex;gap:4px;background:#ecf0f4;padding:4px;border-radius:8px;width:max-content}
.tabs button{background:transparent;padding:10px 17px;border-radius:6px;color:#66778a;font-size:14px}
.tabs button.active{background:white;color:var(--navy);box-shadow:0 1px 4px #0001}
/* Agent switches: the strip shows at a glance which agents the evaluation run will use. */
.tabs button.on{background:#e3ede4;border:1px solid #9cbda3;color:#2f4f38}
.tabs button.off{background:#f0e2e2;border:1px solid #c79c9c;color:#6b3a3a}
.tabs button.active.on{background:#d6e7d9;box-shadow:0 1px 4px #0001}
.tabs button.active.off{background:#e9cfcf;box-shadow:0 1px 4px #0001}
.switch{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:14px 16px;font-size:14px;background:white;margin-bottom:20px}
.switch input[type=checkbox]{width:19px;height:19px;accent-color:var(--teal)}
.switch small{display:block;margin-top:2px;color:var(--muted)}
.table-scroll{overflow-x:auto}
.table-scroll input[type=number]{width:96px}
.cert-qr{text-align:center}
.cert-qr .qr{width:128px;height:128px;margin:0 auto 6px}
.cert-qr .qr svg{width:100%;height:100%;display:block}
.cert-areas{display:flex;gap:28px;align-items:center;margin-bottom:8px}
.cert-areas>div{display:flex;gap:10px;align-items:center}
.run-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}
.phase{display:flex;gap:18px;padding:20px 0;border-bottom:1px solid #e6edf2;align-items:flex-start}
.phase:last-child{border-bottom:0}
.phase .circle{width:34px;height:34px;background:#eff3f7;border-radius:50%;display:grid;place-items:center;flex-shrink:0;color:#7c8ca0}
.phase.done .circle{background:#dff3e8;color:#1c8050}
.phase.active .circle{background:var(--teal);color:white}
.phase.active strong{color:var(--teal)}
.phase strong{display:block;font-size:16px}
.phase p{font-size:14px;margin:4px 0 0;color:var(--muted)}
.spinner{width:18px;height:18px;border:2px solid #ffffff60;border-top-color:white;border-radius:50%;animation:spin 1.1s linear infinite}
.run-time{font-size:44px;font-weight:700;letter-spacing:-1px;margin:16px 0 0}
.metric-list{margin-top:24px}
.metric-list div{display:flex;justify-content:space-between;gap:20px;font-size:14px;padding:11px 0;border-bottom:1px solid #e2e9ef}
.auth{max-width:1160px;margin:20px auto;display:grid;grid-template-columns:1.05fr 1fr;gap:85px;align-items:center;padding:24px 0}
.auth-bg{background:radial-gradient(ellipse at 10% 60%,#074963 0,transparent 55%),#07182f;min-height:calc(100vh - 42px)}
.auth-bg main{color:white}
.auth-bg .topbar{background:transparent}
.auth h1{font-size:49px;line-height:1.16;letter-spacing:-1.7px}
.auth h1 em{font-style:normal;color:#23c4d4}
.auth .pitch{color:#c5d4e6;font-size:18px;line-height:1.8}
.auth-card{background:#fff;color:var(--navy);border-radius:20px;padding:34px;box-shadow:0 25px 80px #0002}
.auth-card h2{font-size:26px}
.auth-card p{font-size:14px;color:var(--muted)}
.password-wrap{display:flex;position:relative}
.password-wrap input{padding-right:68px!important}
.password-wrap button{position:absolute;right:5px;top:7px;bottom:7px;background:#f1f5f8;border-radius:5px;color:var(--muted);font-size:12px;padding:0 9px}
.form-error{color:#a12d3e;background:#fdf0f2;padding:10px 14px;border-radius:7px;font-size:14px}
/* The validation summary helper writes a ul; it reads as a message, not as a list. */
.form-error ul{margin:0;padding:0;list-style:none}
.form-error ul li+li{margin-top:4px}
.auth-features{display:grid;gap:14px;margin-top:30px;color:#d9e6f3;font-size:15px}
.auth-features span{color:#30ccd6;margin-right:12px}
.auth-links{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px;margin:14px 0 24px}
.text-link{background:none;color:var(--teal);font-size:14px;padding:0;text-decoration:underline}
.certificate{background:white;border:1px solid var(--line);border-top:6px solid var(--teal);max-width:880px;margin:0 auto;padding:38px;border-radius:8px}
.certificate h1{font-size:30px}
.certificate .cert-id{font-family:monospace;background:#f3f5f8;padding:12px;font-size:14px;overflow-wrap:anywhere}
.hash{font-family:monospace;font-size:12px;overflow-wrap:anywhere;color:#66778a}
.cert-row{display:grid;grid-template-columns:1fr auto auto;gap:28px;align-items:start;margin:24px 0}
.privacy-note{padding:16px;background:#f0f6f8;border-radius:9px;font-size:14px}
.support-address{overflow-wrap:anywhere}
.account-summary{background:var(--navy);color:white}
.account-summary .muted{color:#b2c7dc}
.account-summary .balance{font-size:50px;line-height:1.2;letter-spacing:-1px}
.account-summary .btn{background:#1fc1cd;color:#062638}
.footer-note{font-size:12px;color:var(--muted);text-align:center;margin:24px 0 0}
dialog{border:0;border-radius:16px;padding:30px;max-width:560px;width:calc(100% - 32px);color:var(--navy);box-shadow:0 25px 100px #0003}
dialog::backdrop{background:#071c37a6}
dialog h2{padding-right:30px}
dialog .close{position:absolute;right:18px;top:16px;background:#eef2f6;color:#596c7e;border-radius:50%;width:30px;height:30px}
dialog .actions{justify-content:flex-end;margin-top:24px}
.terms-text{white-space:pre-wrap}
#toast{position:fixed;right:24px;bottom:24px;max-width:430px;background:var(--navy);color:white;border-radius:10px;padding:16px 22px;box-shadow:0 8px 30px #0002;z-index:50;display:none}
#toast.visible{display:block}
.skip{position:fixed;top:-100px;background:white;padding:12px;z-index:100}
.skip:focus{top:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
[hidden]{display:none!important}
.no-wrap{white-space:nowrap}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.topbar nav{gap:12px}.brand span{display:none}.auth{gap:35px}.auth h1{font-size:40px}.stats{gap:12px}.stepper{gap:10px}.run-grid,.two-thirds{grid-template-columns:1fr}}
@media(max-width:720px){.topbar{padding:16px;flex-wrap:wrap;gap:14px}.topbar nav{width:100%;justify-content:space-between;flex-wrap:wrap}.topbar nav a{font-size:13px}.brand img{width:143px}.user-link .email{display:none}main{padding:25px 16px 50px}.page-head{align-items:flex-start;flex-direction:column;gap:16px}h1{font-size:28px}.stats{grid-template-columns:1fr}.stat{padding:14px 18px}.stat strong{font-size:24px}.grid2,.options,.cert-row{display:flex;flex-direction:column}.credit-grid{grid-template-columns:1fr 1fr}.panel{padding:18px}.panel-title{align-items:flex-start;flex-direction:column;gap:10px}.grade-panel{flex-direction:column;align-items:flex-start}.auth{display:flex;flex-direction:column;gap:24px;margin:0}.auth .auth-pitch{width:100%}.auth h1{font-size:32px}.auth .pitch{font-size:16px}.auth-features,.auth-pitch .quality-scale{display:none}.auth-card{width:100%;padding:24px;border-radius:14px}.bottom-actions{align-items:flex-start;flex-direction:column}.stepper{font-size:11px;flex-wrap:wrap}.stepper b{width:22px;height:22px}.certificate{padding:22px}.example-count{display:none}.tabs button{padding:9px 12px;font-size:13px}.banner{align-items:flex-start;flex-wrap:wrap}dialog{padding:24px}.options .option{min-height:72px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{main{padding:0}.panel{box-shadow:none;break-inside:avoid}body{background:white}}
/* ---------------------------------------------------------------------------
   Workflow additions — pages the prototype does not cover
   --------------------------------------------------------------------------- */

.badge-grade.D{background:#fbe6e8;color:#a5303c}
.pill.cancelled{background:#eef1f5;color:#5d6c80}
.pill.draft{background:#eef1f5;color:#5d6c80}

.field-error{display:block;color:#a12d3e;font-size:13px;margin-top:6px}
.field-hint{display:block;color:var(--muted);font-size:13px;margin-top:6px;font-weight:400}
.hint-list{margin:6px 0 0;padding-left:18px}
.hint-list li{margin:2px 0}
.validation-summary ul{margin:0;padding-left:20px}

.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 20px}
.form-narrow{max-width:520px}
.check{display:flex;gap:12px;align-items:flex-start;font-size:14px;margin-bottom:14px}
.check input{width:19px;height:19px;accent-color:var(--teal);margin-top:2px;flex-shrink:0}
.check span{font-weight:650}

.admin-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.admin-nav a{font-size:13px;font-weight:650;color:var(--muted);background:white;border:1px solid var(--line);border-radius:8px;padding:9px 14px}
.admin-nav a:hover{border-color:var(--aqua);text-decoration:none}
.admin-nav a[aria-current=page]{background:var(--navy);border-color:var(--navy);color:white}

.topbar nav .sep{width:1px;height:22px;background:#ffffff28}
.topbar form{margin:0}

.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.stack>*+*{margin-top:16px}
.nowrap{white-space:nowrap}
.right{text-align:right}
.grow{flex:1}

.prompt-area{min-height:340px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.6}

@media print{.topbar,.no-print,.skip{display:none!important}.certificate{border:0;box-shadow:none;max-width:none}}

/* Floating "report a problem" button — bottom left, because #toast owns the bottom right */
.report-fab{position:fixed;left:24px;bottom:24px;z-index:50;display:inline-flex;align-items:center;gap:9px;border:0;border-radius:999px;padding:12px 20px 12px 16px;background:var(--navy);color:white;font-family:inherit;font-size:14px;font-weight:650;cursor:pointer;box-shadow:0 8px 30px #0003;transition:background .15s,transform .15s}
.report-fab:hover{background:var(--teal);transform:translateY(-1px)}
.report-fab:focus-visible{outline:3px solid var(--aqua);outline-offset:3px}
.report-fab>span[aria-hidden]{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--red);font-size:14px;line-height:1}
#report-fab-dialog .field:last-of-type{margin-bottom:0}
@media(max-width:720px){.report-fab{left:16px;bottom:16px;padding:12px}.report-fab-text{display:none}}
@media print{.report-fab{display:none}}

/* ---------------------------------------------------------------------------
   Grade scales — the certificate shows the whole A–D range with the awarded
   grade lifted out of it, so the letter carries its own meaning for a reader
   who has never seen the scale. Each step owns its palette as two variables,
   which is what lets one rule style the awarded step whichever grade it is.
   --------------------------------------------------------------------------- */

.grade-board{border:1px solid var(--line);border-radius:12px;padding:26px 26px 22px;margin:26px 0;background:linear-gradient(180deg,#f8fafc,#fff 60%)}
.grade-board>h3{margin-top:0}
.grade-headline{display:flex;gap:18px;align-items:center;margin-bottom:20px}
.grade-headline .badge-grade{width:74px;height:82px;font-size:48px;flex-shrink:0}
.grade-headline strong{display:block;font-size:20px;line-height:1.3}
.grade-headline p{margin:4px 0 0;font-size:14px;color:var(--muted);max-width:52ch}

.scale+.scale{margin-top:18px}
.scale-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:9px}
.scale-head .name{font-size:14px;font-weight:650}
.scale-head .value{font-size:12px;font-weight:650;letter-spacing:.03em;text-transform:uppercase}
.scale-head .value.muted{font-weight:400;text-transform:none;letter-spacing:0}

.scale-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;list-style:none;margin:0;padding:11px 0 0}
.scale-steps li{position:relative;border-radius:9px;padding:9px 5px;text-align:center;background:var(--tint);color:var(--ink);border:1px solid #0a1f3d0f;opacity:.72;transition:transform .15s;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.scale-steps li .letter{display:block;font-size:19px;font-weight:750;line-height:1.05}
.scale-steps li .word{display:block;font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;margin-top:3px;opacity:.85}
.scale-steps li.on{opacity:1;background:var(--ink);border-color:var(--ink);color:white;transform:translateY(-4px);box-shadow:0 8px 18px #0a1f3d24}
/* The marker sits above the awarded step and points down at it. */
.scale-steps li.on::before{content:"";position:absolute;left:50%;top:-11px;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--ink);border-bottom-width:0}

.scale.lg .scale-steps li{padding:15px 6px;border-radius:11px}
.scale.lg .scale-steps li .letter{font-size:32px}
.scale.lg .scale-steps li .word{font-size:11px;margin-top:5px}

.g-A{--tint:#e9f5ee;--ink:#168455;color:#168455}
.g-B{--tint:#edf3db;--ink:#638321;color:#638321}
.g-C{--tint:#fff0dc;--ink:#ad690d;color:#ad690d}
.g-D{--tint:#fbe6e8;--ink:#a5303c;color:#a5303c}

.scale-legend{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:9px 2px 0}
.grade-areas{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.grade-areas .scale+.scale{margin-top:0}

@media(max-width:720px){
  .grade-board{padding:20px 18px 18px}
  .grade-headline{gap:14px}
  .grade-headline .badge-grade{width:58px;height:64px;font-size:36px}
  .grade-areas{grid-template-columns:1fr;gap:20px}
  .scale-steps li .word{font-size:9px;letter-spacing:.02em}
  .scale.lg .scale-steps li .letter{font-size:26px}
}
@media print{.grade-board{background:none;break-inside:avoid}.scale-steps li{opacity:.78}.scale-steps li.on{opacity:1}}
