.tmhm-tool {
    display: grid;
    gap: 18px;
    overflow-wrap: anywhere;
}

.tmhm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 380px);
    gap: 18px;
    align-items: stretch;
}

.tmhm-hero-copy,
.tmhm-fast-card,
.tmhm-panel {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(19, 41, 32, .96), rgba(9, 19, 16, .98));
    box-shadow: var(--shadow);
}

.tmhm-hero-copy,
.tmhm-fast-card,
.tmhm-panel {
    padding: 18px;
}

.tmhm-hero-copy h2,
.tmhm-fast-card h3,
.tmhm-panel h2,
.tmhm-decision-grid h3 {
    margin: 0;
    color: #fff;
    line-height: 1.12;
}

.tmhm-hero-copy h2 {
    max-width: 950px;
    font-size: clamp(28px, 5vw, 46px);
}

.tmhm-lede,
.tmhm-fast-card p,
.tmhm-answer li,
.tmhm-panel p,
.tmhm-checks label,
.tmhm-hm-list span {
    color: #d8e7df;
}

.tmhm-lede {
    max-width: 950px;
    font-size: 17px;
}

.tmhm-stat-strip,
.tmhm-links,
.tmhm-controls,
.tmhm-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tmhm-stat-strip span,
.tmhm-links a,
.tmhm-button-row button,
.tmhm-reset {
    border: 1px solid rgba(226, 180, 67, .42);
    border-radius: 6px;
    background: rgba(226, 180, 67, .11);
    color: #f5d882;
}

.tmhm-stat-strip span {
    padding: 7px 10px;
    font-weight: 850;
}

.tmhm-links {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .72);
}

.tmhm-links a,
.tmhm-button-row button,
.tmhm-reset {
    min-height: 36px;
    padding: 7px 10px;
    font-weight: 800;
    cursor: pointer;
}

.tmhm-links a:hover,
.tmhm-button-row button:hover,
.tmhm-button-row button.is-active,
.tmhm-reset:hover {
    background: var(--gold);
    color: #08100d;
}

.tmhm-answer {
    display: grid;
    grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
    gap: 16px;
    border-color: rgba(226, 180, 67, .46);
    background: linear-gradient(135deg, rgba(226, 180, 67, .16), rgba(9, 19, 16, .98));
}

.tmhm-answer ol {
    margin: 0;
    padding-left: 20px;
}

.tmhm-answer li + li {
    margin-top: 8px;
}

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

.tmhm-controls {
    justify-content: space-between;
    margin-bottom: 10px;
}

.tmhm-controls label {
    display: grid;
    gap: 6px;
    min-width: min(100%, 420px);
    color: #d8e7df;
    font-weight: 800;
}

.tmhm-controls input {
    min-height: 40px;
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #0a1411;
    color: #fff;
    padding: 8px 10px;
}

.tmhm-count {
    min-height: 22px;
    margin-bottom: 8px;
    color: #b8c9c1;
    font-weight: 800;
}

.tmhm-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tmhm-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

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

.tmhm-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #14281f;
    color: #f5d882;
    font-size: 12px;
    text-transform: uppercase;
}

.tmhm-table td {
    color: #d8e7df;
}

.tmhm-table tr:last-child td {
    border-bottom: 0;
}

.tmhm-table .tmhm-no {
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

.tmhm-table .tmhm-move {
    color: #fff;
    font-weight: 850;
}

.tmhm-type {
    display: inline-flex;
    min-width: 74px;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(101, 168, 255, .16);
    color: #cfe3ff;
    font-size: 12px;
    font-weight: 900;
}

.tmhm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    gap: 18px;
}

.tmhm-checks,
.tmhm-hm-list,
.tmhm-decision-grid {
    display: grid;
    gap: 10px;
}

.tmhm-checks label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 16, 13, .58);
    font-weight: 750;
}

.tmhm-checks input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.tmhm-reset {
    width: fit-content;
    margin-top: 12px;
}

.tmhm-hm-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tmhm-hm-list div,
.tmhm-decision-grid article {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 16, 13, .58);
}

.tmhm-hm-list strong,
.tmhm-hm-list span {
    display: block;
}

.tmhm-hm-list strong {
    color: #fff;
}

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

.tmhm-decision-grid h3 {
    font-size: 16px;
}

.tmhm-decision-grid p {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .tmhm-hero,
    .tmhm-answer,
    .tmhm-grid,
    .tmhm-decision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .tmhm-hero-copy,
    .tmhm-fast-card,
    .tmhm-panel {
        padding: 14px;
    }

    .tmhm-button-row,
    .tmhm-links {
        align-items: stretch;
    }

    .tmhm-button-row button,
    .tmhm-links a {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    .tmhm-hm-list {
        grid-template-columns: 1fr;
    }
}
