.normalisation-widget {
    margin: 1.5rem 0;
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #dbe4ff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.norm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.norm-stage-btn {
    border: 1px solid #cbd5e1;
    background: white;
    color: #334155;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.norm-stage-btn:hover,
.norm-stage-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: white;
    transform: translateY(-1px);
}

.norm-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.4fr);
    gap: 1rem;
    align-items: start;
}

.norm-explanation-card,
.norm-rule-card,
.norm-mini-table {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.norm-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.norm-explanation-card h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.norm-tables-panel {
    display: grid;
    gap: 0.8rem;
}

.norm-mini-table h4 {
    margin: 0 0 0.6rem;
    color: #4b4f9c;
}

.norm-mini-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.norm-mini-table th,
.norm-mini-table td {
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.55rem;
    text-align: left;
}

.norm-mini-table th {
    background: #f1f5f9;
    color: #334155;
}

.norm-mini-table td {
    background: #ffffff;
    color: #334155;
}

.norm-rule-card {
    margin-top: 1rem;
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}

.norm-rule-card p {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .norm-layout {
        grid-template-columns: 1fr;
    }
}
