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

.hem-v253-hero,
.hem-v253-card,
.hem-v253-band,
.hem-v253-form,
.hem-v253-preview {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.hem-v253-hero {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: radial-gradient(circle at top left, rgba(14, 165, 233, .16), transparent 36%),
        linear-gradient(135deg, rgba(15, 23, 42, .04), rgba(22, 163, 74, .08));
    margin-bottom: 1.5rem;
}

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

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

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

.hem-v253-actions,
.hem-v253-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}

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

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

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

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

.hem-v253-form,
.hem-v253-preview,
.hem-v253-card,
.hem-v253-band {
    padding: 1.25rem;
}

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

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

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

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

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

.hem-v253-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .85rem;
}

.hem-v253-preview-actions {
    margin-top: 0;
}

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

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

.hem-v253-card p,
.hem-v253-band p {
    color: #475569;
    line-height: 1.65;
}

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

@media print {
    .hem-v253-hero,
    .hem-v253-form,
    .hem-v253-grid,
    .hem-v253-band,
    .hem-v253-preview-actions {
        display: none !important;
    }
    .hem-v253-page,
    .hem-v253-workbench,
    .hem-v253-preview {
        display: block;
        padding: 0;
        margin: 0;
        box-shadow: none;
        border: 0;
    }
    .hem-v253-preview pre {
        color: #000;
        background: #fff;
        border: 0;
        padding: 0;
    }
}

@media (max-width: 760px) {
    .hem-v253-workbench {
        grid-template-columns: 1fr;
    }
    .hem-v253-actions,
    .hem-v253-preview-head,
    .hem-v253-band {
        flex-direction: column;
        align-items: stretch;
    }
    .hem-v253-primary,
    .hem-v253-secondary {
        width: 100%;
    }
    .hem-v253-preview {
        position: static;
    }
}
