/* Scoped to the symbol gallery; fonts, models and the drawing canvas retain their layout. */
#lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] .lpp-symbol-categories {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin: 0;
}
#lpp-editor-modal .lpp-symbol-categories__track {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
    padding: 3px 2px;
}
#lpp-editor-modal .lpp-symbol-categories__track::-webkit-scrollbar { display: none; }
#lpp-editor-modal .lpp-symbol-categories button {
    appearance: none;
    box-sizing: border-box;
    margin: 0;
    box-shadow: none;
    font-family: inherit;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}
#lpp-editor-modal .lpp-symbol-categories__filter {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--lpp-line, #e4e4e7);
    border-radius: 999px;
    background: var(--lpp-soft, #f4f4f5);
    color: var(--lpp-muted, #62626c);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
#lpp-editor-modal .lpp-symbol-categories__filter[aria-pressed="true"] {
    background: var(--lpp-ink, #17171b);
    border-color: var(--lpp-ink, #17171b);
    color: #fff;
}
#lpp-editor-modal .lpp-symbol-categories__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 34px;
    min-height: 34px;
    padding: 0 0 3px;
    border: 1px solid var(--lpp-line, #e4e4e7);
    border-radius: 8px;
    background: #fff;
    color: var(--lpp-ink, #17171b);
    font-size: 25px;
}
#lpp-editor-modal .lpp-symbol-categories__arrow:disabled { opacity: .3; cursor: default; }
#lpp-editor-modal .lpp-symbol-categories button:focus-visible {
    outline: 2px solid var(--lpp-accent, #e16b31);
    outline-offset: 1px;
}
#lpp-editor-modal .lpp-symbol-results {
    color: var(--lpp-muted, #62626c);
    font-size: 10px;
    line-height: 1.4;
    margin: 6px 0 8px;
}
#lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] .lpp-mobile-library-filter { display: none !important; }
#lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] .lpp-symbol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] .lpp-symbol-tile {
    text-transform: none;
    letter-spacing: normal;
    min-height: 82px;
    height: 82px;
    padding: 7px 3px;
    gap: 5px;
}
#lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] .lpp-symbol-tile svg { width: 38px; height: 38px; }
#lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] .lpp-symbol-tile span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 22px;
    max-height: 22px;
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 11px;
    font-size: 10px;
}
@media (max-width: 900px) {
    #lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] {
        grid-template-columns: minmax(0, 1fr) 44px;
        grid-template-rows: 44px 44px 16px minmax(0, 1fr);
        gap: 3px 4px;
    }
    #lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] > .lpp-symbol-search { grid-column: 1; grid-row: 1; }
    #lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] > .lpp-symbol-panel__header { grid-column: 2; grid-row: 1; }
    #lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] > .lpp-symbol-categories { grid-column: 1 / -1; grid-row: 2; }
    #lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] > .lpp-symbol-results { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: 10px; }
    #lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] > .lpp-symbol-grid,
    #lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] > .lpp-symbol-empty { grid-column: 1 / -1; grid-row: 4; }
    #lpp-editor-modal #lpp-symbol-panel[data-gallery-ready="true"] > .lpp-symbol-grid { align-content: start; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #lpp-editor-modal .lpp-symbol-categories__filter { min-height: 40px; font-size: 12px; }
    #lpp-editor-modal .lpp-symbol-categories__arrow { height: 40px; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    #lpp-editor-modal .lpp-symbol-categories__track { scroll-behavior: auto; }
}
