.addressing-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #dbeafe;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.addr-toolbar,
.addr-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.addr-toolbar button,
.addr-controls button {
    border: 1px solid #cbd5e1;
    background: white;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.addr-toolbar button:hover,
.addr-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.addr-toolbar button.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.addr-main-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.75rem;
    align-items: stretch;
    margin: 1.25rem 0;
}

.addr-card {
    min-height: 150px;
    padding: 1rem;
    border-radius: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.addr-card.active {
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.16);
}

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

.addr-card strong {
    display: block;
    font-size: 1.55rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.addr-card p {
    margin-bottom: 0;
    color: #475569;
}

.addr-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 2rem;
    font-weight: 900;
}

.addr-calculation-panel {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 1rem;
    margin: 1rem 0;
}

.addr-calculation-panel h3 {
    margin-top: 0;
}

.addr-equation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.75rem 0;
}

.addr-equation span,
.addr-equation strong {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
}

.addr-equation span {
    color: #475569;
    font-weight: 650;
}

.addr-equation strong {
    padding: 0.35rem 0.75rem;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 1.25rem;
}

.addr-step-counter {
    margin: 0.5rem 0 0;
    color: #334155;
    font-weight: 800;
}

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

    .addr-arrow {
        transform: rotate(90deg);
        min-height: 34px;
    }
}
