﻿html, body, #app {
    min-height: 100vh !important;
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}
.irw-reference-card {
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.irw-reference-card span {
    display: block;
    font-size: 0.85rem;
}

.irw-reference-card strong {
    display: block;
    font-size: 1.4rem;
    margin-top: .25rem;
}
.validation-message {
    color: red;
}
.irw-loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #faf8f3;
    z-index: 9999;
}

.irw-logo-group {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.irw-logo-button {
    flex: 1;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
}

.irw-logo-button img {
    height: 60px;
    width: auto;
    margin-bottom: 8px;
}

.irw-logo-button:hover {
    border-color: var(--mud-palette-primary);
}

.irw-logo-button.selected {
    border-color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), .08);
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.mapboxgl-ctrl button {
    display: flex;
    align-items: center;
    justify-content: center;
}
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* InjuryReportWizard.razor.css
   Design direction: Industrial field-report — warm parchment base,
   #5d720c olive-green authority, mono typography for data, generous structure.
   =========================================================================== */

/* ── Global tokens (cascade into BodyDiagram.razor.css) ── */
.irw-shell {
    /* Brand */
    --brand: #5d720c;
    --brand-dark: #4a5c09;
    --brand-light: #8aaa16;
    --brand-glow: rgba(93,114,12,.35);
    --brand-hover-fill: rgba(93,114,12,.18);
    --brand-selected-fill: rgba(93,114,12,.28);
    --on-brand: #fafaf6;
    /* Neutrals — warm parchment light theme */
    --bg: #f4f1eb;
    --surface: #faf8f3;
    --surface-2: #eeeadf;
    --border: #d4cfc3;
    --border-dark: #b8b3a6;
    /* Body diagram fills */
    --body-fill: #e4e0d5;
    --body-stroke: #c2bdb0;
    --tooltip-bg: rgba(30,28,22,.9);
    /* Text */
    --text: #1c1a15;
    --text-mid: #4a4640;
    --text-muted: #8a857c;
    /* Severity colors passed through CSS vars */
    /* Typography */
    --font-display: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    /* Shape */
    --radius: 8px;
    --radius-lg: 12px;
    /* ── Shell layout ── */
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.irw-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.irw-loading-card {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    max-width: 380px;
}

.irw-image-name {
    font-size: 11px;
    color: #5d720c;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    display: block;
    text-align: center;
}

@media (max-width: 600px) {
    .irw-image-name {
        max-width: 60px;
        font-size: 10px;
    }
}
/* ══════════════════════════════════════════════════════
   STEP RAIL
══════════════════════════════════════════════════════ */
.irw-rail {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    max-width: 100%;
}

.irw-step-btn {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: transparent;
    border: none;
    padding: .35rem .5rem;
    cursor: pointer;
    opacity: .45;
    transition: opacity .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .irw-step-btn:not(:disabled) {
        cursor: pointer;
    }

    .irw-step-btn:disabled {
        cursor: default;
    }

.irw-step-active,
.irw-step-done {
    opacity: 1 !important;
}

.irw-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: background .2s, border-color .2s, color .2s;
}

.irw-step-active .irw-step-num {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.irw-step-done .irw-step-num {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

    .irw-step-done .irw-step-num svg {
        width: 13px;
        height: 13px;
        stroke: white;
    }

.irw-step-label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase;
}

.irw-step-active .irw-step-label {
    color: var(--brand);
}

.irw-step-connector {
    flex: 1;
    min-width: 20px;
    height: 2px;
    background: var(--border);
    margin: 0 .25rem;
    transition: background .3s;
}

.irw-connector-done {
    background: var(--brand);
}

/* ══════════════════════════════════════════════════════
   BODY (form area)
══════════════════════════════════════════════════════ */

.irw-body {
    flex: 1;
    overflow-y: auto;
    /* full width scroll area */
    width: 100%;
    box-sizing: border-box;
    /* keep padding */
    padding: 2rem;
}

.irw-body-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.irw-rail,
.irw-footer {
    flex-shrink: 0;
}
/* Step content entrance animation */
.irw-step-content {
    animation: stepIn .25s ease both;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Step heading ── */
.irw-step-heading {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
}

.irw-step-tag {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .2em;
    color: var(--brand);
    font-weight: 700;
    display: block;
    margin-bottom: .4rem;
}

.irw-step-heading h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    color: var(--text);
    letter-spacing: -.02em;
}

.irw-step-heading p {
    color: var(--text-muted);
    margin: 0;
    font-size: .9rem;
}
.irw-large-adornment .mud-input-adornment-text {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8) !important;
    margin-left: 8px;
}
.irw-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.irw-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.irw-badge {
    background: #5d720c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.mud-input-control {
    width: 100% !important;
    min-width: 0 !important;
    background-color: #5d720c;
}

@media (max-width: 700px) {
    .irw-form-grid {
        grid-template-columns: 1fr !important;
    }
}
/* full width fields if needed */
.irw-field-full {
    grid-column: 1 / -1;
}

.irw-label {
    margin-bottom: 5px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-mid);
    font-family: var(--font-mono);
}

