/* ==========================================================================
   CityU Support — Design System
   Tokens + component skins layered over Bootstrap 5.3.
   ========================================================================== */

/* ---------- Typography: Inter (local, greek + latin) ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('vendor/fonts/inter-greek.woff2') format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('vendor/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('vendor/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    --ink-900: #0c1828;
    --ink-700: #22304a;
    --ink-500: #4a5871;
    --ink-400: #67748d;
    --ink-300: #97a3b8;

    --navy: #13294b;
    --navy-deep: #0c1b33;
    --brand: #2563eb;
    --brand-600: #1d4ed8;
    --brand-soft: #e9effd;

    --bg: #f2f5fa;
    --surface: #ffffff;
    --line: #e6eaf2;
    --line-strong: #d8dfeb;

    --ok: #15803d;        --ok-soft: #e5f5eb;
    --warn: #b45309;      --warn-soft: #fcf3e2;
    --info: #1d4ed8;      --info-soft: #e9effd;
    --mutedc: #5b677f;    --muted-soft: #eef1f6;
    --danger: #b91c1c;    --danger-soft: #fdebea;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
    --shadow-md: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 28px -14px rgba(15, 23, 42, .22);
    --shadow-lg: 0 2px 6px rgba(12, 27, 51, .08), 0 24px 60px -20px rgba(12, 27, 51, .35);
    --bs-body-font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body { height: 100%; }

.app-body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(900px 320px at 85% -120px, rgba(37, 99, 235, .07), transparent),
        var(--bg);
    color: var(--ink-700);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { color: var(--ink-900); font-weight: 700; letter-spacing: -.01em; }

a { color: var(--brand-600); }
a:hover { color: var(--brand); }

/* ---------- Navbar ---------- */
.app-navbar {
    background: linear-gradient(120deg, #12274a, #0c1b33 55%, #14305c);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 10px 30px -18px rgba(12, 27, 51, .9);
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.app-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .2px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8 60%, #1e3a8a);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 14px -6px rgba(37, 99, 235, .65);
}

.app-navbar .nav-link {
    color: rgba(255, 255, 255, .72);
    border-radius: 999px;
    padding: .45rem 1rem !important;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.app-navbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.app-navbar .nav-link.active { color: #fff; background: rgba(255, 255, 255, .14); }
.app-navbar .navbar-nav { gap: .15rem; align-items: center; }

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}

.app-navbar .dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: .5rem;
}

.app-footer { color: var(--ink-300); flex-shrink: 0; font-size: .82rem; letter-spacing: .2px; }

/* ---------- Page head ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.35rem; margin: 0; }
.page-head .sub { color: var(--ink-400); font-size: .9rem; margin-top: .15rem; }

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink-900);
    padding: .85rem 1.15rem;
}
.card-body { padding: 1.15rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; transition: transform .12s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(180deg, #2f72e8, var(--brand));
    border: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 7px 16px -8px rgba(37, 99, 235, .7);
}
.btn-primary:hover { background: linear-gradient(180deg, #2c69d8, var(--brand-600)); box-shadow: 0 9px 20px -8px rgba(29, 78, 216, .75); }

.btn-outline-primary { border-color: #c7d8f8; color: var(--brand-600); }
.btn-outline-primary:hover { background: var(--brand-soft); border-color: #aac4f4; color: var(--brand-600); }
.btn-outline-secondary { border-color: var(--line-strong); color: var(--ink-500); }
.btn-outline-secondary:hover { background: var(--muted-soft); border-color: var(--line-strong); color: var(--ink-700); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-color: var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-700);
}
.form-control:focus, .form-select:focus {
    border-color: #9dbdf6;
    box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .14);
}
.form-label { font-weight: 600; color: var(--ink-500); font-size: .85rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- Badges: soft tinted pills ---------- */
.badge {
    font-weight: 600;
    letter-spacing: .15px;
    padding: .42em .8em;
    border-radius: 999px;
}
.badge.text-bg-success   { background: var(--ok-soft) !important;     color: var(--ok) !important; }
.badge.text-bg-warning   { background: var(--warn-soft) !important;   color: var(--warn) !important; }
.badge.text-bg-primary   { background: var(--info-soft) !important;   color: var(--info) !important; }
.badge.text-bg-secondary { background: var(--muted-soft) !important;  color: var(--mutedc) !important; }
.badge.text-bg-danger    { background: var(--danger-soft) !important; color: var(--danger) !important; }
.badge.text-bg-light     { background: #fff !important; color: var(--ink-500) !important; border: 1px solid var(--line-strong); }

.badge.text-bg-success::before, .badge.text-bg-warning::before,
.badge.text-bg-primary::before, .badge.text-bg-secondary::before,
.badge.text-bg-danger::before {
    content: '';
    display: inline-block;
    width: .45em;
    height: .45em;
    border-radius: 50%;
    background: currentColor;
    margin-right: .45em;
    vertical-align: .08em;
}

/* ---------- Alerts ---------- */
.alert {
    border: 0;
    border-left: 4px solid;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}
.alert-success { background: var(--ok-soft); color: #14532d; border-color: #22c55e; }
.alert-danger  { background: var(--danger-soft); color: #7f1d1d; border-color: #ef4444; }
.alert-warning { background: var(--warn-soft); color: #713f12; border-color: #f59e0b; }
.alert-info    { background: var(--info-soft); color: #1e3a8a; border-color: #3b82f6; }

/* ---------- Avatars ---------- */
.avatar-circle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .5px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset;
    user-select: none;
}
.avatar-circle.sm { width: 30px; height: 30px; min-width: 30px; font-size: .68rem; }
img.avatar-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
img.avatar-img.sm { width: 30px; height: 30px; }

/* ---------- Status filter pills ---------- */
.stat-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-500);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}
.stat-pill:hover { border-color: #b9cdf3; color: var(--brand-600); background: #fbfdff; }
.stat-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 14px -8px rgba(19, 41, 75, .7); }
.stat-pill .cnt {
    background: var(--muted-soft);
    color: var(--ink-500);
    border-radius: 999px;
    font-size: .72rem;
    padding: .1rem .5rem;
    font-weight: 700;
}
.stat-pill.active .cnt { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Filter bar ---------- */
.filter-bar .form-select, .filter-bar .form-control { min-width: 0; }
.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; box-shadow: var(--shadow-sm); }

/* ---------- Ticket list ---------- */
.tlist { display: flex; flex-direction: column; }
.trow {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: center;
    padding: .9rem 1.1rem .9rem .9rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-left: 3px solid transparent;
    transition: background .12s ease;
}
.trow + .trow { border-top: 1px solid var(--line); }
.trow:hover { background: #f7faff; color: inherit; }
.trow.acc-open     { border-left-color: #22c55e; }
.trow.acc-pending  { border-left-color: #f59e0b; }
.trow.acc-resolved { border-left-color: #3b82f6; }
.trow.acc-closed   { border-left-color: #cbd5e1; }

.trow .t-subject {
    font-weight: 600;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.trow .t-subject .bi-paperclip { color: var(--ink-300); font-size: .85em; }
.trow .t-meta { font-size: .815rem; color: var(--ink-400); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .t-meta .tno { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-500); }
.trow .t-side { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.trow .t-time { font-size: .78rem; color: var(--ink-300); white-space: nowrap; }

.ticket-number { font-variant-numeric: tabular-nums; color: var(--ink-400); font-weight: 700; }

.dept-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .815rem; color: var(--ink-500); font-weight: 500; white-space: nowrap; }
.dept-dot { width: .6rem; height: .6rem; min-width: .6rem; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(15, 23, 42, .05); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--ink-400); }
.empty-state .ico {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ---------- Pagination ---------- */
.pager { display: flex; align-items: center; gap: .6rem; }
.pager .btn { min-width: 42px; }

/* ---------- Conversation thread ---------- */
.msg-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.msg-card + .msg-card, .sys-chip + .msg-card, .msg-card + .sys-chip { margin-top: 1rem; }
.msg-card .msg-head {
    padding: .65rem 1.05rem;
    background: #fafbfe;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.msg-card.msg-agent { border-color: #d4e2fa; }
.msg-card.msg-agent .msg-head { background: linear-gradient(180deg, #eef4fe, #e9f1fd); border-bottom-color: #dbe7fb; }
.msg-card.msg-note { border-color: #efddad; }
.msg-card.msg-note .msg-head { background: #fdf6dd; border-bottom-color: #f3e7bb; }
.msg-card .msg-body { padding: 1.05rem 1.15rem; overflow-x: auto; line-height: 1.6; }
.msg-card .msg-body img { max-width: 100%; height: auto; border-radius: 8px; }
.msg-card .msg-body blockquote {
    border-left: 3px solid var(--line-strong);
    margin: .5rem 0;
    padding: .25rem .85rem;
    color: var(--ink-500);
}
.msg-author { font-weight: 650; color: var(--ink-900); }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* System events as centered timeline chips */
.sys-chip {
    display: table;
    margin: .85rem auto;
    background: var(--muted-soft);
    border-radius: 999px;
    padding: .38rem 1rem;
    font-size: .8rem;
    color: var(--ink-500);
    max-width: 92%;
}
.sys-chip p { display: inline; margin: 0; }

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .82rem;
    text-decoration: none;
    color: var(--ink-700);
    background: #fff;
    font-weight: 500;
    transition: all .13s ease;
}
.attachment-chip:hover { background: var(--brand-soft); border-color: #b6cdf6; color: var(--brand-600); }
.attachment-chip .bi { color: var(--brand); }

/* ---------- Quill editor ---------- */
.editor-shell { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; }
.editor-shell:focus-within { border-color: #9dbdf6; box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .14); }
.editor-shell .ql-toolbar { border: 0; border-bottom: 1px solid var(--line); background: #fafbfe; }
.editor-shell .ql-container { border: 0; min-height: 170px; font-size: .95rem; font-family: inherit; }
.editor-shell .ql-editor { min-height: 170px; line-height: 1.6; }
.editor-shell .ql-editor.ql-blank::before { color: var(--ink-300); font-style: normal; }

/* ---------- Tables (admin) ---------- */
.table { --bs-table-hover-bg: #f7faff; }
.table thead th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ink-400);
    font-weight: 700;
    border-bottom: 1px solid var(--line-strong);
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.table td { vertical-align: middle; border-color: var(--line); }
.table-tickets > :not(caption) > * > * { padding-top: .85rem; padding-bottom: .85rem; }

/* ---------- Login ---------- */
.login-wrap {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(1100px 480px at 8% -10%, rgba(37, 99, 235, .16), transparent 60%),
        radial-gradient(900px 420px at 105% 108%, rgba(19, 41, 75, .22), transparent 55%),
        radial-gradient(circle at 1px 1px, rgba(19, 41, 75, .07) 1px, transparent 0),
        #f2f5fa;
    background-size: auto, auto, 24px 24px, auto;
}

.login-card { max-width: 440px; width: 100%; border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); }
.login-logo { display: flex; justify-content: center; }
.login-logo .brand-mark { width: 64px; height: 64px; border-radius: 18px; font-size: 2.1rem; }

.btn-google {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: #3c4043;
    font-weight: 600;
    border-radius: 12px;
    padding-top: .7rem;
    padding-bottom: .7rem;
    box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: #f8fafc; border-color: #b9c2cf; box-shadow: var(--shadow-md); }

/* ---------- Misc ---------- */
.dropdown-menu { border-radius: 12px; border-color: var(--line); box-shadow: var(--shadow-md); }
.dropdown-item { font-weight: 500; }
.dropdown-item:active { background: var(--brand); }

::selection { background: rgba(37, 99, 235, .18); }

@media (max-width: 576px) {
    .trow { grid-template-columns: minmax(0, 1fr); }
    .trow .avatar-circle, .trow img.avatar-img { display: none; }
    .trow .t-side { justify-content: flex-start; margin-top: .35rem; }
}

/* ==========================================================================
   Appended: Admin screens (users & departments)
   Pending-approval card tint, member picker tiles, sticky form action bar.
   ========================================================================== */

/* Warning-tinted card for the pending-approval queue */
.card-attn { border-color: #f0ddb0; }
.card-attn > .card-header { background: var(--warn-soft); color: var(--warn); border-bottom-color: #f0ddb0; }

/* Stacked rows inside the pending-approval card */
.pending-row { padding: 1rem 1.15rem; }
.pending-row + .pending-row { border-top: 1px solid var(--line); }

/* Checkbox tiles for picking members in the department form */
.pick-tile {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    height: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color .12s ease, background .12s ease;
}
.pick-tile:hover { border-color: #b9cdf3; }
.pick-tile:has(.form-check-input:checked) { border-color: #aac4f4; background: var(--brand-soft); }
.pick-tile .form-check-input { margin-top: .35rem; flex-shrink: 0; }
.pick-tile .form-check-label { min-width: 0; word-break: break-word; }

/* Sticky bottom action bar for long admin forms */
.form-actions {
    position: sticky;
    bottom: .75rem;
    z-index: 5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.25rem;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-md);
}

/* ---------- Footer changelog ---------- */
.footer-sep { color: var(--ink-300); margin: 0 .4rem; }
.changelog-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--ink-400);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
    transition: color .13s ease;
}
.changelog-link:hover { color: var(--brand-600); }

.changelog-entry { padding: 0 0 1.1rem; }
.changelog-entry + .changelog-entry { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.changelog-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.changelog-version {
    background: var(--brand-soft);
    color: var(--brand-600);
    font-weight: 700;
    font-size: .78rem;
    padding: .12rem .55rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.changelog-title { font-weight: 600; color: var(--ink-900); }
.changelog-date { color: var(--ink-300); font-size: .8rem; margin-left: auto; }
.changelog-items { margin: 0; padding-left: 1.2rem; color: var(--ink-500); }
.changelog-items li { margin-bottom: .3rem; line-height: 1.5; }
.modal-content { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--line); }

/* ---------- @-mention autocomplete ---------- */
.mention-menu {
    position: fixed;
    z-index: 1080;
    min-width: 240px;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: .25rem;
    max-height: 240px;
    overflow-y: auto;
}
.mention-item {
    padding: .4rem .6rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: .88rem;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mention-item:hover, .mention-item.active { background: var(--brand-soft); }
.mention-item .mention-handle { color: var(--ink-400); font-size: .82em; }

/* ---------- Dark mode ---------- */
[data-bs-theme="dark"] {
    --ink-900: #e8edf5;
    --ink-700: #cdd6e4;
    --ink-500: #9aa6bd;
    --ink-400: #7f8da6;
    --ink-300: #5f6b82;
    --bg: #0e1626;
    --surface: #18233a;
    --line: #243149;
    --line-strong: #324card;
    --line-strong: #324straight;
    --line-strong: #32415e;
    --brand-soft: #1c2c4d;
    --muted-soft: #1e2a42;
    --ok-soft: #16301f; --warn-soft: #332817; --info-soft: #1c2c4d; --danger-soft: #361b1b;
}
[data-bs-theme="dark"] .app-body { background: var(--bg); }
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .filter-bar,
[data-bs-theme="dark"] .msg-card,
[data-bs-theme="dark"] .editor-shell,
[data-bs-theme="dark"] .stat-pill,
[data-bs-theme="dark"] .attachment-chip,
[data-bs-theme="dark"] .mention-menu,
[data-bs-theme="dark"] .login-card,
[data-bs-theme="dark"] .dropdown-menu { background: var(--surface); color: var(--ink-700); }
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select { background: #111c30; color: var(--ink-700); border-color: var(--line-strong); }
[data-bs-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--ink-700); --bs-table-hover-bg: #1d2942; }
[data-bs-theme="dark"] .trow:hover { background: #1d2942; }
[data-bs-theme="dark"] .trow + .trow { border-top-color: var(--line); }
[data-bs-theme="dark"] .msg-card .msg-body img { opacity: .95; }
[data-bs-theme="dark"] .editor-shell .ql-toolbar { background: #111c30; }
[data-bs-theme="dark"] .ql-snow .ql-stroke { stroke: var(--ink-400); }
[data-bs-theme="dark"] .ql-snow .ql-fill { fill: var(--ink-400); }

.theme-toggle { background: none; border: 0; color: rgba(255,255,255,.72); padding: .45rem .6rem; border-radius: 999px; cursor: pointer; }
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
