.hem-v252-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.hem-v252-hero {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(22, 163, 74, 0.08));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.5rem;
}

.hem-v252-kicker {
    margin: 0 0 .5rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    color: #0369a1;
}

.hem-v252-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.hem-v252-lead {
    max-width: 820px;
    margin: 1rem 0 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #334155;
}

.hem-v252-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.hem-v252-primary,
.hem-v252-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .8rem 1.1rem;
    font-weight: 900;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.hem-v252-primary {
    background: #0f172a;
    color: #fff;
}

.hem-v252-secondary {
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #0f172a;
    background: rgba(255,255,255,.78);
}

.hem-v252-progress,
.hem-v252-card,
.hem-v252-band,
.hem-v252-form,
.hem-v252-preview {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.hem-v252-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.hem-v252-progress span {
    display: block;
    color: #64748b;
    margin-top: .25rem;
}

.hem-v252-progress progress {
    width: 100%;
    height: 1rem;
}

.hem-v252-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hem-v252-card h2,
.hem-v252-band h2,
.hem-v252-preview h2 {
    margin-top: 0;
}

.hem-v252-card label {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin: .75rem 0;
    line-height: 1.5;
}

.hem-v252-card input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .18rem;
}

.hem-v252-band {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #f8fafc;
}

.hem-v252-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.hem-v252-form {
    display: grid;
    gap: .9rem;
}

.hem-v252-form label {
    display: grid;
    gap: .4rem;
    font-weight: 800;
}

.hem-v252-form input,
.hem-v252-form select,
.hem-v252-form textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: .9rem;
    padding: .8rem .9rem;
    font: inherit;
}

.hem-v252-preview {
    position: sticky;
    top: 1rem;
    background: #f8fafc;
}

.hem-v252-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.hem-v252-preview pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 1rem;
    border-radius: 1rem;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.5;
    max-height: 720px;
    overflow: auto;
}

@media (max-width: 760px) {
    .hem-v252-progress,
    .hem-v252-workbench {
        grid-template-columns: 1fr;
    }

    .hem-v252-actions,
    .hem-v252-band,
    .hem-v252-preview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hem-v252-primary,
    .hem-v252-secondary {
        width: 100%;
    }

    .hem-v252-preview {
        position: static;
    }
}
