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

.e4-hero,
.e4-panel,
.e4-room-grid figure {
    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);
}

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

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

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

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

.e4-lede {
    max-width: 780px;
    margin: 14px 0 0;
    color: #d9e7df;
    font-size: 17px;
}

.e4-facts,
.e4-toolbar,
.e4-progress,
.e4-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.e4-facts span,
.e4-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;
}

.e4-map-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #0b1612;
}

.e4-map-card img {
    display: block;
    width: 100%;
    min-height: 230px;
    object-fit: cover;
}

.e4-map-card figcaption,
.e4-room-grid figcaption {
    padding: 10px 12px;
    color: #b7c8bf;
    font-size: 13px;
}

.e4-panel {
    padding: 18px;
}

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

.e4-role-grid,
.e4-check-grid,
.e4-team-grid,
.e4-room-grid,
.e4-faq-grid,
.e4-grid {
    display: grid;
    gap: 12px;
}

.e4-role-grid,
.e4-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.e4-role-grid article,
.e4-team-grid div,
.e4-item-results div {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(101, 168, 255, .22);
    border-radius: 8px;
    background: rgba(101, 168, 255, .06);
}

.e4-role-grid strong,
.e4-team-grid strong,
.e4-item-results strong {
    display: block;
    color: #fff;
    font-size: 16px;
}

.e4-role-grid span,
.e4-team-grid span,
.e4-item-results span {
    display: block;
    margin-top: 5px;
    color: #b7c8bf;
}

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

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

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

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

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

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

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

.e4-progress button,
.e4-toolbar button {
    min-height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #11221a;
    color: #dbe7df;
    cursor: pointer;
}

.e4-progress button {
    padding: 7px 12px;
}

.e4-toolbar {
    margin-bottom: 12px;
}

.e4-toolbar button {
    padding: 7px 11px;
    font-weight: 800;
}

.e4-toolbar button:hover,
.e4-toolbar button.is-active,
.e4-progress button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

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

.e4-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

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

.e4-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #172d23;
    color: #fff;
}

.e4-table td {
    color: #c6d5ce;
}

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

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

.e4-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.e4-input-label {
    display: block;
    color: #fff;
    font-weight: 800;
}

.e4-panel input[type="range"] {
    width: 100%;
    margin: 14px 0;
}

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

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

.e4-plan {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.e4-plan li {
    color: #f4d27b;
}

.e4-plan strong,
.e4-plan span {
    display: block;
}

.e4-plan strong {
    color: #fff;
}

.e4-plan span {
    color: #b7c8bf;
}

.e4-room-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.e4-room-grid figure {
    margin: 0;
    overflow: hidden;
}

.e4-room-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0b1612;
}

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

.e4-faq-grid details {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.e4-faq-grid summary {
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}

.e4-faq-grid p {
    margin: 8px 0 0;
    color: #b7c8bf;
}

.e4-links {
    justify-content: center;
}

.e4-links a:hover {
    border-color: var(--gold);
    background: rgba(226, 180, 67, .14);
    color: #fff;
}

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

    .e4-role-grid,
    .e4-check-grid,
    .e4-team-grid,
    .e4-room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

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

    .e4-role-grid,
    .e4-check-grid,
    .e4-team-grid,
    .e4-room-grid,
    .e4-faq-grid,
    .e4-item-results {
        grid-template-columns: 1fr;
    }

    .e4-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .e4-toolbar button {
        width: 100%;
    }
}
