.test-shell{max-width:1040px;margin:0 auto;padding:clamp(18px,5vw,55px);min-height:100vh;color:#ecf8fa;font-family:Inter,system-ui,-apple-system,sans-serif;box-sizing:border-box}
.test-rich-text{min-width:0;max-width:100%;line-height:1.6;overflow-wrap:anywhere;font-weight:400}
.test-rich-text p{margin:0 0 .8em}.test-rich-text p:last-child{margin-bottom:0}
.test-question-prompt{font-size:18px;margin-bottom:18px}
.test-text-preview{padding:16px;border:1px dashed #668c9880;border-radius:12px;font-size:15px;background:#ffffff04}
.test-table-scroll{max-width:100%;overflow-x:auto;margin:14px 0;border:1px solid #668c9866;border-radius:12px;overscroll-behavior-inline:contain}
.test-table-scroll:focus-visible{outline:2px solid #38d8c5;outline-offset:3px}
.test-table-scroll table{width:100%;border-collapse:collapse;font-size:14px;color:inherit}
.test-table-scroll th,.test-table-scroll td{padding:11px 14px;text-align:left;vertical-align:top;min-width:100px;border-bottom:1px solid #668c9840;border-right:1px solid #668c9840}
.test-table-scroll th{font-weight:600;background:#3ecbb514;color:#a2e4df}
.test-table-scroll tr:last-child td{border-bottom:0}.test-table-scroll :is(th,td):last-child{border-right:0}
.test-table-scroll tbody tr:nth-child(even){background:#ffffff04}
.test-choice input{flex-shrink:0}.test-option-text{flex:1}
.test-rich-text code{background:#668c981c;padding:2px 5px;border-radius:4px;font-size:.9em}
html[data-site-theme=day] .test-text-preview{background:#f6fbfb;border-color:#a7cbd1}
html[data-site-theme=day] .test-table-scroll{border-color:#bfd4d9}
html[data-site-theme=day] .test-table-scroll :is(th,td){border-color:#d5e6e9}
html[data-site-theme=day] .test-table-scroll th{background:#e9f5f4;color:#176960}
html[data-site-theme=day] .test-table-scroll tbody tr:nth-child(even){background:#f5fafb}
body:has(.test-shell){background:radial-gradient(circle at 80% 5%,#143943 0,transparent 42%),#07141e}
.test-card{border:1px solid #ffffff24;background:#102431ed;border-radius:26px;padding:clamp(20px,4vw,38px);box-shadow:0 18px 65px #0004;margin:15px 0}
.test-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.test-head h1{margin:0;font-size:clamp(25px,4vw,39px)}
.test-muted{color:#a8c1ca;line-height:1.5}.test-actions,.test-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.test-row{margin:15px 0}
.test-btn{appearance:none;border:1px solid #56d5ce66;background:#123b48;color:#f3ffff;border-radius:14px;padding:12px 18px;font:inherit;font-weight:650;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s}
.test-btn:hover{transform:translateY(-2px);box-shadow:0 10px 25px #22c6b52f;background:#185263}.test-btn:disabled{opacity:.5;cursor:wait}.test-btn.primary{background:linear-gradient(110deg,#22cbb8,#288cb3);border:0;color:#041c28}.test-btn.ghost{background:transparent;border-color:#ffffff44}
.test-field{display:grid;gap:7px;margin:12px 0;flex:1;min-width:140px}.test-field label{font-size:13px;color:#adc9d0}.test-field input,.test-field select,.test-field textarea{background:#091a25;border:1px solid #668c985b;border-radius:13px;padding:12px;color:#f5ffff;font:inherit;width:100%;box-sizing:border-box}.test-field textarea{min-height:80px;resize:vertical}
.test-list{display:grid;gap:12px;margin-top:20px}.test-list a{display:flex;justify-content:space-between;gap:12px;text-decoration:none;color:inherit;padding:18px;border:1px solid #ffffff26;border-radius:16px;background:#ffffff0a}.test-list a:hover{border-color:#31cdbd}
.test-question{border:1px solid #ffffff26;border-radius:18px;padding:19px;margin:16px 0}.test-question h2{font-size:19px;margin:0 0 17px}.test-choice{display:flex;align-items:center;gap:12px;padding:13px 15px;margin:9px 0;border:1px solid #ffffff29;border-radius:13px;cursor:pointer}.test-choice:has(input:checked){border-color:#38d8c5;background:#25c7b121}.test-choice input{accent-color:#2ed0b9;width:18px;height:18px}
.test-clock{text-align:right;font-size:25px;font-variant-numeric:tabular-nums;font-weight:750;color:#70e6d5}.test-track{height:9px;background:#ffffff25;border-radius:9px;overflow:hidden;margin:9px 0 20px}.test-progress{height:100%;background:linear-gradient(90deg,#15bbb0,#80e6d3);border-radius:9px;transition:width .25s linear,background .25s}.test-progress.urgent{background:#ff7a83;animation:test-pulse .8s infinite alternate}@keyframes test-pulse{to{opacity:.55}}
.test-modal{position:fixed;inset:0;background:#02090dc9;display:grid;place-items:center;padding:20px;z-index:1000}.test-modal[hidden]{display:none}.test-modal .test-card{width:min(520px,100%);max-height:90vh;overflow:auto}.test-error{color:#ffb6bb;min-height:22px}.test-qr{background:#fff;padding:13px;width:max-content;max-width:100%;margin:18px auto;border-radius:12px}.test-link{overflow-wrap:anywhere}.test-divider{border:0;border-top:1px solid #ffffff24;margin:24px 0}
html[data-site-theme=day] body:has(.test-shell){background:#eaf3f5}html[data-site-theme=day] .test-shell{color:#123440}html[data-site-theme=day] .test-card{background:#fff;border-color:#b9d7dc;box-shadow:0 18px 45px #27515c18}html[data-site-theme=day] .test-muted{color:#516b75}html[data-site-theme=day] .test-field label{color:#4a6971}html[data-site-theme=day] .test-field input,html[data-site-theme=day] .test-field select,html[data-site-theme=day] .test-field textarea{background:#f6fbfb;color:#123440;border-color:#a7cbd1}html[data-site-theme=day] .test-choice,html[data-site-theme=day] .test-question,html[data-site-theme=day] .test-list a{border-color:#bfd4d9}html[data-site-theme=day] .test-list a{background:#f4fafb}html[data-site-theme=day] .test-btn.ghost{color:#124351;border-color:#9abdc4}html[data-site-theme=day] .test-track{background:#d5e6e9}html[data-site-theme=day] .test-clock{color:#167f77}
@media(max-width:600px){.test-head{align-items:flex-start}.test-actions{width:100%}.test-actions .test-btn{flex:1}.test-row>.test-btn{width:100%}}

/* Keep the shared theme control visible on the list, editor and participant screens. */
body:has(.test-shell){margin:0}
.test-topbar,.test-shell{width:min(100%,1040px);margin-inline:auto;box-sizing:border-box}
.test-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px clamp(18px,5vw,55px) 0;font-family:Inter,system-ui,-apple-system,sans-serif}
.test-topbar [data-site-theme-mount]{min-height:38px}
.test-brand{font-size:15px;font-weight:750;text-decoration:none;color:#91dcd9}
.test-shell{min-height:calc(100vh - 70px);padding-top:18px}

/* The site's day stylesheet uses broad button and input rules; set all test surfaces explicitly. */
html[data-site-theme="day"] body:has(.test-shell){background:#eaf3f5!important}
html[data-site-theme="day"] .test-brand{color:#176b79!important}
html[data-site-theme="day"] .test-card{color:#123440}
html[data-site-theme="day"] .test-field :is(input,select,textarea){background:#f6fbfb!important;color:#123440!important;border-color:#a7cbd1!important}
html[data-site-theme="day"] .test-field :disabled{background:#eaf2f4!important;color:#46616d!important}
html[data-site-theme="day"] .test-btn:not(.primary){background:#edf7f8;border-color:#9abdc4;color:#124351}
html[data-site-theme="day"] .test-btn:not(.primary):hover{background:#dceff1}
html[data-site-theme="day"] .test-btn.ghost{background:transparent}
html[data-site-theme="day"] .test-btn.primary{color:#05323c}
html[data-site-theme="day"] .test-choice,html[data-site-theme="day"] .test-question,html[data-site-theme="day"] .test-list a{color:#123440}
html[data-site-theme="day"] .test-choice:has(input:checked){border-color:#218e88;background:#dff4ef}
html[data-site-theme="day"] .test-modal{background:#122f3c8f}
html[data-site-theme="day"] .test-error{color:#a62d41}
html[data-site-theme="day"] .test-link{color:#116c86!important}
html[data-site-theme="day"] .test-divider{border-color:#c7dce0}
@media(max-width:600px){.test-topbar{padding-top:12px}.test-head{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.test-btn,.test-progress{transition:none}.test-progress.urgent{animation:none}}

/* The editor controls belong to one bottom row, aligned with the time input. */
.test-editor-footer{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:22px;padding-top:20px;border-top:1px solid #ffffff24}
.test-editor-footer .test-time-field{flex:1 1 180px;max-width:260px;margin:0 auto 0 0}
.test-editor-footer .test-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;box-sizing:border-box;white-space:nowrap}
.test-error.is-success{color:#82dfc3}
html[data-site-theme="day"] .test-editor-footer{border-color:#c7dce0}
html[data-site-theme="day"] .test-error.is-success{color:#167b60}

/* The site-wide day fallback paints any *modal* class white. Keep this backdrop translucent. */
html[data-site-theme="day"] body:not(.admin-body) #tests-root + .test-modal{
  background:rgba(2,9,13,.76)!important;
  border:0!important;
  box-shadow:none!important;
}
@media(max-width:600px){
  .test-editor-footer .test-time-field{flex-basis:100%;max-width:none;margin:0}
  .test-editor-footer .test-btn{flex:1 1 calc(50% - 6px)}
}

.test-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.test-results-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.test-results-head h2{margin:0 0 6px}
.test-live-dot{display:inline-flex;align-items:center;gap:7px;color:#8be6c7;font-size:13px;font-weight:750;white-space:nowrap}
.test-live-dot:before{content:"";width:8px;height:8px;border-radius:50%;background:#37d4a1;box-shadow:0 0 0 5px #37d4a126;animation:test-live-pulse 1.5s infinite}
.test-results-summary{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 12px}
.test-results-summary span{padding:10px 13px;border:1px solid #ffffff26;border-radius:12px;background:#ffffff0a;color:#a8c1ca}
.test-results-summary strong{color:#efffff;margin-right:4px}
.test-results-body{display:grid;gap:9px}
.test-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:14px 15px;border:1px solid #ffffff24;border-radius:14px;background:#ffffff08}
.test-result-person{display:grid;gap:5px;min-width:0}
.test-result-person strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.test-result-status{color:#8be6c7;font-size:12px}
.test-result-status.is-complete{color:#a8c1ca}
.test-result-progress{color:#a8c1ca;font-size:13px;white-space:nowrap}
.test-result-score{font-variant-numeric:tabular-nums;white-space:nowrap}
@keyframes test-live-pulse{50%{opacity:.45;transform:scale(.8)}}
html[data-site-theme="day"] .test-results-summary span{background:#f4fafb;border-color:#bfd4d9;color:#516b75}
html[data-site-theme="day"] .test-results-summary strong,html[data-site-theme="day"] .test-result-row strong{color:#123440}
html[data-site-theme="day"] .test-result-row{background:#f4fafb;border-color:#bfd4d9}
html[data-site-theme="day"] .test-result-progress,html[data-site-theme="day"] .test-result-status.is-complete{color:#516b75}
@media(max-width:600px){
  .test-head-actions{width:100%;justify-content:stretch}
  .test-head-actions .test-btn{flex:1}
  .test-results-head{align-items:flex-start}
  .test-result-row{grid-template-columns:minmax(0,1fr) auto}
  .test-result-progress{grid-column:1}
  .test-result-score{grid-column:2;grid-row:1 / span 2}
}

.test-editor-question-actions{margin-top:18px}
.test-editor-question-actions .test-btn{flex:0 1 auto}
@media(max-width:600px){.test-editor-question-actions .test-btn{flex:1 1 100%}}

/* Progress for parallel AI test generation. */
.test-generation{display:grid;gap:16px}
.test-generation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.test-generation-head h2{margin:0 0 6px}
.test-generation-head strong{font-size:26px;font-variant-numeric:tabular-nums;color:#70e6d5}
.test-generation-track{height:13px;border-radius:999px;overflow:hidden;background:#ffffff20;border:1px solid #ffffff18}
.test-generation-bar{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#18bdae,#63dfd0);transition:width .35s ease;box-shadow:0 0 22px #2cd3c24f}
.test-generation-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#b6ccd2;font-size:14px}
.test-generation-note{margin:0}
html[data-site-theme="day"] .test-generation-head strong{color:#167f77}
html[data-site-theme="day"] .test-generation-track{background:#d8e8eb;border-color:#bfd4d9}
html[data-site-theme="day"] .test-generation-meta{color:#516b75}
@media(max-width:600px){
  .test-generation-head{align-items:center}
  .test-generation-head strong{font-size:22px}
  .test-generation-meta{display:grid;gap:5px}
}
@media(prefers-reduced-motion:reduce){.test-generation-bar{transition:none}}

/* Ограничение копирования содержимого во время решения теста. */
body.test-active-protected #tests-root,
body.test-active-protected #tests-root *{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
}
body.test-active-protected #tests-root img,
body.test-active-protected #tests-root textarea,
body.test-active-protected #tests-root input{
  -webkit-user-drag:none!important;
  user-drag:none!important;
}

.test-list-row{display:flex;align-items:stretch;gap:10px}.test-list-row>a{flex:1;min-width:0;align-items:center}.test-list-row .test-delete{flex:none;align-self:center;color:#ffb4b4;border-color:#e469693b}.test-list-row .test-delete:hover{border-color:#e46969;background:#e469691a}html[data-site-theme="day"] .test-list-row .test-delete{color:#9b3030;border-color:#cf9191}@media(max-width:520px){.test-list-row>a{padding:12px;flex-wrap:wrap}.test-list-row .test-delete{padding:10px}}

.test-result-name{color:#7de8d7;text-decoration:underline;text-underline-offset:3px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.test-result-name:hover{color:#fff}.test-review-list{display:grid;gap:14px;margin-top:16px}.test-review-score{margin-top:14px}.test-review-question{border-left:4px solid #e48484}.test-review-question.is-correct{border-left-color:#35c9a1}.test-review-question h3{margin:12px 0 16px;overflow-wrap:anywhere}.test-review-heading{display:flex;justify-content:space-between;gap:12px}.test-review-heading span{color:#f4a4a4;font-weight:700}.test-review-question.is-correct .test-review-heading span{color:#8be6c7}.test-review-options{display:grid;gap:8px}.test-review-option{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #ffffff26;border-radius:10px;overflow-wrap:anywhere}.test-review-option>span:last-child{font-size:12px;white-space:nowrap}.test-review-option.is-correct{background:#35c9a120;border-color:#35c9a1}.test-review-option.is-wrong{background:#e4848420;border-color:#e48484}html[data-site-theme="day"] .test-result-name{color:#08786e}html[data-site-theme="day"] .test-result-name:hover{color:#123440}html[data-site-theme="day"] .test-review-option{border-color:#bfd4d9}html[data-site-theme="day"] .test-review-option.is-correct{background:#d7f5e9;border-color:#35a384}html[data-site-theme="day"] .test-review-option.is-wrong{background:#ffe5e5;border-color:#c86363}html[data-site-theme="day"] .test-review-heading span{color:#ae4343}html[data-site-theme="day"] .test-review-question.is-correct .test-review-heading span{color:#08786e}@media(max-width:520px){.test-review-option{display:grid;gap:4px}.test-review-option>span:last-child{white-space:normal}}

.test-image-gallery{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.test-image-gallery img{display:block;max-width:100%;max-height:460px;object-fit:contain;border-radius:12px;background:#0003;border:1px solid #ffffff26}.test-image-editor{display:grid;gap:8px;max-width:min(100%,230px)}.test-image-editor img{width:100%;height:160px;object-fit:contain}.test-image-upload{display:inline-flex;align-items:center;cursor:pointer;margin:5px 0 14px}.test-image-upload:focus-within{outline:2px solid #31cdbd;outline-offset:3px}.test-image-gallery:empty{display:none}html[data-site-theme="day"] .test-image-gallery img{background:#e7f2f3;border-color:#bfd4d9}@media(max-width:520px){.test-image-gallery img{max-height:340px}.test-image-editor{width:100%;max-width:none}}

.test-results-dashboard{display:grid;gap:16px}.test-dashboard-intro,.test-dashboard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.test-dashboard-intro h2,.test-dashboard-heading h3{margin:0 0 7px}.test-dashboard-intro p,.test-dashboard-heading p{margin:0}.test-dashboard-heading>span{white-space:nowrap;color:#8de3d5;font-size:13px}.test-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.test-metric{display:grid;align-content:space-between;gap:14px;min-height:108px;padding:18px;border-radius:18px;border:1px solid #ffffff25;background:#ffffff09}.test-metric span{color:#a8c1ca;font-size:13px}.test-metric strong{font-size:clamp(23px,3vw,33px);font-variant-numeric:tabular-nums;color:#85e9d8}.test-chart-grid,.test-highlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.test-chart-card{margin:0;min-width:0;padding:22px}.test-chart-card h3{margin:0 0 5px}.test-chart-card p{margin:0 0 12px;font-size:13px}.test-chart-frame{position:relative;width:100%;height:255px}.test-chart-frame canvas{display:block;width:100%!important;height:100%!important}.test-chart-fallback{margin:0;color:#a8c1ca}.test-highlights .test-card{margin:0;display:grid;gap:8px;align-content:start;padding:20px}.test-highlights strong{font-size:19px}.test-highlights small{color:#a8c1ca;line-height:1.4;overflow-wrap:anywhere}.test-results-dashboard>.test-card{margin:0}.test-stats-scroll{overflow-x:auto;max-width:100%;margin-top:18px}.test-stats-table{width:100%;min-width:760px;border-collapse:collapse;font-variant-numeric:tabular-nums}.test-stats-table th,.test-stats-table td{text-align:left;padding:12px 10px;border-bottom:1px solid #ffffff20;vertical-align:middle}.test-stats-table thead th{color:#a8c1ca;font-weight:650;font-size:12px;white-space:nowrap}.test-stats-table tbody th{min-width:155px;max-width:250px}.test-stats-table tbody th small{display:block;color:#a8c1ca;font-weight:400;max-width:250px;overflow-wrap:anywhere;line-height:1.35;margin-top:4px}.test-stat-rate{display:grid;gap:5px;min-width:100px}.test-stat-track{height:5px;border-radius:8px;background:#ffffff26;overflow:hidden}.test-stat-track>div{height:100%;background:#38caae;border-radius:inherit;transition:width .3s ease}.test-results-dashboard [data-attempts]{margin-top:16px}.test-results-dashboard .test-result-row{min-height:52px}html[data-site-theme="day"] .test-metric{background:#f4fafb;border-color:#bfd4d9}html[data-site-theme="day"] .test-metric span,html[data-site-theme="day"] .test-highlights small,html[data-site-theme="day"] .test-stats-table thead th,html[data-site-theme="day"] .test-stats-table tbody th small{color:#516b75}html[data-site-theme="day"] .test-metric strong,html[data-site-theme="day"] .test-dashboard-heading>span{color:#137d73}html[data-site-theme="day"] .test-stats-table th,html[data-site-theme="day"] .test-stats-table td{border-color:#cbdfe2}html[data-site-theme="day"] .test-stat-track{background:#d5e6e9}@media(max-width:760px){.test-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.test-chart-grid,.test-highlights{grid-template-columns:1fr}.test-chart-frame{height:235px}}@media(max-width:480px){.test-dashboard-intro,.test-dashboard-heading{display:grid}.test-metric{min-height:90px;padding:14px}.test-chart-card{padding:16px}}@media(prefers-reduced-motion:reduce){.test-stat-track>div{transition:none}}

.test-list-actions{display:flex;align-items:center;gap:10px;flex:none}.test-list-actions .test-btn{white-space:nowrap}.test-list-actions .test-publish{border-color:#38c9ad75;color:#9ff1da}.test-list-actions .test-publish:hover{border-color:#38c9ad;background:#1d7b6d40}.test-list-actions .test-publish.is-closed-action{border-color:#ecad6975;color:#ffd3a5}.test-list-actions .test-publish.is-closed-action:hover{border-color:#ecad69;background:#b4743333}.test-closed-message{text-align:center;padding-block:44px}.test-closed-message h2{margin:0 0 12px}.test-closed-message p{color:#a8c1ca;margin:0}html[data-site-theme="day"] .test-list-actions .test-publish{color:#087b6d;border-color:#62b9a5}html[data-site-theme="day"] .test-list-actions .test-publish.is-closed-action{color:#945d24;border-color:#c5a078}html[data-site-theme="day"] .test-closed-message p{color:#516b75}@media(max-width:680px){.test-list-row{flex-wrap:wrap}.test-list-row>a{flex-basis:100%}.test-list-actions{width:100%;justify-content:flex-end}.test-list-actions .test-btn{flex:1;padding-inline:8px}}@media(max-width:360px){.test-list-actions{flex-wrap:wrap}}

.test-results-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:16px 0}.test-results-search{flex:1;max-width:380px}.test-results-search input{width:100%;box-sizing:border-box;padding:11px 13px;border-radius:11px;border:1px solid #ffffff28;background:#ffffff0b;color:#efffff;font:inherit}.test-results-search input::placeholder{color:#9ab5bb}.test-result-row{grid-template-columns:minmax(0,1fr) auto auto auto}.test-result-delete{padding:8px 10px;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}html[data-site-theme="day"] .test-results-search input{background:#f4fafb;border-color:#bfd4d9;color:#123440}html[data-site-theme="day"] .test-results-search input::placeholder{color:#6c858d}@media(max-width:760px){.test-results-tools{align-items:stretch;flex-direction:column}.test-results-search{max-width:none}.test-result-row{grid-template-columns:minmax(0,1fr) auto auto}.test-result-delete{grid-column:1 / -1;justify-self:start}}@media(max-width:480px){.test-result-row{grid-template-columns:minmax(0,1fr) auto}.test-result-delete{grid-column:1 / -1}}


/* Dynamic estimate and the insufficient-balance action in the AI test dialog. */
.test-ai-price{margin:2px 0 16px;font-variant-numeric:tabular-nums}
.test-balance-error{display:grid;gap:10px;margin-top:16px}
.test-balance-error span{line-height:1.45}
.test-balance-error .test-btn{width:max-content}
html[data-site-theme="day"] .test-balance-error .test-btn{color:#05323c}


/* Wider desktop results and participant tiles. */
@media(min-width:900px){body:has(.test-results-dashboard) .test-shell,body:has(.test-results-dashboard) .test-topbar{width:100%;max-width:1800px;padding-inline:24px}}
.test-results-dashboard .test-results-body{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:14px}
.test-results-dashboard .test-result-row{grid-template-columns:1fr auto;align-content:start;align-items:start;padding:18px;border-width:2px}
.test-results-dashboard .test-result-person{grid-column:1 / -1;gap:10px;overflow-wrap:anywhere}
.test-results-dashboard .test-result-row.is-solving{border-color:#ed9a36}
.test-results-dashboard .test-result-row.is-complete{border-color:#35b879}
.test-results-dashboard .test-result-status{display:flex;align-items:center;gap:8px}
.test-results-dashboard .is-solving .test-result-status::before{content:"";width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#35d582;animation:test-solving-pulse 1.3s ease-in-out infinite}
.test-results-dashboard .test-result-progress{grid-column:1;grid-row:auto;white-space:normal}
.test-results-dashboard .test-result-score{grid-column:2;grid-row:auto}
.test-result-activity{grid-column:1 / -1;font-size:12px;line-height:1.6;color:#a8c1ca}
html[data-site-theme=day] .test-result-activity{color:#516b75}
.test-results-dashboard .test-result-delete{grid-column:1 / -1;justify-self:start}
@keyframes test-solving-pulse{50%{opacity:.25;box-shadow:0 0 0 4px #35d58225}}
@media(prefers-reduced-motion:reduce){.test-results-dashboard .is-solving .test-result-status::before{animation:none}}
.test-stats-table .test-question-edit-link{display:block;width:100%;padding:6px 0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.test-stats-table .test-question-edit-link strong{font-size:14px}
.test-stats-table .test-question-edit-link small{display:block;font-size:16px;line-height:1.5;margin-top:6px;color:inherit;max-width:560px}
.test-question-edit-link:hover small{text-decoration:underline;text-underline-offset:3px}
.test-question-edit-link:focus-visible{outline:2px solid #38caae;outline-offset:4px;border-radius:4px}
.test-results-tools{flex-wrap:wrap}
.test-results-date{display:grid;gap:5px;font-size:13px}
.test-results-date input{padding:9px 12px;border-radius:10px;border:1px solid #ffffff28;background:#ffffff0b;color:inherit;font:inherit;color-scheme:dark}
html[data-site-theme="day"] .test-results-date input{background:#f4fafb;border-color:#bfd4d9;color:#123440;color-scheme:light}



.test-surveys{display:grid;gap:16px}
.test-surveys[hidden]{display:none}
.test-survey-block h3{margin:0 0 10px}
.test-survey-prompt,.test-survey-response p{white-space:pre-wrap;overflow-wrap:anywhere}
.test-survey-response{padding:12px 0;border-top:1px solid var(--test-border,#78909c40)}
.test-survey-response strong{font-size:14px}
.test-survey-response p{margin:6px 0 0;line-height:1.5}
