/* Exact template components: AI-twin entry and gallery series. */
.home-ai-entry {
  position: fixed;
  z-index: 90;
  top: calc(68px + env(safe-area-inset-top));
  left: calc(50% + min(50vw, 215px) - 56px);
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  background: rgba(10,14,35,.72);
  color: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}
.home-ai-entry > svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home-ai-entry__spark { fill: #c5bdff; stroke: #c5bdff; stroke-width: 1; }
.home-ai-entry:active { transform: scale(.96); }
.home-ai-entry:focus-visible { outline: 2px solid #91eaff; outline-offset: 4px; }

#gallerySpace .gallery-series-tabs { margin: 8px 0; padding-top: 2px; padding-bottom: 2px; scrollbar-width: none; }
#gallerySpace .gallery-series-tabs::-webkit-scrollbar { display: none; }
.gallery-series-tabs { display: flex; gap: 9px; overflow-x: auto; margin: 18px 0; padding: 3px 1px 8px; scrollbar-width: thin; scrollbar-color: #6155a2 transparent; }
.gallery-series-tabs button { flex: 0 0 auto; min-width: 72px; max-width: 260px; min-height: 42px; padding: 9px 16px; border: 1px solid rgba(172,158,240,.28); border-radius: 12px; background: rgba(31,31,63,.7); color: #c4c0d8; font: inherit; font-size: 15px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-series-tabs button.active { color: #fff; border-color: #9e84ff; background: linear-gradient(120deg,rgba(111,60,236,.7),rgba(48,92,189,.65)); box-shadow: inset 0 0 16px rgba(153,112,255,.15); }
.gallery-series-tabs button:focus-visible { outline: 2px solid #a991ff; outline-offset: 1px; }
.gallery-series-manager { padding: 18px 14px; margin: 16px 0 20px; }
.gallery-series-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.gallery-series-heading h2 { font-size: 21px; margin: 0; }
.gallery-series-heading p, .gallery-series-help { margin: 8px 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.gallery-series-toggle { display: flex; gap: 6px; align-items: center; flex-shrink: 0; font-size: 13px; }
.gallery-series-toggle input { width: 19px; height: 19px; accent-color: #855aff; }
.gallery-series-row { margin: 12px 0; padding: 12px; border: 1px solid rgba(173,160,230,.18); border-radius: 14px; background: rgba(8,10,29,.32); }
.gallery-series-row input, .gallery-series-add input, .gallery-series-assignment select, #galleryUploadSeries { width: 100%; min-width: 0; min-height: 42px; border: 1px solid rgba(168,151,232,.27); border-radius: 10px; padding: 9px 10px; color: #f2efff; background: #11142b; font: inherit; font-size: 16px; }
.gallery-series-row-actions { display: flex; gap: 7px; margin-top: 8px; }
.gallery-series-manager button { min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(172,149,255,.3); background: rgba(96,64,190,.25); color: #eee8ff; font: inherit; font-size: 13px; }
.gallery-series-manager button:disabled { opacity: .4; }
.gallery-series-add { display: flex; gap: 8px; margin-top: 14px; }
.gallery-series-add input { flex: 1; }
.gallery-series-add button { flex: 0 0 auto; }
.gallery-series-status { margin: 6px 0 0; min-height: 19px; font-size: 13px; color: #b5b3f5; }
.gallery-series-assignment { display: grid; gap: 6px; margin: 12px 0; color: #b9b5d0; font-size: 12px; }
.gallery-series-assignment select { font-size: 14px; }
.gallery-admin-card__body { min-width: 0; }
@media (max-width: 380px) {
  .gallery-series-heading { align-items: flex-start; flex-direction: column; }
  .gallery-series-row { padding: 10px; }
  .gallery-series-row-actions { gap: 5px; }
}
