:root {
    --ink: #172033;
    --muted: #687386;
    --surface: rgba(255,255,255,.96);
    --line: #e5e9f0;
    --primary: #315efb;
    --primary-dark: #2446c7;
    --header: rgba(18,25,39,.95);
    --radius: 18px;
    --shadow: 0 14px 40px rgba(17,24,39,.10);
    --site-background-image: url('../img/background.svg');
}

html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--site-background-image) center/cover fixed;
    font-family: Open Sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.site-footer {
    flex-shrink: 0;
    background: #121927;
    color: #e8edf6;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.site-header { position: sticky; top: 0; z-index: 1030; }
.navbar { background: var(--header); box-shadow: 0 4px 18px rgba(0,0,0,.14); backdrop-filter: blur(12px); }
.brand-logo { display: block; width: 160px; height: 46px; object-fit: contain; object-position: left center; }
.nav-link { color: rgba(255,255,255,.82) !important; border-radius: 10px; padding: .62rem .75rem !important; }
.nav-link:hover, .nav-link:focus { color: #fff !important; background: rgba(255,255,255,.08); }
.navbar-toggler { border-color: rgba(255,255,255,.2); }
.dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow); }

.content-card, .auth-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.auth-card { padding: 32px; }
.login-section { min-height: calc(100vh - 148px); display: grid; align-items: center; padding: 48px 0; }
.auth-logo-wrap { text-align: center; margin-bottom: 20px; }
.auth-logo { width: 210px; max-width: 100%; height: 72px; object-fit: contain; }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.text-muted { color: var(--muted) !important; }
.min-w-0 { min-width: 0; }

