.tc-dialog{--tc-ink:#15364e;--tc-muted:#526d80;--tc-line:#c8dce6;--tc-teal:#087e8e;--tc-navy:#102f49;--tc-soft:#e7f2f5;color:var(--tc-ink);background:#f0f5f8;border:1px solid var(--tc-line);border-radius:16px;width:min(1260px,96vw);max-width:96vw;max-height:94dvh;padding:0;font:15px/1.5 Arial,Helvetica,sans-serif;overflow:auto;box-shadow:0 24px 80px #102f4940}
.tc-dialog::backdrop{background:#102f4999}.tc-dialog *{box-sizing:border-box}.tc-dialog [hidden]{display:none!important}.tc-head{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 22px;background:var(--tc-navy);color:#fff}.tc-head h2{margin:0;font-size:24px;color:inherit}.tc-head small{font-size:12px;letter-spacing:.05em}.tc-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tc-dialog button,.tc-dialog select,.tc-dialog input,.tc-dialog textarea{font:inherit}.tc-dialog button,.tc-link{min-height:42px;padding:9px 13px;border:1px solid var(--tc-line);border-radius:7px;background:#fff;color:var(--tc-ink);font-weight:700;text-decoration:none;cursor:pointer}.tc-dialog button:disabled{opacity:.55;cursor:wait}.tc-dialog button:focus-visible,.tc-dialog input:focus-visible,.tc-dialog select:focus-visible,.tc-dialog textarea:focus-visible,.tc-dialog a:focus-visible{outline:3px solid #008caa;outline-offset:3px}.tc-head button{background:transparent;color:#fff;border-color:#86a6ba}.tc-head button[aria-pressed=true]{background:#fff;color:var(--tc-navy)}.tc-dialog .tc-primary{background:var(--tc-teal);color:#fff;border-color:var(--tc-teal)}.tc-body{padding:20px}.tc-intro{margin:0 0 14px;color:var(--tc-muted)}.tc-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:16px}.tc-dialog label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;min-width:0}.tc-tools label:first-child{flex:1 1 230px}.tc-dialog select,.tc-dialog input,.tc-dialog textarea{min-height:42px;max-width:100%;width:100%;border:1px solid var(--tc-line);background:#fff;color:var(--tc-ink);border-radius:6px;padding:9px 10px;font-weight:400}.tc-dialog input[type=number]{font-variant-numeric:tabular-nums}.tc-dialog textarea{min-height:68px;resize:vertical}.tc-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.tc-tabs button[aria-pressed=true]{background:var(--tc-navy);color:#fff;border-color:var(--tc-navy)}.tc-count{display:inline-block;background:#087e8e;color:#fff;border-radius:12px;min-width:24px;text-align:center;padding:0 6px;font-size:12px;margin-left:7px}.tc-layout{display:grid;grid-template-columns:minmax(225px,.85fr) minmax(0,2fr);gap:18px;align-items:start}.tc-list{display:grid;gap:9px}.tc-doc-button{display:block;width:100%;text-align:left;overflow-wrap:anywhere}.tc-doc-button strong,.tc-doc-button span,.tc-doc-button small{display:block}.tc-doc-button strong{font-size:15px}.tc-doc-button span{font-size:13px;font-weight:400;margin-top:4px}.tc-doc-button small{font-size:12px;color:var(--tc-muted);font-weight:400}.tc-doc-button[aria-pressed=true]{background:var(--tc-soft);border-color:var(--tc-teal);box-shadow:inset 4px 0 var(--tc-teal)}.tc-state{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:5px 9px;border-radius:5px;background:var(--tc-soft);color:var(--tc-ink)}.tc-state[data-state=coach_checked]{background:#e0edff;color:#123e75}.tc-state[data-state=confirmed]{background:#dcefe5;color:#165232}.tc-state[data-state=needs_correction],.tc-state[data-state=awaiting_review]{background:#fff2d6;color:#785000}.tc-pane{background:#fff;border:1px solid var(--tc-line);border-radius:10px;padding:20px;min-width:0}.tc-pane h3{margin:0 0 8px;font-size:20px;color:var(--tc-navy)}.tc-pane h4{margin:0;font-size:16px;color:var(--tc-navy)}.tc-file{padding:12px 14px;background:var(--tc-soft);border-radius:7px;overflow-wrap:anywhere;display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin:14px 0}.tc-file small{display:block;color:var(--tc-muted);font-size:12px}.tc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tc-wide{grid-column:1/-1}.tc-assessment{border-top:2px solid var(--tc-line);margin-top:18px;padding-top:16px}.tc-assessment-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.tc-metric-editor{margin-top:12px;padding:12px;background:#f0f6f8;border-radius:7px}.tc-metric-fields{display:grid;grid-template-columns:2fr 1fr .8fr;gap:10px}.tc-metric-secondary{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin-top:10px}.tc-metric-editor .tc-remove{padding:4px 9px;min-height:32px;font-size:12px;font-weight:400}.tc-metric-caption{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px;font-size:12px;color:var(--tc-muted)}.tc-reference{margin-top:10px}.tc-assessment-actions{margin-top:10px;display:flex;gap:9px;flex-wrap:wrap}.tc-actions{position:sticky;bottom:0;display:flex;gap:10px;flex-wrap:wrap;margin:18px -20px -20px;padding:14px 20px;background:#fff;border-top:1px solid var(--tc-line);z-index:2}.tc-status{margin:0 0 14px;padding:10px 13px;border-radius:6px;background:var(--tc-soft);font-size:14px;overflow-wrap:anywhere}.tc-status:empty{display:none}.tc-status.error{background:#fff0ec;color:#8b291b}.tc-notice{font-size:13px;color:var(--tc-muted);margin:12px 0}.tc-warning{padding:12px;border-radius:6px;background:#fff2d6;color:#785000;font-size:13px;margin-top:12px}.tc-empty{padding:20px 0;color:var(--tc-muted);font-size:14px}.tc-history{margin-top:18px;border-top:1px solid var(--tc-line);padding-top:12px;font-size:13px}.tc-history summary{cursor:pointer;font-weight:700}.tc-event{padding:10px 0;border-bottom:1px solid var(--tc-line)}.tc-event small{color:var(--tc-muted);display:block}.tc-event p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.tc-event pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:260px;overflow:auto;background:#f0f6f8;padding:10px}.tc-result{margin:14px 0 22px}.tc-result-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px}.tc-result-heading strong{font-size:18px;font-variant-numeric:tabular-nums}.tc-result-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--tc-muted);margin:7px 0}.tc-key{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--tc-teal);margin-right:5px}.tc-key.threshold{width:3px;height:13px;border-radius:0;background:var(--tc-navy)}.tc-key.target{width:3px;height:13px;border-radius:0;background:none;border-left:3px dashed #946200}.tc-bullet{position:relative;margin:12px 8px 4px;height:55px}.tc-track{position:absolute;left:0;right:0;top:12px;height:12px;border-radius:6px;background:#e7edf1;overflow:hidden}.tc-band{position:absolute;top:0;bottom:0;background:#d6edf0}.tc-mark-value{position:absolute;top:10px;width:16px;height:16px;border-radius:50%;background:var(--tc-teal);transform:translateX(-50%)}.tc-mark-reference{position:absolute;top:4px;height:29px;width:3px;transform:translateX(-50%);background:var(--tc-navy)}.tc-mark-target{position:absolute;top:1px;height:34px;width:3px;transform:translateX(-50%);border-left:3px dashed #946200}.tc-axis{position:absolute;top:36px;font-size:12px;color:var(--tc-muted);font-variant-numeric:tabular-nums}.tc-axis.end{right:0}.tc-gap{font-size:13px;color:var(--tc-ink);margin:5px 0}.tc-reference-note{font-size:12px;color:var(--tc-muted);overflow-wrap:anywhere}.tc-plot{margin:16px 0}.tc-plot svg{display:block;width:100%;overflow:visible}.tc-plot text{font:12px Arial,Helvetica,sans-serif;fill:var(--tc-ink)}.tc-plot .tc-gridline{stroke:#d6e0e7;stroke-width:1}.tc-plot .tc-series{fill:none;stroke:var(--tc-teal);stroke-width:2}.tc-plot .tc-observation{fill:var(--tc-teal)}.tc-plot .tc-threshold-line{stroke:var(--tc-navy);stroke-width:1.5}.tc-plot .tc-target-line{stroke:#946200;stroke-width:1.5;stroke-dasharray:5 4}.tc-record{border-top:1px solid var(--tc-line);padding:12px 0;font-size:13px}.tc-record p{margin:4px 0}.tc-record small{color:var(--tc-muted)}.tc-candidate{padding:14px;background:#fff;border:1px solid var(--tc-line);border-radius:8px;overflow-wrap:anywhere;display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:9px}.tc-candidate small{display:block;color:var(--tc-muted);font-size:12px}.tc-readonly input,.tc-readonly select,.tc-readonly textarea{background:#f3f7f9;color:var(--tc-ink);opacity:1}.tc-dialog .tc-language{font-size:12px;min-height:36px;padding:5px 9px}.console-nav .tc-nav{font-weight:800;letter-spacing:.04em}.tc-unsaved{font-size:12px;color:#785000;margin-left:auto;align-self:center}
@media(max-width:820px){.tc-layout{grid-template-columns:1fr}.tc-list{grid-template-columns:repeat(2,minmax(0,1fr))}.tc-pane{padding:16px}.tc-actions{margin:16px -16px -16px;padding:12px 16px}.tc-head{padding:14px 16px}.tc-body{padding:15px}.tc-head h2{font-size:21px}}
@media(max-width:540px){.tc-dialog{width:98vw;max-width:98vw;max-height:97dvh;border-radius:10px}.tc-head{align-items:start;gap:8px}.tc-head-actions{gap:5px}.tc-head h2{font-size:19px}.tc-head small{font-size:11px}.tc-list{grid-template-columns:1fr}.tc-fields,.tc-metric-fields,.tc-metric-secondary{grid-template-columns:1fr}.tc-wide{grid-column:auto}.tc-candidate{align-items:stretch;flex-direction:column}.tc-actions button{flex:1 1 140px}.tc-result-heading strong{font-size:17px}.tc-dialog input,.tc-dialog select,.tc-dialog textarea{font-size:16px}.tc-tools{align-items:stretch}.tc-tools label{flex:1 1 140px}.tc-head-actions button{min-height:42px}.tc-assessment-heading{align-items:start}}
@media print{.tc-dialog{position:static;width:100%;max-width:none;max-height:none;overflow:visible;box-shadow:none}.tc-tools,.tc-tabs,.tc-head-actions,.tc-actions,.tc-list,.tc-status{display:none!important}.tc-layout{display:block}.tc-pane{border:0}.tc-head{position:static}.tc-bullet,.tc-plot{break-inside:avoid}}

.tc-dialog .tc-back{margin-bottom:14px}.tc-pane{scroll-margin-top:100px}
@media(max-width:820px){.tc-dialog.tc-has-document .tc-list{display:none}}

.tc-editor{margin:16px 0}.tc-editor>summary{padding:12px 14px;background:var(--tc-soft);border-radius:7px;font-weight:700;cursor:pointer}.tc-editor[open]>summary{margin-bottom:14px}

/* One document view at a time. The list never stretches an adjacent empty panel. */
html:has(#rmpTestCentre[open]),body:has(#rmpTestCentre[open]){overflow:hidden}
.tc-families{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 10px}
.tc-families button{flex:1 1 145px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;background:#fff;border:1px solid var(--tc-line);padding:13px 15px;font-size:14px;font-weight:800}
.tc-families button[aria-pressed=true]{background:var(--tc-navy);border-color:var(--tc-navy);color:#fff}
.tc-families b{font-size:14px;font-variant-numeric:tabular-nums}
.tc-family-note{font-size:14px;line-height:1.5;color:var(--tc-muted);margin:10px 0 18px;max-width:90ch}
.tc-dialog .tc-family-tag{display:inline-block;width:fit-content;max-width:100%;font-size:13px;font-weight:800;letter-spacing:.01em;padding:4px 8px;margin:7px 0;border-radius:5px;background:#e4edf8;color:#173a65}
.tc-dialog .tc-family-tag[data-family=VALD]{background:#def0ed;color:#125049}
.tc-dialog .tc-family-tag[data-family=OTHER]{background:#f0ebf7;color:#4c3a68}
.tc-dialog .tc-family-tag[data-family=UNCLASSIFIED]{background:#fff2d6;color:#785000}
.tc-document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.tc-document-grid .tc-doc-button{padding:14px 16px;min-width:0}
.tc-document-grid .tc-doc-button strong{font-size:16px;font-weight:800}
.tc-document-grid .tc-doc-button .tc-state{width:fit-content;font-weight:700;margin:8px 0 6px}
.tc-pagination{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;margin:18px 0 4px;font-variant-numeric:tabular-nums}
.tc-pagination button:disabled{cursor:default}
@media(max-width:850px){.tc-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tc-families button{flex-basis:180px}}
@media(max-width:540px){.tc-document-grid{grid-template-columns:1fr}.tc-families button{flex-basis:calc(50% - 9px);min-width:0;font-size:13px;padding:11px}.tc-families button:first-child{flex-basis:100%}.tc-family-note{font-size:13px}}
@media print{.tc-families,.tc-pagination,.tc-back{display:none!important}}
