.tv-mini-gallery-card { min-width:0; }
:is(.tv-mini-tools,.tv-mini-gallery-panel) [data-mini-gallery] [data-mini-gallery-use] { display:block; width:100%; }
.tv-mini-gallery-actions { display:flex; align-items:center; justify-content:center; gap:3px; padding:5px 0 2px; }
:is(.tv-mini-tools,.tv-mini-gallery-panel) [data-mini-gallery] .tv-mini-gallery-actions button,
.tv-mini-gallery-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:4px 6px; border:0; border-radius:7px; background:transparent; color:#654392; font:inherit; font-size:11px; line-height:1.3; text-decoration:none; cursor:pointer; }
:is(.tv-mini-tools,.tv-mini-gallery-panel) [data-mini-gallery] .tv-mini-gallery-actions button:hover,
.tv-mini-gallery-actions a:hover { background:#eee5fb; box-shadow:none; }
.tv-mini-gallery-actions :focus-visible { outline:2px solid #8b62cd; outline-offset:2px; }
.tv-mini-gallery-preview { box-sizing:border-box; width:min(920px,94vw); max-height:92dvh; padding:20px; border:1px solid #ddd0ef; border-radius:20px; background:#fffdff; color:#302547; box-shadow:0 24px 90px #21133840; }
.tv-mini-gallery-preview::backdrop { background:#171026a6; backdrop-filter:blur(5px); }
.tv-mini-gallery-preview header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.tv-mini-gallery-preview h2 { margin:0; font-size:19px; overflow-wrap:anywhere; }
.tv-mini-gallery-preview header button { flex-shrink:0; width:38px; height:38px; border:0; border-radius:50%; background:#eee6f8; color:#654392; font-size:25px; cursor:pointer; }
.tv-mini-gallery-image-stage { display:flex; align-items:center; justify-content:center; min-height:180px; border:1px solid #e4dced; border-radius:12px; overflow:hidden; background:repeating-conic-gradient(#eeeaf4 0% 25%,#faf8fd 0% 50%) 50%/24px 24px; }
.tv-mini-gallery-image-stage img { display:block; max-width:100%; max-height:65dvh; width:auto; height:auto; object-fit:contain; }
.tv-mini-gallery-preview footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.tv-mini-gallery-preview footer p { margin:0; font-size:12px; color:#746080; }
.tv-mini-gallery-preview footer a { padding:11px 18px; border-radius:10px; background:#6750cb; color:#fff; font-size:13px; font-weight:650; text-decoration:none; }
@media(max-width:480px) {
  .tv-mini-gallery-preview { padding:14px; border-radius:15px; }
  .tv-mini-gallery-preview h2 { font-size:16px; }
  .tv-mini-gallery-actions { flex-wrap:wrap; gap:0; }
  .tv-mini-gallery-preview footer a { flex:1; text-align:center; }
}

:is(.tv-mini-tools,.tv-mini-gallery-panel) [data-mini-gallery] { align-content:start; }
:is(.tv-mini-tools,.tv-mini-gallery-panel) [data-mini-gallery].is-expanded { box-sizing:border-box; height:min(560px,65dvh); overflow-y:auto; overflow-x:hidden; grid-auto-rows:minmax(134px,max-content); scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#a48bc8 #f3eef9; overscroll-behavior-y:contain; touch-action:pan-y; padding:3px 7px 3px 3px; }
[data-mini-gallery].is-expanded::-webkit-scrollbar { width:8px; }
[data-mini-gallery].is-expanded::-webkit-scrollbar-track { background:#f3eef9; border-radius:8px; }
[data-mini-gallery].is-expanded::-webkit-scrollbar-thumb { background:#a48bc8; border-radius:8px; }
[data-mini-gallery].is-expanded:focus-visible { outline:2px solid #8b62cd; outline-offset:3px; border-radius:10px; }
.tv-mini-gallery-load-status { margin:9px 0 0; color:#796888; font-size:11px; }

@media(max-width:480px) { :is(.tv-mini-tools,.tv-mini-gallery-panel) [data-mini-gallery].is-expanded { grid-auto-rows:176px; } }
