        body {
            background: #171918;
            color: #f4f4f0;
        }

        .tool-shell {
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto;
            padding: 34px 0 54px;
        }

        .tool-heading {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 24px;
            align-items: end;
            margin-bottom: 24px;
        }

        .tool-kicker {
            color: #b8efc0;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: .08em;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .tool-heading h1 {
            color: #fff;
            font-size: clamp(30px, 5vw, 52px);
            line-height: 1;
            letter-spacing: 0;
            margin: 0;
        }

        .tool-heading p {
            color: #b9beb9;
            font-size: 16px;
            line-height: 1.55;
            margin: 12px 0 0;
            max-width: 760px;
        }

        .tool-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .tool-link,
        .tool-reset {
            min-height: 42px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 0 14px;
            font: inherit;
            font-size: 14px;
            font-weight: 800;
            text-decoration: none;
            white-space: nowrap;
        }

        .tool-link {
            border: 1px solid #b8efc0;
            background: #b8efc0;
            color: #17351f;
        }

        .tool-reset {
            border: 1px solid #3d4540;
            background: #202522;
            color: #f4f4f0;
            cursor: pointer;
        }

        .tool-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
            gap: 18px;
            align-items: start;
        }

        .tool-panel,
        .result-panel {
            border: 1px solid #303732;
            border-radius: 8px;
            background: #202522;
        }

        .tool-panel {
            padding: 20px;
        }

        .panel-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 16px;
        }

        .panel-title h2 {
            color: #fff;
            font-size: 18px;
            line-height: 1.2;
            letter-spacing: 0;
            margin: 0;
        }

        .panel-badge {
            border: 1px solid #405047;
            border-radius: 999px;
            color: #d9e4dc;
            font-size: 12px;
            font-weight: 800;
            padding: 6px 10px;
            white-space: nowrap;
        }

        .input-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .field {
            min-width: 0;
        }

        .field.full {
            grid-column: 1 / -1;
        }

        .field label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            color: #aeb8b0;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: .06em;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        .field span {
            color: #707b73;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: none;
        }

        .field input {
            width: 100%;
            min-height: 48px;
            border: 1px solid #3a423d;
            border-radius: 8px;
            background: #151817;
            color: #fff;
            font: inherit;
            font-size: 18px;
            font-weight: 800;
            padding: 0 13px;
        }

        .field input:focus {
            border-color: #b8efc0;
            outline: none;
            box-shadow: 0 0 0 3px rgba(184, 239, 192, .13);
        }

        .field-help {
            color: #858e87;
            font-size: 12px;
            line-height: 1.4;
            margin-top: 7px;
        }

        .subpanel {
            border-top: 1px solid #303732;
            margin-top: 20px;
            padding-top: 20px;
        }

        .result-panel {
            overflow: hidden;
        }

        .result-stack {
            display: grid;
        }

        .result-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 14px;
            align-items: baseline;
            min-height: 70px;
            padding: 16px 18px;
            border-bottom: 1px solid #303732;
        }

        .result-row:last-child {
            border-bottom: 0;
        }

        .result-label {
            color: #aeb8b0;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        .result-value {
            color: #fff;
            font-size: clamp(22px, 4vw, 34px);
            font-weight: 900;
            line-height: 1;
            text-align: right;
            white-space: nowrap;
        }

        .result-value.good {
            color: #b8efc0;
        }

        .result-value.warn {
            color: #ffd166;
        }

        .result-value.bad {
            color: #ff8f8f;
        }

        .result-note {
            color: #858e87;
            font-size: 12px;
            line-height: 1.45;
            padding: 14px 18px 18px;
        }

        .market-strip {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 14px;
        }

        .market-card {
            border: 1px solid #35413a;
            border-radius: 8px;
            background: #181c1a;
            padding: 14px;
        }

        .market-card .side {
            color: #aeb8b0;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: .06em;
            margin-bottom: 10px;
            text-transform: uppercase;
        }

        .market-card .prob {
            color: #fff;
            font-size: 30px;
            font-weight: 900;
            line-height: 1;
            margin-bottom: 8px;
        }

        .market-card .odds {
            color: #b8efc0;
            font-size: 14px;
            font-weight: 800;
        }

        .tool-disclaimer {
            color: #7f8982;
            font-size: 12px;
            line-height: 1.5;
            margin: 18px 0 0;
        }

        @media (max-width: 900px) {
            .tool-heading,
            .tool-grid {
                grid-template-columns: 1fr;
            }

            .tool-actions {
                justify-content: flex-start;
            }
        }

        @media (max-width: 620px) {
            .tool-shell {
                width: min(100% - 24px, 1180px);
                padding-top: 24px;
            }

            .tool-panel {
                padding: 16px;
            }

            .input-grid,
            .market-strip {
                grid-template-columns: 1fr;
            }

            .result-row {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .result-value {
                text-align: left;
            }
        }

/* SEO content sections under the tool */
.tool-copy {
    max-width: 820px;
    margin: 40px 0 0;
}

.tool-copy h2 {
    color: #fff;
    font-size: 22px;
    margin: 28px 0 10px;
}

.tool-copy p,
.tool-copy li {
    color: #b3bab4;
    font-size: 15px;
    line-height: 1.65;
}

.tool-copy ul {
    padding-left: 22px;
    margin: 8px 0;
}

.tool-copy code {
    background: #202522;
    border: 1px solid #303732;
    border-radius: 5px;
    padding: 1px 7px;
    color: #d9e4dc;
    font-size: 13.5px;
}

.related-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 34px 0 0;
}

.related-tools a {
    border: 1px solid #3d4540;
    background: #202522;
    color: #f4f4f0;
    border-radius: 999px;
    padding: 9px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: border-color .2s ease, color .2s ease;
}

.related-tools a:hover {
    border-color: #b8efc0;
    color: #b8efc0;
}

.select-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #3a423d;
    border-radius: 8px;
    background: #151817;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 0 13px;
}