.req {
    color: #c0392b;
}

.irw-spec-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
}

.irw-spec-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.irw-spec-divider-label {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(93,114,12,.08);
    border: 1px solid rgba(93,114,12,.18);
    white-space: nowrap;
}

/* ── Chip group ── */
.irw-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.irw-chip {
    padding: .35rem .8rem;
    border: 1.5px solid var(--border-dark);
    border-radius: 99px;
    background: var(--surface);
    color: var(--text-mid);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    font-family: var(--font-body);
}

    .irw-chip:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
        filter: grayscale(0.4);
    }

    .irw-chip:hover {
        border-color: var(--brand);
        color: var(--border-dark);
    }

.irw-chip-active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

/* ── Radio group ── */
.irw-radio-group {
    display: flex;
    gap: 1.25rem;
}

.irw-radio {
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
}
.image-container {
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    box-shadow: none;
    background-color: var(--surface);
}
.irw-radio input[type="radio"] {
    accent-color: var(--brand);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   STEP 3 · Injury layout
══════════════════════════════════════════════════════ */
.irw-injury-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.irw-diagram-col {
    flex: 0 0 240px;
    min-width: 200px;
}

.irw-injury-details-col {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.irw-empty-parts {
    color: var(--text-muted);
    font-style: italic;
    font-size: .875rem;
    padding: .65rem .85rem;
    background: var(--surface-2);
    border: 1.5px dashed var(--border-dark);
    border-radius: var(--radius);
}

.irw-parts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.irw-part-name {
    flex: 1; /* Pushes the X button to the far right */
}

.irw-part-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: .2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all .2s;
}

    .irw-part-remove:hover {
        color: #ef4444; /* Red color on hover to indicate destructive action */
        background: rgba(239, 68, 68, 0.1);
    }

    .irw-part-remove svg {
        width: 14px;
        height: 14px;
    }

.irw-parts-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .875rem;
    font-weight: 500;
    padding: .45rem .75rem;
    background: rgba(93,114,12,.08);
    border: 1px solid rgba(93,114,12,.25);
    border-radius: 6px;
}

.irw-parts-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    box-shadow: 0 0 5px var(--brand-glow);
}

/* ── Severity ── */
.irw-severity-row {
    display: flex;
    gap: .5rem;
}

.irw-chip-error {
    border: 1.5px solid #d32f2f;
    padding: .4rem;
    border-radius: 8px;
}

.irw-error-text {
    margin-top: .4rem;
    color: #d32f2f;
    font-size: .8rem;
}
.irw-sev-btn {
    flex: 1;
    padding: .45rem .25rem;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    font-family: var(--font-mono);
    letter-spacing: .04em;
}

.irw-gravity-scale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
}

.irw-gravity-card {
    border: 2px solid var(--gravity-color);
    background: var(--surface);
    border-radius: var(--radius);
    padding: .9rem .75rem;
    cursor: pointer;
    transition: all .18s ease;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 92px;
    text-align: left;
}

