#testTile { padding: 18px; }
.test-card { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.test-card p { margin: 0; }
.test-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
#testStatus { overflow-wrap: anywhere; }
.test-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.test-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; container-type: inline-size; }
.test-actions button.primary { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; padding: 12px 6px; text-align: center; font-size: clamp(10px, 3cqw, 16px); line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.test-fields label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 13px; }
.test-fields input, .test-fields select { width: 100%; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--text); background-color: var(--panel); font: inherit; }
.test-fields select { appearance: none; padding-right: 26px; background-image: url(down_arrow.svg); background-repeat: no-repeat; background-position: right 8px center; background-size: 12px; }
.test-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; padding: 8px 0; margin: 0; }
.test-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); }
.test-step:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 3px; border-radius: 2px; background: var(--line); }
.test-step[data-state="passed"]::after { background: var(--green); }
.test-step-marker { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--line); border-radius: 50%; background: var(--panel); font-size: 16px; font-weight: 600; }
.test-step-marker img { display: none; width: 28px; height: 28px; filter: brightness(0) invert(1); }
.test-step[data-state="passed"] .test-step-marker { background: var(--green); border-color: var(--green); }
.test-step[data-state="passed"] .test-step-number { display: none; }
.test-step[data-state="passed"] .test-step-marker img { display: block; }
.test-step[data-state="active"] { color: var(--text); font-weight: 650; }
.test-step[data-state="active"] .test-step-marker { color: var(--green); border-color: var(--green); animation: test-step-pulse 1.6s ease-in-out infinite; }
.test-step:is([data-state="failed"], [data-state="cancelled"]) .test-step-marker { color: var(--red); border-color: var(--red); background: rgba(var(--red-rgb), 0.063); }
.test-step:is([data-state="failed"], [data-state="cancelled"]) { color: var(--red); }
.test-step-progress { appearance: none; width: calc(100% - 20px); height: 4px; border: 0; border-radius: 3px; overflow: hidden; background: var(--line); }
.test-step-progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
.test-step-progress::-webkit-progress-value { background: var(--green); border-radius: 3px; transition: width .2s ease; }
.test-step-progress::-moz-progress-bar { background: var(--green); border-radius: 3px; }
.test-step[data-state="passed"] .test-step-progress::-webkit-progress-value { background: var(--green); }
.test-step:is([data-state="failed"], [data-state="cancelled"]) .test-step-progress::-webkit-progress-value { background: var(--red); }
.test-step[data-state="passed"] .test-step-progress::-moz-progress-bar { background: var(--green); }
.test-step:is([data-state="failed"], [data-state="cancelled"]) .test-step-progress::-moz-progress-bar { background: var(--red); }
@keyframes test-step-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.188); } 50% { box-shadow: 0 0 0 6px rgba(var(--green-rgb), 0.000); } }
@media (prefers-reduced-motion: reduce) { .test-step[data-state="active"] .test-step-marker { animation: none; } }
