/* Public template catalog. Scoped; no dashboard/editor styles affected. */
#tl-template-picker[hidden],#tl-gallery [hidden] {display:none!important}
#tl-template-picker{max-width:1080px;margin:26px auto 30px;padding:24px;border-radius:20px;border:1px solid #455a74;background:#152033;text-align:left;color:#f8fafc;box-shadow:0 10px 30px #0003}
#tl-template-picker *{box-sizing:border-box}
#tl-template-picker h2{font-size:clamp(22px,3vw,29px);line-height:1.25;color:#fff;margin:0 0 8px;font-weight:800}
#tl-template-picker .tl-intro{font-size:17px;line-height:1.45;color:#d8e5f6;margin:0 0 17px}
#tl-template-picker .tl-question{display:block;color:#fff;font-size:17px;font-weight:800;margin-bottom:10px}
#tl-template-picker .tl-categories{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 17px}
#tl-template-picker .tl-chip{min-height:44px;padding:9px 13px;background:#2b3b54;color:#fff;border:1px solid #788da9;border-radius:11px;font-size:15px;font-weight:700;line-height:1.25;cursor:pointer}
#tl-template-picker .tl-chip[aria-pressed=true]{background:#1753b8;border-color:#b4d6ff;color:#fff}
#tl-template-picker .tl-chip:hover{background:#405b7d}
#tl-template-picker .tl-chip[aria-pressed=true]:hover{background:#16468e}
#tl-template-picker .tl-search-row{display:flex;gap:11px;flex-wrap:wrap;align-items:end}
#tl-template-picker .tl-search-box{flex:1 1 290px;min-width:0}
#tl-template-picker label{display:block;color:#edf5ff;font-size:15px;font-weight:750;margin-bottom:7px}
#tl-template-picker input{display:block;width:100%;height:48px;border:2px solid #9bb5d2;border-radius:11px;padding:10px 14px;font-size:16px;line-height:1.3;background:#fff;color:#142238}
#tl-template-picker input::placeholder{color:#52657c;opacity:1}
#tl-template-picker .tl-reset{height:48px;padding:10px 16px;background:transparent;border:1px solid #9fb5cc;color:#fff;border-radius:11px;font-size:15px;font-weight:700;cursor:pointer}
#tl-template-picker button:focus-visible,#tl-template-picker input:focus-visible{outline:3px solid #9dd1ff;outline-offset:3px}
#tl-template-picker .tl-result{margin:15px 0 0;color:#e6f1ff;font-size:16px;font-weight:700}
#tl-template-picker .tl-note{margin:7px 0 0;color:#c4d9f2;font-size:14px;line-height:1.4}
#tl-gallery.tl-filter-active{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
#tl-gallery.tl-filter-active > .row.s012456{display:contents!important}
#tl-gallery.tl-filter-active > .row.s012456 > .col-12.col-md-4{width:100%!important;max-width:100%!important;flex:none!important;min-width:0;padding:0 5px}
#tl-gallery.tl-filter-active > br{display:none!important}
#tl-gallery.tl-filter-active > center{grid-column:1/-1}
@media(max-width:991px){#tl-gallery.tl-filter-active{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}}
@media(max-width:600px){#tl-template-picker{padding:17px;margin:18px auto 22px;border-radius:15px}#tl-template-picker .tl-intro{font-size:16px}#tl-template-picker .tl-chip{flex:1 1 calc(50% - 9px)}#tl-template-picker .tl-reset{width:100%}#tl-gallery.tl-filter-active{grid-template-columns:minmax(0,1fr)}}

/* P1-5: previews must be usable without a mouse. No registration/editor logic. */
#tl-gallery .templates__itemActions a:focus-visible{
  outline:3px solid #fff;
  outline-offset:2px;
}
@media (max-width:767px), (hover:none) and (pointer:coarse){
  #tl-gallery .templates__itemActions[data-v-07a9658b]{
    opacity:1!important;
    visibility:visible!important;
    top:auto;
    bottom:0;
    height:auto;
    min-height:116px;
    padding:12px 14px 14px;
    gap:8px;
    background:linear-gradient(180deg,rgba(9,18,34,.8),rgba(9,18,34,.95));
    border-radius:0 0 20px 20px;
    justify-content:flex-end;
  }
  #tl-gallery .templates__itemActions a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:46px;
    white-space:normal;
    font-size:15px;
    line-height:1.2;
    text-align:center;
  }
  #tl-gallery .templates__infoIcon[data-v-07a9658b]{display:none;}
}

/* Keyboard-only desktop navigation: keep invisible actions focusable, reveal on focus. */
  #tl-gallery .templates__itemActions[data-v-07a9658b] {
    visibility: visible;
  }
  #tl-gallery .templates__item:focus-within .templates__itemActions[data-v-07a9658b] {
    opacity: 1;
  }

/* Public catalog: one-tap shareable filtered links. No global/editor styles. */
#tl-template-picker .tl-share-btn{
  min-height:48px;padding:10px 16px;border:1px solid #b9dcff;border-radius:11px;
  background:#1b63d6;color:#fff;font-size:16px;line-height:1.3;
  font-weight:750;cursor:pointer;
}
#tl-template-picker .tl-share-btn:hover{background:#1454bc}
#tl-template-picker .tl-share-btn:disabled{opacity:.65;cursor:wait}
#tl-template-picker .tl-share-status:not(:empty){
  margin:10px 0 0;color:#e7f2ff;font-size:15px;line-height:1.45;
}
#tl-template-picker .tl-share-manual[hidden]{display:none!important}
#tl-template-picker .tl-share-manual:not([hidden]){margin-top:8px}
@media(max-width:600px){#tl-template-picker .tl-share-btn{width:100%}}
