.red-tool {
    display: grid;
    gap: 18px;
}

.red-hero,
.red-panel,
.red-route-grid figure {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(19, 41, 32, .96), rgba(12, 24, 20, .98));
    box-shadow: var(--shadow);
}

.red-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 18px;
    padding: 20px;
    align-items: stretch;
}

.red-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.red-hero h2,
.red-section-heading h2 {
    margin: 0;
    color: #fff;
}

.red-hero h2 {
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1;
}

.red-lede {
    max-width: 68ch;
    margin: 0;
    color: #d6e5dd;
    font-size: 17px;
}

.red-facts,
.red-toolbar,
.red-match-picker,
.red-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.red-facts span,
.red-toolbar button,
.red-match-picker button,
.red-progress button,
.red-link-grid a {
    min-height: 34px;
    border: 1px solid rgba(226, 180, 67, .28);
    border-radius: 6px;
    background: rgba(8, 16, 13, .72);
    color: #dcebe4;
}

.red-facts span,
.red-link-grid a {
    padding: 7px 10px;
}

.red-summit-card,
.red-route-grid figure {
    margin: 0;
    overflow: hidden;
}

.red-summit-card {
    display: grid;
    align-content: space-between;
    background: #08100d;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.red-summit-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.red-summit-card figcaption,
.red-route-grid figcaption {
    padding: 10px 12px;
    color: #b9cbc2;
    font-size: 14px;
}

.red-panel {
    padding: 18px;
}

.red-section-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.red-role-grid,
.red-check-grid,
.red-grid,
.red-route-grid,
.red-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.red-role-grid article,
.red-check,
.red-level-result,
.red-item-results div,
.red-match-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .58);
}

.red-role-grid article {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.red-role-grid strong,
.red-check strong,
.red-match-card strong {
    color: #fff;
}

.red-role-grid span,
.red-check em,
.red-match-card span {
    color: #b7cac0;
}

.red-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    cursor: pointer;
}

.red-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--gold);
}

.red-check span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.red-check em {
    font-style: normal;
}

.red-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--gold-2);
    font-weight: 800;
}

.red-toolbar,
.red-match-picker {
    margin-bottom: 12px;
}

.red-toolbar button,
.red-match-picker button,
.red-progress button {
    padding: 7px 10px;
    cursor: pointer;
}

.red-toolbar button:hover,
.red-toolbar button.is-active,
.red-match-picker button:hover,
.red-match-picker button.is-active,
.red-progress button:hover,
.red-link-grid a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(226, 180, 67, .12);
}

.red-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.red-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.red-table th,
.red-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.red-table th {
    background: rgba(226, 180, 67, .1);
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
}

.red-table td {
    color: #c9d8d1;
}

.red-mon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #fff;
    font-weight: 850;
}

.red-mon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: pixelated;
    flex: 0 0 auto;
}

.red-count {
    margin: 10px 0 0;
    color: var(--muted);
}

.red-input-label {
    display: block;
    margin-bottom: 8px;
    color: #dcebe4;
    font-weight: 800;
}

.red-grid input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
}

.red-level-result {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    padding: 14px;
}

.red-level-result strong {
    color: var(--gold-2);
    font-size: 28px;
}

.red-level-result span {
    color: #c7d8d0;
}

.red-item-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.red-item-results div {
    display: grid;
    gap: 3px;
    padding: 12px;
}

.red-item-results strong {
    color: var(--gold-2);
    font-size: 24px;
}

.red-item-results span {
    color: #c7d8d0;
}

.red-match-card {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.red-route-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.red-route-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #08100d;
}

.red-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.red-link-grid a {
    text-decoration: none;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 860px) {
    .red-hero,
    .red-role-grid,
    .red-check-grid,
    .red-grid,
    .red-route-grid,
    .red-link-grid {
        grid-template-columns: 1fr;
    }

    .red-hero {
        padding: 16px;
    }

    .red-summit-card img {
        min-height: 210px;
    }

    .red-lede {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .article-header,
    .article-body {
        padding: 16px;
    }

    .red-panel {
        padding: 14px;
    }

    .red-item-results {
        grid-template-columns: 1fr;
    }

    .red-progress {
        align-items: stretch;
        flex-direction: column;
    }
}
