.prefix-converter-widget {
    margin-top: 1.2rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.prefix-input-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.prefix-input-card label {
    font-weight: 700;
    color: #1e293b;
}

.prefix-input-card input {
    width: min(100%, 420px);
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
}

.prefix-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.prefix-result-card {
    padding: 1rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
}

.prefix-result-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prefix-result-card strong {
    display: block;
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.prefix-result-card small {
    color: #64748b;
    line-height: 1.4;
}

.prefix-breakdown-box {
    padding: 1rem;
    border-radius: 16px;
    background: #0f172a;
    color: #e2e8f0;
}

.prefix-breakdown-box h3 {
    margin-top: 0;
    color: white;
}

.prefix-breakdown-box p {
    margin-bottom: 0;

}

.prefix-step-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.25);
}

.prefix-step-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.prefix-step-section h4 {
    margin: 0 0 0.5rem;
    color: #ffffff;
    font-size: 1rem;
}

.prefix-step-list {
    margin: 0.75rem 0;
    padding-left: 1.4rem;
}

.prefix-step-list li {
    margin: 0.35rem 0;

}

.prefix-calculation-line {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}