/* User settings (responsive shell from petra-home.css) */
.petra-settings-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a8a;
}

.petra-settings-section {
    background: #fff;
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08);
}

.petra-settings-section-head {
    background: #1e3a8a;
    color: #fff;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.petra-settings-section-body {
    padding: 1rem 1rem 1.1rem;
}

.petra-settings-row {
    margin-bottom: 1rem;
}

.petra-settings-row label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.35rem;
}

.petra-settings-slider-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.petra-settings-slider-row input[type='range'] {
    flex: 1;
    min-width: 8rem;
}

.petra-settings-numbox {
    width: 3rem;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 0.35rem;
    padding: 0.25rem;
    font-weight: 700;
}

.petra-settings-ok {
    border: none;
    border-radius: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.petra-settings-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.5rem;
}

.petra-settings-lang-grid label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    padding: 0.35rem 0.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.petra-settings-lang-grid input {
    width: 1rem;
    height: 1rem;
}

.petra-settings-input {
    width: 100%;
    max-width: 16rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
    font-family: inherit;
}

.petra-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.petra-settings-save {
    border: none;
    border-radius: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.petra-settings-reset-metals {
    border: 1px solid #94a3b8;
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.petra-settings-flash {
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background: #ecfdf5;
    color: #047857;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.petra-settings-flash--error {
    background: #fef2f2;
    color: #b91c1c;
}

@media (min-width: 1024px) {
    .petra-settings-two-col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* Account page */
.petra-settings-wrap.petra-account-page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.petra-account-section {
    margin-bottom: 1.25rem;
}

.petra-account-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.petra-account-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.petra-account-field--narrow .petra-account-input {
    max-width: 12rem;
}

.petra-account-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
}

.petra-account-input {
    width: 100%;
    max-width: none;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.petra-account-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.petra-account-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .petra-account-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.petra-account-phone-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.petra-account-phone-cc {
    flex: 1 1 11rem;
    min-width: 0;
}

.petra-account-phone-national {
    flex: 2 1 12rem;
    min-width: 0;
}

.petra-account-actions {
    margin-top: 0.25rem;
    padding-top: 0.35rem;
}

.petra-lookup-submit {
    width: 100%;
    max-width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.petra-account-section--danger {
    border: 1px solid #fecaca;
}

.petra-account-delete-head {
    background: #991b1b !important;
}

.petra-account-delete-lead {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

.petra-account-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
}

.petra-account-checkbox input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.petra-account-btn-danger {
    background: #dc2626 !important;
    border: 1px solid #b91c1c !important;
}

.petra-account-btn-danger:hover {
    filter: brightness(0.95);
}

.petra-field-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin: 0;
}
