/* 7FCLAB Gallery / Build Library local preview v0.2 */
:root{
  --gl-bg:#0b0f14;
  --gl-panel:rgba(15,20,27,.74);
  --gl-panel-2:rgba(19,25,33,.88);
  --gl-line:rgba(255,255,255,.075);
  --gl-line-strong:rgba(201,172,104,.28);
  --gl-text:#e8ecf0;
  --gl-muted:#8f98a2;
  --gl-gold:#c7aa6c;
  --gl-gold-2:#e0c88e;
  --gl-danger:#d58b83;
  --gl-green:#8ebda8;
}

body.gallery-v01-open{overflow:hidden}

/* ---------- Build Library ---------- */
body.build-overview-active #playerCardPanel>.build-overview-head,
body.build-overview-active #playerCardPanel>.build-workspace-toolbar,
body.build-overview-active #playerCardPanel>.build-overview-grid,
body.build-overview-active #playerCardPanel>#myBuildShowcaseV2,
body.build-overview-active #playerCardPanel>#mb24Workspace,
body.build-overview-active #playerCardPanel>#mb24Library{display:none!important}

.gl-buildlib-root{display:none;min-height:570px;padding:4px 0 12px}
body.build-overview-active .gl-buildlib-root{display:block}
.gl-hub-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:4px 2px 14px;border-bottom:1px solid var(--gl-line)}
.gl-hub-title small,.gl-gallery-title small{display:block;color:#6f7881;font-size:9px;font-weight:800;letter-spacing:.2em;margin-bottom:3px}
.gl-hub-title h2,.gl-gallery-title h2{margin:0;color:#eef1f3;font-size:20px;font-weight:760;letter-spacing:.01em}
.gl-hub-actions{display:flex;align-items:center;gap:8px}
.gl-primary,.gl-ghost,.gl-text-btn,.gl-row-action,.gl-icon-btn,.gl-sort-btn,.gl-page-btn{border:0;cursor:pointer;font-family:inherit}
.gl-primary{height:34px;padding:0 13px;border-radius:8px;background:linear-gradient(135deg,#d3b774,#ad8e50);color:#141414;font-size:11px;font-weight:820;box-shadow:0 8px 22px rgba(177,143,77,.15)}
.gl-primary:hover{filter:brightness(1.06)}
.gl-ghost{height:34px;padding:0 12px;border:1px solid var(--gl-line);border-radius:8px;background:rgba(255,255,255,.025);color:#c9d0d6;font-size:11px;font-weight:720}
.gl-ghost:hover{border-color:rgba(201,172,104,.28);color:#e7d6ad}

.gl-scopebar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 2px 12px}
.gl-scope-tabs{display:flex;gap:22px;align-items:center}
.gl-scope-tab{position:relative;border:0;background:none;color:#7f8993;padding:6px 0 8px;font-size:12px;font-weight:760;cursor:pointer}
.gl-scope-tab strong{font-weight:820}
.gl-scope-tab.active{color:#eef1f3}
.gl-scope-tab.active:after{content:"";position:absolute;height:1px;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent,#c9ad68 16%,#c9ad68 84%,transparent)}
.gl-scope-note{font-size:10px;color:#68727d}

.gl-panel{border:1px solid var(--gl-line);border-radius:14px;background:linear-gradient(180deg,rgba(18,24,31,.76),rgba(11,15,20,.72));overflow:hidden}
.gl-my-toolbar,.gl-community-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid var(--gl-line);background:rgba(255,255,255,.012)}
.gl-mini-note{color:#717b85;font-size:9.5px}
.gl-search-wrap{flex:1;max-width:390px;position:relative}
.gl-search{width:100%;height:32px;padding:0 11px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:rgba(5,8,12,.38);color:#e4e8eb;font:600 10.5px/1 inherit;outline:none}
.gl-search:focus{border-color:rgba(199,170,108,.36);box-shadow:0 0 0 2px rgba(199,170,108,.06)}
.gl-filter-select{height:31px;border:1px solid rgba(255,255,255,.075);border-radius:7px;background:#11171e;color:#aeb6be;font-size:10px;padding:0 8px;outline:none}
.gl-sort-group{display:flex;align-items:center;gap:3px;border-left:1px solid var(--gl-line);padding-left:10px}
.gl-sort-btn{background:none;color:#737d87;padding:4px 6px;font-size:9.5px;border-radius:5px}
.gl-sort-btn.active{color:#d7c18e;background:rgba(199,170,108,.07)}

.gl-list{min-height:380px}
.gl-build-row,.gl-community-row{position:relative;display:grid;align-items:center;border-bottom:1px solid rgba(255,255,255,.045);transition:background .16s ease}
.gl-build-row:last-child,.gl-community-row:last-child{border-bottom:0}
.gl-build-row:hover,.gl-community-row:hover{background:rgba(255,255,255,.018)}
.gl-build-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:11px 13px}
.gl-build-main{min-width:0;cursor:default}
.gl-build-titleline{display:flex;align-items:center;gap:8px;min-width:0}
.gl-build-title{font-size:12px;color:#e4e8ec;font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-status-dot{width:5px;height:5px;border-radius:50%;background:#59636d;flex:none}
.gl-status-dot.published{background:#bfa466;box-shadow:0 0 8px rgba(191,164,102,.42)}
.gl-build-meta{display:flex;gap:7px;align-items:center;margin-top:4px;color:#7f8992;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-build-meta i{width:2px;height:2px;border-radius:50%;background:#505963}
.gl-scope-chips{display:inline-flex;gap:5px;margin-left:2px}
.gl-scope-chip{color:#6e7882;font-size:8.5px}.gl-scope-chip.on{color:#aeb5bc}
.gl-row-actions{display:flex;align-items:center;gap:5px}
.gl-row-action{height:27px;padding:0 8px;border:1px solid rgba(255,255,255,.065);border-radius:6px;background:rgba(255,255,255,.018);color:#9da6ae;font-size:9.5px;font-weight:720}
.gl-row-action:hover{color:#e2d0a4;border-color:rgba(199,170,108,.25)}
.gl-row-action.publish{color:#ccb47d}.gl-row-action.published{color:#89aa9b}.gl-row-action.restore{color:#c9ad68}
.gl-row-action.more{width:28px;padding:0;font-size:13px;letter-spacing:.08em}

.gl-community-row{grid-template-columns:minmax(0,1fr) auto;padding:10px 13px;cursor:pointer}
.gl-community-copy{min-width:0}
.gl-community-line1{display:flex;align-items:baseline;gap:7px;min-width:0}
.gl-flame{font-size:10px;color:#c49c61;flex:none}
.gl-community-title{font-size:11.5px;color:#e3e7ea;font-weight:770;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-author{font-size:9px;color:#717b84;white-space:nowrap}
.gl-community-line2{margin-top:3px;color:#7f8992;font-size:9.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-community-line2 b{color:#aab2b9;font-weight:680}
.gl-community-actions{display:flex;align-items:center;gap:4px;padding-left:12px}
.gl-metric,.gl-community-action{border:0;background:none;color:#68727d;font-size:9px;padding:4px 5px;white-space:nowrap}
.gl-community-action{cursor:pointer;border-radius:5px}.gl-community-action:hover{background:rgba(255,255,255,.035);color:#d9c28d}.gl-community-action.active{color:#d6b66c}
.gl-empty{display:grid;place-items:center;min-height:330px;text-align:center;color:#6d7781}
.gl-empty strong{display:block;color:#aab2b9;font-size:12px;margin-bottom:5px}.gl-empty span{font-size:10px}

/* ---------- Gallery page ---------- */
.gl-gallery-panel{display:none;min-height:600px;padding:3px 0 18px}
.gl-gallery-panel.active{display:block}
.gl-gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:4px 2px 12px;border-bottom:1px solid var(--gl-line)}
.gl-gallery-caption{color:#69737d;font-size:10px;text-align:right}
.gl-gallery-tabs{display:flex;align-items:center;gap:24px;padding:14px 2px 16px}
.gl-gallery-tab{position:relative;border:0;background:none;color:#79838d;padding:5px 0 8px;font-size:11.5px;font-weight:770;cursor:pointer}
.gl-gallery-tab b{font-weight:850;margin-left:4px;color:#65707a}.gl-gallery-tab.active{color:#eef1f3}.gl-gallery-tab.active b{color:#c6aa69}
.gl-gallery-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#c8aa68}
.gl-rack{position:relative;border-top:1px solid rgba(255,255,255,.035);padding:18px 0 12px}
.gl-rack:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% -12%,rgba(255,255,255,.035),transparent 50%);pointer-events:none}
.gl-grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 20px}
.gl-thumb-wrap{position:relative;perspective:900px}
.gl-thumb{position:relative;width:100%;aspect-ratio:3/2;border:0;padding:0;background:transparent;cursor:pointer;transform-style:preserve-3d;transition:transform .28s cubic-bezier(.2,.75,.2,1),filter .28s ease;filter:drop-shadow(0 10px 18px rgba(0,0,0,.19))}
.gl-thumb:hover{transform:translateY(-5px) rotateX(1.5deg) rotateY(-1.6deg);filter:drop-shadow(0 17px 27px rgba(0,0,0,.28))}
.gl-thumb-card{position:absolute;inset:0;overflow:hidden;border-radius:4px;background:#eee8db}
.gl-thumb-card:after{content:"";position:absolute;inset:-28% -35%;background:linear-gradient(112deg,transparent 35%,rgba(255,255,255,.10) 42%,rgba(255,245,207,.42) 49%,rgba(194,232,255,.18) 52%,transparent 60%);transform:translateX(-55%) rotate(2deg);opacity:0;transition:transform .55s cubic-bezier(.2,.72,.2,1),opacity .2s ease;pointer-events:none}
.gl-thumb:hover .gl-thumb-card:after{transform:translateX(55%) rotate(2deg);opacity:.72}
.gl-thumb-base{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.gl-thumb-identity{position:absolute;right:5.4%;top:18%;width:41%;display:grid;grid-template-columns:34px 1px 1fr;gap:8px;align-items:center;color:#5d4a2f;text-align:left}
.gl-thumb-identity img{width:31px;height:31px;object-fit:contain;filter:sepia(.45) saturate(.75) brightness(.76)}
.gl-thumb-identity-line{height:31px;background:rgba(112,86,50,.36)}
.gl-thumb-identity strong{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(13px,1.26vw,22px);font-weight:600;line-height:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-thumb-identity span{display:block;margin-top:2px;font-size:clamp(6.8px,.56vw,9px);letter-spacing:.17em;color:#7a7167}
.gl-thumb-work{position:absolute;right:6%;top:48%;width:45%;text-align:center;color:#443626}
.gl-thumb-work strong{display:block;font-family:"Noto Serif SC","Songti SC",serif;font-size:clamp(11px,1vw,17px);font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-thumb-work span{display:block;margin-top:4px;font-family:"Allura","Segoe Script",cursive;font-size:clamp(9px,.85vw,15px);color:#6e5940;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-thumb-watermark{position:absolute;left:3.3%;bottom:4.4%;width:13%;opacity:.72}
.gl-thumb-hover{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:flex-end;padding:9px;pointer-events:none;opacity:0;transition:opacity .18s ease}
.gl-thumb:hover .gl-thumb-hover{opacity:1}
.gl-thumb-hover span{padding:4px 7px;border-radius:999px;background:rgba(12,15,18,.76);backdrop-filter:blur(8px);color:#dfd0ac;font-size:8.5px;letter-spacing:.04em}
.gl-shelf{height:1px;margin-top:13px;background:linear-gradient(90deg,transparent,rgba(208,177,108,.12) 8%,rgba(255,255,255,.09) 50%,rgba(208,177,108,.12) 92%,transparent)}
.gl-gallery-empty{grid-column:1/-1;min-height:380px;display:grid;place-items:center;text-align:center;color:#6f7983;border:1px dashed rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.01)}
.gl-gallery-empty strong{display:block;color:#b1b8be;font-size:13px;margin-bottom:6px}.gl-gallery-empty span{font-size:10px;line-height:1.7}
.gl-pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:18px 0 2px;color:#7c8690;font-size:10px}
.gl-page-btn{width:28px;height:27px;border:1px solid rgba(255,255,255,.065);border-radius:6px;background:rgba(255,255,255,.018);color:#aab2b9}.gl-page-btn:disabled{opacity:.3;cursor:default}

/* ---------- Modal / preview ---------- */
.gl-overlay{position:fixed;z-index:99990;inset:0;display:grid;place-items:center;padding:24px;background:rgba(3,5,8,.78);backdrop-filter:blur(13px);animation:glFade .18s ease}
.gl-overlay[hidden]{display:none!important}
@keyframes glFade{from{opacity:0}to{opacity:1}}
.gl-modal{width:min(480px,92vw);border:1px solid rgba(255,255,255,.09);border-radius:15px;background:linear-gradient(180deg,#171d24,#0e1319);box-shadow:0 28px 90px rgba(0,0,0,.48);overflow:hidden}
.gl-modal-head{display:flex;justify-content:space-between;gap:18px;padding:15px 16px 12px;border-bottom:1px solid var(--gl-line)}
.gl-modal-head small{display:block;color:#6f7882;font-size:8px;letter-spacing:.18em}.gl-modal-head h3{margin:3px 0 0;font-size:15px;color:#edf0f2}
.gl-x{width:30px;height:30px;border:0;background:none;color:#818b94;font-size:20px;cursor:pointer}.gl-x:hover{color:white}
.gl-modal-body{padding:16px}.gl-modal-copy{font-size:11px;color:#aab2b9;line-height:1.75}.gl-modal-copy strong{color:#e7eaed}
.gl-modal-lines{margin-top:12px;padding:11px 12px;border:1px solid rgba(255,255,255,.055);border-radius:9px;background:rgba(255,255,255,.017);color:#7e8892;font-size:10px;line-height:1.8}
.gl-input{width:100%;height:37px;border:1px solid rgba(255,255,255,.085);border-radius:8px;background:#0c1116;color:#e6eaed;padding:0 11px;outline:none}.gl-input:focus{border-color:rgba(199,170,108,.35)}
.gl-save-hint{margin-top:10px;color:#747f89;font-size:9.5px;line-height:1.7}
.gl-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px 15px;border-top:1px solid var(--gl-line)}
.gl-danger-btn{height:34px;padding:0 12px;border:1px solid rgba(209,120,112,.22);border-radius:8px;background:rgba(190,93,84,.06);color:#d89a92;font-size:10px;cursor:pointer}

.gl-preview{width:min(1500px,96vw);max-height:95vh;display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.085);border-radius:16px;background:linear-gradient(180deg,#11171e,#090d12);box-shadow:0 35px 110px rgba(0,0,0,.6);overflow:hidden}
.gl-preview-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 13px;border-bottom:1px solid var(--gl-line)}
.gl-preview-top-left{display:flex;align-items:center;gap:10px}.gl-preview-top small{color:#68727c;font-size:8px;letter-spacing:.18em}.gl-preview-top strong{color:#dce1e5;font-size:11px}
.gl-preview-stage{min-height:0;flex:1;display:grid;place-items:center;padding:14px 18px;background:radial-gradient(ellipse at 50% 20%,rgba(255,255,255,.025),transparent 55%)}
.gl-card-scene{width:min(1160px,85vw);aspect-ratio:3/2;perspective:1500px}
.gl-card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .72s cubic-bezier(.2,.72,.16,1);cursor:pointer}
.gl-card.flipped{transform:rotateY(180deg)}
.gl-face{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;border-radius:5px;box-shadow:0 18px 55px rgba(0,0,0,.32)}
.gl-face.back{transform:rotateY(180deg)}
.gl-card-base{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.gl-card-light{position:absolute;inset:-25%;pointer-events:none;background:linear-gradient(116deg,transparent 35%,rgba(255,244,204,.17) 45%,rgba(190,229,255,.11) 51%,transparent 62%);mix-blend-mode:screen;opacity:.62;transform:translateX(-23%)}

/* Front */
.gl-portrait-zone{position:absolute;z-index:2;left:0;top:0;width:56%;height:100%;overflow:visible;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 74%,rgba(0,0,0,.94) 82%,rgba(0,0,0,.45) 91%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 0%,#000 74%,rgba(0,0,0,.94) 82%,rgba(0,0,0,.45) 91%,transparent 100%)}
.gl-portrait{position:absolute;height:100%;width:auto;max-width:none;transform-origin:50% 100%;filter:grayscale(.78) sepia(.12) saturate(.72) contrast(1.02) brightness(1.08);opacity:.96;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 77%,rgba(0,0,0,.92) 84%,rgba(0,0,0,.44) 93%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0%,#000 77%,rgba(0,0,0,.92) 84%,rgba(0,0,0,.44) 93%,transparent 100%)}
.gl-front-identity{position:absolute;z-index:5;right:5.5%;top:18.6%;width:38%;display:grid;grid-template-columns:11.2% 1px minmax(0,1fr);gap:2.2%;align-items:center;color:#5d492c}
.gl-front-identity-logo{width:100%;aspect-ratio:1;object-fit:contain;filter:sepia(.6) saturate(.95) brightness(.67)}
.gl-front-identity-sep{height:82%;background:rgba(103,77,43,.48)}
.gl-front-identity strong{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(30px,4.1vw,64px);font-weight:600;line-height:.85;white-space:nowrap;overflow:hidden;text-overflow:clip}
.gl-front-identity span{display:block;margin-top:6px;font-size:clamp(10px,1.15vw,18px);letter-spacing:.2em;color:#756c61}
.gl-front-title{position:absolute;z-index:5;right:5.7%;top:48.2%;width:43%;text-align:center;color:#453420}
.gl-front-title strong{display:block;font-family:"Noto Serif SC","Songti SC",serif;font-size:clamp(28px,4vw,61px);font-weight:620;line-height:1.08;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px rgba(255,255,255,.4)}
.gl-front-signature{margin-top:1.2%;font-family:"Allura","Segoe Script",cursive;font-size:clamp(23px,3.15vw,48px);line-height:1;color:#604927;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-front-signature:after{content:"";display:block;width:46%;height:1px;margin:2px auto 0;background:linear-gradient(90deg,transparent,rgba(93,66,33,.58),transparent)}
.gl-front-ps{position:absolute;z-index:5;right:6.6%;top:70.5%;width:39.5%;display:flex;align-items:center;justify-content:center;gap:2.4%}
.gl-ps-badge{position:relative;width:17.5%;aspect-ratio:1;flex:none}
.gl-ps-shell{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.gl-ps-glyph{position:absolute;left:28%;top:27%;width:44%;height:44%;background:#48443f;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.gl-front-watermark{position:absolute;z-index:5;left:3.6%;bottom:4.1%;width:12.7%;opacity:.76}

/* Back specification */
.gl-back{color:#493824;font-family:"Noto Serif SC","Songti SC",serif}
.gl-back .gl-card-base{z-index:0}
.gl-back-box{position:absolute;z-index:2;overflow:hidden}
.gl-back-head-left{left:4.2%;top:6.4%;width:42.8%;height:9.9%;display:flex;flex-direction:column;justify-content:center}
.gl-back-head-left strong{font-size:clamp(17px,2.35vw,35px);font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gl-back-head-left span{margin-top:3px;font-size:clamp(8px,.82vw,12px);color:#796957}
.gl-back-head-right{left:49.5%;top:6.3%;width:45.8%;height:10%;display:flex;align-items:center;gap:2.5%}.gl-back-head-right img{height:72%;aspect-ratio:1;object-fit:contain;filter:sepia(.55) saturate(.9) brightness(.65)}
.gl-back-head-right strong{display:block;font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(16px,2.15vw,33px);line-height:.9;font-weight:600}.gl-back-head-right span{display:block;margin-top:4px;font-size:clamp(7px,.76vw,11px);letter-spacing:.12em;color:#75695b}
.gl-back-body{left:4%;top:19.8%;width:23.3%;height:30%;padding:2.1% 2.1%}.gl-back-label{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(9px,1.15vw,17px);font-weight:650;letter-spacing:.04em;color:#5b4122;margin-bottom:7px}.gl-back-label em{font-family:"Noto Serif SC",serif;font-style:normal;font-size:.76em;color:#816f58}
.gl-body-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px}.gl-body-item span{display:block;font-size:clamp(6.5px,.68vw,10px);color:#8a7965}.gl-body-item b{display:block;margin-top:1px;font-size:clamp(8px,.9vw,13px);font-weight:650;color:#4b3a27}.gl-stars{letter-spacing:.06em}
.gl-back-attrs{left:29.5%;top:19.5%;width:65.6%;height:30.7%;padding:1.8% 2.0%}.gl-attr-cols{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;height:calc(100% - 28px)}.gl-attr-group{padding:0 7%;border-right:1px solid rgba(111,83,48,.16)}.gl-attr-group:last-child{border-right:0}.gl-attr-group h5{margin:0 0 4px;font-size:clamp(7px,.72vw,11px);font-weight:700;color:#6b4d29}.gl-attr-row{display:flex;justify-content:space-between;gap:4px;padding:1.5px 0;border-bottom:1px solid rgba(111,83,48,.08);font-size:clamp(6px,.60vw,9.4px)}.gl-attr-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gl-attr-row b{font-weight:680}
.gl-back-ps{left:4%;top:52.3%;width:23.2%;height:39.3%;padding:1.9% 1.9%}.gl-back-ps-section{margin-top:6px}.gl-back-ps-title{font-size:clamp(6.5px,.68vw,10px);color:#7f6c55;margin-bottom:3px}.gl-back-ps-grid{display:flex;flex-wrap:wrap;gap:4px}.gl-back-ps .gl-ps-badge{width:26%}
.gl-back-mastery{left:29.5%;top:52.3%;width:65.6%;height:24%;padding:1.8% 2.0%}.gl-mastery-line{display:grid;grid-template-columns:20% 1fr;gap:10px;margin-top:7px;align-items:start}.gl-mastery-line b{font-size:clamp(7px,.72vw,11px);color:#5c4325}.gl-tagbox{display:flex;flex-wrap:wrap;gap:4px}.gl-tag{display:inline-flex;align-items:center;min-height:19px;padding:1px 9px;border:1px solid rgba(164,126,66,.34);clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 50%,calc(100% - 7px) 100%,7px 100%,0 50%);background:rgba(255,255,255,.20);font-size:clamp(6px,.62vw,9px);white-space:nowrap}.gl-tag.silver{border-color:rgba(100,102,104,.34);color:#5f5e5c}
.gl-back-amp{left:29.5%;top:78.5%;width:35.5%;height:13.2%;padding:1.4% 1.8%}.gl-amp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.gl-amp-item{text-align:center;border-right:1px solid rgba(111,83,48,.14);font-size:clamp(5.8px,.57vw,8.6px);color:#7a6955}.gl-amp-item:last-child{border-right:0}.gl-amp-item b{display:block;margin-top:4px;color:#4f3b23;font-size:clamp(6.4px,.65vw,9.6px)}
.gl-back-fac{left:66.5%;top:78.5%;width:28.5%;height:13.2%;padding:1.4% 1.7%}.gl-fac-tags{display:flex;flex-wrap:wrap;gap:4px}.gl-fac-tags .gl-tag{font-size:clamp(5.5px,.55vw,8.5px);padding:1px 7px}
.gl-back-watermark{position:absolute;z-index:4;left:3.7%;bottom:3%;width:12%;opacity:.7}

.gl-preview-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 13px 12px;border-top:1px solid var(--gl-line)}
.gl-preview-metrics{display:flex;gap:12px;color:#747f89;font-size:9.5px}.gl-preview-actions{display:flex;gap:7px;align-items:center}.gl-preview-note{color:#66717b;font-size:9px}
.gl-reveal-title{color:#d8c38f!important}.gl-reveal .gl-card-scene{animation:glReveal .8s cubic-bezier(.12,.72,.18,1)}
@keyframes glReveal{0%{opacity:0;transform:scale(.94) rotateY(12deg);filter:blur(8px)}100%{opacity:1;transform:none;filter:none}}

.gl-toast{position:fixed;z-index:100010;left:50%;bottom:24px;transform:translate(-50%,12px);opacity:0;pointer-events:none;padding:8px 12px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:rgba(13,18,24,.92);backdrop-filter:blur(10px);color:#d9dee2;font-size:10px;transition:.18s ease}.gl-toast.show{opacity:1;transform:translate(-50%,0)}

@media(max-width:1180px){.gl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gl-community-actions{gap:1px}.gl-metric{display:none}.gl-card-scene{width:min(1080px,90vw)}}
@media(max-width:760px){.gl-hub-head,.gl-gallery-head{align-items:flex-start;flex-direction:column}.gl-grid{grid-template-columns:1fr}.gl-community-row{grid-template-columns:1fr}.gl-community-actions{padding:6px 0 0}.gl-preview{width:97vw}.gl-preview-stage{padding:8px}.gl-card-scene{width:94vw}.gl-front-identity strong{font-size:4.4vw}.gl-front-title strong{font-size:4.2vw}}

/* =========================================================
   7FCLAB Gallery / Build Library visual refinement v0.2
   Toolbar grammar + density + 4x3 rack + consolidated preview dock
   ========================================================= */

body.build-overview-active #workspaceDecorHeader,
body.gl-gallery-active #workspaceDecorHeader{display:none!important}

/* --- Build Library: reuse the site's workspace-toolbar grammar --- */
.gl-buildlib-root{
  width:min(1120px,100%);
  margin-left:auto;
  min-height:520px;
  padding:0 0 12px;
}
.gl-hub-head,.gl-scopebar{display:none!important}
.gl-hub-toolbar.workspace-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  min-height:46px!important;
  height:46px!important;
  margin:0 0 9px!important;
  padding:6px 9px!important;
}
.gl-hub-toolbar-left{display:flex;align-items:center;gap:9px;min-width:0}
.gl-toolbar-save{
  height:32px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;
  border:1px solid rgba(199,170,108,.30);border-radius:9px;
  background:linear-gradient(180deg,rgba(199,170,108,.15),rgba(199,170,108,.07));
  color:#dbc486;font:760 11.5px/1 inherit;cursor:pointer;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)
}
.gl-toolbar-save:hover{border-color:rgba(222,196,135,.48);background:rgba(199,170,108,.13);color:#eed89f}
.gl-toolbar-save svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.gl-toolbar-divider{width:1px;height:21px;background:rgba(220,229,237,.12);flex:none}
.gl-hub-toolbar .gl-scope-tabs{gap:18px}
.gl-hub-toolbar .gl-scope-tab{padding:7px 0 8px;font-size:11.5px;font-weight:760;line-height:1}
.gl-hub-toolbar .gl-scope-tab strong{margin-left:3px;color:#78838d;font-size:10.5px}
.gl-hub-toolbar .gl-scope-tab.active strong{color:#c8ad6e}
.gl-hub-toolbar-info{
  min-width:0;margin-left:auto;color:#6f7a84;font-size:10.5px;font-weight:620;
  line-height:1.2;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}

.gl-panel{border-radius:13px}
.gl-community-toolbar{
  min-height:44px;padding:6px 10px;gap:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.008))
}
.gl-search-wrap{max-width:360px}
.gl-search{height:31px;font-size:11.5px;padding:0 10px}
.gl-filter-select{height:31px;font-size:11.5px;padding:0 9px}
.gl-sort-group{gap:2px;padding-left:8px}
.gl-sort-btn{font-size:10.5px;padding:6px 7px}

.gl-list{min-height:320px}
.gl-build-row{min-height:57px;padding:9px 11px;gap:12px}
.gl-build-titleline{gap:8px}
.gl-build-title{font-size:13.5px;line-height:1.18;font-weight:760}
.gl-build-meta{gap:7px;margin-top:4px;font-size:11.5px;line-height:1.15;color:#7f8992}
.gl-scope-chips{gap:6px;margin-left:4px}
.gl-scope-chip{font-size:10.5px;color:#69737d}.gl-scope-chip.on{color:#a9b2ba}
.gl-row-actions{gap:6px}
.gl-row-action{
  height:30px;padding:0 9px;border-radius:7px;font-size:11.5px;font-weight:730;
  display:inline-flex;align-items:center;justify-content:center;gap:5px
}
.gl-row-action svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gl-row-action.more{width:30px;padding:0}
.gl-row-action.more svg{width:15px;height:15px;fill:currentColor;stroke:none}
.gl-action-apply{color:#b8c0c7}
.gl-row-action.publish{color:#d2b875}.gl-row-action.published{color:#91b3a3}.gl-row-action.restore{color:#d2b875}

.gl-community-row{min-height:62px;padding:8px 11px;gap:14px}
.gl-community-line1{gap:8px;align-items:center}
.gl-flame{font-size:11px}
.gl-community-title{font-size:13.5px;line-height:1.16;font-weight:760}
.gl-author{font-size:10.5px;color:#78828c}
.gl-community-line2{margin-top:4px;font-size:11.5px;line-height:1.2;color:#7f8992}
.gl-community-actions{gap:4px;padding-left:8px}
.gl-metric,.gl-community-action{
  min-height:30px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;gap:5px;
  color:#77828c;font-size:11.5px;font-weight:650;white-space:nowrap;border-radius:7px
}
.gl-metric svg,.gl-community-action svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.gl-community-action.active svg{fill:rgba(214,182,108,.16)}
.gl-community-action.gl-icon-only{width:31px;padding:0}
.gl-community-action.gl-apply-button{
  margin-left:2px;padding:0 10px;border:1px solid rgba(199,170,108,.22);
  background:rgba(199,170,108,.055);color:#c8b176
}
.gl-community-action.gl-apply-button:hover{border-color:rgba(217,190,126,.40);background:rgba(199,170,108,.10);color:#e3cd95}
.gl-empty strong{font-size:13.5px}.gl-empty span{font-size:11.5px}

/* --- Gallery: no duplicate page title, toolbar only --- */
.gl-gallery-panel{
  width:min(1260px,100%);margin:0 auto;min-height:580px;padding:0 0 18px
}
.gl-gallery-head{display:none!important}
.gl-gallery-toolbar.workspace-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;width:100%!important;min-height:46px!important;height:46px!important;
  margin:0 0 9px!important;padding:6px 9px!important
}
.gl-gallery-toolbar .gl-gallery-tabs{padding:0;gap:20px;min-width:0}
.gl-gallery-tab{padding:8px 0 9px;font-size:11.5px;line-height:1;font-weight:760}
.gl-gallery-tab b{margin-left:4px;font-size:10.5px}
.gl-gallery-toolbar-right{display:flex;align-items:center;gap:10px;margin-left:auto;min-width:0}
.gl-gallery-toolbar-note{font-size:10.5px;color:#6f7983;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-pagination-inline{display:flex;align-items:center;gap:5px;margin:0;padding-left:9px;border-left:1px solid rgba(255,255,255,.09)}
.gl-pagination-inline>span{min-width:36px;text-align:center;font-size:10.5px;color:#89939c}
.gl-page-btn{width:28px;height:28px;padding:0;border:1px solid rgba(255,255,255,.07);border-radius:7px;background:rgba(255,255,255,.02);color:#929ca5;display:grid;place-items:center}
.gl-page-btn svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gl-page-btn:hover:not(:disabled){color:#dbc487;border-color:rgba(199,170,108,.24)}
.gl-page-btn:disabled{opacity:.28;cursor:not-allowed}

.gl-rack{
  padding:0;border:1px solid rgba(218,228,238,.075);border-radius:13px;overflow:hidden;
  background:linear-gradient(180deg,rgba(18,24,31,.56),rgba(8,12,17,.52));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)
}
.gl-rack:before{background:radial-gradient(ellipse at 50% -8%,rgba(226,233,239,.032),transparent 52%)}
.gl-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.gl-thumb-wrap{
  position:relative;padding:17px 14px 20px;perspective:900px;
  border-right:1px solid rgba(218,228,238,.055);border-bottom:1px solid rgba(218,228,238,.060);
  background:linear-gradient(180deg,rgba(255,255,255,.008),rgba(255,255,255,0));
  transition:background .22s ease
}
.gl-thumb-wrap:nth-child(4n){border-right:0}
.gl-thumb-wrap:nth-last-child(-n+4){border-bottom:0}
.gl-thumb-wrap:after{
  content:"";position:absolute;left:12%;right:12%;bottom:8px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(198,207,216,.13),transparent);pointer-events:none
}
.gl-thumb{opacity:.91;filter:drop-shadow(0 7px 12px rgba(0,0,0,.18));transition:transform .30s cubic-bezier(.2,.75,.2,1),filter .30s ease,opacity .24s ease}
.gl-grid:has(.gl-thumb:hover) .gl-thumb,
.gl-grid:has(.gl-thumb:focus-visible) .gl-thumb{opacity:.72;filter:drop-shadow(0 5px 10px rgba(0,0,0,.15)) brightness(.92)}
.gl-grid .gl-thumb:hover,
.gl-grid .gl-thumb:focus-visible{opacity:1;transform:translateY(-5px) rotateX(1.2deg) rotateY(-1.25deg);filter:drop-shadow(0 16px 24px rgba(0,0,0,.30)) brightness(1.03)}
.gl-thumb-wrap:has(.gl-thumb:hover),.gl-thumb-wrap:has(.gl-thumb:focus-visible){background:rgba(218,228,238,.018)}
.gl-thumb-card{border-radius:3px;box-shadow:inset 0 0 0 1px rgba(101,78,43,.08)}
.gl-thumb-card:after{opacity:0;background:linear-gradient(112deg,transparent 35%,rgba(255,255,255,.08) 42%,rgba(255,245,207,.40) 49%,rgba(194,232,255,.16) 52%,transparent 60%)}
.gl-thumb:hover .gl-thumb-card:after,.gl-thumb:focus-visible .gl-thumb-card:after{opacity:.72}
.gl-thumb-identity{grid-template-columns:27px 1px 1fr;gap:6px}
.gl-thumb-identity img{width:25px;height:25px}.gl-thumb-identity-line{height:25px}
.gl-thumb-identity strong{font-size:clamp(12px,.95vw,17px)}
.gl-thumb-identity span{font-size:clamp(6.5px,.48vw,8.2px)}
.gl-thumb-work strong{font-size:clamp(10.5px,.83vw,14.5px)}
.gl-thumb-work span{font-size:clamp(12px,.9vw,16px)}
.gl-thumb-hover span{font-size:10.5px}
.gl-gallery-empty{grid-column:1/-1;min-height:420px}

/* --- Preview: card breathes, all metadata/actions collected in one dock --- */
.gl-preview{
  width:min(1180px,91vw);max-height:94vh;border-radius:15px;
  background:linear-gradient(180deg,rgba(15,21,28,.985),rgba(8,12,17,.99));
  box-shadow:0 30px 100px rgba(0,0,0,.62)
}
.gl-preview-top{height:38px;padding:0 11px 0 14px;border-bottom:1px solid rgba(255,255,255,.055)}
.gl-preview-kicker{font-size:9.5px;font-weight:760;letter-spacing:.16em;color:#75808a}
.gl-preview-top .gl-x{width:28px;height:28px}
.gl-preview-stage{padding:18px 26px 14px;min-height:0}
.gl-card-scene{width:min(1000px,72vw);max-width:100%;perspective:1500px}
.gl-preview-dock{
  display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:18px;
  min-height:66px;padding:9px 12px 10px;border-top:1px solid rgba(255,255,255,.065);
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.007))
}
.gl-preview-summary{min-width:0}
.gl-preview-summary strong{display:block;font-size:13.5px;line-height:1.2;color:#e4e8eb;font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-preview-summary span{display:block;margin-top:4px;font-size:10.5px;line-height:1.15;color:#77828c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl-preview-metrics{display:flex;align-items:center;gap:10px;color:#87919a;font-size:11.5px}
.gl-preview-metrics>span{height:31px;min-width:52px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border-left:1px solid rgba(255,255,255,.055)}
.gl-preview-metrics>span:first-child{border-left:0}
.gl-preview-metrics svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.gl-preview-metrics b{font-weight:690;color:#a7afb6}
.gl-preview-actions{display:flex;align-items:center;gap:6px}
.gl-preview-actions .gl-ghost,.gl-preview-actions .gl-primary,.gl-preview-actions .gl-danger-btn{height:32px;font-size:11.5px;border-radius:8px;white-space:nowrap}
.gl-preview-action,.gl-preview-action-primary{display:inline-flex!important;align-items:center;justify-content:center;gap:6px}
.gl-preview-action svg,.gl-preview-action-primary svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gl-preview-actions .gl-ghost.active{color:#ddc27c;border-color:rgba(199,170,108,.30);background:rgba(199,170,108,.06)}
.gl-preview-note,.gl-preview-foot{display:none!important}
.gl-reveal-title{color:#d8c38f!important}

@media(max-width:1450px){
  .gl-buildlib-root{width:min(1040px,100%)}
  .gl-gallery-panel{width:min(1180px,100%)}
  .gl-thumb-wrap{padding:14px 11px 17px}
}
@media(max-width:1180px){
  .gl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gl-thumb-wrap:nth-child(4n){border-right:1px solid rgba(218,228,238,.055)}
  .gl-thumb-wrap:nth-child(3n){border-right:0}
  .gl-thumb-wrap:nth-last-child(-n+4){border-bottom:1px solid rgba(218,228,238,.060)}
  .gl-thumb-wrap:nth-last-child(-n+3){border-bottom:0}
  .gl-card-scene{width:min(940px,82vw)}
  .gl-preview{width:94vw}
  .gl-preview-dock{grid-template-columns:minmax(180px,1fr) auto;gap:10px}
  .gl-preview-actions{grid-column:1/-1;justify-content:flex-end;border-top:1px solid rgba(255,255,255,.05);padding-top:8px}
  .gl-preview-metrics{justify-content:flex-end}
}
@media(max-width:900px){
  .gl-buildlib-root,.gl-gallery-panel{width:100%;margin:0}
  .gl-hub-toolbar-info,.gl-gallery-toolbar-note{display:none}
  .gl-community-row{grid-template-columns:1fr}.gl-community-actions{padding:7px 0 0;justify-content:flex-end}
  .gl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gl-thumb-wrap:nth-child(3n){border-right:1px solid rgba(218,228,238,.055)}
  .gl-thumb-wrap:nth-child(2n){border-right:0}
  .gl-thumb-wrap:nth-last-child(-n+3){border-bottom:1px solid rgba(218,228,238,.060)}
  .gl-thumb-wrap:nth-last-child(-n+2){border-bottom:0}
}
@media(max-width:760px){
  .gl-grid{grid-template-columns:1fr}
  .gl-thumb-wrap{border-right:0!important;border-bottom:1px solid rgba(218,228,238,.060)!important}
  .gl-thumb-wrap:last-child{border-bottom:0!important}
  .gl-preview-stage{padding:10px 8px}.gl-card-scene{width:92vw}
  .gl-preview-dock{grid-template-columns:1fr}.gl-preview-metrics{justify-content:flex-start}.gl-preview-actions{justify-content:flex-start;overflow-x:auto}
}

/* =========================================================
   7FCLAB Gallery / Build Library visual refinement v0.3
   Restores decorative page header + single-row toolbar + dedicated Gallery thumbnail master
   ========================================================= */

/* Restore the native page grammar: nav -> handwritten English title -> one toolbar -> content. */
@media (min-width:761px){
  body.build-overview-active #workspaceDecorHeader,
  body.gl-gallery-active #workspaceDecorHeader{display:block!important;visibility:visible!important;}
}

/* Build Library aligns left like the other workspaces and deliberately leaves breathing room on the right. */
.gl-buildlib-root{
  width:min(1240px,96%)!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:auto!important;
  padding-top:0!important;
}
.gl-hub-toolbar.workspace-toolbar{
  height:46px!important;
  min-height:46px!important;
  padding:6px 10px!important;
  margin:0 0 10px!important;
  flex-wrap:nowrap!important;
}
.gl-hub-toolbar-left{flex:none;white-space:nowrap}
.gl-hub-toolbar-right{
  margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:7px;
  min-width:0;white-space:nowrap;flex-wrap:nowrap
}
.gl-community-controls .gl-search-wrap{flex:0 0 190px;max-width:190px}
.gl-community-controls .gl-search{height:31px;font-size:11.5px}
.gl-community-controls .gl-filter-select{width:116px;height:31px;font-size:11.5px;flex:none}
.gl-community-controls .gl-sort-group{display:flex;align-items:center;gap:2px;padding-left:7px;border-left:0;white-space:nowrap}
.gl-community-controls .gl-sort-btn{
  height:30px;padding:0 8px;font-size:11.5px;line-height:30px;white-space:nowrap;border-radius:7px
}
.gl-community-controls .gl-sort-btn.active{background:rgba(199,170,108,.085);color:#d9c286}
.gl-hub-toolbar-info{font-size:10.5px;white-space:nowrap}

/* The panel itself starts immediately below that one rail; no second toolbar exists. */
.gl-panel{width:100%}
.gl-community-toolbar{display:none!important}
.gl-build-row{min-height:54px;padding:8px 13px!important}
.gl-community-row{min-height:58px;padding:8px 13px!important}
.gl-build-title,.gl-community-title{font-size:13.5px!important;line-height:1.15!important}
.gl-build-meta,.gl-community-line2{font-size:11.5px!important;line-height:1.2!important;margin-top:4px!important}
.gl-author{font-size:10.5px!important}
.gl-scope-chip{font-size:10.5px!important}
.gl-row-action,.gl-community-action,.gl-metric{font-size:11.5px!important}

/* Gallery uses the same page grammar, but a narrower rack produces ~240px cards in a 4-column row. */
.gl-gallery-panel{
  width:min(1120px,92%)!important;
  margin-left:0!important;
  margin-right:auto!important;
  padding-top:0!important;
}
.gl-gallery-toolbar.workspace-toolbar{
  height:46px!important;min-height:46px!important;margin:0 0 10px!important;padding:6px 10px!important;
  flex-wrap:nowrap!important
}
.gl-gallery-toolbar .gl-gallery-tabs{gap:22px!important;white-space:nowrap}
.gl-gallery-tab{font-size:11.5px!important;white-space:nowrap}
.gl-gallery-toolbar-right{white-space:nowrap}
.gl-gallery-toolbar-note{display:none!important}
.gl-rack{border-radius:11px!important}
.gl-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important}
.gl-thumb-wrap{
  padding:20px!important;
  min-width:0;
  border-right:1px solid rgba(218,228,238,.065)!important;
  border-bottom:1px solid rgba(218,228,238,.072)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.009),rgba(255,255,255,.002))!important
}
.gl-thumb-wrap:nth-child(4n){border-right:0!important}
.gl-thumb-wrap:nth-last-child(-n+4){border-bottom:0!important}
.gl-thumb{opacity:.84!important;filter:drop-shadow(0 6px 11px rgba(0,0,0,.16)) brightness(.96)!important}
.gl-grid:has(.gl-thumb:hover) .gl-thumb,
.gl-grid:has(.gl-thumb:focus-visible) .gl-thumb{opacity:.66!important;filter:drop-shadow(0 4px 8px rgba(0,0,0,.12)) brightness(.88)!important}
.gl-grid .gl-thumb:hover,
.gl-grid .gl-thumb:focus-visible{opacity:1!important;transform:translateY(-5px) rotateX(1.2deg) rotateY(-1.2deg)!important;filter:drop-shadow(0 16px 23px rgba(0,0,0,.30)) brightness(1.035)!important}
.gl-thumb-wrap:has(.gl-thumb:hover),.gl-thumb-wrap:has(.gl-thumb:focus-visible){background:rgba(220,228,236,.021)!important}
.gl-thumb-wrap:after{left:9%!important;right:9%!important;bottom:8px!important;background:linear-gradient(90deg,transparent,rgba(204,213,222,.17),transparent)!important}

/* Dedicated thumbnail base: top-right identity + lower-right work identity. */
.gl-thumb-identity{right:5.7%!important;top:19.5%!important;width:46%!important;grid-template-columns:28px 1px minmax(0,1fr)!important;gap:7px!important}
.gl-thumb-identity img{width:27px!important;height:27px!important}
.gl-thumb-identity-line{height:27px!important}
.gl-thumb-identity strong{font-size:clamp(12px,.92vw,16px)!important}
.gl-thumb-identity span{font-size:clamp(7px,.48vw,8.6px)!important;margin-top:2px!important}
.gl-thumb-work{right:5.8%!important;top:63%!important;width:48%!important;text-align:center!important}
.gl-thumb-work strong{font-size:clamp(10.5px,.78vw,14px)!important;line-height:1.15!important}
.gl-thumb-work span{font-size:clamp(10px,.78vw,13.5px)!important;margin-top:4px!important}
.gl-thumb-watermark{left:3.3%!important;bottom:3.9%!important;width:12%!important;opacity:.66!important}

/* Save modal now owns Build metadata that used to live in the large preview card. */
.gl-save-modal{width:min(520px,92vw)!important}
.gl-field{display:block;margin:0 0 12px}
.gl-field>span{display:block;margin:0 0 6px;color:#9ba4ad;font-size:11.5px;font-weight:700}
.gl-save-field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gl-select{appearance:auto;color-scheme:dark;font-size:11.5px}
.gl-save-hint{font-size:10.5px!important;line-height:1.65!important;margin-top:2px!important}

/* Preview stays intentionally smaller than the viewport; one dock owns metadata + metrics + actions. */
.gl-preview{width:min(1080px,88vw)!important;max-height:93vh!important}
.gl-preview-stage{padding:16px 26px 12px!important}
.gl-card-scene{width:min(900px,66vw)!important}
.gl-preview-dock{min-height:64px!important;padding:9px 13px!important;gap:15px!important}
.gl-preview-summary strong{font-size:13.5px!important}
.gl-preview-summary span,.gl-preview-metrics,.gl-preview-actions .gl-ghost,.gl-preview-actions .gl-primary,.gl-preview-actions .gl-danger-btn{font-size:11.5px!important}

@media(max-width:1300px){
  .gl-buildlib-root{width:98%!important}
  .gl-community-controls .gl-search-wrap{flex-basis:160px;max-width:160px}
  .gl-community-controls .gl-sort-btn{padding:0 6px;font-size:10.5px}
  .gl-gallery-panel{width:min(1040px,96%)!important}
  .gl-thumb-wrap{padding:17px!important}
}
@media(max-width:1050px){
  .gl-community-controls .gl-search-wrap{display:none}
  .gl-gallery-panel{width:100%!important}
  .gl-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .gl-thumb-wrap:nth-child(4n){border-right:1px solid rgba(218,228,238,.065)!important}
  .gl-thumb-wrap:nth-child(3n){border-right:0!important}
  .gl-card-scene{width:min(850px,80vw)!important}
}


/* =========================================================
   v0.4 — Community index + Gallery interaction correction
   ========================================================= */
.gl-toolbar-save{
  height:31px!important;padding:0 10px!important;gap:6px!important;border-radius:8px!important;
  font-size:11.5px!important;font-weight:700!important;letter-spacing:0!important
}
.gl-toolbar-save svg{width:13px!important;height:13px!important}
.gl-community-controls .gl-filter-select{width:132px!important}

/* One-line community resource index: use width, not tiny type. */
.gl-community-row{
  display:flex!important;grid-template-columns:none!important;align-items:center!important;
  min-height:51px!important;height:51px!important;padding:0 13px!important;gap:14px!important;
  cursor:pointer!important
}
.gl-community-copy{
  min-width:0!important;flex:1 1 auto!important;display:flex!important;align-items:center!important;
  gap:7px!important;white-space:nowrap!important;overflow:hidden!important
}
.gl-community-title{flex:none!important;max-width:260px!important;font-size:13.5px!important;line-height:1!important}
.gl-author{flex:none!important;font-size:10.5px!important;color:#707a84!important}
.gl-community-divider{flex:none;color:#3e4852;font-size:10.5px}
.gl-community-archetype{flex:none;color:#b6bec5;font-size:11.5px;font-weight:720}
.gl-community-core{flex:none;color:#818b95;font-size:11.5px}
.gl-community-topstats{
  min-width:0;overflow:hidden;text-overflow:ellipsis;color:#7f8992;font-size:11.5px
}
.gl-community-actions{
  flex:none!important;margin-left:auto!important;padding-left:10px!important;display:flex!important;
  align-items:center!important;gap:13px!important
}
.gl-metric{
  display:inline-flex!important;align-items:center!important;gap:5px!important;padding:0!important;
  min-width:48px;color:#7d8791!important;font-size:11.5px!important;justify-content:flex-start
}
.gl-metric svg{width:14px!important;height:14px!important}
.gl-community-row:hover{background:rgba(255,255,255,.022)!important}
.gl-community-row:hover .gl-community-title{color:#f0f2f4}

/* Saved rows are themselves load targets; actions keep their own behavior. */
.gl-build-row[data-gl-load-build]{cursor:pointer}
.gl-build-row[data-gl-load-build] .gl-build-main{cursor:pointer}

/* Gallery default is intentionally subdued; the inspected card lights up. */
.gl-thumb{opacity:.90!important;filter:drop-shadow(0 5px 9px rgba(0,0,0,.15)) brightness(.78) saturate(.90)!important;pointer-events:auto!important}
.gl-grid:has(.gl-thumb:hover) .gl-thumb,
.gl-grid:has(.gl-thumb:focus-visible) .gl-thumb{opacity:.88!important;filter:drop-shadow(0 4px 7px rgba(0,0,0,.12)) brightness(.69) saturate(.84)!important}
.gl-grid .gl-thumb:hover,
.gl-grid .gl-thumb:focus-visible{opacity:1!important;transform:translateY(-5px) rotateX(1.2deg) rotateY(-1.2deg)!important;filter:drop-shadow(0 16px 23px rgba(0,0,0,.30)) brightness(1.04) saturate(1)!important}
.gl-thumb-wrap[data-gl-open-snapshot]{cursor:pointer;position:relative;z-index:1}
.gl-thumb-wrap[data-gl-open-snapshot]:hover{z-index:2}

@media(max-width:1300px){
  .gl-community-title{max-width:220px!important}
  .gl-community-actions{gap:9px!important}
  .gl-metric{min-width:43px!important}
}
@media(max-width:1080px){
  .gl-community-topstats{display:none}
  .gl-community-divider:last-of-type{display:none}
}

/* =========================================================
   v0.5 — Unified Library rows + safe loading + fixed overlay
   ========================================================= */
.gl-my-controls{display:flex;align-items:center;gap:8px;min-width:0}
.gl-my-controls .gl-search-wrap{flex:0 0 190px;max-width:190px}
.gl-my-controls .gl-search{height:31px;font-size:11.5px}
.gl-my-controls .gl-filter-select{height:31px;font-size:11.5px;width:132px;flex:none}
.gl-my-controls .gl-my-sort{width:118px}

/* Mine and Community now share one horizontal library language. */
.gl-build-row-single{
  display:flex!important;align-items:center!important;min-height:51px!important;height:51px!important;
  padding:0 13px!important;gap:14px!important;cursor:pointer!important
}
.gl-build-line{
  min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:7px;white-space:nowrap;overflow:hidden
}
.gl-build-row-single .gl-build-title{flex:none;max-width:260px;font-size:13.5px;line-height:1;color:#e6e9ec;overflow:hidden;text-overflow:ellipsis}
.gl-build-summary{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#7f8992;font-size:11.5px}
.gl-row-time{flex:none;margin-left:auto;padding-left:10px;color:#626d77;font-size:10.5px;white-space:nowrap}
.gl-build-row-single .gl-row-actions{flex:none;display:flex;align-items:center;gap:7px;margin-left:3px}
.gl-build-row-single:hover{background:rgba(255,255,255,.022)!important}
.gl-build-row-single:hover .gl-build-title{color:#f0f2f4}
.gl-build-row-single .gl-row-action{height:30px;font-size:11.5px;border-radius:8px}
.gl-build-row-single .gl-row-action.more{width:31px;padding:0}

/* Community date and application count: no abstract apply glyph. */
.gl-community-row .gl-row-time{margin-left:3px;padding-left:6px}
.gl-apply-count{min-width:64px!important;gap:5px!important}
.gl-apply-count em,.gl-preview-apply-count em{font-style:normal;color:#7f8992;font-size:10.5px;letter-spacing:.01em}
.gl-apply-count span{color:#9099a2}

/* Gallery: a physical dim layer guarantees an obvious light-up on hover. */
.gl-thumb-card:before{
  content:"";position:absolute;inset:0;z-index:7;background:rgba(8,12,16,.22);pointer-events:none;
  transition:opacity .24s ease,background .24s ease;opacity:1
}
.gl-thumb:hover .gl-thumb-card:before,.gl-thumb:focus-visible .gl-thumb-card:before{opacity:0}
.gl-grid:has(.gl-thumb:hover) .gl-thumb:not(:hover) .gl-thumb-card:before,
.gl-grid:has(.gl-thumb:focus-visible) .gl-thumb:not(:focus-visible) .gl-thumb-card:before{background:rgba(8,12,16,.31)}
.gl-thumb-hover{z-index:10}

/* Fixed modal/preview overlay always owns its interaction layer. */
.gl-overlay{pointer-events:auto!important}
.gl-overlay>*{pointer-events:auto}
html.gl-overlay-open{overflow:hidden}

.gl-preview-apply-count{height:31px;min-width:66px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border-left:1px solid rgba(255,255,255,.055)}
.gl-preview-apply-count b{font-weight:690;color:#a7afb6}

@media(max-width:1300px){
  .gl-my-controls .gl-search-wrap{flex-basis:160px;max-width:160px}
  .gl-build-row-single .gl-build-title{max-width:220px}
}
@media(max-width:1120px){
  .gl-build-summary,.gl-community-topstats{display:none}
  .gl-build-line .gl-community-divider:last-of-type{display:none}
  .gl-row-time{margin-left:auto}
}

/* ==========================================================
   v0.6.3: gallery presentation polish (scoped; no Build data changes)
   ========================================================== */
:root{--gl-card-halo:rgba(210,176,106,.55);--gl-card-edge:#cdb27d}
/* Clear selected state, still subtle against the dark workbench. */
.gl-hub-toolbar .gl-scope-tabs,
.gl-gallery-toolbar .gl-gallery-tabs{
  display:inline-flex!important;align-items:center!important;gap:4px!important;
  padding:4px!important;border-radius:11px!important;
  border:1px solid rgba(196,169,110,.17)!important;
  background:rgba(5,10,15,.63)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.gl-hub-toolbar .gl-scope-tab,
.gl-gallery-toolbar .gl-gallery-tab{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  gap:5px;min-height:33px;padding:7px 13px!important;margin:0!important;
  border:1px solid transparent!important;border-radius:8px!important;
  background:transparent!important;color:#b5bec6!important;
  font-size:11.5px!important;font-weight:760!important;letter-spacing:0;
  white-space:nowrap;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.gl-hub-toolbar .gl-scope-tab strong,
.gl-gallery-toolbar .gl-gallery-tab b{margin:0 0 0 3px!important;color:#9ca5ae!important;font-size:10.5px!important;font-weight:800!important}
.gl-hub-toolbar .gl-scope-tab.active,
.gl-gallery-toolbar .gl-gallery-tab.active{
  color:#f3ead6!important;border-color:rgba(214,178,101,.54)!important;
  background:linear-gradient(180deg,rgba(154,118,55,.24),rgba(86,65,32,.24))!important;
  box-shadow:inset 0 1px 0 rgba(250,215,148,.09),0 0 12px rgba(185,145,72,.08)!important;
}
.gl-hub-toolbar .gl-scope-tab.active strong,
.gl-gallery-toolbar .gl-gallery-tab.active b{color:#dec185!important}
.gl-hub-toolbar .gl-scope-tab.active:after,
.gl-gallery-toolbar .gl-gallery-tab.active:after{
  content:""!important;position:absolute;bottom:2px;left:29%;right:29%;height:1px;
  background:linear-gradient(90deg,transparent,#d4b372,transparent)!important
}
.gl-hub-toolbar .gl-scope-tab:not(.active):hover,
.gl-gallery-toolbar .gl-gallery-tab:not(.active):hover{
  color:#edf0f3!important;background:rgba(200,178,136,.09)!important;
}
.gl-hub-toolbar .gl-scope-tab:focus-visible,
.gl-gallery-toolbar .gl-gallery-tab:focus-visible{outline:2px solid #d4b372;outline-offset:2px}
/* Display follows the published card's theme color, not the table cell. */
.gl-thumb{opacity:.93!important;filter:drop-shadow(0 8px 15px rgba(0,0,0,.22)) brightness(1)!important;transform-origin:center center}
.gl-grid:has(.gl-thumb:hover) .gl-thumb:not(:hover),
.gl-grid:has(.gl-thumb:focus-visible) .gl-thumb:not(:focus-visible):not(:hover){
  opacity:.84!important;filter:drop-shadow(0 5px 10px rgba(0,0,0,.16)) brightness(.98)!important;
}
.gl-grid .gl-thumb:hover,
.gl-grid .gl-thumb:focus-visible{
  opacity:1!important;transform:translateY(-6px) scale(1.012) rotateX(.8deg) rotateY(-.8deg)!important;
  filter:brightness(1.17) drop-shadow(0 16px 24px rgba(0,0,0,.28))!important;
}
.gl-thumb-card{transition:box-shadow .26s ease,filter .26s ease;isolation:isolate}
.gl-thumb::before{
  content:"";position:absolute;z-index:18;inset:-1px;
  border:1px solid transparent;border-radius:4px;pointer-events:none;opacity:0;
  box-shadow:0 0 0 transparent;
  transition:opacity .24s ease,border-color .24s ease,box-shadow .24s ease;
}
.gl-thumb:hover::before,.gl-thumb:focus-visible::before{
  opacity:1;border-color:var(--gl-card-edge);
  box-shadow:0 0 0 1px rgba(244,214,156,.20),0 0 11px 1px var(--gl-card-halo),0 0 24px rgba(192,151,77,.23),inset 0 0 10px rgba(245,223,167,.13);
}
.gl-thumb:hover .gl-thumb-card:after,.gl-thumb:focus-visible .gl-thumb-card:after{opacity:.78}
.gl-thumb:focus-visible{outline:2px solid rgba(231,204,140,.70);outline-offset:4px}
.gl-thumb-wrap:has(.gl-thumb:hover),.gl-thumb-wrap:has(.gl-thumb:focus-visible){background:rgba(218,228,238,.025)!important}
.gl-amp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.gl-amp-item{padding:0 8px}
@media (prefers-reduced-motion:reduce){
  .gl-thumb,.gl-thumb::before,.gl-thumb-card,.gl-hub-toolbar .gl-scope-tab,.gl-gallery-toolbar .gl-gallery-tab{transition:none!important}
  .gl-grid .gl-thumb:hover,.gl-grid .gl-thumb:focus-visible{transform:none!important}
}


/* ==========================================================
   Local Gallery v0.6.4 RC1 — verified interaction clean-up
   Changes ONLY gallery UI; no storage or Build pipeline touches.
   ========================================================== */
/* The selected pill already has its own border and fill; remove both
   the original tab underline and v0.6.3's extra glowing underline. */
.gl-hub-toolbar .gl-scope-tab.active::after,
.gl-gallery-toolbar .gl-gallery-tab.active::after{
  content:none!important;display:none!important;
}

/* v0.5's dark physical overlay was dimming white/silver cards;
   keep actual card artwork at full luminance until inspection. */
.gl-grid .gl-thumb-card::before{content:none!important;display:none!important}
.gl-grid .gl-thumb{
  opacity:1!important;
  filter:drop-shadow(0 8px 15px rgba(0,0,0,.22)) brightness(1)!important;
}
/* Don't dim sibling cards in a grid on hover/focus. */
.gl-grid:has(.gl-thumb:hover) .gl-thumb,
.gl-grid:has(.gl-thumb:focus-visible) .gl-thumb,
.gl-grid:has(.gl-thumb:hover) .gl-thumb:not(:hover),
.gl-grid:has(.gl-thumb:focus-visible) .gl-thumb:not(:focus-visible):not(:hover){
  opacity:1!important;
  filter:drop-shadow(0 8px 15px rgba(0,0,0,.22)) brightness(1)!important;
}
/* Include wrapper hover so the response matches the full thumbnail hit area;
   maintain restrained edge/halo and original hover animation. */
.gl-grid .gl-thumb-wrap:hover .gl-thumb,
.gl-grid .gl-thumb:hover,
.gl-grid .gl-thumb:focus-visible{
  opacity:1!important;
  transform:translateY(-6px) scale(1.012) rotateX(.8deg) rotateY(-.8deg)!important;
  filter:brightness(1.065) drop-shadow(0 16px 24px rgba(0,0,0,.28))!important;
}
.gl-grid .gl-thumb-wrap:hover .gl-thumb::before,
.gl-grid .gl-thumb:hover::before,
.gl-grid .gl-thumb:focus-visible::before{
  opacity:1!important;border-color:var(--gl-card-edge);
  box-shadow:0 0 0 1px rgba(244,214,156,.17),0 0 10px 1px var(--gl-card-halo),0 0 21px rgba(192,151,77,.20),inset 0 0 8px rgba(245,223,167,.09);
}
@media (prefers-reduced-motion:reduce){
  .gl-grid .gl-thumb-wrap:hover .gl-thumb,.gl-grid .gl-thumb:hover,.gl-grid .gl-thumb:focus-visible{transform:none!important}
}


/* === v0.6.9 RC1: Gallery UI legibility (not the frozen 1536×1024 card geometry) === */
.gl-modal{width:min(548px,calc(100vw - 28px));border-radius:17px}
.gl-modal-head{padding:19px 21px 16px;align-items:center}
.gl-modal-head small{font-size:10.5px;letter-spacing:.18em;color:#88929c}
.gl-modal-head h3{margin-top:6px;font-size:19px;line-height:1.25}
.gl-modal .gl-x{width:34px;height:34px;font-size:22px}
.gl-modal-body{padding:19px 21px 21px}
.gl-modal-copy{font-size:15px;line-height:1.65;color:#aeb7c0}
.gl-modal-copy strong{font-weight:750;color:#edf0f3}
.gl-modal-lines{margin-top:14px;padding:15px 16px;border-radius:11px;font-size:14px;line-height:1.78;color:#a9b2bc;border-color:rgba(255,255,255,.09)}
.gl-modal-feature{display:block;font-size:15px;font-weight:770;line-height:1.5;color:#e7d4a4}
.gl-modal-detail{display:block;margin-top:10px;font-size:14px;line-height:1.7;color:#a6b0ba}.gl-modal-detail strong{color:#e7d4a4;font-weight:720}
.gl-modal-testnote{margin:12px 2px 0;font-size:12px;line-height:1.6;color:#82909b}
.gl-modal-foot{padding:14px 21px 19px;gap:10px}
.gl-modal-foot .gl-primary,.gl-modal-foot .gl-ghost,.gl-modal-foot .gl-danger-btn{min-height:40px;height:auto;padding:9px 17px;font-size:13.5px;line-height:1.3;border-radius:10px}
.gl-modal .gl-save-hint{font-size:12px!important}
.gl-modal .gl-input,.gl-modal .gl-select{font-size:14px;min-height:40px}
/* Modest body-label readability upgrades; rows stay compact. Never affect artwork text. */
.gl-buildlib-root .gl-build-title,.gl-community-title{font-size:14px!important}
.gl-build-meta,.gl-community-line2,.gl-community-core,.gl-build-summary{font-size:12px!important}
.gl-author,.gl-row-time,.gl-gallery-caption,.gl-gallery-toolbar-note{font-size:11.5px!important}
.gl-gallery-tab,.gl-scope-tab{font-size:12px!important}
.gl-gallery-panel .gl-pagination,.gl-gallery-empty span{font-size:12px}
.gl-preview-kicker{font-size:11.5px;letter-spacing:.14em;color:#aeb8c2}
.gl-preview-top{min-height:43px;height:auto;padding-top:7px;padding-bottom:7px}
.gl-preview-top-left{gap:9px;flex-wrap:wrap}
.gl-preview-sep{color:#61707c;font-size:14px}
.gl-rarity-label{display:inline-flex;gap:9px;align-items:baseline;color:#c7ac6e;font-size:11.5px;letter-spacing:.12em;font-weight:770}
.gl-rarity-zh{font-size:11.5px;font-weight:700;letter-spacing:.03em;color:#b2bac2}
.gl-rarity-label[data-rarity="rare"]{color:#9cafd7}
.gl-rarity-label[data-rarity="legendary"]{color:#d6bb79}
.gl-rarity-label[data-rarity="collector"]{color:#e4d3b0}
.gl-rarity-label[data-rarity="common"]{color:#bfa46c}
.gl-preview-summary span{font-size:11.5px!important;line-height:1.35}
/* Future auth: reusable passive lock hint; do not display or gate until auth is integrated. */
.gl-login-locked-hint{display:flex;align-items:center;gap:8px;min-height:35px;padding:8px 11px;border:1px solid rgba(199,170,108,.19);border-radius:9px;background:rgba(199,170,108,.035);color:#b2a78d;font-size:12px}
/* === Slow, deterministic Signature Card ceremony === */
.gl-ceremony{position:relative;width:min(870px,95vw);max-height:min(95vh,980px);overflow:auto;padding:19px clamp(15px,3.7vw,37px) 21px;border:1px solid rgba(214,183,111,.25);border-radius:20px;background:radial-gradient(ellipse at 50% 50%,rgba(85,68,39,.16),transparent 72%),linear-gradient(180deg,#171d25,#090d12 84%);box-shadow:0 28px 120px rgba(0,0,0,.68);isolation:isolate}
.gl-ceremony-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.gl-ceremony-eyebrow{color:#ac9670;font-size:11px;font-weight:760;letter-spacing:.21em}
.gl-ceremony-intro{text-align:center;margin:11px 0 17px}
.gl-ceremony-step{font-size:10.5px;letter-spacing:.24em;color:#a88c59}
.gl-ceremony-intro h3{font-size:clamp(18px,2vw,24px);letter-spacing:.03em;color:#f3e4c5;font-weight:730;margin:6px 0}
.gl-ceremony-status{font-size:13px;line-height:1.55;min-height:20px;margin:0;color:#a7b0ba}
.gl-ceremony-stage{position:relative;width:min(650px,84%);aspect-ratio:3/2;margin:0 auto;perspective:1350px;display:grid;place-items:center}
.gl-ceremony-lines{position:absolute;inset:-8%;border:1px solid rgba(207,178,111,.1);border-radius:50%;transform:scale(.93);animation:glCeremonyHalo 3.6s ease-in-out both;pointer-events:none}
.gl-ceremony-lines:before,.gl-ceremony-lines:after{content:"";position:absolute;inset:10%;border:1px solid rgba(207,178,111,.13);border-radius:50%}
.gl-ceremony-lines:after{inset:19%;border-color:rgba(225,193,127,.12)}
.gl-ceremony-card{position:relative;width:100%;height:100%;overflow:hidden;transform:scale(.93) translateY(6px);border:1px solid rgba(208,167,96,.46);box-shadow:0 18px 65px rgba(0,0,0,.5);background:linear-gradient(143deg,#211d1b,#0c1017);transition:transform 1.45s cubic-bezier(.18,.75,.22,1),box-shadow 1.45s ease;border-radius:6px}
.gl-ceremony-live{position:absolute;inset:0;opacity:0;filter:blur(18px) brightness(.43);transform:scale(1.065);transition:opacity 1.65s ease,filter 1.75s cubic-bezier(.15,.76,.2,1),transform 1.7s cubic-bezier(.18,.72,.18,1);pointer-events:none}
.gl-ceremony-live .gl-face{border-radius:0}
.gl-ceremony-live .gl-face.back{display:none}
.gl-ceremony-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:radial-gradient(ellipse at 50% 43%,rgba(163,129,66,.19),transparent 43%),repeating-linear-gradient(130deg,transparent,transparent 22px,rgba(206,173,104,.028) 23px,transparent 24px),linear-gradient(140deg,#24252b,#11171d 65%);box-shadow:inset 0 0 0 14px rgba(14,16,20,.7),inset 0 0 0 15px rgba(217,176,105,.33);opacity:1;transition:opacity 1.3s ease,filter 1.2s ease;pointer-events:none}
.gl-ceremony-brand{display:block;width:clamp(85px,13vw,160px);height:clamp(85px,13vw,160px);object-fit:contain;filter:drop-shadow(0 0 18px rgba(219,169,86,.18));pointer-events:none;user-select:none}
.gl-ceremony-seal-title{font-size:clamp(11px,1.3vw,16px);letter-spacing:.20em;color:#d7c69e;font-weight:740;text-align:center;line-height:1.35;padding:0 9px}
.gl-ceremony-seal-note{font-size:clamp(9px,1vw,12px);letter-spacing:.11em;color:#a3a7a7;text-align:center;line-height:1.4;padding:0 9px}
.gl-ceremony-sweep{position:absolute;inset:-70% auto -70% -70%;width:44%;pointer-events:none;z-index:8;transform:translateX(-180%) rotate(20deg);background:linear-gradient(90deg,transparent,rgba(244,220,165,.03),rgba(250,224,158,.35),rgba(255,251,235,.12),transparent);filter:blur(7px);opacity:0}
.gl-ceremony[data-gl-ceremony-phase="charged"] .gl-ceremony-card{transform:scale(.97) translateY(0);box-shadow:0 22px 75px rgba(0,0,0,.54),0 0 32px rgba(212,175,94,.16)}
.gl-ceremony[data-gl-ceremony-phase="charged"] .gl-ceremony-brand{animation:glCeremonyPulse 1.7s ease-in-out infinite}
.gl-ceremony[data-gl-ceremony-phase="reveal"] .gl-ceremony-card,.gl-ceremony[data-gl-ceremony-phase="complete"] .gl-ceremony-card{transform:scale(1);box-shadow:0 20px 80px rgba(0,0,0,.5),0 0 36px rgba(210,173,99,.14)}
.gl-ceremony[data-gl-ceremony-phase="reveal"] .gl-ceremony-cover,.gl-ceremony[data-gl-ceremony-phase="complete"] .gl-ceremony-cover{opacity:0;filter:blur(14px)}
.gl-ceremony[data-gl-ceremony-phase="reveal"] .gl-ceremony-live,.gl-ceremony[data-gl-ceremony-phase="complete"] .gl-ceremony-live{opacity:1;filter:blur(0) brightness(1);transform:scale(1)}
.gl-ceremony[data-gl-ceremony-phase="reveal"] .gl-ceremony-sweep{animation:glCeremonySweep 1.4s ease-out forwards}
.gl-ceremony-end{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:42px;opacity:0;transform:translateY(10px);transition:opacity .7s ease,transform .7s ease;margin-top:6px}
.gl-ceremony-end .gl-ceremony-rarity{color:#e3ca8f;font-size:13px;font-weight:780;letter-spacing:.11em}
.gl-ceremony-end .gl-ceremony-rarity[data-rarity="rare"]{color:#adc1e6}
.gl-ceremony-end .gl-ceremony-rarity[data-rarity="collector"]{color:#f0dbbb}
.gl-ceremony-end strong{color:#c2c9cf;font-size:12px;font-weight:680}
.gl-ceremony[data-gl-ceremony-phase="complete"] .gl-ceremony-end{opacity:1;transform:none}
.gl-ceremony-progress{height:2px;margin:8px 0 8px;background:rgba(255,255,255,.09);overflow:hidden;border-radius:100px}
.gl-ceremony-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#725c39,#eed69d);animation:glCeremonyProgress 5.05s linear both}
.gl-ceremony-note{text-align:center;font-size:11.5px;line-height:1.5;color:#78838e;margin:7px 0 0}
@keyframes glCeremonyHalo{0%{opacity:.1;transform:scale(.86)}55%{opacity:1;transform:scale(1.05)}100%{opacity:.3;transform:scale(1)}}
@keyframes glCeremonyPulse{0%,100%{opacity:1;filter:brightness(1)}50%{opacity:.85;filter:brightness(1.3)}}
@keyframes glCeremonySweep{0%{opacity:0;transform:translateX(-180%) rotate(20deg)}12%{opacity:1}100%{opacity:0;transform:translateX(650%) rotate(20deg)}}
@keyframes glCeremonyProgress{to{width:100%}}
@media(max-width:760px){
 .gl-modal{width:min(548px,calc(100vw - 24px))}.gl-modal-head{padding:17px 18px 14px}.gl-modal-body{padding:17px 18px}.gl-modal-foot{padding:12px 18px 17px}
 .gl-modal-lines{font-size:13.5px}.gl-modal-detail{font-size:13.5px}
 .gl-ceremony{padding:15px 13px 17px}.gl-ceremony-stage{width:94%}.gl-ceremony-intro h3{font-size:19px}
 .gl-preview-top-left{gap:6px}.gl-preview-kicker,.gl-rarity-label,.gl-rarity-zh{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){
 .gl-ceremony *{animation:none!important;transition:none!important}
 .gl-reveal .gl-card-scene{animation:none!important}
}

/* v0.6.11 RC1 · restrained modal typography and single-Build publication lifecycle */
.gl-modal{width:min(495px,94vw)!important}
.gl-modal.gl-modal-publish{width:min(535px,94vw)!important}
.gl-modal-head{padding:16px 19px 13px!important}
.gl-modal-head small{font-size:10.5px!important;color:#84909b!important;letter-spacing:.12em}
.gl-modal-head h3{font-size:18px!important;line-height:1.25!important;font-weight:720!important}
.gl-modal-body{padding:17px 19px!important}
.gl-modal-copy{font-size:14px!important;line-height:1.6!important;color:#b9c1c8!important}
.gl-modal-lines{font-size:13.5px!important;line-height:1.75!important;color:#acb6bf!important;margin-top:12px!important;padding:13px 14px!important}
.gl-modal-detail{font-size:13.5px!important;line-height:1.65!important;font-weight:400!important}
.gl-modal-feature{font-size:15.5px!important;line-height:1.5!important}
.gl-modal-testnote{font-size:11.5px!important}
.gl-modal-foot{padding:13px 19px 16px!important}
.gl-modal-foot button{font-size:13.5px!important;min-height:36px!important}
.gl-save-hint{font-size:11.5px!important;line-height:1.6!important}
.gl-input{font-size:13.5px!important}
.gl-build-row-single{min-height:55px!important;height:auto!important;padding:9px 13px!important;gap:9px!important}
.gl-build-line{flex:1 1 auto!important;min-width:160px!important}
.gl-build-row-single .gl-row-actions{gap:6px!important;flex:0 0 auto!important}
.gl-build-row-single .gl-row-action{min-width:0!important;padding:0 9px!important;height:31px!important;font-size:11.5px!important;white-space:nowrap!important}
.gl-build-row-single .gl-build-apply{color:#d8bf88!important;border-color:rgba(207,177,110,.26)!important}
.gl-build-row-single .gl-build-rename{color:#aeb9c2!important}
.gl-build-row-single .gl-build-delete{color:#c48680!important;border-color:rgba(196,108,100,.20)!important}
.gl-build-preview{width:min(560px,94vw)!important}
.gl-build-preview-summary{font-size:14px;color:#d9e1e6;margin-bottom:11px}
.gl-build-preview-attrs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px}
.gl-build-preview-attrs>span{display:flex;justify-content:space-between;padding:9px;border:1px solid rgba(218,226,235,.075);background:rgba(255,255,255,.018);border-radius:7px;color:#aab5bf;font-size:12.5px}
.gl-build-preview-attrs b{font-weight:720;color:#ddc69a}
.gl-community-view-switch{display:flex;gap:4px;align-items:center}
.gl-collection-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:9px 1px 6px}
.gl-collection-stat{min-width:0;border:1px solid rgba(201,177,127,.13);border-radius:10px;background:linear-gradient(160deg,rgba(197,154,73,.07),rgba(255,255,255,.014));padding:10px 14px;display:flex;flex-direction:column;gap:4px}
.gl-collection-stat span{font-size:11.5px;color:#a1abb5}
.gl-collection-stat strong{font-size:19px;color:#e2d3b7;font-weight:730;font-variant-numeric:tabular-nums}
.gl-collection-scope-note{font-size:11.5px;color:#83909b;padding:3px 3px 11px}
.gl-sort-field{display:flex;align-items:center;gap:5px;color:#929da6;font-size:11px}
.gl-gallery-toolbar-right .gl-filter-select{font-size:12px!important;min-width:105px!important;max-width:154px!important}
.gl-collection-card{min-width:0;position:relative;padding:13px 11px 11px;border-right:1px solid rgba(218,228,238,.055);border-bottom:1px solid rgba(218,228,238,.055);display:flex;flex-direction:column;gap:6px}
.gl-my-collection-grid .gl-collection-card:nth-child(4n){border-right:none}
.gl-my-collection-grid .gl-thumb-wrap{padding:0!important;border:0!important;position:relative}
.gl-my-collection-grid .gl-thumb{display:block!important;width:100%!important}
.gl-collection-top{position:absolute;top:17px;left:15px;z-index:14;display:flex;gap:3px;max-width:85%;pointer-events:none}
.gl-collection-badge{display:inline-flex;padding:3px 6px;border-radius:4px;border:1px solid rgba(220,189,118,.40);background:rgba(12,17,22,.9);font-size:10px;color:#e9d2a0;white-space:nowrap}
.gl-collection-info{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;padding:2px 1px}
.gl-collection-info strong{font-size:12.5px;color:#e0e5e9;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gl-collection-info span{font-size:10.5px;color:#9ca6af;white-space:nowrap}
.gl-collection-card-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:1px}
.gl-collection-card-stats span{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:11px;color:#a7b0b8;font-variant-numeric:tabular-nums}
.gl-collection-card-stats svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1180px){.gl-build-summary,.gl-row-time{display:none!important}.gl-my-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.gl-collection-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.gl-build-row-single{flex-wrap:wrap!important}.gl-build-row-single .gl-build-line{width:100%!important}.gl-build-row-single .gl-row-actions{width:100%!important;flex-wrap:wrap!important}.gl-my-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.gl-collection-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.gl-gallery-toolbar{height:auto!important;min-height:45px!important;flex-wrap:wrap!important}.gl-gallery-toolbar-right{flex-wrap:wrap!important}.gl-collection-badge{font-size:9px}}


/* v0.6.12 RC1: Consolidated gallery UI, no changes to issued Theme geometry */
.gl-toast{top:22px!important;bottom:auto!important;transform:translate(-50%,-12px)!important;font-size:14px!important;line-height:1.5!important;max-width:min(600px,92vw)!important;border-radius:10px!important;padding:11px 16px!important;box-shadow:0 14px 38px rgba(0,0,0,.4)!important}
.gl-toast.show{transform:translate(-50%,0)!important}
.gl-hub-toolbar.workspace-toolbar{display:flex!important;flex-wrap:nowrap!important;overflow:visible!important}
.gl-hub-toolbar-left{flex-shrink:0!important;gap:7px!important}
.gl-hub-toolbar-right{flex:1 1 auto!important;min-width:0!important;overflow-x:auto!important;scrollbar-width:none!important;white-space:nowrap!important;flex-wrap:nowrap!important}
.gl-hub-toolbar-right::-webkit-scrollbar{display:none}
.gl-community-controls .gl-search-wrap{flex:0 1 175px!important;min-width:95px!important;max-width:175px!important}
.gl-community-controls .gl-filter-select{flex:0 0 110px!important;width:110px!important}
.gl-community-view-switch{flex:0 0 auto!important}
.gl-community-controls .gl-sort-group{flex:none!important}
.gl-build-row-single .gl-build-line{overflow:hidden}
.gl-rename-pencil{width:25px;height:25px;display:inline-grid;place-items:center;flex:none;border:0;border-radius:5px;background:transparent;color:#929ca5;cursor:pointer}
.gl-rename-pencil:hover,.gl-rename-pencil:focus-visible{background:rgba(199,170,108,.1);color:#ddc28b}
.gl-rename-pencil svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.gl-build-status{display:inline-flex;align-items:center;justify-content:center;min-width:70px;height:29px;border:1px solid rgba(216,230,228,.09);border-radius:8px;padding:0 9px;font-size:11.5px;font-weight:720;white-space:nowrap;cursor:default}
.gl-build-status.published{color:#98bca9;background:rgba(53,108,81,.075)}
.gl-build-status.withdrawn{color:#c7b48a;background:rgba(187,153,85,.06)}
.gl-build-status.unpublished{color:#84939e}
.gl-build-row-single .gl-build-title{max-width:220px!important}
.gl-modal-copy,.gl-modal-lines,.gl-modal-detail{font-size:14px!important;line-height:1.65!important}
.gl-modal-feature{font-size:15.5px!important}
.gl-gallery-panel.active{flex:1 1 auto!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;scrollbar-color:rgba(193,171,129,.28) transparent!important}
.gl-my-collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px 18px!important;padding:17px!important}
.gl-rack{overflow:visible!important}
.gl-my-collection-grid .gl-collection-card{padding:0 0 12px!important;border:1px solid rgba(214,224,233,.09);border-radius:10px;overflow:hidden;background:rgba(17,23,30,.53);gap:8px!important}
.gl-my-collection-grid .gl-collection-card>.gl-thumb-wrap{margin:0!important}
.gl-my-collection-grid .gl-collection-info,.gl-my-collection-grid .gl-collection-card-stats{padding:1px 12px!important}
.gl-collection-top{top:8px!important;left:8px!important}
.gl-gallery-toolbar-right{max-width:75%!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none;flex-wrap:nowrap!important}
.gl-gallery-toolbar-right::-webkit-scrollbar{display:none}
.gl-gallery-toolbar-right .gl-filter-select{flex:none!important}
.gl-private-preview .gl-card{cursor:default!important;transform:none!important}
.gl-private-preview .gl-face.back{transform:none!important;backface-visibility:visible!important}
.gl-private-preview .gl-back-watermark{display:none}
.gl-silver-back{color:#37424c!important}
.gl-silver-back .gl-back-label,.gl-silver-back .gl-back-head-right strong,.gl-silver-back .gl-back-head-left strong,.gl-silver-back .gl-body-item b,.gl-silver-back .gl-attr-row b,.gl-silver-back .gl-amp-item b{color:#2b3845!important}
.gl-silver-back .gl-back-label em,.gl-silver-back .gl-back-head-right span,.gl-silver-back .gl-back-head-left span,.gl-silver-back .gl-body-item span,.gl-silver-back .gl-amp-item,.gl-silver-back .gl-back-ps-title{color:#64717e!important}
.gl-silver-back .gl-tag{border-color:rgba(64,79,96,.28)!important;background:rgba(241,246,251,.45)!important}
.gl-silver-back .gl-back-head-right img{filter:grayscale(1) brightness(.46)!important}
.gl-private-state{font-size:12px;color:#adb7c2}
.gl-build-issued-preview .gl-preview-metrics{display:flex;align-items:center;gap:12px}
.gl-build-issued-preview .gl-preview-metrics svg{width:14px;height:14px}
.gl-build-issued-preview .gl-card-scene{position:relative;overflow:hidden;border-radius:4px}
.gl-build-issued-preview .gl-card-scene:after{content:"";position:absolute;z-index:9;inset:-10%;pointer-events:none;background:linear-gradient(110deg,transparent 36%,rgba(255,255,255,.03) 44%,rgba(255,247,222,.24) 51%,rgba(245,250,255,.09) 57%,transparent 64%);opacity:0;transform:translateX(-110%)}
.gl-build-issued-preview .gl-card-scene.gl-preview-shine:after{animation:glPreviewLightSweep .95s ease-out .22s 1 forwards}
@keyframes glPreviewLightSweep{0%{transform:translateX(-110%);opacity:0}18%{opacity:.8}82%{opacity:.8}100%{transform:translateX(110%);opacity:0}}
@media(max-width:1180px){.gl-my-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:780px){.gl-my-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:10px!important}.gl-hub-toolbar-right{overflow-x:auto!important}.gl-build-row-single .gl-build-title{max-width:48vw!important}.gl-build-row-single .gl-row-actions{width:100%;justify-content:flex-end}.gl-gallery-toolbar-right{max-width:none!important;width:100%}}
@media(prefers-reduced-motion:reduce){.gl-build-issued-preview .gl-card-scene.gl-preview-shine:after{animation:none!important;opacity:0!important}}

.gl-private-warning{margin:0;padding:8px 18px;color:#c9aa73;font-size:12px}

/* ===== v0.6.13 RC1 : ISSUE 01-08 consolidated ===== */

/* ISSUE 03: dedicated internal list scroll; the top control rail never scrolls with rows. */
body.build-overview-active #glBuildHub.gl-buildlib-root{
  display:flex!important;flex-direction:column!important;
  min-height:0!important;height:min(770px,calc(100dvh - 216px))!important;
  max-height:100%!important;overflow:hidden!important;padding-bottom:4px!important;
}
#glBuildHub .gl-hub-toolbar{flex:0 0 auto!important}
#glBuildHub .gl-panel{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#glBuildHub .gl-panel>.gl-list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:20px!important;scrollbar-width:thin;scrollbar-color:rgba(199,170,108,.4) transparent;overscroll-behavior:contain}
#glBuildHub .gl-panel>.gl-local-demo-note{flex:none}
#glBuildHub .gl-panel>.gl-list::-webkit-scrollbar{width:7px}
#glBuildHub .gl-panel>.gl-list::-webkit-scrollbar-thumb{background:rgba(199,170,108,.34);border-radius:9px}
#glBuildHub .gl-panel>.gl-list::-webkit-scrollbar-track{background:rgba(255,255,255,.012)}

/* ISSUE 04: publication is metadata, not a fourth action button. */
.gl-build-row-single .gl-build-status{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;min-width:0!important;height:auto!important;line-height:1.3!important;border:0!important;background:none!important;border-radius:0!important;padding:0!important;font-size:11px!important;font-weight:560!important;flex:none!important}
.gl-build-row-single .gl-build-status::before{content:"";display:block;width:5px;height:5px;flex:none;border-radius:50%;background:#69757f}
.gl-build-row-single .gl-build-status.published::before{background:#8fb69e}
.gl-build-row-single .gl-build-status.withdrawn::before{background:#c3aa76}
.gl-build-row-single .gl-build-status.unpublished::before{background:#6d7883}
.gl-build-row-single .gl-build-apply{border-color:rgba(194,172,121,.14)!important;background:rgba(187,152,92,.028)!important;color:#cbbd9b!important}
.gl-build-row-single .gl-build-delete{background:none!important;border-color:transparent!important;color:#a48781!important}
.gl-build-row-single .gl-build-delete:hover{background:rgba(180,91,83,.055)!important;color:#dea7a0!important}
.gl-build-line .gl-row-time{margin-left:auto;padding-left:12px!important}

/* ISSUE 07: compact horizontal metrics rail, respecting existing counting rules. */
.gl-collection-summary{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;min-height:52px!important;padding:5px 10px!important;border:1px solid rgba(201,177,127,.13)!important;border-radius:10px!important;background:linear-gradient(90deg,rgba(196,157,90,.047),rgba(255,255,255,.011))!important}
.gl-collection-stat{min-width:0!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:9px!important;border:0!important;border-radius:0!important;background:none!important;padding:6px 9px!important;white-space:nowrap}
.gl-collection-stat+.gl-collection-stat{border-left:1px solid rgba(218,228,238,.085)!important}
.gl-collection-stat span{font-size:11.5px!important;white-space:nowrap}
.gl-collection-stat strong{font-size:17px!important;line-height:1.1!important;white-space:nowrap}
.gl-collection-scope-note{padding:6px 3px 4px!important;font-size:10.5px!important}

/* ISSUE 06 + 08: preserve community thumbnail scale, remove physical card cage,
   and give the hover transform an uncropped painting layer. */
.gl-rack{overflow:visible!important;padding:10px 0 30px!important}
.gl-my-collection-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px 17px!important;padding:16px 18px 36px!important;overflow:visible!important}
.gl-my-collection-grid .gl-collection-card{min-width:0;isolation:auto!important;z-index:0;position:relative;padding:17px 16px 12px!important;border:0!important;border-radius:0!important;background:none!important;overflow:visible!important;gap:7px!important;transition:background .22s ease}
.gl-my-collection-grid .gl-collection-card:hover,.gl-my-collection-grid .gl-collection-card:focus-within{z-index:3!important;background:radial-gradient(ellipse at 50% 44%,rgba(195,162,102,.028),transparent 72%)!important}
.gl-my-collection-grid .gl-collection-card>.gl-thumb-wrap{position:relative!important;overflow:visible!important;z-index:1;border:0!important;background:none!important;padding:0!important}
.gl-my-collection-grid .gl-collection-card>.gl-thumb-wrap::after{display:none!important}
.gl-my-collection-grid .gl-collection-card .gl-thumb{position:relative!important;z-index:2!important;transform-origin:center center!important}
.gl-my-collection-grid .gl-collection-card:hover .gl-thumb,
.gl-my-collection-grid .gl-collection-card .gl-thumb:hover,
.gl-my-collection-grid .gl-collection-card .gl-thumb:focus-visible{transform:translateY(-5px) scale(1.014) rotateX(.8deg) rotateY(-.8deg)!important;filter:brightness(1.045) drop-shadow(0 14px 24px rgba(0,0,0,.35))!important}
.gl-my-collection-grid .gl-collection-card .gl-thumb::before{z-index:2!important}
.gl-my-collection-grid .gl-collection-card:hover .gl-thumb::before,
.gl-my-collection-grid .gl-collection-card .gl-thumb:focus-within::before{box-shadow:0 0 0 1px rgba(244,215,158,.16),0 0 14px 1px var(--gl-card-halo),0 0 23px rgba(190,153,87,.17)!important}
.gl-my-collection-grid .gl-collection-info{padding:3px 0 0!important;gap:5px!important}
.gl-my-collection-grid .gl-collection-card-stats{padding:1px 0 0!important}
.gl-my-collection-grid .gl-collection-card-stats span{font-size:10.5px!important}
.gl-my-collection-grid .gl-collection-top{top:22px!important;left:21px!important;z-index:5!important}
.gl-my-collection-grid .gl-thumb-hover{z-index:11}

/* ISSUE 01: silver preview shares exact v1.0.7 eight-zone Back geometry (1536×1024).
   The legacy renderer is only used for unpublished silver archives; nine issued
   themes keep their immutable approved iframe geometry and artwork. */
.gl-silver-back{font-family:"Noto Serif SC","Source Han Serif SC","Songti SC",serif}
.gl-silver-back .gl-back-head-left{left:3.255208%!important;top:5.664062%!important;width:44.401042%!important;height:11.523438%!important}
.gl-silver-back .gl-back-head-right{left:48.502604%!important;top:5.664062%!important;width:48.697917%!important;height:11.523438%!important}
.gl-silver-back .gl-back-body{left:3.255208%!important;top:18.359375%!important;width:24.544271%!important;height:31.835938%!important}
.gl-silver-back .gl-back-attrs{left:28.450521%!important;top:18.359375%!important;width:68.750000%!important;height:31.835938%!important}
.gl-silver-back .gl-back-ps{left:3.255208%!important;top:51.464844%!important;width:24.544271%!important;height:39.746094%!important}
.gl-silver-back .gl-back-mastery{left:28.450521%!important;top:51.464844%!important;width:68.750000%!important;height:23.925781%!important}
.gl-silver-back .gl-back-fac{left:28.450521%!important;top:76.562500%!important;width:35.286458%!important;height:14.648438%!important}
.gl-silver-back .gl-back-amp{left:64.518229%!important;top:76.562500%!important;width:32.682292%!important;height:14.648438%!important}
/* Consistent type scale/containment inside the frozen zones. */
.gl-silver-back .gl-back-box{overflow:hidden!important}
.gl-silver-back .gl-back-body,.gl-silver-back .gl-back-attrs,.gl-silver-back .gl-back-ps,.gl-silver-back .gl-back-mastery,.gl-silver-back .gl-back-fac,.gl-silver-back .gl-back-amp{padding:1.05% 1.4%!important}
.gl-silver-back .gl-back-label{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(10px,1.28vw,21px)!important;line-height:1.05!important;margin-bottom:6px!important}
.gl-silver-back .gl-back-label em{font-family:"Noto Serif SC",serif;font-size:.72em!important}
.gl-silver-back .gl-attr-cols{grid-template-columns:repeat(6,minmax(0,1fr));height:calc(100% - 25px)!important}
.gl-silver-back .gl-body-grid{gap:4px 9px!important}
.gl-silver-back .gl-back-ps-grid{gap:4px!important}
.gl-silver-back .gl-fac-tags{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px!important}
.gl-silver-back .gl-fac-tags .gl-tag{min-width:0;overflow:hidden;text-overflow:ellipsis;justify-content:center}
.gl-silver-back .gl-amp-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important}

/* ISSUE 02: wait for the actual renderer completion before showing the flipping card. */
.gl-preview.gl-preview-pending .gl-card-scene{opacity:0!important;visibility:hidden!important}
.gl-preview.gl-preview-ready .gl-card-scene{opacity:1;visibility:visible;transition:opacity .22s ease}
.gl-build-issued-preview .gl-card-scene{overflow:visible!important;border-radius:0!important}
.gl-build-issued-preview .gl-card-scene:after{inset:0!important;z-index:9!important}
.gl-post-draw-preview .gl-preview-dock{border-top:1px solid rgba(211,183,122,.12)}

@media(max-width:1180px){
  .gl-my-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .gl-collection-stat{gap:5px!important;padding:6px 4px!important}
  .gl-collection-stat span{font-size:10.5px!important}.gl-collection-stat strong{font-size:15px!important}
}
@media(max-width:780px){
  body.build-overview-active #glBuildHub.gl-buildlib-root{height:calc(100dvh - 185px)!important;max-height:100%!important}
  .gl-build-line .gl-row-time{display:none!important}
  .gl-collection-summary{grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:4px 3px!important}
  .gl-collection-stat{flex-direction:column!important;gap:3px!important;padding:5px 2px!important}
  .gl-collection-stat span{font-size:9.5px!important}.gl-collection-stat strong{font-size:15px!important}
  .gl-my-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 5px!important;padding:10px 5px 25px!important}
  .gl-my-collection-grid .gl-collection-card{padding:11px 9px 10px!important}
  .gl-my-collection-grid .gl-collection-top{top:15px!important;left:13px!important}
  .gl-collection-info span{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){
  .gl-preview.gl-preview-ready .gl-card-scene,.gl-my-collection-grid .gl-collection-card{transition:none!important}
}


/* === v0.6.14 RC1 | ISSUE-09: Gallery filter controls must NOT inherit global select width:100%. === */
.gl-gallery-toolbar.workspace-toolbar{overflow:visible!important}
.gl-gallery-toolbar-right{
 display:flex!important;align-items:center!important;gap:10px!important;
 flex:0 1 auto!important;width:auto!important;max-width:none!important;
 min-width:0!important;margin-left:auto!important;overflow:visible!important;
 white-space:nowrap!important;flex-wrap:nowrap!important;
}
.gl-gallery-toolbar-right .gl-sort-field{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;min-width:0!important}
.gl-gallery-toolbar-right .gl-filter-select{
 box-sizing:border-box!important;display:block!important;width:150px!important;min-width:0!important;
 max-width:none!important;flex:0 0 150px!important;height:34px!important;
 padding:0 30px 0 11px!important;white-space:nowrap!important;
 font-size:12px!important;text-overflow:ellipsis!important;
}
.gl-gallery-toolbar-right [data-gl-gallery-sort]{width:154px!important;flex-basis:154px!important}
.gl-gallery-toolbar-right [data-gl-gallery-rarity],
.gl-gallery-toolbar-right [data-gl-favorite-rarity]{width:152px!important;flex-basis:152px!important}
.gl-gallery-toolbar-right [data-gl-favorite-sort]{width:150px!important;flex-basis:150px!important}
.gl-gallery-toolbar-right [data-gl-favorite-archetype]{width:140px!important;flex-basis:140px!important}
@media(max-width:1120px){
 .gl-gallery-toolbar.workspace-toolbar{height:auto!important;min-height:46px!important;flex-wrap:wrap!important;gap:8px 12px!important}
 .gl-gallery-toolbar-right{width:100%!important;max-width:100%!important;margin-left:0!important;justify-content:flex-end!important;flex-wrap:wrap!important}
}
@media(max-width:610px){
 .gl-gallery-toolbar-right{justify-content:flex-start!important}
 .gl-gallery-toolbar-right .gl-filter-select{width:min(42vw,150px)!important;flex-basis:min(42vw,150px)!important}
}

/* === v0.6.14 RC1 | ISSUE-10: Gallery is a mutually exclusive editor view. === */
body.gl-gallery-active #advancedPanel,
body.gl-gallery-active #attributes,
body.gl-gallery-active #playstylesPanel,
body.gl-gallery-active #specializationPanel,
body.gl-gallery-active #playerCardPanel,
body.gl-gallery-active #diyPanel,
body.gl-gallery-active #attributeDesktopToolbar,
body.gl-gallery-active #emptyState,
body.gl-gallery-active .feature-panel:not(#glGalleryPanel){
 display:none!important;visibility:hidden!important;
}
body.gl-gallery-active #glGalleryPanel.active{display:block!important;visibility:visible!important}

/* === v0.6.14 RC1 | ISSUE-11: Three subtle group dividers, same one-row nav. === */
.editor-view-tabs .editor-view-sep,
body.attributes-workspace-compact .editor-view-tabs .editor-view-sep{
 align-self:center!important;flex:0 0 1px!important;display:block!important;
 width:1px!important;height:22px!important;min-height:22px!important;
 margin:0 19px!important;padding:0!important;
 background:rgba(177,150,99,.34)!important;
 font-size:0!important;line-height:0!important;color:transparent!important;
}
.editor-view-tabs .editor-view-tab,
body.attributes-workspace-compact .editor-view-tabs .editor-view-tab{
 padding-left:11px!important;padding-right:11px!important;
}
.editor-view-tabs .editor-view-tab.active::after,
body.attributes-workspace-compact .editor-view-tabs .editor-view-tab.active::after{
 left:11px!important;right:11px!important;
}

/* ISSUE-01: silver Back now renders the APPROVED frozen Back iframe; old
   gl-back layout classes are deliberately bypassed (do not resurrect them). */
.gl-silver-approved-back>.wp-v06-viewport{position:absolute;inset:0}
.gl-private-preview.gl-preview-pending .gl-card-scene{opacity:0!important;visibility:hidden!important}
.gl-private-preview.gl-preview-ready .gl-card-scene{opacity:1!important;visibility:visible!important}


/* === v0.6.15 RC1 | ISSUE-12: fixed Gallery controls & stats, independent card scroll. ===
   Keep the root in the editor's flex allocation; NEVER pin with position:fixed.
   This also prevents the former native-page/Gallery view overlap from returning. */
body.gl-gallery-active #glGalleryPanel.active{
  display:flex!important;flex-direction:column!important;
  flex:1 1 auto!important;min-height:0!important;max-height:100%!important;
  overflow:hidden!important;
}
#glGalleryPanel .gl-gallery-fixed{
  position:relative;z-index:3;flex:0 0 auto;min-width:0;
  padding:0 0 9px;
  background:linear-gradient(180deg,#0b1118 0%,#0b1118 90%,rgba(11,17,24,.95) 100%);
  border-bottom:1px solid rgba(197,172,112,.09);
}
#glGalleryPanel .gl-gallery-fixed .gl-gallery-toolbar{margin-bottom:9px!important}
#glGalleryPanel .gl-gallery-fixed .gl-collection-summary{margin:0!important}
#glGalleryPanel .gl-gallery-scroll{
  flex:1 1 auto;min-height:0;min-width:0;
  overflow-y:auto;overflow-x:hidden;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;scrollbar-color:rgba(199,170,108,.39) transparent;
  padding:1px 3px 28px;
}
#glGalleryPanel .gl-gallery-scroll::-webkit-scrollbar{width:7px}
#glGalleryPanel .gl-gallery-scroll::-webkit-scrollbar-thumb{background:rgba(199,170,108,.35);border-radius:10px}
#glGalleryPanel .gl-gallery-scroll::-webkit-scrollbar-track{background:transparent}
#glGalleryPanel .gl-gallery-scroll:focus-visible{outline:1px solid rgba(199,170,108,.4);outline-offset:-1px}
#glGalleryPanel .gl-gallery-scroll .gl-collection-scope-note{margin-top:4px}
/* ISSUE-13: the uploaded transparent logo is cropped to visible bounds.
   Use true intrinsic aspect ratio rather than a square CSS object-fit box. */
.gl-ceremony-brand{
  width:clamp(180px,19vw,252px)!important;height:auto!important;
  max-width:82%!important;max-height:45%!important;object-fit:contain!important;
  filter:drop-shadow(0 0 18px rgba(219,169,86,.18))!important;
}
@media(max-width:780px){
 #glGalleryPanel .gl-gallery-fixed{padding-bottom:7px}
 #glGalleryPanel .gl-gallery-scroll{padding-bottom:36px}
 .gl-ceremony-brand{width:clamp(145px,42vw,216px)!important}
}

/* === v0.6.17 RC1 | ISSUE-18: uniform navigation geometry across editor views. ===
   Non-attribute CSS used 16px side padding while Attribute / Gallery used 11px.
   Only normalize button geometry; preserve selected underline, four groups and 3 separators. */
@media (min-width:761px){
  body .editor-view-tabs .editor-view-tab,
  body.attributes-workspace-compact .editor-view-tabs .editor-view-tab,
  body.non-attribute-editor-active .editor-view-tabs .editor-view-tab,
  body.gl-gallery-active .editor-view-tabs .editor-view-tab{
    box-sizing:border-box!important;
    padding-left:11px!important;
    padding-right:11px!important;
    flex-shrink:0!important;
  }
  body .editor-view-tabs .editor-view-sep,
  body.attributes-workspace-compact .editor-view-tabs .editor-view-sep,
  body.non-attribute-editor-active .editor-view-tabs .editor-view-sep,
  body.gl-gallery-active .editor-view-tabs .editor-view-sep{
    flex:0 0 1px!important;
    width:1px!important;
    margin-left:19px!important;
    margin-right:19px!important;
  }
}


/* === v0.6.18 RC1 | ISSUE-21: balance the short navigation hit targets. ===
   Shared geometry for every editor page; keep four groups and exactly three separators.
   Larger clickable areas never change the active underline or the visual theme. */
@media (min-width:761px){
  body .editor-view-tabs,
  body.attributes-workspace-compact .editor-view-tabs,
  body.non-attribute-editor-active .editor-view-tabs,
  body.gl-gallery-active .editor-view-tabs{
    gap:6px!important;
  }
  body .editor-view-tabs .editor-view-sep,
  body.attributes-workspace-compact .editor-view-tabs .editor-view-sep,
  body.non-attribute-editor-active .editor-view-tabs .editor-view-sep,
  body.gl-gallery-active .editor-view-tabs .editor-view-sep{
    margin-left:16px!important;
    margin-right:16px!important;
  }
  body .editor-view-tabs .editor-view-tab[data-editor-view="specialization"],
  body .editor-view-tabs .editor-view-tab[data-editor-view="mastery"],
  body.attributes-workspace-compact .editor-view-tabs .editor-view-tab[data-editor-view="specialization"],
  body.attributes-workspace-compact .editor-view-tabs .editor-view-tab[data-editor-view="mastery"],
  body.non-attribute-editor-active .editor-view-tabs .editor-view-tab[data-editor-view="specialization"],
  body.non-attribute-editor-active .editor-view-tabs .editor-view-tab[data-editor-view="mastery"],
  body.gl-gallery-active .editor-view-tabs .editor-view-tab[data-editor-view="specialization"],
  body.gl-gallery-active .editor-view-tabs .editor-view-tab[data-editor-view="mastery"]{
    box-sizing:border-box!important;
    min-width:84px!important;
    text-align:center!important;
  }
}

/* Keep the preview frame steady while a complete card face is being rendered. */
.gl-review-card-shell .gl-preview-stage{position:relative}
.gl-review-card-shell .gl-preview-summary{min-height:2.3rem}
.gl-review-card-shell.gl-preview-pending :is(.gl-preview-actions,.gl-preview-metrics){visibility:hidden}
.gl-review-card-shell.gl-preview-ready :is(.gl-preview-actions,.gl-preview-metrics){animation:fc-preview-footer-in .22s ease both}
@keyframes fc-preview-footer-in{from{opacity:0}to{opacity:1}}
.gl-card-load-state{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:12px;color:#aeb9c1;font-size:13px}
.gl-card-load-track,.fc-list-loading>span{display:block;width:132px;height:3px;overflow:hidden;border-radius:3px;background:#b3a06e30}
.gl-card-load-track::after,.fc-list-loading>span::after{content:"";display:block;width:45%;height:100%;border-radius:inherit;background:#ceb46c;animation:fc-loading-sweep 1.2s ease-in-out infinite alternate}
.gl-card-load-state[hidden],.gl-card-load-state [hidden]{display:none}
@keyframes fc-loading-sweep{from{transform:translateX(-15%)}to{transform:translateX(140%)}}
@media(prefers-reduced-motion:reduce){.gl-card-load-track::after,.fc-list-loading>span::after,.gl-review-card-shell.gl-preview-ready :is(.gl-preview-actions,.gl-preview-metrics){animation:none}}
.fc-list-loading{min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#aeb9c1}
body .identity-badges .identity-badge.cnpl{width:16px;height:16px}

.gl-review-card-shell .gl-preview-top-right{display:flex;align-items:center;flex:none;gap:12px}
.gl-review-card-shell .gl-preview-metrics{gap:2px}
.gl-review-card-shell .gl-preview-metrics>span{min-width:35px;padding-inline:6px}
.gl-review-card-shell .gl-preview-actions .gl-card-tool{display:grid;place-items:center;width:34px;padding:0;flex:none}
.gl-card-tool svg{width:17px;height:17px}
.gl-card-tool.is-exporting svg{animation:fc-card-tool-wait .8s ease-in-out infinite alternate}
@keyframes fc-card-tool-wait{to{opacity:.25}}
@media(prefers-reduced-motion:reduce){.gl-card-tool.is-exporting svg{animation:none;opacity:.5}}
@media(min-width:761px){
 .gl-review-card-shell{--fc-card-bar-height:58px}
 .gl-review-card-shell :is(.gl-preview-top,.gl-preview-dock){box-sizing:border-box;height:var(--fc-card-bar-height);min-height:var(--fc-card-bar-height)!important;padding:6px 14px!important}
 .gl-review-card-shell .gl-preview-dock{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 .gl-review-card-shell .gl-preview-summary{min-width:0}
 .gl-review-card-shell .gl-preview-summary :is(strong,span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .gl-review-card-shell .gl-preview-actions{grid-column:auto;border-top:0;padding-top:0;flex-wrap:nowrap}
}
.fc-r3-community-row:active,.fc-cloud-build[role=button]:active{filter:brightness(1.13)}
.fc-r3-build-actions button:active,.gl-review-card-shell .gl-preview-actions button:active{transform:translateY(1px) scale(.98)}

.wp-direct-thumb[data-thumb-state="pending"]{background:var(--gl-line,rgba(184,200,212,.08))}
.wp-direct-thumb:is([data-thumb-state="pending"],[data-thumb-state="error"]) .wp-v06-fixed{visibility:hidden}
.wp-direct-thumb[data-thumb-state="error"]{display:grid;place-items:center}
.wp-thumb-unavailable{font-size:12px;color:#a1aeb6}
.gl-collection-card:has([data-thumb-state="pending"]) :is(.gl-collection-info,.gl-collection-card-stats,.gl-collection-top),
.fc-cloud-native-tile:has([data-thumb-state="pending"]) .fc-cloud-native-tile-meta{visibility:hidden}
