.bt-tool {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.bt-hero,
.bt-panel,
.bt-map-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(19, 41, 32, .96), rgba(12, 25, 20, .98));
    box-shadow: var(--shadow);
}

.bt-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 18px;
    padding: 18px;
    align-items: stretch;
}

.bt-hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.bt-hero h2,
.bt-section-heading h2 {
    margin: 0;
    color: #fff;
    line-height: 1.15;
}

.bt-hero h2 {
    font-size: clamp(28px, 4vw, 48px);
}

.bt-lede {
    max-width: 820px;
    margin: 14px 0 0;
    color: #dce8e1;
    font-size: 17px;
}

.bt-facts,
.bt-links,
.bt-bracket-tabs,
.bt-progress,
.bt-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-facts {
    margin-top: 18px;
}

.bt-facts span,
.bt-links a {
    border: 1px solid rgba(226, 180, 67, .28);
    border-radius: 6px;
    background: rgba(226, 180, 67, .08);
    color: #f4d27b;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}

.bt-map-card {
    display: grid;
    align-content: stretch;
    margin: 0;
    overflow: hidden;
    background: #0b1612;
}

.bt-map-card img {
    display: block;
    width: 100%;
    min-height: 250px;
    object-fit: cover;
    image-rendering: pixelated;
}

.bt-map-card figcaption {
    padding: 10px 12px;
    color: #b9cbc1;
    font-size: 13px;
}

.bt-links a:hover {
    border-color: var(--gold);
    color: #fff;
}

.bt-panel {
    padding: 18px;
}

.bt-section-heading {
    margin-bottom: 14px;
}

.bt-rule-grid,
.bt-check-grid,
.bt-grid,
.bt-shell-list,
.bt-faq-grid,
.bt-log-grid {
    display: grid;
    gap: 12px;
}

.bt-rule-grid,
.bt-shell-list,
.bt-faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bt-rule-grid article,
.bt-shell-list div,
.bt-faq-grid article {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(101, 168, 255, .22);
    border-radius: 8px;
    background: rgba(101, 168, 255, .06);
}

.bt-rule-grid strong,
.bt-shell-list strong {
    display: block;
    color: #fff;
    font-size: 16px;
}

.bt-rule-grid span,
.bt-shell-list span {
    display: block;
    margin-top: 5px;
    color: #b7c8bf;
}

.bt-bracket-tabs {
    margin-bottom: 14px;
}

.bt-bracket-tabs button,
.bt-controls button,
.bt-progress button {
    min-height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #11221a;
    color: #dbe7df;
    cursor: pointer;
    font-weight: 850;
}

.bt-bracket-tabs button,
.bt-controls button,
.bt-progress button {
    padding: 7px 12px;
}

.bt-bracket-tabs button:hover,
.bt-bracket-tabs button.is-active,
.bt-controls button:hover,
.bt-controls button.is-active,
.bt-progress button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.bt-bracket-output {
    display: grid;
    gap: 10px;
}

.bt-bracket-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(226, 180, 67, .3);
    border-radius: 8px;
    background: rgba(226, 180, 67, .07);
}

.bt-bracket-card h3 {
    margin: 0;
    color: #fff;
}

.bt-bracket-card p {
    margin: 0;
    color: #dbe7df;
}

.bt-bracket-card ul {
    margin: 0;
    padding-left: 20px;
    color: #b7c8bf;
}

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

.bt-check {
    display: flex;
    min-width: 0;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.bt-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--gold);
}

.bt-check span,
.bt-check strong,
.bt-check em {
    display: block;
    min-width: 0;
}

.bt-check strong {
    color: #fff;
}

.bt-check em {
    margin-top: 3px;
    color: #9fb1a7;
    font-style: normal;
    font-size: 13px;
}

.bt-progress {
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: #f4d27b;
    font-weight: 800;
}

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

.bt-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

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

.bt-table th {
    background: #0e1d17;
    color: #f4d27b;
    font-size: 12px;
    text-transform: uppercase;
}

.bt-table td {
    color: #dbe7df;
}

.bt-table td:first-child {
    color: #fff;
    font-weight: 850;
}

.bt-count {
    margin: 10px 0 0;
    color: #9fb1a7;
    font-weight: 800;
}

.bt-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.bt-item-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: #b7c8bf;
}

.bt-item-list strong,
.bt-faq-grid h3 {
    color: #fff;
}

.bt-faq-grid h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.bt-faq-grid p {
    margin: 0;
    color: #b7c8bf;
}

.bt-log-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bt-log-grid label,
.bt-panel textarea {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.bt-log-grid span {
    color: #f4d27b;
    font-size: 13px;
    font-weight: 850;
}

.bt-log-grid input,
.bt-panel textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #0b1612;
    color: #fff;
    padding: 10px 11px;
}

.bt-panel textarea {
    margin-top: 12px;
    resize: vertical;
}

@media (max-width: 920px) {
    .bt-hero,
    .bt-grid {
        grid-template-columns: 1fr;
    }

    .bt-rule-grid,
    .bt-check-grid,
    .bt-shell-list,
    .bt-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .bt-hero,
    .bt-panel {
        padding: 14px;
    }

    .bt-hero h2 {
        font-size: 30px;
    }

    .bt-lede {
        font-size: 15px;
    }

    .bt-rule-grid,
    .bt-check-grid,
    .bt-shell-list,
    .bt-faq-grid,
    .bt-log-grid {
        grid-template-columns: 1fr;
    }

    .bt-table {
        min-width: 680px;
    }
}
