#lumise-templates.cwli-tb-active > header { display: none !important; }
#lumise-templates-list.cwli-tb-native-hidden > ul.lumise-list-items { display: none !important; }
#lumise-templates.cwli-tb-active { overflow: hidden; }
/* Core writes a pixel max-height for its native search header. Our header lives
   inside the scroller; the parent already excludes the fixed bottom navigation. */
#lumise-templates #lumise-templates-list.cwli-tb-native-hidden { box-sizing: border-box; overflow-y: auto !important; overflow-x: hidden; overscroll-behavior: contain; background: #fff; padding: 0; max-height: 100% !important; height: 100%; container-type: inline-size; scrollbar-width: thin; }
#lumise-templates-list.cwli-tb-native-hidden > :not(.cwli-tb) { display: none !important; }
#lumise-templates-list .cwli-tb { box-sizing: border-box; min-height: 100%; padding: 0 16px 16px; color: #25272b; font-family: inherit; text-align: left; }
#lumise-templates-list .cwli-tb-sticky { position: sticky; top: 0; z-index: 3; margin: 0 -16px; padding: 8px 16px 0; background: #fff; transform: translateY(0); transition: transform .2s ease; }
#lumise-templates-list .cwli-tb-sticky-hidden { transform: translateY(-100%); }
#lumise-templates-list .cwli-tb-tools::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
#lumise-templates-list .cwli-tb-tools-divider-visible::after { opacity: 1; }
#LumiseDesign #lumise-navigations.cwli-tb-menu-active { background: #fff !important; }
#LumiseDesign #lumise-navigations > .cwli-tb-menu-border { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
#LumiseDesign #lumise-navigations.cwli-tb-menu-active > .cwli-tb-menu-border-visible { opacity: 1; }
#lumise-templates-list .cwli-tb * { box-sizing: border-box; }
#lumise-templates-list .cwli-tb-head input { display: block; width: 100%; min-height: 48px; padding: 0 17px; border: 0; border-radius: 16px; outline-offset: 2px; background: #f1f3f6; color: #25272b; font-size: 15px; }
#lumise-templates-list .cwli-tb-head input::placeholder { color: #818893; }
#lumise-templates-list .cwli-tb-categories { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 10px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
#lumise-templates-list .cwli-tb-categories::-webkit-scrollbar { display: none; }
#lumise-templates-list .cwli-tb-categories button { flex: 0 0 auto; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 24px; background: #f1f3f6; color: #3a3d43; white-space: nowrap; cursor: pointer; }
#lumise-templates-list .cwli-tb-categories button[aria-pressed="true"] { background: #292b2d; color: #fff; }
#lumise-templates-list .cwli-tb-tools { position: sticky; top: var(--cwli-tools-top, 114px); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -16px 8px; padding: 0 16px; background: #fff; font-size: 13px; }
#lumise-templates-list .cwli-tb-tools button { min-height: 42px; padding: 0 10px; border: 0; background: transparent; color: #292b2d; font-weight: 600; cursor: pointer; }
#lumise-templates-list .cwli-tb-tools button[aria-pressed="true"] { color: #e4675c; }
#lumise-templates-list .cwli-tb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#lumise-templates-list .cwli-tb-card { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid #d9dde3; border-radius: 15px; background: #fff; }
#lumise-templates-list .cwli-tb-card-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
#lumise-templates-list .cwli-tb-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #fafafa; }
#lumise-templates-list .cwli-tb-thumb[data-cwli-bg="light"] { background: #fafafa; }
#lumise-templates-list .cwli-tb-thumb[data-cwli-bg="medium"] { background: #85898e; }
#lumise-templates-list .cwli-tb-thumb[data-cwli-bg="dark"] { background: #454a50; }
#lumise-templates-list .cwli-tb-thumb[data-cwli-bg="original"] { background: #fff; }
#lumise-templates-list .cwli-tb-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
#lumise-templates-list .cwli-tb-image-loading { position: relative; }
#lumise-templates-list .cwli-tb-image-loading::before { content: ''; position: absolute; width: 24px; height: 24px; border: 3px solid #eee9fc; border-top-color: #a28ad8; border-radius: 50%; animation: cwli-tb-spin .8s linear infinite; pointer-events: none; }
@keyframes cwli-tb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #lumise-templates-list .cwli-tb-image-loading::before { animation: none; } }
#lumise-templates-list .cwli-tb-image-error::after { content: '미리보기를 불러올 수 없어요'; padding: 8px; color: #737982; text-align: center; font-size: 12px; }
#lumise-templates-list .cwli-tb-image-error img { display: none; }
#lumise-templates-list .cwli-tb-heart { position: absolute; right: 7px; top: 7px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.86); color: #30343a; font-size: 27px; line-height: 1; cursor: pointer; }
#lumise-templates-list .cwli-tb-heart[aria-pressed="true"] { color: #e4675c; }
#lumise-templates-list .cwli-tb-status { min-height: 50px; padding: 16px 0; text-align: center; color: #737982; font-size: 14px; }
#lumise-templates-list .cwli-tb-status button, #lumise-templates-list .cwli-tb-empty button { display: block; margin: 12px auto 0; min-height: 42px; padding: 0 16px; border: 1px solid #d9dde3; border-radius: 22px; background: #fff; color: #30343a; cursor: pointer; }
#lumise-templates-list .cwli-tb button:focus-visible, #lumise-templates-list .cwli-tb input:focus-visible { outline: 3px solid var(--cw-editor-ui-purple,#5c39cd); outline-offset: 2px; }
.cwli-tb-overlay { position: fixed; z-index: 100001; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(16,20,26,.68); overscroll-behavior: contain; }
.cwli-tb-dialog { display: flex; flex-direction: column; width: min(100%, 620px); max-height: 100%; overflow: auto; border-radius: 18px; background: #fff; color: #25272b; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.cwli-tb-dialog header { display: flex; align-items: center; gap: 6px; padding: 12px; }
.cwli-tb-dialog h2 { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.cwli-tb-dialog header button { min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: #f1f3f6; color: #25272b; cursor: pointer; }
.cwli-tb-dialog .cwli-tb-preview-heart { font-size: 24px; }
.cwli-tb-dialog .cwli-tb-preview-heart[aria-pressed="true"] { color: #e4675c; }
.cwli-tb-dialog { height: min(760px, 100%); }
.cwli-tb-dialog header, .cwli-tb-dialog .cwli-tb-apply { flex: 0 0 auto; }
.cwli-tb-dialog .cwli-tb-large { flex: 1 1 auto; min-height: 80px; display: flex; align-items: center; justify-content: center; overflow: auto; text-align: center; padding: 12px; background: #f4f5f6; }
.cwli-tb-dialog .cwli-tb-large img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cwli-tb-dialog .cwli-tb-large button { min-height: 44px; margin: 12px; padding: 8px 16px; }
.cwli-tb-dialog button:disabled { opacity: .55; cursor: wait; }
#lumise-templates-list .cwli-tb-guest { color: #737982; font-size: 12px; margin: 8px 0 0; }
#lumise-templates-list.cwli-tb-modal-open { overflow-y: hidden !important; }
.cwli-tb-dialog .cwli-tb-apply { min-height: 50px; margin: 12px; border: 0; border-radius: 14px; background: #292b2d; color: #fff; font-weight: 700; cursor: pointer; }
.cwli-tb-dialog button:focus-visible { outline: 3px solid #e4675c; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #lumise-templates-list .cwli-tb-sticky, #lumise-templates-list .cwli-tb-tools::after { transition: none; } }
@media (max-width: 736px) { #lumise-templates #lumise-templates-list.cwli-tb-native-hidden { scrollbar-width: none; } #lumise-templates #lumise-templates-list.cwli-tb-native-hidden::-webkit-scrollbar { display: none; } }

/* Mobile-only rollback to the 2026-10-15 category divider. */
@media (max-width:736px) {
  #lumise-templates-list .cwli-tb-tools::after { content:none; }
  #lumise-templates-list .cwli-tb-sticky::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
  #lumise-templates-list .cwli-tb-sticky-scrolled:not(.cwli-tb-sticky-hidden)::after { opacity: 1; }
  #lumise-templates-list .cwli-tb-tools { position:static; top:auto; z-index:auto; margin:0 0 8px; padding:0; background:transparent; }
}
