body:has(.tester-home) {
    background: radial-gradient(ellipse at 50% 0, #e9f4ed, transparent 52rem), #f5f8f6;
}

.tester-home {
    --tester-inset: clamp(12px, 2.2vw, 24px);
    --tester-line: #d5e5dc;
    --tester-accent: #17664e;
    --tester-accent-hover: #11533f;
    --tester-tint: #e6f4ec;
    display: grid;
    gap: clamp(10px, 1.2vw, 15px);
    max-width: 1240px;
    padding-block: clamp(12px, 1.8vw, 24px) 40px;
}

.tester-home :is(.input-card, .results) {
    margin: 0;
    border-color: var(--tester-line);
    border-radius: 18px;
    box-shadow: 0 3px 6px #143d2b08, 0 14px 35px #143d2b08;
}

.tester-home .input-card { padding: 0; }
.tester-card-heading {
    display: grid;
    position: relative;
    isolation: isolate;
    align-items: center;
    gap: clamp(8px, 1.3vw, 16px);
    padding: clamp(10px, 1.5vw, 19px) var(--tester-inset);
    border-bottom: 1px solid var(--tester-line);
    border-radius: 17px 17px 0 0;
    color: #153a2e;
    background: linear-gradient(110deg, #f8fcf8 8%, #e0f2e7 100%);
    box-shadow: inset 0 3px #8ac19f;
}
.tester-card-heading h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.7rem);
    font-weight: 760;
    line-height: 1.04;
    letter-spacing: -.055em;
}
.tester-card-heading > div:first-child > p {
    margin-top: 4px;
    color: #365b4b;
    font-size: clamp(.72rem, 3.2vw, 1rem);
    line-height: 1.25;
}
.tester-hourly-limits {
    padding: 6px 9px;
    border: 1px solid #c5dfd0;
    border-radius: 11px;
    background: #ffffffc9;
}
.tester-hourly-limits > p {
    color: #395e4d;
    font-size: .79rem;
    font-weight: 650;
}
.tester-hourly-limits dl {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    margin: 3px 0 0;
}
.tester-hourly-limits dl > div { display: flex; flex-direction: column-reverse; align-self: start; gap: 2px; }
.tester-hourly-limits dl > div + div { padding-inline-start: 8px; border-inline-start: 1px solid #c5dfd0; }
.tester-hourly-limits dt { color: #395e4d; font-size: .82rem; line-height: 1.2; }
.tester-hourly-limits dt a { color: var(--tester-accent); font-weight: 650; text-underline-offset: 2px; }
.tester-hourly-limits dt a:is(:hover, :focus-visible) { color: var(--tester-accent-hover); }
.tester-hourly-limits dt a:focus-visible { outline-color: var(--tester-accent); }
.tester-hourly-limits dd {
    margin: 0;
    font-size: clamp(1.18rem, 2.1vw, 1.52rem);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.tester-card-content { padding: var(--tester-inset); }
.tester-card-content noscript .notice { margin: 0 0 10px; }
.tester-home .count {
    flex-shrink: 0;
    padding: 5px 9px;
    border: 1px solid var(--tester-line);
    border-radius: 999px;
    color: #365848;
    background: var(--tester-tint);
}
.tester-home .card .section-icon,
.tester-home .tester-guide-cards .section-icon {
    color: var(--tester-accent);
    background: var(--tester-tint);
}
.tester-home .proxy-input-layout { gap: 12px; }
.tester-home .editor {
    border-color: #c7dcd1;
    border-radius: 12px;
    background: #fbfdfc;
}
.tester-home .editor:focus-within { outline-color: #55977e; }
.tester-home .gutter,
.tester-home .editor:focus-within .gutter {
    color: #52675b;
    background: #eff8f3;
    border-color: var(--tester-line);
}
.tester-home #proxies {
    color: var(--ink);
    caret-color: var(--tester-accent);
    background: #fbfdfc;
    scrollbar-color: #80988a #fbfdfc;
}
.tester-home #proxies::placeholder { color: #52675b; }
.tester-home .settings {
    border-color: var(--tester-line);
    border-radius: 12px;
    background: #f5faf7;
}
.tester-home .settings-summary { min-height: 47px; }
.tester-home .settings-summary:hover { background: #ebf5ef; }
.tester-home .proxy-submit { min-width: 0; }
.tester-home .input-actions,
.tester-home .import-actions { align-items: start; }
.tester-home .import-actions:has(.blacklist-links > a:only-child) {
    grid-template-columns: repeat(2, minmax(max-content, 1fr));
}
.tester-home :is(.import-actions > .upload, .blacklist-links > a:only-child) { white-space: nowrap; }
.tester-home #run {
    color: #fff;
    background: var(--tester-accent);
    border-color: var(--tester-accent);
    box-shadow: 0 2px 3px #123e2d26;
}
.tester-home #run:hover:not(:disabled) { background: var(--tester-accent-hover); border-color: var(--tester-accent-hover); }
.tester-home #run:focus-visible { outline-color: var(--tester-accent); }
.tester-home .input-actions :is(.secondary, .upload) {
    border-color: #cfdfd5;
    color: #27513e;
    background: #f7fbf8;
}
.tester-home .input-actions :is(.secondary:not(:disabled), .upload):hover,
.tester-home .upload:focus-within { background: var(--tester-tint); }

.tester-home .buyproxies-panel { margin: 0; }
.tester-home .buyproxies-panel a {
    border-color: #c7dfce;
    background: linear-gradient(105deg, #e3f3e5, #f7fbf5);
}
.tester-home .buyproxies-emblem { width: 36px; }
.tester-home .buyproxies-cta { min-height: 40px; }
.tester-home .results { --result-green: var(--tester-accent); --result-line: var(--tester-line); }
.tester-home .results tbody tr:has(.row-pick input:checked) { background: #edf8f1; }
.tester-home .results .result-top {
    align-items: center;
    padding-inline: var(--tester-inset);
}
.tester-home .results .result-controls { padding-inline: var(--tester-inset); }
.tester-home .empty {
    justify-content: flex-start;
    min-height: 64px;
    margin: 0 var(--tester-inset) var(--tester-inset);
    padding: 12px 14px;
    border: 1px solid var(--tester-line);
    border-radius: 12px;
    background: #f5faf7;
}
.tester-home .empty-icon {
    flex: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    color: var(--tester-accent);
    background: var(--tester-tint);
}
.tester-home .empty-icon::after {
    width: 17px;
    height: 17px;
    border: 0;
    border-radius: 0;
    background: currentColor;
    mask: url('/assets/action-icons.svg#list') center / contain no-repeat;
}
@container (max-width: 735px) {
    .tester-home .results .table-scroll { background: #f0f7f3; }
    .tester-home .results tbody tr {
        border-color: var(--tester-line);
        border-radius: 12px;
        box-shadow: 0 2px 6px #143d2b08;
    }
    .tester-home .results tbody tr:has(.row-pick input:checked) {
        border-color: #93bea7;
        box-shadow: inset 3px 0 var(--tester-accent);
    }
}

.tester-steps {
    padding: var(--tester-inset);
    border: 1px solid var(--tester-line);
    border-radius: 14px;
    background: #fff;
}
.tester-steps ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px clamp(14px, 2.4vw, 32px);
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
    counter-reset: proxy-step;
}
.tester-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    counter-increment: proxy-step;
}
.tester-steps li::before {
    content: counter(proxy-step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    color: var(--tester-accent);
    background: var(--tester-tint);
    font-size: .9rem;
    font-weight: 750;
}
.tester-steps h3 { margin-bottom: 3px; font-size: 1rem; line-height: 1.35; }
.tester-steps li p { color: #506257; font-size: .91rem; line-height: 1.45; }
.tester-steps a { color: var(--tester-accent); font-weight: 650; }

.tester-guides { padding-top: 8px; }
.tester-guides-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 12px;
}
.tester-guide-references {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: .92rem;
    font-weight: 650;
}
.tester-guide-references a { color: var(--tester-accent); }
.tester-guide-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.tester-guide-cards a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--tester-line);
    border-radius: 12px;
    color: #1f382c;
    background: #fff;
    text-decoration: none;
}
.tester-guide-cards a:hover {
    border-color: #a4c7b4;
    background: #f4faf6;
}
.tester-guide-cards a:hover strong { text-decoration: underline; }
.tester-guide-cards a > span:last-child {
    display: grid;
    gap: 4px;
    font-size: .9rem;
    line-height: 1.3;
    color: #506257;
}
.tester-guide-cards strong { color: #1f382c; font-size: .99rem; font-weight: 710; }
.tester-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
}
.tester-faq .help {
    padding: 0;
    border: 1px solid var(--tester-line);
    border-radius: 11px;
    background: #fff;
}
.tester-faq summary {
    padding: 12px 14px;
    border-radius: inherit;
}
.tester-faq summary:hover { background: #f6faf6; }
.tester-faq .help p { margin: 0; padding: 0 14px 12px; }

@media (min-width: 760px) {
    .tester-home { --tester-sidebar: clamp(245px, 27%, 320px); }
    .tester-card-heading,
    .tester-home .proxy-input-layout { grid-template-columns: minmax(0, 1fr) var(--tester-sidebar); }
    .tester-home .proxy-input-layout {
        grid-template-areas:
            "editor settings"
            "editor actions";
        grid-template-rows: auto 1fr;
        align-items: stretch;
        row-gap: 8px;
    }
    .tester-home .proxy-editor { grid-area: editor; display: flex; flex-direction: column; }
    .tester-home .proxy-sidebar { grid-area: settings; }
    .tester-home .proxy-submit { grid-area: actions; }
    .tester-hourly-limits { padding: 8px 11px; }
}
@media (min-width: 960px) {
    .tester-card-heading::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 3px 1px 0 auto;
        width: 48%;
        border-radius: 0 16px 0 0;
        background: radial-gradient(circle, #57947552 1px, transparent 1.4px) 0 0 / 13px 13px;
        mask-image: linear-gradient(to right, transparent, #000);
        pointer-events: none;
    }
}
@media (min-width: 481px) {
    .tester-home .import-actions :is(.secondary, .upload) {
        gap: 4px;
        min-height: 42px;
        padding-inline: 5px;
        font-size: .85rem;
    }
}
@media (min-width: 481px) and (max-width: 759px) {
    .tester-home .input-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tester-home .import-actions { grid-column: span 2; }
    .tester-home .input-actions :is(.secondary, .upload) { min-height: 48px; }
}
@media (max-width: 960px) {
    .tester-guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
    .tester-steps ol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
    .tester-guide-cards,
    .tester-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
    .tester-hourly-limits { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; }
    .tester-hourly-limits > p { max-width: 9ch; line-height: 1.2; }
    .tester-hourly-limits dl { margin: 0; }
}
@media (max-width: 600px) {
    .tester-home .buyproxies-emblem { width: 30px; }
}
@media (max-width: 350px) {
    .tester-card-heading { padding-inline: 8px; }
    .tester-card-heading > div:first-child > p { letter-spacing: -.028em; }
    .tester-home .buyproxies-panel a { gap: 8px; padding-inline: 9px; }
    .tester-home .buyproxies-wordmark { gap: 6px; font-size: .9rem; }
    .tester-home .buyproxies-emblem { width: 24px; }
    .tester-home .buyproxies-cta { gap: 5px; padding-inline: 8px; font-size: .85rem; }
}
