/* SLICE-MOBILE-LIBRARY-DRAWER-V1 · phone-only */

@media (max-width: 620px) {

  .lld-root {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
  }

  .lld-subtitle {
    flex: 0 0 auto;
    margin: 0 0 12px;
    font-family: var(--laouts-font-sans, Inter, system-ui, sans-serif);
    font-size: 13px;
    line-height: 1.45;
    color: var(--laouts-bone-soft, rgba(243, 230, 220, 0.72));
  }

  .lld-chips {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin: 0 0 14px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .lld-chips::-webkit-scrollbar {
    display: none;
  }

  .lld-chip {
    flex: 0 0 auto;
    border: 1px solid rgba(243, 230, 220, 0.22);
    border-radius: 999px;
    background: transparent;
    color: var(--laouts-bone-soft, rgba(243, 230, 220, 0.72));
    font-family: var(--laouts-font-sans, Inter, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
  }

  .lld-chip:active {
    opacity: 0.82;
  }

  .lld-chip.is-active {
    border-color: var(--laouts-coral, #e8a585);
    color: var(--laouts-coral, #e8a585);
    background: rgba(232, 165, 133, 0.12);
  }

  .lld-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    align-content: start;
    padding-bottom: 10px;
  }

  .lld-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .lld-tile:active {
    opacity: 0.88;
  }

  .lld-tile__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

  .lld-tile__ph {
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }

  .lld-tile.is-selected {
    box-shadow: inset 0 0 0 2px var(--laouts-coral, #e8a585);
  }

  .lld-tile__badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--laouts-coral, #e8a585);
    color: rgba(20, 15, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .lld-check {
    width: 10px;
    height: 10px;
    display: block;
  }

  .lld-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(243, 230, 220, 0.14);
    background: rgba(255, 255, 255, 0.04);
    opacity: 0.72;
  }

  .lld-search-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    stroke: var(--laouts-bone-soft, rgba(243, 230, 220, 0.72));
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .lld-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--laouts-bone-soft, rgba(243, 230, 220, 0.72));
    font-family: var(--laouts-font-sans, Inter, system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.2;
    padding: 0;
    pointer-events: none;
  }

  .lld-search__input::placeholder {
    color: rgba(243, 230, 220, 0.42);
  }

  .lld-empty {
    grid-column: 1 / -1;
    padding: 24px 8px;
    text-align: center;
    color: var(--laouts-bone-soft, rgba(243, 230, 220, 0.72));
    font-size: 15px;
    line-height: 1.5;
  }
}
