.page-container,
.page-container.settings-container {
    max-width: 900px !important;
    width: 100%;
}

.socials-group {
    margin: 18px 0 12px 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 1.1em 1.2em 0.7em 1.2em;
    background: var(--group-bg, #fff);
}

.socials-group legend {
    padding: 0 8px;
    font-weight: 600;
    font-size: 1.12em;
    color: var(--group-legend, #333);
    letter-spacing: 0.01em;
    margin-left: 0;
}

.socials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 32px;
    margin-top: 0.22em;
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .socials-grid {
        grid-template-columns: 1fr;
        gap: 12px 0;
    }
}

.socials-grid>div {
    margin: 0;
    padding: 0;
}

.socials-grid label {
    font-weight: 500;
    margin-bottom: 2px;
    display: block;
    font-size: 1em;
    color: #222;
}

body.dark .socials-grid label {
    color: #eee !important;
}

.socials-grid input {
    width: 100%;
    font-size: 1.12em;
    padding: 14px 16px;
    background: #f9fafb;
    color: #18181b;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    margin: 0;
    box-sizing: border-box;
    min-width: 0;

    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

body.dark .socials-grid input {
    background: #18181b !important;
    color: #eee !important;
    border-color: #333 !important;
}

.socials-grid input:focus {
    border-color: var(--accent, #6366f1);
    outline: none;
}


body.dark .page-container {
    background: #18181b !important;
    color: #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.17) !important;
}

body.dark .socials-group {
    background: #23272f !important;
    border-color: #333 !important;
}

.settings-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 32px;
    margin-bottom: 18px;
}

.settings-fields-grid>div {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.settings-fields-grid label {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 1em;
    color: #222;
    display: block;
}

body.dark .settings-fields-grid label {
    color: #eee;
}

.settings-fields-grid input {
    width: 100%;
    font-size: 1.12em;
    padding: 14px 16px;
    background: #f9fafb;
    color: #18181b;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    margin: 0;
    box-sizing: border-box;
    min-width: 0;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

body.dark .settings-fields-grid input {
    background: #18181b !important;
    color: #eee !important;
    border-color: #333 !important;
}

@media (max-width: 700px) {
    .settings-fields-grid {
        grid-template-columns: 1fr;
        gap: 12px 0;
    }
}