#nav [data-view="tests"].nav-child { padding-left:36px; }
.tests { max-width:1280px; min-width:0; color:var(--txt); font-size:14px; }
.tests *, .tests *::before, .tests *::after { box-sizing:border-box; }
.tests button,.tests input,.tests textarea { font:inherit; border-radius:0; }
.tests button { cursor:pointer; }
.tests button:disabled { cursor:wait; opacity:.55; }
.tests button:focus-visible,.tests input:focus-visible,.tests textarea:focus-visible,.tests a:focus-visible,.tests [tabindex]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.tests-tabs { display:flex; gap:28px; border-bottom:1px solid var(--line2); margin-bottom:24px; }
.tests-tabs button { min-height:48px; border:0; border-bottom:2px solid transparent; background:transparent; padding:8px 0 14px; color:var(--sub); font-size:15px; white-space:nowrap; }
.tests-tabs button[aria-selected=true] { border-color:var(--txt); color:var(--txt); font-weight:700; }
.tests-toolbar { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:28px; }
.tests-event-picker { width:min(390px,100%); }
.tests-field { display:flex; flex-direction:column; gap:7px; min-width:0; color:var(--sub); font-size:12px; }
.tests-field input,.tests-field textarea { width:100%; min-height:44px; border:1px solid var(--line2); background:var(--surface); padding:9px 12px; color:var(--txt); font-size:14px; }
.tests-field textarea { resize:vertical; line-height:1.7; }
.tests-field .combo { width:100%; }
.tests-field .combo input { padding-right:30px; }
.tests-field .combo-list { width:100%; color:var(--txt); font-size:14px; max-height:300px; overflow:auto; }
.tests-field .combo-item { white-space:normal; overflow-wrap:anywhere; min-height:38px; }
.tests-actions { display:flex; gap:10px; flex:none; }
.tests-button { min-height:44px; border:1px solid var(--line2); background:var(--surface); color:var(--txt); padding:9px 16px; }
.tests-primary { background:var(--txt); border-color:var(--txt); color:var(--surface); font-weight:600; }
.tests-button:hover { background:var(--hover); }
.tests-primary:hover { background:var(--nav-bg,#292e23); color:var(--surface); }
.tests-filters { display:grid; grid-template-columns:minmax(200px,1.1fr) minmax(160px,1fr) minmax(140px,.75fr) auto; align-items:end; gap:16px; margin-bottom:20px; }
.tests-physical-filters { grid-template-columns:minmax(170px,1fr) minmax(160px,1fr) minmax(150px,1fr) minmax(110px,.7fr) auto; }
.tests-reset,.tests-inline { min-height:44px; padding:8px 0; border:0; background:transparent; color:var(--sub); font-size:12px!important; text-decoration:underline; text-underline-offset:4px; }
.tests-reset:hover,.tests-inline:hover { color:var(--txt); }
.tests-ranks { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)) minmax(70px,.95fr); margin:0 0 28px; border-block:1px solid var(--line2); }
.tests-ranks button { border:0; border-right:1px solid var(--line); background:transparent; color:var(--txt); padding:13px 8px 10px; min-height:66px; text-align:center; }
.tests-ranks button:last-child { border-right:0; }
.tests-ranks button:hover { background:var(--hover); }
.tests-ranks button[aria-pressed=true] { background:var(--txt); color:var(--surface); }
.tests-ranks span { display:block; font-family:var(--font-ui); font-size:24px; font-weight:600; line-height:1.2; }
.tests-ranks small { display:block; margin-top:4px; font-size:11px; }
.tests-ranks .tests-rank-missing span { font-family:var(--font-ui); font-size:12px; }
.tests-list-head { display:flex; justify-content:space-between; gap:16px; margin-bottom:8px; }
.tests-count,.tests-muted { margin:0; color:var(--sub); font-size:12px; line-height:1.8; }
.tests-coverage { margin:0 0 24px; padding:0 0 0 12px; border-left:2px solid var(--line2); color:var(--sub); font-size:12px; line-height:1.8; }
.tests-coverage p { margin:0; }
.tests-table-scroll { overflow:auto; max-width:100%; border-bottom:1px solid var(--line); overscroll-behavior-x:contain; }
.tests-table { width:100%; min-width:760px; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.tests-table th,.tests-table td { padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.tests-table thead th { padding-block:10px; background:var(--table-head); color:var(--sub); font-size:12px; font-weight:500; }
.tests-table tbody tr { cursor:pointer; }
.tests-table th:first-child { position:sticky; left:0; background:var(--surface); min-width:130px; z-index:1; }
.tests-table thead th:first-child { background:var(--table-head); }
.tests-table tbody tr:hover > *,.tests-table tbody tr:focus-within > * { background:var(--hover); }
.tests-table .tests-rank-col { width:90px; }
.tests-table .tests-score-col,.tests-table .tests-score { text-align:right; }
.tests-table .tests-score { font-size:15px; font-weight:500; }
.tests-physical-table { min-width:940px; }
.tests-unit { font-weight:400; font-size:11px; }
.tests-table .tests-dots { font-size:19px; font-weight:600; }
.tests-metric-label { display:block; margin-top:4px; color:var(--sub); font-size:11px; font-weight:400; }
.tests-assessment-summary { display:flex; flex-direction:column; gap:7px; }
.tests-assessment-summary > div { display:flex; align-items:center; gap:8px; }
.tests-assessment-summary small { color:var(--sub); font-size:10px; min-width:2em; }
.tests-name { border:0; background:transparent; color:var(--txt); font-weight:700!important; text-align:left; min-height:36px; padding:4px 0; text-decoration:underline; text-decoration-color:var(--line2); text-underline-offset:5px; }
.tests-member-status { display:block; font-size:10px; color:var(--sub); font-weight:400; }
.tests-store-period { display:block; font-size:10px; color:var(--sub); margin-top:4px; }
.tests-event-cell span { display:block; font-size:13px; }
.tests-event-cell small { display:block; font-size:11px; color:var(--sub); margin-top:4px; }
.tests-rank { font-family:var(--font-ui); font-size:23px; font-weight:600; line-height:1.2; }
.tests-result { display:inline-flex; align-items:center; gap:6px; font-size:12px; white-space:nowrap; }
.tests-result::before { content:'—'; color:var(--sub); }
.tests-result-pass { color:#27634c; }
.tests-result-pass::before { content:'✓'; color:currentColor; }
.tests-result-fail { color:#944433; }
.tests-result-fail::before { content:'×'; color:currentColor; }
.tests-result-unknown { color:var(--sub); }
.tests-open-mark { color:var(--sub); text-align:right!important; width:30px; }
.tests-no-match { padding:32px 16px!important; text-align:center!important; }
.tests-no-match .tests-reset { display:block; margin:auto; }
.tests-state { padding:38px 0 50px; line-height:1.8; }
.tests-state p { margin:0 0 14px; }
.tests-empty { padding-top:42px; }
.tests-empty-rule { display:block; width:40px; border-top:2px solid var(--txt); margin:0 0 24px; }
.tests-empty h2 { font-size:18px; margin:0 0 12px; font-weight:500; }
.tests-empty p { color:var(--sub); font-size:13px; }
.tests-drawer { position:fixed; inset:0 0 0 auto; width:460px; max-width:100vw; height:100dvh; max-height:none; margin:0; padding:0; border:0; border-left:1px solid var(--line2); background:var(--surface); color:var(--txt); overflow:auto; }
.tests-drawer[open] { display:flex; flex-direction:column; animation:tests-enter .18s ease-out; }
.tests-drawer::backdrop { background:rgb(19 24 16 / .28); }
.tests-drawer-head { display:flex; gap:20px; justify-content:space-between; align-items:start; padding:28px 28px 20px; border-bottom:1px solid var(--line); }
.tests-drawer-head h2 { font-size:23px; margin:8px 0 0; line-height:1.5; overflow-wrap:anywhere; }
.tests-eyebrow { margin:0; color:var(--sub); font-size:12px; }
.tests-close { flex:none; min-width:44px; min-height:44px; border:1px solid var(--line2); background:transparent; color:var(--txt); font-size:24px!important; line-height:1; }
.tests-close:hover { background:var(--hover); }
.tests-drawer-body { padding:24px 28px 32px; flex:1; }
.tests-detail-store { margin:0 0 24px; color:var(--sub); font-size:13px; }
.tests-archive-note { margin:-12px 0 24px; color:var(--sub); font-size:12px; line-height:1.8; }
.tests-detail-coverage { margin-bottom:20px; }
.tests-detail-list { margin:0; }
.tests-detail-list > div { display:grid; grid-template-columns:94px minmax(0,1fr); gap:16px; padding:14px 0; border-bottom:1px solid var(--line); align-items:center; }
.tests-detail-list dt { color:var(--sub); font-size:12px; }
.tests-detail-list dd { margin:0; overflow-wrap:anywhere; font-size:14px; }
.tests-detail-list dd small { display:block; color:var(--sub); font-size:11px; margin-top:5px; }
.tests-detail-list .tests-detail-grade dd { font-size:32px; }
.tests-detail-section { margin-top:28px; }
.tests-detail-section h3 { margin:0 0 12px; font-size:13px; font-weight:600; }
.tests-measurements { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 20px; margin:0; }
.tests-measurements > div { min-width:0; padding:12px 0; border-bottom:1px solid var(--line); }
.tests-measurements dt { color:var(--sub); font-size:12px; }
.tests-measurements dt small { font-size:11px; }
.tests-measurements dd { margin:5px 0 0; font-size:16px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.tests-measurements [data-test-detail-measurement="dots"] { font-size:22px; font-weight:600; }
.tests-comment { font-size:14px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; margin:0; }
.tests-sources { padding:0; margin:0; list-style:none; }
.tests-sources li { padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; overflow-wrap:anywhere; }
.tests-sources a { color:var(--txt); text-underline-offset:4px; }
.tests-drawer-footer { position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:10px; border-top:1px solid var(--line); padding:16px 28px; background:var(--surface); }
.tests-form { display:flex; flex-direction:column; gap:20px; }
.tests-form .tests-inline { align-self:start; padding-top:0; margin-top:-12px; min-height:30px; }
.tests-form-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.tests-form-section { border:0; padding:0; margin:0; min-width:0; }
.tests-form-section legend { font-size:13px; font-weight:600; margin:0 0 14px; padding:0; }
.tests-form-error { padding:12px; margin:0; border:1px solid #b07461; background:#fcf0e9; color:#723b2c; font-size:13px; line-height:1.7; }
.tests-form-error .tests-inline { display:block; color:inherit; margin:0; }
.tests-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@keyframes tests-enter { from { opacity:0; transform:translateX(15px); } to { opacity:1; transform:none; } }
@media(max-width:1000px) { .tests-filters { grid-template-columns:minmax(180px,1fr) minmax(150px,1fr) minmax(120px,.7fr); } .tests-physical-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .tests-filters > .tests-reset { justify-self:start; grid-column:1/-1; min-height:24px; padding:0; margin-top:-4px; } }
@media(max-width:640px) {
  .tests-tabs { gap:0; margin-bottom:22px; }
  .tests-tabs button { flex:1; min-width:0; white-space:normal; font-size:12px; padding:8px 5px 12px; line-height:1.65; }
  .tests-toolbar { flex-wrap:wrap; align-items:stretch; gap:14px; margin-bottom:24px; }
  .tests-event-picker { width:100%; }
  .tests-actions { width:100%; justify-content:flex-end; }
  .tests-actions .tests-button { min-height:40px; font-size:12px; padding:8px 12px; }
  .tests-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; }
  .tests-search { grid-column:1/-1; }
  .tests-ranks { grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:0; margin-bottom:24px; }
  .tests-ranks button { border-bottom:1px solid var(--line2); min-height:60px; padding:10px 8px; }
  .tests-ranks button:nth-child(4n) { border-right:0; }
  .tests-ranks .tests-rank-missing { grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:8px; padding:8px; min-height:36px; }
  .tests-ranks .tests-rank-missing small { margin:0; }
  .tests-list-head { flex-wrap:wrap; gap:4px; }
  .tests-table th,.tests-table td { padding:10px; }
  .tests-table th:first-child { min-width:110px; }
  .tests-drawer { width:100%; border-left:0; }
  .tests-drawer-head { padding:20px 20px 16px; }
  .tests-drawer-body { padding:22px 20px 28px; }
  .tests-drawer-footer { padding:14px 20px; flex-wrap:wrap; }
  .tests-drawer-head h2 { font-size:21px; }
  .tests-detail-list > div { grid-template-columns:80px minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .tests-drawer[open] { animation:none; } }