.btn { border-radius: 11px; font-weight: 650; padding: .65rem 1rem; }
.btn-sm { padding: .4rem .7rem; border-radius: 9px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-icon { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; flex: 0 0 44px; }
.form-control, .form-select { border-radius: 11px; border-color: #d8dee9; padding: .7rem .8rem; }
.form-control:focus, .form-select:focus { border-color: #88a0ff; box-shadow: 0 0 0 .22rem rgba(49,94,251,.14); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.alert { border-radius: 13px; }

.table-responsive { border-radius: 13px; border: 1px solid var(--line); background: #fff; }
.table { --bs-table-bg: transparent; --bs-table-striped-bg: #f8faff; margin-bottom: 0; }
.table thead th { background: #f3f6fb !important; color: #263044 !important; border-bottom: 1px solid var(--line); font-size: .83rem; text-transform: uppercase; letter-spacing: .025em; white-space: nowrap; }
.table td, .table th { padding: .82rem .85rem; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.accordion-item { border: 1px solid var(--line); border-radius: 13px !important; overflow: hidden; margin-bottom: 10px; }
.accordion-button { font-weight: 700; color: var(--ink); background: #fff; }
.accordion-button:not(.collapsed) { color: var(--ink); background: #f2f5ff; box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

.week-navigation {
    display: grid;
    grid-template-columns: minmax(140px,1fr) auto minmax(140px,1fr);
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 8px 24px rgba(17,24,39,.06);
    border-radius: 16px;
    padding: 12px;
}
.week-navigation .btn:first-child { justify-self: start; }
.week-navigation .btn:last-child { justify-self: end; }
.week-label { font-weight: 750; text-align: center; }
.alarm-card { border-left: 5px solid #dc3545; }
.absence-card { border-left: 5px solid #dc3545; }

.empty-state { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 250px; text-align: left; }
.compact-empty { min-height: 110px; justify-content: flex-start; padding: 20px; border: 1px dashed #ccd4e1; border-radius: 14px; background: #fbfcff; }
.empty-state-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #edf1ff; color: var(--primary); font-size: 1.45rem; flex: 0 0 auto; }

/* Roosterbeheer */
.roster-container { max-width: 1700px; }
.roster-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; }
.roster-sidebar { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow: hidden auto; padding: 18px; }
.roster-main { min-width: 0; }
.roster-search .input-group-text { border-color: #d8dee9; background: #f7f9fc; border-radius: 11px 0 0 11px; }
.roster-search .form-control { border-left: 0; border-radius: 0 11px 11px 0; }
.roster-department + .roster-department { margin-top: 20px; }
.roster-department-title { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 4px 8px; }
.roster-department-title span { background: #edf0f5; color: #4b5565; border-radius: 999px; padding: 2px 7px; }
.roster-user-list { display: grid; gap: 7px; }
.roster-user-item { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; border: 1px solid transparent; border-radius: 13px; padding: 10px; transition: .18s ease; }
.roster-user-item:hover { background: #f4f6fb; border-color: #e1e6ef; transform: translateX(2px); }
.roster-user-item.active { color: #fff; background: linear-gradient(135deg, var(--primary), #5d79ff); box-shadow: 0 9px 24px rgba(49,94,251,.24); }
.roster-user-item strong, .roster-user-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-user-item small { color: inherit; opacity: .72; font-size: .77rem; }
.roster-user-item > i { font-size: .72rem; opacity: .55; }
.roster-user-avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: #e8edff; color: var(--primary); font-weight: 800; flex: 0 0 39px; }
.roster-user-item.active .roster-user-avatar { background: rgba(255,255,255,.18); color: #fff; }
.roster-search-empty { color: var(--muted); text-align: center; padding: 20px 8px; }
.roster-empty-state { min-height: 420px; }

.employee-summary { display: flex; align-items: center; gap: 17px; padding: 21px 24px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #172033, #293754); box-shadow: var(--shadow); }
.employee-summary-avatar { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.13); font-size: 1.55rem; font-weight: 800; flex: 0 0 66px; }
.employee-summary .eyebrow { color: #aebeff; }
.employee-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255,255,255,.76); font-size: .9rem; }
.employee-meta span { display: inline-flex; align-items: center; gap: 7px; }

.week-planner { scroll-margin-top: 92px; }
.week-planner-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.week-picker-controls { display: flex; align-items: center; gap: 8px; }
.week-picker-form { margin: 0; }
.week-picker-form .form-control { width: 165px; }
.planner-tools { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: end; gap: 16px; padding: 16px; border: 1px solid #dfe5ef; border-radius: 15px; background: #f8faff; }
.planner-tool-times { display: flex; gap: 10px; }
.planner-tool-times > div { width: 145px; }
.planner-tool-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.quick-shifts { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-shift { border: 1px solid #cfd7e4; background: #fff; color: #3d485b; border-radius: 999px; padding: 7px 11px; font-weight: 700; font-size: .78rem; transition: .15s ease; }
.quick-shift:hover, .quick-shift.active { color: var(--primary); border-color: #9cafff; background: #eef1ff; }

.planner-days { display: grid; gap: 10px; }
.planner-day { display: grid; grid-template-columns: 35px minmax(110px, .72fr) minmax(270px, 1.3fr) minmax(115px, .55fr) minmax(180px, 1fr); align-items: end; gap: 14px; padding: 14px; border: 1px solid #e1e6ee; border-radius: 15px; background: #fbfcfe; opacity: .72; transition: .18s ease; }
.planner-day:hover { border-color: #c7d1df; }
.planner-day.is-enabled { background: #fff; border-color: #cfd8e7; opacity: 1; box-shadow: 0 6px 20px rgba(17,24,39,.055); }
.planner-day.is-absent { background: #fff7f7; border-color: #f0caca; }
.planner-day-toggle { align-self: center; text-align: center; }
.planner-day-toggle .form-check-input { width: 1.2em; height: 1.2em; }
.planner-day-date { align-self: center; cursor: pointer; }
.planner-day-date strong, .planner-day-date span { display: block; }
.planner-day-date span { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.planner-time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.planner-day label.small { display: block; color: var(--muted); font-weight: 700; margin: 0 0 5px; }
.time-control { display: flex; position: relative; }
.time-control .form-control { padding-right: 42px; min-width: 112px; }
.time-picker-button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #edf1f8; color: #3b475a; }
.time-picker-button:hover { background: #dfe6f1; color: var(--primary); }
.compact-time-control .form-control { min-width: 125px; }
.large-time-control .time-picker-button { width: 42px; height: 42px; right: 5px; }
.planner-absence-field { align-self: center; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 11px; border: 1px solid #dfe4ec; background: #fff; }
.planner-absence-field label { display: flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }
.planner-day.is-absent .planner-absence-field { border-color: #e7aaaa; color: #a82727; background: #fff0f0; }
.planner-savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 13px 14px 13px 18px; color: #455064; background: rgba(255,255,255,.96); border: 1px solid #dce2ec; border-radius: 15px; box-shadow: 0 12px 34px rgba(17,24,39,.14); backdrop-filter: blur(10px); }
.planner-savebar p { font-size: .88rem; }

.schedule-week-card { box-shadow: 0 4px 14px rgba(17,24,39,.035); }
.week-history-heading { width: 100%; display: flex; align-items: center; gap: 13px; }
.week-history-heading small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
.week-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--primary); background: #e9edff; font-weight: 800; flex: 0 0 46px; }
.week-history-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px; }
.schedule-time { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.schedule-edit-card { padding: 30px; }
.absence-toggle-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid #e0e5ed; background: #fafbfe; border-radius: 14px; }
.absence-toggle-card .form-switch .form-check-input { width: 3em; height: 1.55em; }

/* Website-instellingen */
.settings-form { padding: 30px; }
.settings-section { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.settings-section-heading { display: flex; align-items: center; gap: 13px; }
.settings-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: #eaf0ff; color: var(--primary); font-size: 1.05rem; flex: 0 0 45px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.settings-upload-card { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcff; }
.asset-preview { display: grid; place-items: center; overflow: hidden; border: 1px dashed #c8d1df; border-radius: 14px; background: #edf1f6; }
.asset-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview { height: 145px; padding: 20px; }
.background-preview { height: 145px; }
.background-preview img { width: 100%; height: 100%; object-fit: cover; }
.favicon-preview { width: 92px; height: 92px; padding: 16px; }
.settings-savebar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px; border-radius: 15px; background: #f2f5fb; border: 1px solid #dde3ec; }

@media (max-width: 1399.98px) {
    .planner-tools { grid-template-columns: 1fr 1fr; }
    .planner-tool-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .planner-day { grid-template-columns: 35px 120px minmax(250px,1fr) 120px; }
    .planner-comment-field { grid-column: 2 / -1; }
}

@media (max-width: 1199.98px) {
    .roster-layout { grid-template-columns: 280px minmax(0,1fr); gap: 18px; }
    .planner-tools { grid-template-columns: 1fr; }
    .planner-tool-actions { grid-column: auto; }
    .settings-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991.98px) {
    .site-header { position: static; }
    .navbar-collapse { padding: 12px 0; }
    .brand-logo { width: 140px; }
    .roster-layout { grid-template-columns: 1fr; }
    .roster-sidebar { position: static; max-height: none; }
    .roster-user-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .week-planner { scroll-margin-top: 10px; }
    .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    body { background-attachment: scroll; }
    .content-card, .auth-card { padding: 17px; border-radius: 15px; }
    .page-heading, .section-heading { align-items: flex-start; flex-direction: column; }
    .page-heading .btn, .section-heading .btn { width: 100%; }
    .week-navigation { grid-template-columns: 1fr 1fr; }
    .week-label { grid-column: 1 / -1; grid-row: 1; font-size: .92rem; padding: 2px 4px 6px; }
    .week-navigation .btn { grid-row: 2; width: 100%; font-size: .88rem; padding-inline: .45rem; }
    .week-navigation .btn:first-child { grid-column: 1; }
    .week-navigation .btn:last-child { grid-column: 2; }
    h1 { font-size: 1.75rem; }
    .table { font-size: .89rem; }
    .table td, .table th { padding: .65rem .7rem; }
    .auth-logo { width: 175px; }
    .roster-container { padding-left: 12px; padding-right: 12px; }
    .roster-user-list { grid-template-columns: 1fr; }
    .employee-summary { padding: 17px; }
    .employee-summary-avatar { width: 54px; height: 54px; border-radius: 16px; flex-basis: 54px; }
    .week-planner-header { align-items: flex-start; flex-direction: column; }
    .week-picker-controls { width: 100%; }
    .week-picker-form { flex: 1; }
    .week-picker-form .form-control { width: 100%; }
    .planner-tool-times { width: 100%; }
    .planner-tool-times > div { width: 50%; }
    .planner-day { grid-template-columns: 32px 1fr; align-items: center; padding: 13px; }
    .planner-time-fields, .planner-absence-field, .planner-comment-field { grid-column: 1 / -1; }
    .planner-time-fields { grid-template-columns: 1fr 1fr; }
    .planner-savebar { position: static; flex-direction: column; align-items: stretch; }
    .planner-savebar .btn { width: 100%; }
    .week-history-actions { flex-direction: column; }
    .week-history-actions .btn, .week-history-actions form, .week-history-actions form button { width: 100%; }
    .settings-form, .schedule-edit-card { padding: 18px; }
    .settings-savebar { flex-direction: column; align-items: stretch; }
    .settings-savebar .btn { width: 100%; }
}

@media (max-width: 480px) {
    .planner-time-fields { grid-template-columns: 1fr; }
    .planner-tool-times { flex-direction: column; }
    .planner-tool-times > div { width: 100%; }
    .employee-meta { display: grid; gap: 5px; }
    .week-history-heading { align-items: flex-start; }
}


/* Achtergrondkeuze en thema-instelling */
.settings-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.background-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.background-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcff; cursor: pointer; transition: .18s ease; }
.background-choice:hover { border-color: #b8c4d7; transform: translateY(-1px); }
.background-choice.is-selected { border-color: #91a7ff; background: #f0f3ff; box-shadow: 0 0 0 3px rgba(49,94,251,.09); }
.background-choice input { position: absolute; opacity: 0; pointer-events: none; }
.background-choice-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 13px; color: var(--primary); background: #e9eeff; }
.background-choice strong, .background-choice small { display: block; }
.background-choice small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.background-settings-panel { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #f8faff; }
.background-main-preview { height: 220px; }
.background-settings-panel[hidden] { display: none !important; }
.theme-account-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #f8faff; }
.theme-account-copy { display: flex; align-items: center; gap: 13px; }
.theme-account-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; border-radius: 13px; color: var(--primary); background: #e9eeff; }
.theme-account-select { width: min(230px, 100%); }

/* Donker thema per gebruiker */
html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #edf2fb;
    --muted: #aab4c6;
    --surface: rgba(21, 28, 42, .97);
    --line: #333e52;
    --primary: #7893ff;
    --primary-dark: #617fe9;
    --header: rgba(10, 15, 25, .96);
    --shadow: 0 16px 44px rgba(0, 0, 0, .32);
}
html[data-theme="dark"] body {
    background: var(--site-background-image) center/cover fixed;
}
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .auth-card { border-color: rgba(255,255,255,.055); }
html[data-theme="dark"] .dropdown-menu { --bs-dropdown-bg: #182132; --bs-dropdown-color: #edf2fb; --bs-dropdown-link-color: #edf2fb; --bs-dropdown-link-hover-bg: #253147; --bs-dropdown-link-hover-color: #fff; --bs-dropdown-divider-bg: #354157; }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select { color: #edf2fb; background-color: #111827; border-color: #3a465b; }
html[data-theme="dark"] .form-control::placeholder { color: #7f8ba0; }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus { background-color: #111827; color: #fff; border-color: #7893ff; }
html[data-theme="dark"] .btn-outline-secondary { color: #d5dceb; border-color: #58647a; }
html[data-theme="dark"] .btn-outline-secondary:hover { color: #fff; background: #3b465b; border-color: #647187; }
html[data-theme="dark"] .table-responsive { background: #141c2b; }
html[data-theme="dark"] .table { --bs-table-color: #e6ebf5; --bs-table-striped-color: #e6ebf5; --bs-table-striped-bg: #182234; --bs-table-hover-color: #fff; --bs-table-hover-bg: #202b3f; border-color: #303b4f; }
html[data-theme="dark"] .table thead th { color: #cdd6e7 !important; background: #1b2537 !important; }
html[data-theme="dark"] .accordion-item { background: #141c2b; }
html[data-theme="dark"] .accordion-button { color: var(--ink); background: #182132; }
html[data-theme="dark"] .accordion-button:not(.collapsed) { color: #fff; background: #202c43; }
html[data-theme="dark"] .accordion-button::after { filter: invert(1) grayscale(1); }
html[data-theme="dark"] .accordion-body { background: #141c2b; }
html[data-theme="dark"] .week-navigation { background: rgba(20,28,43,.90); border-color: #303c50; }
html[data-theme="dark"] .compact-empty,
html[data-theme="dark"] .planner-tools,
html[data-theme="dark"] .background-settings-panel,
html[data-theme="dark"] .theme-account-box { background: #172132; border-color: #344056; }
html[data-theme="dark"] .empty-state-icon,
html[data-theme="dark"] .settings-icon,
html[data-theme="dark"] .theme-account-icon,
html[data-theme="dark"] .background-choice-icon,
html[data-theme="dark"] .week-number,
html[data-theme="dark"] .roster-user-avatar { background: #253351; color: #9aabff; }
html[data-theme="dark"] .roster-search .input-group-text { color: #bac4d5; background: #182132; border-color: #3a465b; }
html[data-theme="dark"] .roster-department-title span { color: #bdc6d6; background: #263247; }
html[data-theme="dark"] .roster-user-item:hover { background: #1d283b; border-color: #354158; }
html[data-theme="dark"] .quick-shift { color: #d4dbea; background: #182132; border-color: #3b485e; }
html[data-theme="dark"] .quick-shift:hover,
html[data-theme="dark"] .quick-shift.active { color: #aab8ff; background: #263452; border-color: #7188e9; }
html[data-theme="dark"] .planner-day { background: #151e2d; border-color: #303c50; }
html[data-theme="dark"] .planner-day.is-enabled { background: #192334; border-color: #3b4960; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
html[data-theme="dark"] .planner-day.is-absent { background: #2a1d23; border-color: #70424d; }
html[data-theme="dark"] .time-picker-button { color: #c6cede; background: #28354a; }
html[data-theme="dark"] .time-picker-button:hover { color: #fff; background: #34445e; }
html[data-theme="dark"] .planner-absence-field { background: #111827; border-color: #3a465b; }
html[data-theme="dark"] .planner-day.is-absent .planner-absence-field { color: #ff9daa; background: #321f27; border-color: #764550; }
html[data-theme="dark"] .planner-savebar { color: #c3ccdc; background: rgba(21,29,43,.97); border-color: #3a465b; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
html[data-theme="dark"] .settings-upload-card,
html[data-theme="dark"] .background-choice { background: #172132; }
html[data-theme="dark"] .background-choice:hover { border-color: #53627a; }
html[data-theme="dark"] .background-choice.is-selected { background: #223052; border-color: #7188e9; box-shadow: 0 0 0 3px rgba(120,147,255,.10); }
html[data-theme="dark"] .asset-preview { background: #111827; border-color: #455168; }
html[data-theme="dark"] .settings-savebar { background: #182132; border-color: #354157; }
html[data-theme="dark"] .alert-light { color: #dce3ef; background: #1a2435; border-color: #3a465b !important; }
html[data-theme="dark"] .text-bg-light { color: #dce3ef !important; background: #273247 !important; }

@media (max-width: 991.98px) {
    .background-choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .settings-grid-two { grid-template-columns: 1fr; }
    .theme-account-box { align-items: stretch; flex-direction: column; }
    .theme-account-select { width: 100%; }
    .background-main-preview { height: 170px; }
}
