```

/* ==========================================================
   1. BOOTSTRAP CONTAINERS
   ========================================================== */

@media (min-width: 1200px) {
    .container {
        max-width: 1600px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1800px;
    }
}


/* ==========================================================
   2. MENU TREE & DRAG-AND-DROP
   ========================================================== */

/* Menu lists */

.menu-tree-list {
    min-height: 0;
    margin: 0;
    padding: 0 0 0 1.5rem;
    list-style: none;
}

/* Root menu list */

.menu-tree-list[data-menu-tree-root] {
    position: relative;
    min-height: 100px;
    padding: 0 0 80px 0;
    box-sizing: border-box;
}

/* Nested lists */

.menu-tree-item > .menu-tree-list {
    min-height: 0;
    padding-left: 1.5rem;
}

/* Menu items */

.menu-tree-item {
    position: relative;
    margin-bottom: 0.5rem;
}

.menu-tree-list[data-menu-tree-root] > .menu-tree-item {
    margin-bottom: 0.75rem;
}

/* Menu item row */

.menu-tree-row {
    cursor: default;
}

/* Drag handle */

.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.25rem;

    cursor: grab;
    user-select: none;
    touch-action: none;
}

.drag-handle:active {
    cursor: grabbing;
}

/* SortableJS states */

.menu-tree-item.sortable-ghost {
    opacity: 0.4;
}

.menu-tree-item.sortable-ghost > .menu-tree-row {
    background: var(--bs-primary-bg-subtle);
    border: 2px dashed var(--bs-primary);
    border-radius: 0.5rem;
}

.menu-tree-item.sortable-chosen > .menu-tree-row {
    border-color: var(--bs-primary);
}

.menu-tree-item.sortable-fallback {
    opacity: 0.9;
}

/* Dragging state */

.menu-tree-dragging .menu-tree-list {
    transition: background-color 0.15s ease;
}

/* Root menu highlight */

.menu-tree-dragging .menu-tree-list[data-menu-tree-root] {
    border-radius: 0.5rem;
}

/*
 * Bottom of root list:
 * The extra space is part of the existing root sortable list.
 */

.menu-tree-dragging .menu-tree-list[data-menu-tree-root] {
    background-image: linear-gradient(
        to bottom,
        transparent calc(100% - 80px),
        var(--bs-primary-bg-subtle) calc(100% - 80px)
    );

    background-repeat: no-repeat;
}

/* Show where dropping at the end will insert the item */

.menu-tree-dragging .menu-tree-list[data-menu-tree-root]::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 80px;

    border-top: 2px dashed var(--bs-border-color);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;

    pointer-events: none;
}

/* Highlight when cursor is over the final root position */

.menu-tree-dragging
.menu-tree-list[data-menu-tree-root].menu-tree-root-bottom-active::after {
    border-top-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

/* Empty nested lists */

.menu-tree-dragging .menu-tree-list[data-menu-tree-list]:empty {
    min-height: 16px;
    margin-top: 0.25rem;
}

/* Add an insertion indicator to empty nested lists */

.menu-tree-dragging
.menu-tree-item > .menu-tree-list[data-menu-tree-list]:empty {
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.375rem;
}

/* Smaller indentation on mobile */

@media (max-width: 575.98px) {

    .menu-tree-list {
        padding-left: 1rem;
    }

    .menu-tree-list[data-menu-tree-root] {
        padding-left: 0;
    }

    .menu-tree-item > .menu-tree-list {
        padding-left: 1rem;
    }

}


/* ==========================================================
   3. FONT AWESOME ICON PICKER
   ========================================================== */

.fa-picker {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.fa-picker-input {
    flex: 1;
    min-width: 0;
}

.fa-picker-preview {
    flex: 0 0 44px;
    min-width: 44px;
}

.fa-picker-preview i {
    font-size: 1.1rem;
}

.fa-picker-panel {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 0.35rem);
    right: 0;

    width: min(360px, 90vw);
    padding: 0.75rem;

    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-box-shadow);
}

.fa-picker-panel[hidden] {
    display: none !important;
}

.fa-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;

    max-height: 260px;
    overflow-y: auto;
}

.fa-picker-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;

    min-width: 0;
    min-height: 66px;
    padding: 0.4rem 0.2rem;

    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.fa-picker-option:hover,
.fa-picker-option:focus {
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary);
}

.fa-picker-option > i {
    font-size: 1.2rem;
}

.fa-picker-option > span {
    width: 100%;
    overflow: hidden;

    font-size: 0.7rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================
   4. FILE CAROUSEL & FULLSCREEN LIGHTBOX
   ========================================================== */

.file-carousel-zoomable {
    cursor: zoom-in;
    transition: filter 0.2s ease;
}

.file-carousel-zoomable:hover {
    filter: brightness(0.85);
}

/* Fullscreen modal */

.file-carousel-lightbox .modal-content {
    height: 100%;
}

.file-carousel-lightbox .modal-header {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.file-carousel-lightbox .modal-body {
    position: relative;
    z-index: 1;
}

.file-carousel-lightbox .file-lightbox-close {
    position: relative;
    z-index: 11;
    cursor: pointer;
}

/* Image viewer */

.file-lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background: #111;
    touch-action: none;
}

.file-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    user-select: none;

    cursor: grab;
    transform-origin: center center;
    will-change: transform;
}

.file-lightbox-image.is-dragging {
    cursor: grabbing;
}

.file-zoom-level {
    min-width: 45px;
    text-align: center;
}


/* ==========================================================
   5. RICH TEXT WIDGET
   ========================================================== */

/* Inline code */

.widget-rich-text code {
    padding: 0.15rem 0.35rem;
    border-radius: 0.3rem;

    color: var(--bs-code-color);
    background: var(--bs-tertiary-bg);

    font-family: monospace;
    font-size: 0.9em;
}

/* Multiline code */

.widget-rich-text pre {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;

    color: #f8f9fa;
    background: #212529;
    border-radius: 0.5rem;

    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre;
}

.widget-rich-text pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}


/* ==========================================================
   6. PAGE WIDGETS
   ========================================================== */

.page-widget {
    overflow: hidden;
}

/* Card header */

.page-widget .widget-card-header {
    padding: 0.9rem 1.25rem;
    background: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

/* Header icon */

.page-widget .widget-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;

    font-size: 1.1rem;
}

/* Header title */

.page-widget .widget-header-text {
    min-width: 0;
}

.page-widget .widget-header-text h2 {
    line-height: 1.3;
}

/* Header actions */

.page-widget .widget-header-action {
    white-space: nowrap;
    border-radius: 0.5rem;
}

.page-widget-map .widget-card-header {
    background: var(--bs-secondary-bg);
}


/* ==========================================================
   7. RESPONSIVE ADJUSTMENTS
   ========================================================== */

@media (max-width: 575.98px) {

    /* File carousel lightbox */

    .file-carousel-lightbox .modal-header {
        gap: 0.5rem;
    }

    .file-carousel-lightbox .modal-title {
        max-width: 110px;
        font-size: 0.85rem;
    }

    /* Page widget headers */

    .page-widget .widget-card-header {
        padding: 0.75rem 0.5rem;
    }

    .page-widget .widget-header-icon {
        width: 36px;
        height: 36px;
        border-radius: 0.5rem;
        font-size: 1rem;
    }

    .page-widget .widget-header-action {
        font-size: 0.8rem;
    }

    /* Menu tree */

    .menu-tree-list[data-menu-tree-root] {
        padding-bottom: 80px;
    }

}


/* ==========================================================
   8. SETTINGS - GENERIC SINGLE / MULTIPLE CHOICE
   ========================================================== */

/*
 * Django CheckboxSelectMultiple can assign widget attrs to
 * the individual INPUTS rather than the group container.
 * Target the actual rendered inputs and their label wrappers.
 * This applies to every dynamic setting (setting_<id>),
 * with no special-case setting keys.
 */

/* Keep the field title ABOVE the checkbox group when the
 * setting's label and checkbox list are siblings. */
form :is(.mb-3, .mb-4, .form-group, fieldset):has(input[type="checkbox"][name^="setting_"]:not([role="switch"])) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

form :is(.mb-3, .mb-4, .form-group, fieldset):has(input[type="checkbox"][name^="setting_"]:not([role="switch"])) > :is(label, legend, .form-label) {
    order: -2;
    display: block;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0;
    color: var(--bs-body-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
}

form :is(.mb-3, .mb-4, .form-group, fieldset):has(input[type="checkbox"][name^="setting_"]:not([role="switch"])) > :is(.form-text, small) {
    order: 2;
    margin-top: 0.4rem;
}

/* A Django CheckboxSelectMultiple group has an outer DIV
 * containing one DIV > LABEL > INPUT for each option. */
form div:has(> div > label > input[type="checkbox"][name^="setting_"]) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
}

/* Some Django/widget versions render LABELs directly under
 * the group DIV rather than inside per-option DIVs. */
form div:has(> label > input[type="checkbox"][name^="setting_"]) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
}

/* Card appearance for both supported markup structures. */
form div:has(> div > label > input[type="checkbox"][name^="setting_"]) > div > label,
form div:has(> label > input[type="checkbox"][name^="setting_"]) > label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 54px;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

form label:has(> input[type="checkbox"][name^="setting_"]) > input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--bs-primary);
}

form div:has(> div > label > input[type="checkbox"][name^="setting_"]) > div > label:hover,
form div:has(> label > input[type="checkbox"][name^="setting_"]) > label:hover {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-primary);
}

form div:has(> div > label > input[type="checkbox"][name^="setting_"]) > div > label:has(input:checked),
form div:has(> label > input[type="checkbox"][name^="setting_"]) > label:has(input:checked) {
    color: var(--bs-primary-text-emphasis);
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary);
}

form label:has(> input[type="checkbox"][name^="setting_"]:focus-visible) {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    form div:has(> div > label > input[type="checkbox"][name^="setting_"]),
    form div:has(> label > input[type="checkbox"][name^="setting_"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    form div:has(> div > label > input[type="checkbox"][name^="setting_"]),
    form div:has(> label > input[type="checkbox"][name^="setting_"]) {
        grid-template-columns: 1fr;
    }
}

/* Let maps use the space provided by the widget's minimum/custom height.
   The map's configured height remains its natural size when no extra space exists. */
.page-widget-map > .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-widget-map > .card-body > .widget-map-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.page-widget-map > .card-body > .widget-map-wrapper > .widget-leaflet-map {
    flex: 1 1 auto;
    min-height: 150px;
}

/* GPS photo thumbnails, centered on their coordinates in both maps. */
.leaflet-marker-icon.map-photo-thumbnail {
    object-fit: cover;
    border: 3px solid white;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.leaflet-marker-icon.map-photo-thumbnail:hover,
.leaflet-marker-icon.map-photo-thumbnail:focus {
    border-color: var(--bs-primary, #0d6efd);
}
.has-background-image .page-heading {
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
}

.has-background-image .page-heading h1 {
    color: inherit;
}

.has-background-image .page-heading .lead {
    margin-bottom: 0;
}

.page-widget-map_3d > .card-body,
.page-widget-map_3d .widget-map-3d-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.page-widget-map_3d .widget-map-3d { flex: 1 1 auto; min-height: 150px; }
.map-3d-photo { width: 72px; height: 56px; overflow: hidden; border: 3px solid white; box-shadow: 0 2px 8px #0006; }
.map-3d-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-3d-cluster { min-width: 40px; min-height: 40px; }
.maplibregl-popup-content { color: #212529; }

/* Size shortcut cards against their widget, including narrow page columns. */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}
.shortcut-grid-item,
.shortcut-text {
    min-width: 0;
}
.shortcut-text {
    overflow-wrap: anywhere;
}
.shortcut-card .card-text {
    line-height: 1.5;
}
/* Keep white flag edges visible in page headings and navigation menus. */
.ql-toolbar .rich-text-table-menu { display: inline-block; position: relative; vertical-align: middle; color: #444; }
.rich-text-table-menu summary { cursor: pointer; padding: 3px 8px; list-style: none; border-radius: 3px; }
.rich-text-table-menu summary::-webkit-details-marker { display: none; }
.rich-text-table-menu summary::after { content: "▾"; margin-left: 5px; font-size: 10px; }
.rich-text-table-menu summary:hover, .rich-text-table-menu[open] summary { color: #06c; background: #f1f5f9; }
.rich-text-table-actions { position: absolute; top: 100%; right: 0; z-index: 1050; width: 220px; padding: .4rem; background: white; border: 1px solid #ddd; border-radius: .4rem; box-shadow: 0 .4rem 1rem #0002; }
#rich-text-table-controls .rich-text-table-actions {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 220px;
}
#rich-text-table-controls .rich-text-table-actions button {
    display: block;
    float: none;
    width: 100%;
    height: auto;
    min-height: 34px;
    padding: .45rem .65rem;
    text-align: left;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.4;
    border: 0;
    color: #343a40;
}
#rich-text-table-controls .rich-text-table-actions button:hover:not(:disabled),
#rich-text-table-controls .rich-text-table-actions button:focus-visible {
    color: #06c;
    background: #eef5ff;
}
#rich-text-table-controls .rich-text-table-actions button.btn-outline-danger { color: #b02a37; }
#rich-text-table-controls .rich-text-table-actions button:disabled { opacity: .45; cursor: default; }
.widget-rich-text table, #rich-text-editor table {
    border-collapse: collapse;
    width: 100% !important;
    margin: 1rem 0 1.25rem;
    border: 1px solid var(--bs-border-color, #ced4da);
    font-size: .95rem;
    line-height: 1.6;
}
.widget-rich-text td, .widget-rich-text th, #rich-text-editor td {
    border: 1px solid var(--bs-border-color, #ced4da);
    padding: .75rem 1rem;
    min-width: 5rem;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.widget-rich-text th, #rich-text-editor [data-table-header="true"] {
    font-weight: 600;
    background: rgba(127, 127, 127, .12);
}
.widget-rich-text tbody tr:nth-child(even), #rich-text-editor tbody tr:nth-child(even) {
    background: rgba(127, 127, 127, .05);
}
.widget-rich-text td > :last-child, .widget-rich-text th > :last-child { margin-bottom: 0; }
.widget-rich-text { min-width: 0; overflow-x: auto; }
.widget-rich-text ul { list-style-type: disc; padding-left: 2rem; }
.widget-rich-text ol { list-style-type: decimal; padding-left: 2rem; }

.page-heading h1 > .fi,
#mainNavbarWrapper .nav-link > .fi,
#mainNavbarWrapper .dropdown-item > .fi {
    display: inline-block;
    width: 1.333333em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.5);
}

#rich-text-table-controls button[aria-pressed="true"] { background: #e7f1ff; font-weight: 600; }

#rich-text-table-controls .table-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; padding: .45rem .65rem; font-size: 13px; }
#rich-text-table-controls input[type="color"] { width: 38px; height: 28px; padding: 2px; border: 1px solid #ced4da; border-radius: 4px; }
#rich-text-table-controls select { display: block; width: 100%; padding: .3rem; border: 1px solid #ced4da; border-radius: 4px; background: white; color: #343a40; }
#rich-text-table-controls input:disabled, #rich-text-table-controls select:disabled { opacity: .45; }

#rich-text-table-controls .clr-field { width: 100%; }
#rich-text-table-controls #table-header-color { width: 100%; height: 32px; padding-right: 36px; }
#rich-text-table-controls .clr-field > button { position: absolute; width: 28px; height: 100%; min-height: 0; padding: 0; border-radius: 0; }
#rich-text-editor [data-table-header="true"][style*="color"] *, .widget-rich-text th[style*="color"] * { color: inherit !important; }

.ql-snow .ql-picker.ql-size { width: 76px; }
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value]::before { content: attr(data-value); }

/* Match list markers to the largest explicitly sized text in that item.
   Direct-child matching keeps nested lists independent. */
.widget-rich-text li:has(> span[style*="font-size: 12px"]),
.widget-rich-text li:has(> span[style*="font-size:12px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size: 12px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size:12px"]) { font-size: 12px; }
.widget-rich-text li:has(> span[style*="font-size: 14px"]),
.widget-rich-text li:has(> span[style*="font-size:14px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size: 14px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size:14px"]) { font-size: 14px; }
.widget-rich-text li:has(> span[style*="font-size: 16px"]),
.widget-rich-text li:has(> span[style*="font-size:16px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size: 16px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size:16px"]) { font-size: 16px; }
.widget-rich-text li:has(> span[style*="font-size: 18px"]),
.widget-rich-text li:has(> span[style*="font-size:18px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size: 18px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size:18px"]) { font-size: 18px; }
.widget-rich-text li:has(> span[style*="font-size: 20px"]),
.widget-rich-text li:has(> span[style*="font-size:20px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size: 20px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size:20px"]) { font-size: 20px; }
.widget-rich-text li:has(> span[style*="font-size: 24px"]),
.widget-rich-text li:has(> span[style*="font-size:24px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size: 24px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size:24px"]) { font-size: 24px; }
.widget-rich-text li:has(> span[style*="font-size: 28px"]),
.widget-rich-text li:has(> span[style*="font-size:28px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size: 28px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size:28px"]) { font-size: 28px; }
.widget-rich-text li:has(> span[style*="font-size: 32px"]),
.widget-rich-text li:has(> span[style*="font-size:32px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size: 32px"]),
#rich-text-editor .ql-editor li:has(> span[style*="font-size:32px"]) { font-size: 32px; }

.ql-toolbar .rich-text-emoji-menu { display: inline-block; position: relative; vertical-align: middle; }
.rich-text-emoji-menu summary { cursor: pointer; list-style: none; padding: 0 7px; font-size: 22px; line-height: 26px; border-radius: 3px; }
.rich-text-emoji-menu summary::-webkit-details-marker { display: none; }
.rich-text-emoji-menu summary:hover, .rich-text-emoji-menu[open] summary { background: #eef5ff; color: #06c; }
.ql-toolbar.ql-snow .rich-text-emoji-grid { position: absolute; right: 0; top: 100%; z-index: 1050; display: grid; grid-template-columns: repeat(8, 32px); gap: 2px; padding: 8px; background: white; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 .4rem 1rem #0002; max-height: 260px; overflow-y: auto; }
.ql-toolbar.ql-snow .rich-text-emoji-grid button { float: none; width: 32px; height: 32px; padding: 0; font-size: 22px; line-height: 32px; border-radius: 4px; }
.ql-toolbar.ql-snow .rich-text-emoji-grid button:hover, .ql-toolbar.ql-snow .rich-text-emoji-grid button:focus-visible { background: #eef5ff; outline: 2px solid #2563eb; }

.ql-toolbar.ql-snow .rich-text-emoji-grid button[hidden], .rich-text-emoji-empty[hidden] { display: none; }
.ql-toolbar.ql-snow .rich-text-emoji-search { grid-column: 1 / -1; position: sticky; top: -8px; z-index: 1; width: 100%; min-width: 0; padding: 7px; border: 1px solid #ced4da; border-radius: 4px; font-size: 14px; background: white; color: #212529; }
.rich-text-emoji-empty { grid-column: 1 / -1; padding: 12px 4px; color: #64748b; }
