/* Loaf V129 — ThumbLab interaction fixes. The original V127 dotted background
   is deliberately left untouched (no homepage or catalog dot overrides). */
:root { --loaf-thumb-blue:#1c80ff; --loaf-thumb-cyan:#52cbff; }

/* Fix: remove the ancient global span padding/background overrides on the Play disc. */
.thumblab-v60 .thumblab-getstarted-v60 {
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  grid-template-columns:26px minmax(0,1fr) 76px!important;gap:8px!important;
  min-height:48px!important;padding:5px 7px!important;align-items:center!important;
}
.thumblab-v60 .thumblab-getstarted-v60 > .thumblab-start-icon-v61 {
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:999px!important;
  background:#fff!important;color:#17320c!important;
  box-shadow:0 1px 5px rgba(0,0,0,.18)!important;
  transform:none!important;position:relative!important;
}
.thumblab-v60 .thumblab-start-icon-v61 svg {
  display:block!important;position:static!important;
  width:12px!important;height:12px!important;
  stroke:#15270c!important;fill:#15270c!important;
  stroke-width:2!important;transform:translateX(1px)!important;
  margin:0!important;padding:0!important;
}
.thumblab-v60 .thumblab-getstarted-v60 > .thumblab-start-pill-v61 {
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:76px!important;height:30px!important;min-width:0!important;margin:0!important;
  padding:0 7px!important;line-height:1!important;font-size:9.5px!important;
  background:#fff!important;color:#111!important;border-radius:999px!important;
}
.thumblab-v60 .thumblab-getstarted-v60 > b{display:block!important;min-width:0!important;font-size:10px!important;line-height:1.15!important;margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* ThumbLab inherits the catalog dots, rather than painting solid opaque slabs. */
.thumblab-v60 main>.page-shell {background:transparent!important}
.thumblab-v60 main>.thumblab-hero-v60 {background:transparent!important}
.thumblab-v60 main>.thumblab-side-v60 {background:rgba(7,8,12,.95)!important;backdrop-filter:blur(14px)}
.thumblab-v60 .thumblab-stage-v60 {
  background:linear-gradient(rgba(255,255,255,.038) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.038) 1px,transparent 1px),radial-gradient(ellipse at 50% 0%,rgba(58,117,201,.16),transparent 62%),#08090d!important;
  background-size:48px 48px,48px 48px,auto,auto!important;
}
.thumblab-v60 .thumblab-stage-v60::before{content:"BUILT FOR CREATORS";position:absolute;z-index:5;left:50%;top:9px;transform:translateX(-50%);color:#e8eaff;font-size:10px;font-weight:850;letter-spacing:.015em;padding:5px 11px;border-radius:8px;background:linear-gradient(110deg,#3247bf,#8b63ff,#4231b6);box-shadow:0 7px 20px rgba(77,65,226,.23);white-space:nowrap;pointer-events:none}
.thumblab-v60 .thumblab-start-creating-v62 {top:42px!important}
.thumblab-v60 .thumblab-floatcards-v60 {top:88px!important}
.thumblab-v60 .thumblab-hero-search-v60 {background:rgba(18,20,27,.97)!important;box-shadow:0 22px 50px rgba(0,0,0,.46)!important}
.thumblab-v60 .thumblab-heading-v60 h1{font-size:clamp(24px,2.1vw,31px)!important;color:#f8f8ff!important}
.thumblab-v60 .thumblab-heading-v60 p{color:#a4a6b4!important}
.thumblab-v60 .template-grid-v6 {gap:24px 19px!important}

/* Image-real template previews: image is local and bundled, nothing loads externally. */
.thumblab-v60 .template-card-v6 {
  position:relative!important;display:block;min-width:0!important;overflow:visible!important;
  transition:transform .3s cubic-bezier(.15,.85,.2,1)!important;
}
.thumblab-v60 .template-card-v6:hover{transform:translateY(-4px)!important}
.thumblab-v60 .template-card-v6 .template-preview {
  position:relative!important;isolation:isolate!important;padding:0!important;
  border:1px solid rgba(110,145,200,.20)!important;border-radius:18px!important;
  overflow:hidden!important;background:#090e19!important;
  box-shadow:0 13px 32px rgba(0,0,0,.36)!important;
  transition:border-color .24s ease,box-shadow .28s ease,filter .28s ease!important;
}
.thumblab-v60 .template-card-v6:hover .template-preview,
.thumblab-v60 .template-card-v6:focus-visible .template-preview,
.thumblab-v60 .template-card-v6:focus-within .template-preview {
  border-color:#237ad9!important;
  box-shadow:0 0 0 7px rgba(0,89,186,.38),0 14px 42px rgba(9,70,154,.43)!important;
}
.thumblab-v60 .template-preview .template-art-v128 {position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.95) brightness(.81);transform:scale(1.005);transition:transform .65s cubic-bezier(.16,1,.3,1),filter .5s ease;pointer-events:none}
.thumblab-v60 .template-card:hover .template-art-v128{transform:scale(1.07);filter:saturate(1.06) brightness(.90)}
.thumblab-v60 .template-preview::before {content:""!important;inset:0!important;width:auto!important;height:auto!important;position:absolute!important;z-index:1!important;opacity:1!important;background:linear-gradient(180deg,rgba(4,7,17,.28) 0%,transparent 36%,rgba(4,5,14,.05) 52%,rgba(2,4,12,.83) 100%)!important;pointer-events:none!important}
.thumblab-v60 .template-preview .template-visual-v18 {display:none!important}
.thumblab-v60 .template-preview .template-preview-head{position:absolute;top:9px;left:10px;right:10px;z-index:3;pointer-events:none}
.thumblab-v60 .template-preview .thumb-pill{background:rgba(14,17,25,.73)!important;color:#eff4ff!important;border:1px solid rgba(255,255,255,.17)!important;border-radius:8px!important;backdrop-filter:blur(8px)!important;padding:4px 8px!important;font-size:9px!important}
.thumblab-v60 .template-preview .template-preview-body{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
  z-index:2!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;
  align-items:flex-start!important;width:100%!important;min-height:0!important;
  padding:13px 52px 15px 14px!important;pointer-events:none!important;
}
.thumblab-v60 .template-preview .thumb-title {
  width:100%!important;max-width:100%!important;white-space:pre-line!important;word-break:normal!important;
  overflow-wrap:break-word!important;text-shadow:0 2px 10px rgba(0,0,0,.8),0 6px 24px #000!important;
  font-size:clamp(20px,2vw,31px)!important;font-weight:950!important;line-height:.95!important;
  letter-spacing:-.05em!important;transition:transform .28s ease!important;
}
.thumblab-v60 .template-preview .thumb-sub{font-size:9px!important;line-height:1.3!important;max-width:100%!important;margin-top:8px!important;color:#dfebfd!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;background:rgba(8,13,24,.45)!important;padding:5px 7px!important}
.thumblab-v60 .template-preview .template-mini-ribbon-v60 {display:none!important}
.thumblab-v60 .template-preview .template-tier-v60{top:9px!important;right:10px!important;z-index:5!important}
.thumblab-v60 .template-card .template-overlay.template-overlay-relocated-v85{display:none!important}
.thumblab-v60 .template-card .template-meta{min-height:49px!important;padding:12px 5px 0!important;display:flex!important;align-items:flex-start!important}
.thumblab-v60 .template-card .template-meta b{font-size:13px!important;font-weight:800!important;color:#f8fbff!important}
.thumblab-v60 .template-card .template-meta small{color:#929ba9!important;font-size:11px!important}
.thumblab-v60 .template-card .template-meta:after{content:"Open in Studio ↗";font-size:10px;font-weight:650;color:#8a99af;margin-left:auto;white-space:nowrap;transition:color .2s}
.thumblab-v60 .template-card:hover .template-meta:after{color:#61b7ff}
/* Hover actions: same right-side vertical heart / plus / more affordance as reference. */
.thumblab-v60 .thumb-actions-v128 {position:absolute;right:11px;top:50%;z-index:9;display:grid;gap:9px;transform:translate(7px,-50%);opacity:0;pointer-events:none;transition:opacity .22s ease,transform .28s cubic-bezier(.16,1,.3,1)}
.thumblab-v60 .template-card:hover .thumb-actions-v128,
.thumblab-v60 .template-card:focus-within .thumb-actions-v128,
.thumblab-v60 .template-card.thumb-menu-open-v128 .thumb-actions-v128{opacity:1;transform:translate(0,-50%);pointer-events:auto}
.thumblab-v60 .thumb-act-v128{appearance:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(6,9,16,.79);box-shadow:0 8px 20px rgba(0,0,0,.38);color:#f5f8ff;cursor:pointer;backdrop-filter:blur(12px);transition:transform .18s ease,background .18s ease,border-color .18s ease;color:#fff}
.thumblab-v60 .thumb-act-v128 svg{width:18px;height:18px;display:block;stroke-width:2.4}
.thumblab-v60 .thumb-act-v128:hover{background:#171e2c;transform:scale(1.1);border-color:rgba(255,255,255,.65)}
.thumblab-v60 .thumb-act-v128:active{transform:scale(.92)}
.thumblab-v60 .thumb-act-v128[aria-pressed="true"]{color:#ff3c91;border-color:rgba(255,60,145,.48)}
.thumblab-v60 .thumb-act-v128[aria-pressed="true"] svg {fill:#ff3c91}
.thumblab-v60 .thumb-act-v128.thumb-is-pinned-v128{color:#a4ff42;border-color:rgba(170,255,66,.44)}
.thumblab-v60 .thumb-act-v128:focus-visible{outline:2px solid #75bfff;outline-offset:2px}
.thumblab-v60 .thumb-more-v128 {position:absolute;z-index:16;top:38px;right:56px;width:184px;display:none;padding:6px;border:1px solid rgba(255,255,255,.15);border-radius:14px;background:rgba(23,25,32,.98);box-shadow:0 20px 50px rgba(0,0,0,.58);backdrop-filter:blur(18px)}
.thumblab-v60 .thumb-more-v128.open{display:grid;gap:2px;animation:thumbMenuInV128 .18s ease both}
.thumblab-v60 .thumb-more-v128 [role="menuitem"]{display:flex;width:100%;gap:9px;align-items:center;background:transparent;color:#dfe7f4;border:0;border-radius:8px;padding:10px;font-family:inherit;font-size:11px;font-weight:650;line-height:1.25;text-align:left;cursor:pointer}
.thumblab-v60 .thumb-more-v128 [role="menuitem"]:hover{background:rgba(116,163,255,.16);color:white}
.thumblab-v60 .thumb-more-v128 svg{width:15px;height:15px;flex:0 0 15px}
@keyframes thumbMenuInV128{from{opacity:0;transform:translateY(-6px) scale(.96)}to{opacity:1;transform:none}}
.thumblab-v60 .thumb-showcase-caption-v128{position:absolute;z-index:6;left:8px;right:8px;bottom:7px;border-radius:9px;background:linear-gradient(90deg,#065eaf,#0b3979);padding:8px 10px;color:#c6ecff;font-size:11px;font-weight:750;text-align:center;opacity:0;transform:translateY(9px);transition:opacity .22s ease,transform .22s ease;pointer-events:none}
.thumblab-v60 .template-card:hover .thumb-showcase-caption-v128{opacity:1;transform:translateY(0)}
.thumblab-v60 .template-card:hover .template-preview .template-preview-body{transform:translateY(-19px)!important;transition:transform .27s cubic-bezier(.16,1,.3,1)}
.thumblab-v60 .template-card.thumb-saved-v128 .template-meta b:before{content:"♥ ";color:#ff3c91}

/* Floating confirmation notifications. */
.thumb-toast-stack-v128{position:fixed;right:25px;bottom:26px;z-index:20022;display:flex;flex-direction:column;gap:10px;pointer-events:none;width:min(320px,calc(100vw - 30px))}
.thumb-toast-v128{display:grid;grid-template-columns:26px 1fr;align-items:center;gap:12px;padding:16px 17px;min-height:62px;border:1px solid rgba(255,255,255,.19);border-radius:18px;color:#f4f5fa;background:linear-gradient(145deg,#26272a,#16171b);box-shadow:0 18px 55px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.06);backdrop-filter:blur(20px);font-size:13px;font-weight:800;animation:thumbToastEnterV128 .35s cubic-bezier(.16,1,.3,1) both}
.thumb-toast-v128 svg{width:22px;height:22px;color:#ff3b96}
.thumb-toast-v128.removed svg{color:#c3c9d5}
.thumb-toast-v128.pinned svg{color:#9bee50}
.thumb-toast-v128.closing{animation:thumbToastExitV128 .25s ease forwards}
@keyframes thumbToastEnterV128{from{opacity:0;transform:translateX(35px) scale(.95)}to{opacity:1;transform:none}}
@keyframes thumbToastExitV128{to{opacity:0;transform:translateX(28px)}}
/* Mini pinned collections in sidebar. */
.thumblab-v60 .thumb-pins-v128{display:grid;gap:7px;width:100%}
.thumblab-v60 .thumb-pin-link-v128{display:flex;gap:8px;align-items:center;width:100%;padding:5px 7px;border:1px solid rgba(255,255,255,.06);border-radius:11px;background:#131720;color:#d5dfef;text-decoration:none;font-size:10px;text-align:left}
.thumblab-v60 .thumb-pin-link-v128:hover{border-color:rgba(91,162,255,.4)}
.thumblab-v60 .thumb-pin-link-v128 img{width:46px;height:30px;border-radius:6px;object-fit:cover}
.thumblab-v60 .thumb-empty-v128{padding:26px;grid-column:1/-1;border:1px dashed rgba(255,255,255,.16);border-radius:18px;text-align:center;color:#a6b0c1;background:rgba(11,15,22,.85)}
.thumblab-v60 .thumb-empty-v128 b{display:block;color:#fff;margin-bottom:4px}
/* Quick large preview remains local to the site. */
.thumb-lightbox-v128{position:fixed;inset:0;z-index:20030;display:grid;place-items:center;padding:24px;background:rgba(1,4,10,.85);backdrop-filter:blur(18px)}
.thumb-lightbox-inner-v128{position:relative;width:min(900px,100%);border:1px solid rgba(116,160,225,.32);border-radius:24px;background:#11141d;box-shadow:0 35px 90px #000;overflow:hidden}
.thumb-lightbox-inner-v128 > img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.thumb-lightbox-actions-v128{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;gap:15px}
.thumb-lightbox-actions-v128 b{font-size:18px}
.thumb-lightbox-actions-v128 a{border-radius:12px;padding:12px 20px;background:#a9fa51;color:#101700;font-size:12px;text-decoration:none;font-weight:850}
.thumb-lightbox-close-v128{position:absolute;z-index:2;right:15px;top:15px;width:35px;height:35px;border:1px solid rgba(255,255,255,.26);border-radius:50%;background:#13171ad9;color:white;cursor:pointer;font-size:22px}
@media(hover:none){.thumblab-v60 .thumb-actions-v128{opacity:1;transform:translateY(-50%);pointer-events:auto}.thumblab-v60 .thumb-showcase-caption-v128{display:none}}
@media(max-width:1150px){.thumblab-v60 .thumblab-getstarted-v60{grid-template-columns:25px minmax(0,1fr) 66px!important;gap:5px!important}.thumblab-v60 .thumblab-getstarted-v60>.thumblab-start-pill-v61{width:66px!important;font-size:8.5px!important}}
@media(max-width:820px){.thumblab-v60 .thumblab-floatcards-v60{top:76px!important}.thumblab-v60 .thumblab-start-creating-v62{top:40px!important}.thumblab-v60 .thumblab-stage-v60::before{font-size:8px!important}.thumblab-v60 .template-grid-v6{gap:18px!important}.thumblab-v60 .thumb-actions-v128{opacity:1;transform:translateY(-50%);pointer-events:auto}.thumblab-v60 .template-card .template-meta:after{font-size:9px}}
@media(prefers-reduced-motion:reduce){.thumb-toast-v128,.thumb-toast-v128.closing,.thumb-more-v128{animation:none!important}.thumblab-v60 .template-art-v128{transition:none!important}}


/* V129: Thumbnail artwork is the preview. Existing overlaid title + category
   used to paint a second headline on top of images with their own lettering. */
.thumblab-v60 .template-card .template-preview-head,
.thumblab-v60 .template-card .template-preview-body,
.thumblab-v60 .template-card .template-overlay,
.thumblab-v60 .template-card .template-tier-v60,
.thumblab-v60 .template-card .template-visual-v18,
.thumblab-v60 .template-card .template-mini-ribbon-v60 {display:none!important}
.thumblab-v60 .template-card.thumb-interactive-v128 .thumb-main-link-v129 {
  display:block!important;width:100%;color:inherit!important;text-decoration:none!important;
  border:0!important;outline-offset:5px;
}
.thumblab-v60 .template-card.thumb-interactive-v128 .thumb-main-link-v129:focus-visible .template-preview{
  border-color:#419dff!important;
  box-shadow:0 0 0 6px rgba(25,116,234,.33),0 18px 38px rgba(0,0,0,.3)!important;
}
.thumblab-v60 .template-card.thumb-interactive-v128 .template-preview {
  min-height:0!important;aspect-ratio:16 / 9!important;
  width:100%!important;display:block!important;
  overflow:hidden!important;isolation:isolate!important;
}
.thumblab-v60 .template-card .template-preview::before {
  background:linear-gradient(180deg,rgba(6,12,25,.04) 0%,transparent 55%,rgba(1,6,15,.12) 100%)!important;
}
.thumblab-v60 .template-card .template-preview .template-art-v128 {
  object-fit:cover!important;filter:saturate(1) brightness(1)!important;
}
.thumblab-v60 .template-card:hover .template-preview .template-art-v128 {
  transform:scale(1.035)!important;filter:saturate(1.065) brightness(1.03)!important;
}
.thumblab-v60 .template-card.thumb-interactive-v128 .template-meta {
  box-sizing:border-box;min-height:55px!important;max-width:100%;overflow:hidden;
  padding:12px 3px 4px!important;transition:opacity .15s ease;
}
.thumblab-v60 .template-card.thumb-interactive-v128:hover .template-meta,
.thumblab-v60 .template-card.thumb-interactive-v128:focus-within .template-meta {opacity:0!important}
/* No action lives within an anchor: controls are siblings of the Studio link. */
.thumblab-v60 .template-card.thumb-interactive-v128 {position:relative!important;isolation:isolate!important}
.thumblab-v60 .template-card .thumb-actions-v128 {
  top:calc((100% - 55px) / 2)!important;right:11px!important;
  z-index:30!important;
}
.thumblab-v60 .template-card .thumb-act-v128 {
  width:35px;height:35px;min-width:35px;flex:0 0 35px;
  touch-action:manipulation;
}
.thumblab-v60 .template-card .thumb-act-v128 svg {pointer-events:none}
.thumblab-v60 .template-card .thumb-more-v128 {
  top:calc((100% - 55px) / 2)!important;right:56px!important;z-index:40!important;
  transform:translateY(-35%)!important;
}
.thumblab-v60 .template-card .thumb-showcase-caption-v128 {
  z-index:15!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;
  padding:10px 5px!important;border-radius:9px!important;
  color:#bde5ff!important;background:transparent!important;
  font-size:12px!important;font-weight:750!important;text-align:center!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.thumblab-v60 .template-card.thumb-menu-open-v128 .thumb-showcase-caption-v128 {opacity:0!important}
.thumblab-v60 .template-card.thumb-saved-v128 .template-meta b:before{content:none!important}
/* V129: Play triangle is drawn and centered independently of inherited span/svg rules. */
.thumblab-v60 .thumblab-getstarted-v60 > .thumblab-start-icon-v61 {
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;
  padding:0!important;flex:none!important;line-height:0!important;
}
.thumblab-v60 .thumblab-getstarted-v60 > .thumblab-start-icon-v61 svg {display:none!important}
.thumblab-v60 .thumblab-getstarted-v60 > .thumblab-start-icon-v61::after {
  content:"";display:block;width:10px;height:11px;flex:none;
  background:#142310;clip-path:polygon(13% 6%,94% 50%,13% 94%);
  transform:translateX(1px);border-radius:1px;
}
@media(hover:none){
  .thumblab-v60 .template-card.thumb-interactive-v128 .template-meta {opacity:1!important}
  .thumblab-v60 .template-card .thumb-showcase-caption-v128{display:none!important}
}
@media(max-width:500px){
 .thumblab-v60 .template-card .thumb-actions-v128{right:9px!important;gap:7px}
 .thumblab-v60 .template-card .thumb-act-v128{width:32px;height:32px;min-width:32px}
 .thumblab-v60 .template-card .thumb-more-v128{right:47px!important;max-width:calc(100% - 62px)!important}
}
/* Keep glossy legacy flashes from covering real thumbnail images. */
.thumblab-v60 .template-card.thumb-interactive-v128 .template-preview::after{display:none!important}

/* V130 guard: dynamically replaced cards must not inherit invisible reveal state.
   Keep the grid visible even if a stale cached script adds .reveal to them. */
.thumblab-v60 .template-grid-v6 > .template-card.thumb-interactive-v128 {
  opacity:1!important;visibility:visible!important;
}
.thumblab-v60 .template-grid-v6 > .template-card.thumb-interactive-v128.reveal {
  opacity:1!important;transform:none!important;
}
