:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#223047;background:#f7f9fc;color-scheme:light;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #8ba9ff;outline-offset:3px}[hidden]{display:none!important}
.site-header{min-height:76px;padding:17px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e2e8f0;background:#fff}.brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:650;letter-spacing:-.5px;text-decoration:none;color:#223047;white-space:nowrap}.brand>span{display:grid;place-items:center;background:#eaf0ff;width:32px;height:32px;color:#3c62ce;font-size:25px;border-radius:8px;font-weight:400}.profile-controls{display:flex;align-items:center;gap:12px}.profile-label{font-size:14px;color:#647189;overflow-wrap:anywhere}.profile-label strong{font-weight:600;color:#39495f}.quiet-button{border:1px solid #dce3ed;border-radius:7px;padding:8px 11px;background:#fff;color:#4a5b73;font-size:14px;white-space:nowrap}.quiet-button:hover{border-color:#afbed7;background:#f7f9fe}.primary-button{border:1px solid #365fcf;border-radius:8px;padding:12px 21px;background:#365fcf;color:#fff;font-size:15px;font-weight:600}.primary-button:hover:enabled{background:#2d54be}.text-button{background:none;border:0;padding:0;color:#526b9b;font-size:14px;text-decoration:underline;text-underline-offset:3px}.text-button:hover{color:#284eaa}
main{max-width:1560px;margin:0 auto;padding:28px 32px 22px}h1{font-size:26px;font-weight:650;letter-spacing:-.65px;line-height:1.3;margin:0 0 12px}h2{font-size:17px;font-weight:600;letter-spacing:-.2px;margin:0}.welcome,.completion{max-width:470px;margin:65px auto 20px;text-align:center}.welcome form{text-align:left;margin:27px auto 20px;max-width:340px}.welcome label{display:block;font-size:14px;font-weight:550;margin-bottom:8px}input{border:1px solid #d8e0eb;border-radius:8px;background:#fff;padding:12px 13px;color:#26374f;font-size:16px;max-width:100%;width:100%}.welcome form button{width:100%;margin-top:12px}.task-heading{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;margin-bottom:23px}.eyebrow{display:block;font-size:12px;letter-spacing:.8px;text-transform:uppercase;font-weight:600;color:#8490a2;margin:0 0 8px}.progress{font-size:14px;color:#728096;white-space:nowrap;margin:8px 0 0}.viewer{border:1px solid #dce3ee;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 3px 14px #22334f05}.viewer-toolbar{height:48px;display:flex;align-items:center;justify-content:flex-end;padding:0 15px;border-bottom:1px solid #e4e9f1;color:#728096;font-size:13px}.viewer-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.viewer-toolbar{gap:8px}.viewer-toolbar .quiet-button[aria-pressed=true]{background:#E3F2FD;border-color:#3793EF;color:#012447}.viewer.mobile-view .app-area{background:#F7F8FA}.viewer.mobile-view iframe{width:min(390px,100%);margin-inline:auto;box-shadow:0 0 0 1px #E0E3E8}.viewer-toolbar .quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;padding:6px 10px}.viewer-toolbar .quiet-button svg{flex-shrink:0}.app-area{height:65dvh;min-height:490px;position:relative}iframe{width:100%;height:100%;display:block;border:0;background:#fff}.loader{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;background:#fff;color:#7d8ba1;font-size:14px}.spinner{width:26px;height:26px;border:2px solid #e0e7f2;border-top-color:#5276da;border-radius:50%;animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.review-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(365px, 440px);
  gap: 20px;
  align-items: stretch;
}
.review-workspace > .viewer {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.review-workspace > .viewer .app-area {
  flex: 1;
  height: auto;
  min-height: 0;
}
.rating-panel {
  min-width: 0;
  height: max(590px, calc(100dvh - 188px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  overflow: hidden;
}
.review-heading, .review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}
.guide-text, .evidence-field p {
  color: #52627a;
  font-size: 13px;
  line-height: 1.45;
  margin: 5px 0 0;
}
.facet-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 0 12px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.facet-nav button {
  min-width: 0;
  min-height: 42px;
  padding: 5px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #52627a;
  font-size: 12px;
  font-weight: 600;
}
.facet-nav button:hover:enabled { background: #f4f7fc; }
.facet-nav button[aria-current="step"] {
  background: #eef4ff;
  border-color: #c6d7fc;
  color: #20449c;
}
.facet-nav output { display: none; }
.facet-nav .complete output {
  display: block;
  color: #2a5b48;
  font-variant-numeric: tabular-nums;
}
.review-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 18px 18px 22px 20px;
}
.review-body > :not([hidden]) ~ * { margin-top: 18px; }
.history-entry summary {
  cursor: pointer;
  color: #3156a5;
  font-size: 14px;
  line-height: 1.5;
}
.history-entry summary:focus-visible, select:focus-visible {
  outline: 3px solid #8ba9ff;
  outline-offset: 3px;
}
#check-title, .evidence-field label, .level-field legend, .problem-field h3, .failure-dialog label {
  display: block;
  margin: 0;
  color: #223047;
  font-size: 14px;
  font-weight: 650;
}
.evidence-field textarea, .failure-dialog textarea, .failure-dialog select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid #d4deeb;
  border-radius: 8px;
  background: #fff;
  color: #223047;
  font-size: 16px;
  line-height: 1.45;
}
.evidence-field textarea, .failure-dialog textarea { resize: vertical; }
.level-field { padding: 0; border: 0; min-width: 0; }
.level-field legend { padding: 0; }
.level-options {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.level-option {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d9e1ed;
  border-radius: 7px;
  color: #33455e;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.level-number {
  display: grid;
  place-items: center;
  height: 24px;
  border: 1px solid #b8c4d5;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}
.level-option:has(~ .level-option input:checked) {
  border-color: #b8cae7;
  background: #eff5ff;
}
.level-option:has(input:checked) {
  border-color: #4265ac;
  background: #dfeaff;
}
.level-option input:checked + .level-number {
  border-color: #244b96;
  background: #244b96;
  color: #fff;
}
.level-option:has(input:enabled):hover { border-color: #5578bc; }
.level-option:has(input:focus-visible) { outline: 2px solid #315bb5; outline-offset: 1px; }
.level-field:disabled .level-option { cursor: default; }
#problem-counts { margin-top: 5px; }
.problem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  align-items: start;
  gap: 6px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e6ebf2;
}
.problem-row input { min-height: 36px; padding: 5px 7px; font-variant-numeric: tabular-nums; }
.problem-row label { align-self: center; font-size: 14px; font-weight: 600; }
.problem-guide { grid-column: 1 / -1; }
.problem-guide ul { padding-left: 18px; margin: 0 0 8px; }
.problem-guide li + li { margin-top: 8px; }
.problem-guide p, .problem-guide li {
  color: #45556e;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.problem-guide strong { color: #223047; }
.review-footer { border-top: 1px solid #e2e8f0; }
.facet-result { display: grid; justify-items: start; gap: 4px; }
.facet-result output {
  color: #223047;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.facet-result output:empty { display: none; }
.review-footer .primary-button { flex-shrink: 0; padding-inline: 12px; }
#mark-failed { text-align: left; font-size: 12px; }
.message { color: #973741; font-size: 14px; text-align: center; line-height: 1.5; margin: 16px 0 0; }
.message:empty { display: none; }
.review-message { margin: 0; padding: 6px 20px; text-align: left; }
.viewer:fullscreen {
  width: 100vw;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.review-workspace > .viewer:fullscreen .app-area { height: auto; min-height: 0; flex: 1; }
.failure-dialog { max-width: 460px; }
.failure-dialog label:not(:first-child) { margin-top: 13px; }
.failure-dialog .primary-button { margin-top: 16px; }
.history-entry { border-bottom: 1px solid #e6ebf2; padding: 11px 0; }
.history-entry small { color: #52627a; margin-left: 7px; }
.history-entry dl { display: grid; gap: 9px; margin: 12px 0 6px 14px; }
.history-entry dt { font-size: 14px; }
.history-entry dd { margin: 2px 0 0; color: #52627a; font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .review-workspace { grid-template-columns: minmax(0, 1fr); }
  .review-workspace > .viewer .app-area { min-height: 410px; height: 62dvh; flex: auto; }
  .rating-panel { height: auto; }
  .review-body { overflow: visible; scrollbar-gutter: auto; }
}
@media (max-width: 520px) {
  .review-heading, .review-body, .review-footer { padding-inline: 13px; }
  .facet-nav { padding-inline: 8px; gap: 2px; }
  .review-workspace > .viewer .app-area { min-height: 340px; }
}

dialog{width:min(850px,calc(100vw - 32px));max-height:85dvh;border:1px solid #dce3ed;border-radius:12px;padding:25px;color:#2b3c55;box-shadow:0 16px 70px #14243f40}dialog::backdrop{background:#15223873}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:23px}.dialog-heading h2{font-size:21px}dialog p{line-height:1.6;font-size:14px;color:#75849a}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:16px;line-height:1.7;margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:760px){.site-header{align-items:flex-start;flex-direction:column;padding:15px 17px;gap:13px}.profile-controls{flex-wrap:wrap;gap:8px}.profile-label{margin-right:5px}.quiet-button{font-size:12px;padding:7px 9px}main{padding:23px 16px 15px}.task-heading{display:block;margin-bottom:20px}h1{font-size:23px}.progress{margin-top:15px;font-size:13px}.app-area{height:65dvh;min-height:460px}.welcome,.completion{margin-top:40px}dialog{padding:20px}.dialog-heading h2{font-size:19px}}
@media(max-width:520px){.viewer-toolbar{height:auto;min-height:48px;padding:8px 12px}.viewer-actions{max-width:100%;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
