/* The customizer owns its surfaces; accents follow the selected account theme. */
#sideCustomizerDrawer {
  --locket-accent-text: color-mix(in srgb,var(--bs-primary) 75%,var(--locket-ui-text));
  --customizer-tile: color-mix(in srgb,var(--locket-ui-raised) 48%,var(--locket-ui-card));
  --customizer-selected: color-mix(in srgb,var(--bs-primary) 12%,var(--locket-ui-card));
  height: min(660px,86%); max-height: calc(100% - 16px); overflow: hidden;
  padding: 10px 16px 0; gap: 12px; border-radius: 30px;
  background: var(--locket-ui-card); color: var(--locket-ui-text); border: 1px solid var(--locket-ui-border);
  box-shadow: 0 16px 60px #0004; backdrop-filter: none; -webkit-backdrop-filter: none;
  transform: translate3d(0,105%,0); transition: transform .32s cubic-bezier(.22,.8,.26,1),opacity .2s,visibility .32s;
}
#sideCustomizerDrawer.open { transform: translate3d(0,0,0); transition: transform .32s cubic-bezier(.22,.8,.26,1),opacity .2s,visibility 0s; }
.drawer-grab-handle { flex: 0 0 4px; width: 34px; border-radius: 9px; background: var(--locket-ui-border); align-self: center; }
#sideCustomizerDrawer .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#sideCustomizerDrawer .drawer-sheet-header { gap: 12px; padding: 0; flex-shrink: 0; }
#sideCustomizerDrawer .drawer-sheet-title { gap: 10px; min-width: 0; color: var(--locket-ui-text); }
.customizer-title-art { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 16px 16px 16px 6px; color: var(--locket-accent-text); background: var(--customizer-selected); }
.drawer-sheet-title strong { display: block; font-size: 17px; line-height: 1.3; letter-spacing: -.4px; }
.drawer-sheet-title small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: var(--locket-ui-muted); }
#sideCustomizerDrawer .drawer-sheet-header button { display: grid; place-items: center; flex: 0 0 36px; height: 36px; width: 36px; border: 1px solid var(--locket-ui-border); background: var(--customizer-tile); color: var(--locket-ui-muted); border-radius: 50%; }
#sideCustomizerDrawer .drawer-sheet-header button .ui-icon { width: 19px; height: 19px; }
#sideCustomizerDrawer .drawer-tabs { --drawer-tab: 0; position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; flex-shrink: 0; padding: 4px; border-radius: 17px; border: 1px solid var(--locket-ui-border); background: var(--customizer-tile); }
#sideCustomizerDrawer .drawer-tabs::before { content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px)/3); border-radius: 12px; background: var(--locket-ui-card); box-shadow: 0 1px 4px #0001,inset 0 0 0 1px var(--locket-ui-border); transform: translateX(calc(var(--drawer-tab) * (100% + 4px))); transition: transform .26s cubic-bezier(.22,.8,.26,1); }
#sideCustomizerDrawer .drawer-tab-btn { min-width: 0; height: 42px; gap: 6px; padding: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--locket-ui-muted); box-shadow: none; font-size: 11.5px; font-weight: 700; transition: color .2s; }
#sideCustomizerDrawer .drawer-tab-btn.active { color: var(--locket-accent-text); background: transparent; box-shadow: none; }
#sideCustomizerDrawer .drawer-tab-btn .ui-icon { width: 18px; height: 18px; }
#sideCustomizerDrawer .drawer-pane { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--locket-ui-border) transparent; padding: 3px 7px calc(24px + env(safe-area-inset-bottom,0px)); gap: 12px; animation: customizer-pane-in .22s ease both; }
#sideCustomizerDrawer .drawer-pane[hidden] { display: none; }
.customizer-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--locket-ui-text); }
.customizer-section-heading small { font-size: 10px; font-weight: 500; color: var(--locket-ui-muted); }
#sideCustomizerDrawer .visual-frames-grid { gap: 8px; }
#sideCustomizerDrawer .vf-card { position: relative; min-width: 0; padding: 6px 6px 11px; gap: 0; border: 1px solid var(--locket-ui-border); border-radius: 20px 20px 20px 9px; background: var(--customizer-tile); box-shadow: none; transition: border-color .18s,background .18s,transform .18s; }
#sideCustomizerDrawer .vf-card:hover { border-color: var(--bs-primary); transform: translateY(-2px); box-shadow: none; }
#sideCustomizerDrawer .vf-card:active { transform: scale(.97); }
#sideCustomizerDrawer .vf-card.active { border-color: var(--bs-primary); background: var(--customizer-selected); box-shadow: inset 0 0 0 1px var(--bs-primary); }
#sideCustomizerDrawer .vf-thumb { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 9px; overflow: hidden; border: 0; border-radius: 14px; background: transparent; color: var(--locket-accent-text); }
#sideCustomizerDrawer .vf-card[data-frame="none"] .vf-thumb { color: var(--locket-ui-muted); }
#sideCustomizerDrawer .vf-label { color: var(--locket-ui-text); font-size: 11px; font-weight: 500; line-height: 1.5; }
.frame-selected-mark { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--bs-primary); color: var(--locket-accent-ink); opacity: 0; transform: scale(.6); transition: opacity .18s,transform .22s; }
.frame-selected-mark .ui-icon { width: 12px; height: 12px; }
.vf-card.active .frame-selected-mark { opacity: 1; transform: scale(1); }
.vf-card.active .frame-preview-canvas { animation: customizer-pick .3s ease both; }
#sideCustomizerDrawer .custom-png-card { flex-shrink: 0; justify-content: flex-start; padding: 13px 12px; min-height: 62px; gap: 12px; border: 1px dashed var(--locket-ui-border); border-radius: 18px; background: var(--customizer-tile); color: var(--locket-accent-text); }
.custom-png-card > span { flex: 1; min-width: 0; text-align: left; }
.custom-png-card strong { display: block; color: var(--locket-ui-text); font-size: 12px; }
.custom-png-card small { display: block; color: var(--locket-ui-muted); font-size: 10px; margin-top: 4px; font-weight: 500; }
.custom-png-card > .ui-icon:last-child { width: 19px; height: 19px; }
.custom-caption-editor { display: flex; flex-direction: column; flex-shrink: 0; gap: 10px; }
#sideCustomizerDrawer .custom-caption-input { width: 100%; min-height: 56px; padding: 14px 18px; border: 1px solid var(--locket-ui-border); border-radius: 20px 20px 20px 8px; outline: none; font: inherit; font-size: 14px; font-weight: 700; text-align: center; }
#sideCustomizerDrawer .custom-caption-input::placeholder { color: inherit; opacity: .7; }
#sideCustomizerDrawer .caption-list-scroll { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; overflow: visible; gap: 8px; padding: 0; }
#sideCustomizerDrawer .locket-caption-row { position: relative; min-width: 0; min-height: 64px; justify-content: center; padding: 8px; border: 1px solid var(--locket-ui-border); border-radius: 17px; background: var(--customizer-tile); transition: background .18s,border-color .18s,transform .18s; }
#sideCustomizerDrawer .locket-caption-row:hover { transform: translateY(-2px); border-color: var(--bs-primary); }
#sideCustomizerDrawer .locket-caption-row[aria-pressed="true"] { border-color: var(--bs-primary); background: var(--customizer-selected); }
#sideCustomizerDrawer .locket-caption-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; padding: 7px 10px; box-shadow: none; }
#sideCustomizerDrawer .theme-swatches-bar { flex-shrink: 0; padding: 12px 14px; border-radius: 18px; background: var(--customizer-tile); border: 1px solid var(--locket-ui-border); }
#sideCustomizerDrawer .detail-span-4 { color: var(--locket-ui-text); font-size: 12px; }
.theme-swatches-bar .detail-span-4 small { display: block; font-size: 10px; font-weight: 500; margin-top: 4px; color: var(--locket-ui-muted); }
#sideCustomizerDrawer .swatch-group { gap: 12px; }
#sideCustomizerDrawer .color-circle-wrap { position: relative; display: flex; align-items: center; flex-direction: column; gap: 5px; overflow: visible; width: 30px; height: auto; border: 0; border-radius: 0; transform: none; }
#sideCustomizerDrawer .color-circle-wrap input { position: static; width: 30px; height: 30px; padding: 0; overflow: hidden; border-radius: 50%; border: 2px solid var(--locket-ui-border); background: transparent; }
.color-circle-wrap input::-webkit-color-swatch-wrapper { padding: 0; }
.color-circle-wrap input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.color-circle-wrap input::-moz-color-swatch { border: 0; border-radius: 50%; }
.color-circle-wrap > span { font-size: 9px; color: var(--locket-ui-muted); }
#sideCustomizerDrawer .sec-label { margin-bottom: 8px; color: var(--locket-ui-text); font-size: 12px; line-height: 1.5; font-weight: 600; text-transform: none; letter-spacing: 0; }
#sideCustomizerDrawer .vip-mode-pills { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
#sideCustomizerDrawer .vip-pill-btn { grid-column: span 2; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border: 1px solid var(--locket-ui-border); border-radius: 17px; color: var(--locket-ui-muted); background: var(--customizer-tile); box-shadow: none; font-size: 11px; }
#sideCustomizerDrawer .vip-pill-btn:nth-last-child(-n+2) { grid-column: span 3; }
#sideCustomizerDrawer .vip-pill-btn .ui-icon { width: 21px; height: 21px; }
#sideCustomizerDrawer .vip-pill-btn.active { border-color: var(--bs-primary); background: var(--customizer-selected); color: var(--locket-accent-text); box-shadow: none; }
#sideCustomizerDrawer :is(.detail-vip-music-box,.custom-seg-box) { flex-shrink: 0; gap: 12px; padding: 14px; border: 1px solid var(--locket-ui-border); border-radius: 20px; background: var(--customizer-tile); }
#sideCustomizerDrawer :is(.detail-vip-music-box,.custom-seg-box) .sec-label { margin: 0; }
#sideCustomizerDrawer .detail-vip-music-box .sec-label { flex-wrap: wrap; gap: 4px; }
.detail-vip-music-box .sec-label > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.detail-vip-music-box .sec-label .ui-icon { width: 18px; height: 18px; color: var(--locket-accent-text); }
#sideCustomizerDrawer .detail-selected-music-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--locket-accent-text); }
#sideCustomizerDrawer .detail-div-13 { display: flex; gap: 8px; }
#sideCustomizerDrawer :is(.nx-input,.detail-music-query-input,.detail-streak-date-input) { min-width: 0; height: 44px; border-radius: 13px; border: 1px solid var(--locket-ui-border); background: var(--locket-ui-card); color: var(--locket-ui-text); font-size: 14px; font-weight: 400; padding-inline: 12px; }
#sideCustomizerDrawer .detail-waves-effect { display: flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 5px; min-width: 68px; height: 44px; padding: 0 10px; border-radius: 13px; background: var(--bs-primary); color: var(--locket-accent-ink); box-shadow: none; }
.detail-waves-effect .ui-icon { width: 16px; height: 16px; }
#sideCustomizerDrawer .detail-waves-effect:disabled { opacity: .65; cursor: progress; }
#sideCustomizerDrawer .detail-music-results-box { max-height: none; overflow: visible; gap: 9px; }
.music-search-empty { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--locket-ui-muted); }
.music-search-empty > .ui-icon { width: 36px; height: 36px; padding: 8px; background: var(--customizer-selected); color: var(--locket-accent-text); border-radius: 13px 13px 13px 5px; }
.music-search-empty strong { display: block; font-size: 11px; line-height: 1.5; font-weight: 600; color: var(--locket-ui-text); }
.music-search-empty small { display: block; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.music-search-loading > .ui-icon { animation: customizer-music-pulse 1s ease-in-out 12; }
.music-search-error { color: var(--bs-danger); }
#sideCustomizerDrawer .music-track-row { min-height: 54px; padding: 8px; border: 1px solid var(--locket-ui-border); background: var(--locket-ui-card); border-radius: 14px; transform: none; animation: customizer-pane-in .2s ease both; }
#sideCustomizerDrawer .music-track-row.selected { border-color: var(--bs-primary); background: var(--customizer-selected); }
.music-track-copy { flex: 1; min-width: 0; min-height: 38px; padding: 0; text-align: left; background: transparent; border: 0; cursor: pointer; font: inherit; }
.music-track-title { color: var(--locket-ui-text); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-track-artist { margin-top: 3px; color: var(--locket-ui-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-preview-button { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 50%; background: var(--customizer-selected); color: var(--locket-accent-text); cursor: pointer; }
.music-preview-button .ui-icon { width: 18px; height: 18px; }
.music-preview-button:disabled { opacity: .35; cursor: default; }
#sideCustomizerDrawer .detail-lp-sec-heading { gap: 8px; flex-wrap: wrap; }
#sideCustomizerDrawer .detail-span-5 { gap: 7px; color: var(--locket-ui-text); font-size: 12px; }
.detail-span-5 .ui-icon { width: 19px; height: 19px; color: var(--locket-accent-text); }
#sideCustomizerDrawer .detail-streak-mode-badge { font-size: 10px; color: var(--locket-ui-muted); }
#sideCustomizerDrawer .streak-seg-group { padding: 4px; gap: 4px; border: 1px solid var(--locket-ui-border); background: var(--locket-ui-card); border-radius: 14px; }
#sideCustomizerDrawer .streak-seg-btn { display: flex; flex-direction: column; gap: 5px; min-height: 58px; height: auto; border-radius: 10px; padding: 7px 2px; font-size: 10px; color: var(--locket-ui-muted); box-shadow: none; }
.streak-seg-btn .ui-icon { width: 18px; height: 18px; }
#sideCustomizerDrawer .streak-seg-btn.active { background: var(--customizer-selected); color: var(--locket-accent-text); }
.streak-date-label { display: block; margin: 1px 0 9px; color: var(--locket-ui-text); font-size: 11px; font-weight: 600; }
.streak-date-label small { display: block; margin-top: 4px; color: var(--locket-ui-muted); font-size: 10px; font-weight: 500; }
#streakDateWrap { animation: customizer-pane-in .2s ease both; }
#sideCustomizerDrawer :is(button,[role="button"],input):focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; box-shadow: none; }
#sideCustomizerDrawer .waves-ripple { display: none; }
@keyframes customizer-pane-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes customizer-pick { 0% { transform: scale(.95); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes customizer-music-pulse { 50% { opacity: .45; transform: translateY(-2px); } }
@media (max-width:1024px), (pointer:coarse) { #sideCustomizerDrawer { left: 0; right: 0; bottom: 0; max-height: calc(100% - env(safe-area-inset-top,0px) - 12px); border-radius: 30px 30px 0 0; border-bottom: 0; } }
@media (min-width:600px) and (max-width:1024px) {
  #sideCustomizerDrawer { height: min(820px,86%); padding-inline: 24px; gap: 16px; }
  .drawer-sheet-title strong { font-size: 20px; }
  .drawer-sheet-title small { font-size: 12px; }
  .customizer-title-art { flex-basis: 48px; height: 48px; }
  #sideCustomizerDrawer .drawer-tab-btn { height: 46px; font-size: 13px; }
  #sideCustomizerDrawer .visual-frames-grid { gap: 12px; }
  #sideCustomizerDrawer .vf-card { padding-block: 10px 14px; border-radius: 24px 24px 24px 11px; }
  #sideCustomizerDrawer .vf-thumb { height: auto; }
  #sideCustomizerDrawer .vf-label { font-size: 12px; }
  #sideCustomizerDrawer .customizer-section-heading,#sideCustomizerDrawer .sec-label { font-size: 14px; }
  #sideCustomizerDrawer .vip-pill-btn { min-height: 72px; font-size: 12px; }
}
@media (max-width:360px) { #sideCustomizerDrawer { padding-inline: 12px; } #sideCustomizerDrawer .drawer-tab-btn { gap: 4px; font-size: 10.5px; } #sideCustomizerDrawer .vf-thumb { height: auto; } .drawer-sheet-title strong { font-size: 16px; } #sideCustomizerDrawer .swatch-group { gap: 9px; } }
@media (prefers-reduced-motion:reduce) { #sideCustomizerDrawer,#sideCustomizerDrawer *,#sideCustomizerDrawer *::before { animation: none !important; transition: none !important; } }

/* Form type uses one readable face on desktop and touch devices. */
:root :is(#sideCustomizerDrawer,#backgroundPickerSheet,.locket-entry,.locket-login-modal) :is(button,input,textarea,select,strong,small,span,label,p,summary) { font-family: var(--locket-font-family); }
#sideCustomizerDrawer .drawer-sheet-title strong { font-size:21px; font-weight:800; line-height:1.25; letter-spacing:-.2px; }
#sideCustomizerDrawer .drawer-sheet-title small { font-size:12px; font-weight:400; }
#sideCustomizerDrawer .drawer-tab-btn { font-weight:600; font-size:12px; }
#sideCustomizerDrawer .customizer-section-heading { font-size:13px; }
#sideCustomizerDrawer .customizer-section-heading small { font-size:11px; font-weight:400; }
#sideCustomizerDrawer .customizer-title-art { border-radius:14px; }
#sideCustomizerDrawer .customizer-title-art .ui-icon { width:24px; height:24px; }
.frame-preview-canvas { display:block; width:100%; height:100%; aspect-ratio:1; object-fit:cover; }
#sideCustomizerDrawer .frame-selected-mark { top:11px; right:11px; width:21px; height:21px; border:2px solid var(--locket-ui-card); }
#sideCustomizerDrawer .vip-pill-btn { gap:9px; min-height:74px; border-radius:18px; font-size:12px; font-weight:500; transition:background .18s,border-color .18s,transform .18s; }
#sideCustomizerDrawer .vip-pill-btn:active { transform:scale(.97); }
#sideCustomizerDrawer .vip-pill-btn.active .ui-icon { animation:customizer-pick .25s ease both; }
#sideCustomizerDrawer .vip-pill-btn .ui-icon { width:24px; height:24px; }
#sideCustomizerDrawer .streak-seg-group { gap:6px; padding:5px; border-radius:18px; }
#sideCustomizerDrawer .streak-seg-btn { min-height:67px; gap:8px; font-size:11px; font-weight:500; border-radius:13px; }
#sideCustomizerDrawer .streak-seg-btn .ui-icon { width:22px; height:22px; }
#sideCustomizerDrawer .music-track-row { position:relative; display:flex; align-items:center; gap:10px; min-width:0; min-height:68px; padding:10px; overflow:hidden; border-radius:17px; transition:background .2s,border-color .2s; }
.music-track-row::after { content:""; position:absolute; bottom:0; left:0; width:var(--music-progress,0%); height:2px; background:var(--bs-primary); transition:width .25s linear; }
.music-track-art { position:relative; flex:0 0 42px; width:42px; height:42px; overflow:hidden; border-radius:11px; background:var(--locket-ui-raised); }
#sideCustomizerDrawer .music-track-art img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.music-equalizer { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:3px; background:#14282780; opacity:0; transition:opacity .2s; }
.music-equalizer i { width:3px; height:17px; background:#fff; border-radius:3px; transform:scaleY(.35); }
.is-playing .music-equalizer { opacity:1; }
.is-playing .music-equalizer i { animation:music-meter .9s ease-in-out infinite alternate; }
.is-playing .music-equalizer i:nth-child(2) { animation-delay:-.55s; }
.is-playing .music-equalizer i:nth-child(3) { animation-delay:-.25s; }
#sideCustomizerDrawer .music-track-row.is-previewing { border-color:var(--bs-primary); }
#sideCustomizerDrawer .music-track-title { font-size:13px; line-height:1.5; font-weight:500; }
#sideCustomizerDrawer .music-track-artist { font-size:11px; line-height:1.5; font-weight:400; }
#sideCustomizerDrawer .music-preview-button { display:flex; flex:0 0 62px; justify-content:center; gap:3px; width:62px; height:40px; padding:5px; border:1px solid var(--locket-ui-border); border-radius:13px; font:500 10px/1 var(--locket-font-family); }
#sideCustomizerDrawer .music-preview-button .ui-icon { width:16px; height:16px; flex-shrink:0; }
#sideCustomizerDrawer .music-preview-button[aria-pressed="true"] { background:var(--bs-primary); color:var(--locket-accent-ink); border-color:var(--bs-primary); }
.music-preview-button.is-loading .ui-icon { animation:customizer-music-pulse .8s ease-in-out 15; }
.music-preview-status { margin:0; min-height:18px; color:var(--locket-ui-muted); font-size:11px; line-height:1.6; font-weight:400; overflow-wrap:anywhere; }
#sideCustomizerDrawer .music-search-empty strong { font-size:12px; font-weight:500; }
#sideCustomizerDrawer .music-search-empty small { font-size:11px; font-weight:400; }
@keyframes music-meter { from { transform:scaleY(.3); } to { transform:scaleY(1); } }
@media (pointer:coarse) { #sideCustomizerDrawer :is(.nx-input,.custom-caption-input) { font-size:16px; } }
@media (prefers-reduced-motion:reduce) { #sideCustomizerDrawer *,#sideCustomizerDrawer *::after { animation:none !important; transition:none !important; } .is-playing .music-equalizer i:nth-child(2) { transform:scaleY(.8); } }

/* Visual Color Filter Preview Grid & GenZ Private Swatches */
.visual-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.filter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 5px 5px 8px;
  border: 1px solid var(--locket-ui-border);
  border-radius: 16px;
  background: var(--customizer-tile);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.filter-card:hover {
  transform: translateY(-2px);
  border-color: var(--bs-primary);
}
.filter-card.active {
  border-color: var(--bs-primary);
  background: var(--customizer-selected);
  box-shadow: inset 0 0 0 1px var(--bs-primary);
}
.filter-thumb-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1b20;
}
.filter-preview-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.filter-card-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--locket-ui-text);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 1-Click Private & GenZ Caption Color Swatches */
.caption-swatches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.caption-swatch-pill {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.caption-swatch-pill:hover {
  transform: translateY(-1.5px) scale(1.02);
  border-color: #ffffff;
}
.caption-swatch-pill.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--bs-primary), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.random-caption-btn {
  border: 1px solid rgba(255, 184, 0, 0.45);
  background: rgba(255, 184, 0, 0.14);
  color: #fbbf24;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}
.random-caption-btn:hover {
  background: rgba(255, 184, 0, 0.26);
  transform: scale(1.04);
}
.caption-search-wrap {
  margin-bottom: 4px;
}
.caption-search-input {
  width: 100%;
  height: 38px !important;
  font-size: 12.5px !important;
}
.vip-custom-overlay-edit-row {
  margin-bottom: 10px;
}
.vip-custom-overlay-input {
  width: 100%;
  height: 40px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.vip-quick-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vip-quick-chip {
  border: 1px solid var(--locket-ui-border);
  background: var(--locket-ui-card);
  color: var(--locket-ui-text);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.vip-quick-chip:hover {
  border-color: var(--bs-primary);
  background: var(--customizer-selected);
  transform: translateY(-1px);
}
.caption-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cap-cat-pill {
  border: 1px solid var(--locket-ui-border);
  background: var(--customizer-tile);
  color: var(--locket-ui-muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cap-cat-pill.active,
.cap-cat-pill:hover {
  border-color: var(--bs-primary);
  background: var(--customizer-selected);
  color: var(--locket-accent-text);
}

/* 3D Tool Icons with Transparent Background */
.drawer-tab-3d-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.24));
}
.tool-icon.tool-icon-3d {
  padding: 2px !important;
  overflow: visible;
  background: color-mix(in srgb, var(--bs-primary) 12%, var(--customizer-tile, rgba(255, 255, 255, 0.06))) !important;
  border-radius: 13px !important;
  border: 1px solid color-mix(in srgb, var(--bs-primary) 24%, var(--locket-ui-border));
}
.tool-icon-3d-img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.friend-picker-avatar {
  position: relative;
}
.friend-pin-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  font-size: 11px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.friend-picker-person.is-pinned-bestie .friend-picker-avatar {
  box-shadow: 0 0 0 2px #facc15;
}
.recipient-bestie-quick {
  background: rgba(250, 204, 21, 0.08);
  border: 1px dashed rgba(250, 204, 21, 0.35);
}

/* Compact horizontal pill bars for Frame & Caption studio controls */
#sideCustomizerDrawer :is(#collageModeGrid, #photoBorderGrid, #canvasParticleGrid, #photoStampGrid, #frameCategoryPills, #captionFontPills, #captionFxPills, #captionCategoryPills, #vipOverlayQuickPills) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#sideCustomizerDrawer :is(#collageModeGrid, #photoBorderGrid, #canvasParticleGrid, #photoStampGrid, #frameCategoryPills, #captionFontPills, #captionFxPills, #captionCategoryPills, #vipOverlayQuickPills) .vip-pill-btn {
  grid-column: auto;
  min-height: 34px;
  height: auto;
  flex-direction: row;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  gap: 5px;
}

/* High-Resolution Frame Cards & Thumbnails */
.imported-frame-library { display:flex; flex-direction:column; gap:12px; flex-shrink:0; }
.frame-library-status { min-height:20px; margin:0; color:var(--locket-ui-muted); font-size:13px; line-height:1.5; }
#sideCustomizerDrawer #importedFrameGrid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
#sideCustomizerDrawer #importedFrameGrid .vf-card { display:flex; flex-direction:column; font:inherit; cursor:pointer; }
#sideCustomizerDrawer #importedFrameGrid .vf-card[hidden] { display:none; }
#sideCustomizerDrawer #importedFrameGrid .vf-thumb { box-shadow:none; border:0; }
#sideCustomizerDrawer #importedFrameGrid .vf-label { font-size:13px; font-weight:600; line-height:1.4; }
#importedFrameGrid .vf-card[aria-busy="true"] .vf-thumb { opacity:.55; }
#importedFrameGrid .frame-load-error .vf-thumb::after { content:'Nhấn để tải lại'; position:absolute; inset:35% 6px auto; padding:8px; border-radius:12px; color:var(--locket-ui-text); background:var(--locket-ui-card); font-size:12px; }
#sideCustomizerDrawer .visual-frames-grid:not(.visual-filters-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#sideCustomizerDrawer .visual-frames-grid:not(.visual-filters-grid) .vf-card {
  padding: 7px 7px 10px;
  border-radius: 18px;
}
#sideCustomizerDrawer .visual-frames-grid:not(.visual-filters-grid) .vf-thumb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 14px !important;
  margin-bottom: 7px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
#sideCustomizerDrawer .visual-frames-grid:not(.visual-filters-grid) .vf-label {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

/* Caption Kanade & Locket Dio Studio Cards */
.caption-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.save-preset-btn {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(56, 189, 248, 0.14) !important;
  color: #38bdf8 !important;
}
.caption-icon-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cap-icon-chip {
  border: 1px solid var(--locket-ui-border);
  background: var(--customizer-tile);
  color: var(--locket-ui-text);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cap-icon-chip:hover,
.cap-icon-chip.active {
  border-color: var(--bs-primary);
  background: var(--customizer-selected);
  color: var(--locket-accent-text);
  transform: translateY(-1px);
}
.ov-ios-custom-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  margin-right: 4px;
}

#sideCustomizerDrawer #presetsContainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#sideCustomizerDrawer .kanade-caption-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  min-height: 76px;
  padding: 10px 10px 8px;
  border-radius: 18px;
  border: 1px solid var(--locket-ui-border);
  background: var(--customizer-tile);
  cursor: pointer;
}
#sideCustomizerDrawer .kanade-caption-card .kanade-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  max-width: 100%;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kanade-caption-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 9.5px;
  color: var(--locket-ui-muted);
  border-top: 1px dashed color-mix(in srgb, var(--locket-ui-border) 65%, transparent);
  padding-top: 5px;
}
.kanade-cat-tag {
  font-weight: 700;
  opacity: 0.9;
}
.kanade-use-tag {
  font-weight: 700;
  color: var(--locket-accent-text);
}
.kanade-del-btn {
  border: 0;
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

/* Floating Neon Doodle Brush Toolbar under Viewfinder */
.doodle-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 11px;
  margin-top: -4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 30;
}
.doodle-toolbar-label {
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  margin-right: 2px;
}
.doodle-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dot-color, #FF2A85);
  border: 2px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.doodle-color-dot.active,
.doodle-color-dot:hover {
  transform: scale(1.2);
  border-color: #ffffff;
  box-shadow: 0 0 10px var(--dot-color, #FF2A85);
}
.doodle-act-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.doodle-act-btn.done {
  background: #22c55e;
  border-color: #4ade80;
  color: #052e16;
}