.irw-gravity-card:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--gravity-color) 8%, white);
}

.irw-gravity-active {
    background: color-mix(in srgb, var(--gravity-color) 16%, white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gravity-color) 25%, transparent);
}

.irw-gravity-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gravity-color);
    font-family: var(--font-display);
}

.irw-gravity-text {
    font-size: .78rem;
    line-height: 1.25;
    color: var(--text-mid);
    font-weight: 600;
}

.irw-sev-btn:hover {
    border-color: var(--sev-col, #888);
    color: var(--sev-col, #888);
}

.irw-sev-active {
    background: var(--sev-col, #888);
    border-color: var(--sev-col, #888);
    color: white;
}

/* ══════════════════════════════════════════════════════
   STEP 4 · Response placeholder
══════════════════════════════════════════════════════ */
.irw-placeholder-block {
    margin-top: 1.5rem;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.irw-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    color: var(--text-muted);
    text-align: center;
    font-size: .875rem;
}

    .irw-placeholder-inner svg {
        width: 36px;
        height: 36px;
        opacity: .4;
        stroke: var(--text-muted);
    }

/* ══════════════════════════════════════════════════════
   STEP 5 · Review
══════════════════════════════════════════════════════ */
.irw-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.irw-review-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.irw-review-card-title {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: .85rem;
}
.irw-subcard{
    cursor:pointer;
}
.irw-review-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem .75rem;
    margin: 0;
}

.irw-review-card dt {
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    white-space: nowrap;
    align-self: start;
}

.irw-review-card dd {
    margin: 0;
    font-size: .875rem;
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
}

.dd-wrap {
    white-space: pre-wrap;
    font-size: .82rem !important;
    color: var(--text-mid) !important;
}

.irw-validation-error {
    background: rgba(192,57,43,.1);
    border: 1.5px solid rgba(192,57,43,.4);
    border-radius: var(--radius);
    color: #c0392b;
    font-size: .875rem;
    font-weight: 600;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}

.irw-submit-row {
    display: flex;
    justify-content: flex-end;
}

/* ── Success ── */
.irw-success {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.irw-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px var(--brand-glow);
}

    .irw-success-icon svg {
        width: 30px;
        height: 30px;
        stroke: white;
    }

.irw-success h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0;
}

.irw-success p {
    color: var(--text-muted);
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   FOOTER NAV
══════════════════════════════════════════════════════ */
.irw-footer {
    background: var(--surface);
    border-top: 1.5px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.irw-progress-dots {
    display: flex;
    gap: .45rem;
}

.irw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-dark);
    transition: background .2s, transform .2s;
}

.irw-dot-done {
    background: var(--brand);
}

.irw-dot-active {
    background: var(--brand);
    transform: scale(1.4);
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.irw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: .6rem 1.4rem;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: .02em;
    transition: background .18s, box-shadow .18s;
    box-shadow: 0 2px 10px var(--brand-glow);
}

    .irw-btn-primary:hover {
        background: var(--brand-dark);
        box-shadow: 0 4px 18px var(--brand-glow);
    }

    .irw-btn-primary svg {
        width: 16px;
        height: 16px;
    }

.irw-btn-lg {
    padding: .75rem 2rem;
    font-size: 1rem;
}

.irw-btn-secondary {
    background: transparent;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-mid);
    padding: .6rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color .18s, color .18s;
}

    .irw-btn-secondary:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

    .irw-btn-secondary:disabled {
        opacity: .35;
        cursor: default;
    }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .irw-grid-2 {
        grid-template-columns: 1fr;
    }

    .irw-review-grid {
        grid-template-columns: 1fr;
    }

    .irw-injury-layout {
        flex-direction: column;
    }

    .irw-diagram-col {
        width: 100%;
        flex: unset;
    }

    .irw-body {
        padding: 1.25rem 1rem;
    }

    .irw-footer {
        padding: .75rem 1rem;
    }

    .irw-step-label {
        display: none;
    }

    .irw-header {
        padding: 0 1rem;
    }

    .irw-rail {
        padding: .75rem 1rem;
    }
}

