/* Preview only: cloud-backed Gallery data; do not mutate local Gallery styles. */
.fc-cloud-root{padding:12px 16px;color:#d8dce1;min-height:280px;font:12px/1.65 system-ui,sans-serif}
.fc-cloud-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:8px}
.fc-cloud-toolbar button,.fc-cloud-build button,.fc-cloud-pages button,.fc-cloud-actions button{cursor:pointer;border:1px solid #55504c;border-radius:5px;background:#282829;color:#ded5bc;padding:6px 10px;font:inherit}
.fc-cloud-toolbar button.active{background:#423821;border-color:#987e42;color:#f8e1a3}
.fc-cloud-emphasis{border-color:#c09d59!important;background:#584221!important;color:#fff1c5!important}
.fc-cloud-note,.fc-cloud-muted{color:#aaabae;font-size:11px;margin:5px 0 12px}
.fc-cloud-row{width:100%;background:rgba(255,255,255,.02);border:0;border-bottom:1px solid #414141;color:#dedede;padding:12px 10px;text-align:left;display:flex;align-items:center;gap:15px;justify-content:space-between;cursor:pointer}
.fc-cloud-row:hover{background:rgba(188,150,69,.10)}.fc-cloud-row-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.fc-cloud-row-main>strong{font-size:13px;color:#f1e6cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-cloud-row-main small,.fc-cloud-row-right small{font-size:11px;color:#aaa}
.fc-cloud-tops{display:flex;gap:12px;flex-wrap:wrap;color:#a4a4a4}.fc-cloud-tops strong{color:#e9cc80;margin-left:3px}
.fc-cloud-row-right{display:flex;flex-direction:column;text-align:right;white-space:nowrap;font-size:12px;gap:3px}
.fc-cloud-state{color:#b48d6a}.fc-cloud-empty,.fc-cloud-loading,.fc-cloud-error{padding:30px;text-align:center;color:#aaa}
.fc-cloud-error{color:#e5aaa3}.fc-cloud-empty a{color:#dbbd77}
.fc-cloud-build{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 10px;border-bottom:1px solid #49423b}
.fc-cloud-build>span{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.fc-cloud-build>span:first-child{flex-direction:column;align-items:flex-start}
.fc-cloud-build strong{color:#f6e5bb}.fc-cloud-build small{font-size:11px;color:#a4a4a4}
.fc-cloud-pages{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px;color:#a9a9a9}
.fc-cloud-pages button:disabled{opacity:.35;cursor:default}
.fc-cloud-modal-backdrop{position:fixed;inset:0;z-index:2147483200;background:rgba(0,0,0,.84);display:flex;justify-content:center;align-items:center;padding:15px}
.fc-cloud-modal-backdrop[hidden]{display:none!important}.fc-cloud-modal{position:relative;background:#15191d;border:1px solid #8b7548;border-radius:8px;box-shadow:0 18px 75px #000;max-height:90vh;overflow-y:auto;width:min(940px,100%);padding:26px;color:#e6e6e6;font:12px/1.6 system-ui,sans-serif}
.fc-cloud-modal h3{font-size:19px;color:#e8cc91;margin:0 0 6px}.fc-cloud-modal h4{font-size:13px;color:#e6d4ad;margin:16px 0 6px}
.fc-cloud-x{position:absolute;right:15px;top:10px;border:0;background:transparent;color:#eee;font-size:25px;cursor:pointer}
.fc-cloud-preview-head{display:flex;gap:26px;align-items:center;flex-wrap:wrap}
.fc-cloud-preview-head>div:nth-child(2){display:flex;flex-direction:column;gap:6px}
.fc-cloud-preview-head strong{font-size:20px}.fc-cloud-preview-head small{font-size:11px;color:#bbb}
.fc-cloud-thumb{width:185px;max-width:100%;overflow:hidden}.fc-cloud-mini{width:150px;height:115px;display:grid;place-items:center;border:1px solid #615132;border-radius:6px;color:#e1c18a;background:#29231a}
.fc-cloud-attrs{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:7px;padding:10px 0}
.fc-cloud-attrs span{display:flex;justify-content:space-between;gap:6px;border-bottom:1px solid #404040}.fc-cloud-attrs strong{color:#e9cf8c}
.fc-cloud-locked,.fc-cloud-lock-details{border:1px dashed #695941;padding:12px;border-radius:5px;color:#c3b69c}
.fc-cloud-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
@media(max-width:700px){.fc-cloud-root{padding:8px}.fc-cloud-row{flex-direction:column;align-items:stretch}.fc-cloud-row-right{flex-direction:row;text-align:left;flex-wrap:wrap}.fc-cloud-preview-head{gap:10px}.fc-cloud-modal{padding:18px}}
.fc-cloud-card-stage{width:min(570px,100%);margin:18px auto;position:relative}
.fc-cloud-card-stage .gl-card-scene{margin:0 auto}
.fc-cloud-back-lock{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;text-align:center;padding:35px;background:rgba(8,9,12,.85);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font:600 14px/1.7 system-ui,sans-serif;color:#eed8aa}
.fc-cloud-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px;padding:18px 4px}
.fc-cloud-gallery-card{background:#202125;color:#e7dbbe;border:1px solid #4c473d;border-radius:7px;padding:9px;cursor:pointer;text-align:left;min-width:0;overflow:hidden}
.fc-cloud-gallery-card:hover{border-color:#ac8c50;transform:translateY(-1px)}
.fc-cloud-gallery-card .wp-v06-viewport{max-width:100%;margin:0 auto}
.fc-cloud-gallery-footer{display:flex;flex-direction:column;gap:4px;margin:7px 4px 2px}
.fc-cloud-gallery-footer strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-cloud-gallery-footer small{font-size:10px;color:#a4a3a0}
.fc-cloud-gallery-fallback{min-height:155px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;background:linear-gradient(140deg,#302d29,#161718);border:1px solid #786340;border-radius:5px}

/* RC1.6 Preview-only cloud Gallery containment fix.
   A nine-theme thumbnail is a 1536 x 1024 absolutely positioned canvas;
   without a positioned 3:2 host it escapes to the page and obscures actions. */
.fc-cloud-gallery-card{position:relative;display:flex;flex-direction:column;min-width:0;isolation:isolate}
.fc-cloud-gallery-art{position:relative;display:block;width:100%;aspect-ratio:3/2;overflow:hidden;flex:none;isolation:isolate;border-radius:4px}
.fc-cloud-gallery-art>.wp-v06-viewport,
.fc-cloud-thumb>.wp-v06-viewport{position:absolute;inset:0;width:100%;height:100%}
.fc-cloud-gallery-art>.fc-cloud-gallery-fallback{width:100%;height:100%;min-height:0;box-sizing:border-box}
.fc-cloud-gallery-footer{position:relative;z-index:1;min-width:0;width:100%;box-sizing:border-box}
/* The same absolute canvas is used in the public detail's header thumbnail. */
.fc-cloud-modal .fc-cloud-thumb{position:relative;display:block;flex:0 0 185px;width:185px;max-width:100%;aspect-ratio:3/2;height:auto;overflow:hidden;isolation:isolate;border-radius:4px}
/* The existing Gallery scene has global !important widths intended for a
   full-screen preview; the cloud detail lives in a 940px scrollable modal. */
.fc-cloud-modal .fc-cloud-card-stage{position:relative;display:block;flex:none;width:min(570px,100%);max-width:100%;padding:0!important;box-sizing:border-box;overflow:hidden}
.fc-cloud-modal .fc-cloud-card-stage .gl-card-scene{width:100%!important;max-width:100%!important;aspect-ratio:3/2;margin:0 auto}
.fc-cloud-modal .fc-cloud-actions{position:relative;z-index:2}

/* RC1.7 PREVIEW: Re-use the accepted local Gallery v0.6.18 furniture.
   No theme geometry or card art is edited. Data and event handlers stay cloud-backed. */
#fcCloudCommunityRoot.fc-cloud-root{font:inherit;min-height:0;padding:0;color:inherit}
.fc-cloud-subnav{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:8px 11px;border-bottom:1px solid rgba(225,231,239,.08);background:rgba(255,255,255,.008)}
.fc-cloud-subnav button{appearance:none;border:0;background:none;color:#87919b;padding:6px 11px;border-radius:6px;font-size:11.5px;font-weight:680;line-height:1.4;cursor:pointer}
.fc-cloud-subnav button:hover{background:rgba(218,196,140,.07);color:#dccb9d}
.fc-cloud-subnav button.active{background:rgba(189,155,82,.11);box-shadow:inset 0 0 0 1px rgba(185,154,84,.26);color:#e8d4a8}
.fc-cloud-subnav button.fc-cloud-subnav-refresh{margin-left:auto;color:#98a0a8}
.fc-cloud-brief{color:#727e88;font-size:10px;margin:7px 12px 6px}
.fc-cloud-results{min-width:0;max-width:100%}
#fcCloudCommunityRoot .gl-list{min-height:100px}
#fcCloudCommunityRoot .fc-cloud-native-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:15px;padding:12px 15px;width:100%;border:0;border-bottom:1px solid rgba(218,228,238,.075);text-align:left;background:transparent;cursor:pointer;color:#dfe6ec;border-radius:0;font:inherit}
#fcCloudCommunityRoot .fc-cloud-native-row:hover{background:rgba(214,185,120,.045)}
.fc-cloud-native-row .gl-community-line1{display:flex;align-items:center;gap:8px;min-width:0}
.fc-cloud-native-row .gl-community-line1 .gl-community-title{min-width:0;font-size:13.5px}
.fc-cloud-native-row .gl-community-line2{display:block;max-width:100%;font-size:10.5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.fc-cloud-line-divider{padding:0 6px;color:#535d67}
.fc-cloud-native-row-metrics{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:nowrap}
.fc-cloud-native-row-metrics strong{font-size:12px;color:#d7c297}
.fc-cloud-native-row-metrics small{font-size:10px;color:#83909a}
#glGalleryPanel .fc-cloud-gallery-scroll{width:100%;padding:0 0 28px}
#glGalleryPanel .fc-cloud-gallery-scroll .gl-rack{margin-top:4px}
#glGalleryPanel .fc-cloud-native-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
#glGalleryPanel .fc-cloud-native-tile{min-width:0;box-sizing:border-box;isolation:isolate;overflow:hidden}
#glGalleryPanel .fc-cloud-native-tile .gl-thumb{width:100%;display:block;position:relative;aspect-ratio:3/2;min-width:0}
#glGalleryPanel .fc-cloud-native-tile .gl-thumb-card{position:absolute;inset:0;overflow:hidden;contain:layout paint;isolation:isolate}
#glGalleryPanel .fc-cloud-native-tile .gl-thumb-card>.wp-v06-viewport{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;contain:layout paint}
.fc-cloud-native-tile-meta{display:flex;flex-direction:column;gap:3px;padding:7px 2px 1px;min-width:0}
.fc-cloud-native-tile-meta strong{color:#dce2e5;font-size:11.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-cloud-native-tile-meta span{color:#77818b;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-cloud-modal-backdrop{z-index:2147483200;padding:12px;overflow:hidden;box-sizing:border-box}
.fc-cloud-modal-backdrop .fc-cloud-native-modal{width:min(1180px,96vw);max-height:94vh;padding:0;overflow:hidden;border:1px solid rgba(220,198,145,.20);border-radius:14px;display:flex;flex-direction:column;background:#0c1117}
.fc-cloud-native-modal>.fc-cloud-x{position:absolute;z-index:5;right:9px;top:5px;width:32px;height:32px;color:#aeb7c0;line-height:1;border-radius:6px}
.fc-cloud-native-modal>.fc-cloud-x:hover{background:rgba(255,255,255,.07);color:#fff}
.fc-cloud-native-preview.gl-preview{width:100%;max-width:100%;max-height:94vh;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:0;border-radius:0;box-shadow:none;background:#0b1117}
.fc-cloud-native-preview .gl-preview-top{flex:0 0 38px;height:38px;min-height:38px;padding-right:46px}
.fc-cloud-native-preview .fc-cloud-native-stage{flex:1 1 auto;min-height:0;width:100%;max-width:100%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:10px 20px!important;overflow:hidden}
.fc-cloud-native-preview .fc-cloud-native-stage .gl-card-scene{width:min(980px,100%,calc(65vh * 1.5))!important;max-width:100%!important;aspect-ratio:3/2;flex-shrink:1;min-width:0;min-height:0;margin:0 auto}
.fc-cloud-native-preview .gl-preview-dock{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 15px;min-height:68px;box-sizing:border-box}
.fc-cloud-native-preview .gl-preview-summary span{margin-top:2px;white-space:normal}
.fc-cloud-native-preview .fc-cloud-native-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:600px}
.fc-cloud-native-preview .fc-cloud-native-actions button{height:32px;line-height:1.1;min-width:54px;padding:0 10px!important;border-radius:7px!important;white-space:nowrap;font-size:11.5px;cursor:pointer}
.fc-cloud-native-preview .fc-cloud-native-details{flex:0 0 auto;border-top:1px solid rgba(255,255,255,.065);background:#0f151b;font-size:11px}
.fc-cloud-native-preview .fc-cloud-native-details summary{padding:8px 16px;color:#adb6bf;cursor:pointer;list-style-position:inside}
.fc-cloud-native-preview .fc-cloud-native-detail-body{padding:0 18px 12px;max-height:32vh;overflow:auto;color:#aeb9c2}
.fc-cloud-native-preview .fc-cloud-native-top4{display:flex;gap:10px;flex-wrap:wrap;color:#c5b188}.fc-cloud-native-top4 b{color:#f2e3c2}
.fc-cloud-native-preview .fc-cloud-attrs{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));max-width:100%}
.fc-cloud-native-fallback{min-height:300px;display:flex;flex-direction:column;gap:20px;justify-content:center;align-items:center;color:#ebd8b6}
#fcCloudCommunityRoot .fc-cloud-build{padding:12px 16px;min-height:62px;border-bottom:1px solid rgba(218,228,238,.07)}
#fcCloudCommunityRoot .fc-cloud-build>span:last-child{justify-content:flex-end}
#fcCloudCommunityRoot .fc-cloud-pages{padding:12px 0 18px}
@media(max-width:1180px){#glGalleryPanel .fc-cloud-native-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  #glGalleryPanel .fc-cloud-native-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fc-cloud-subnav{gap:2px;padding:7px 5px}.fc-cloud-subnav button{font-size:10px;padding:5px 7px}
  #fcCloudCommunityRoot .fc-cloud-native-row{grid-template-columns:1fr;padding:10px}
  .fc-cloud-native-row-metrics{flex-direction:row;align-items:center;gap:10px}
  .fc-cloud-modal-backdrop{padding:4px}
  .fc-cloud-modal-backdrop .fc-cloud-native-modal{width:98vw;max-height:96vh}
  .fc-cloud-native-preview .fc-cloud-native-stage{padding:6px!important}
  .fc-cloud-native-preview .fc-cloud-native-stage .gl-card-scene{width:min(95vw,calc(62vh * 1.5))!important}
  .fc-cloud-native-preview .gl-preview-dock{grid-template-columns:1fr;gap:7px;padding:8px}
  .fc-cloud-native-preview .fc-cloud-native-actions{justify-content:flex-start;max-width:100%}
  .fc-cloud-native-preview .fc-cloud-native-actions button{height:28px;font-size:10px;padding:0 7px!important}
}
@media(prefers-reduced-motion:reduce){.fc-cloud-native-preview .gl-card{transition:none}}

/* R7: restore the accepted Build Library workspace toolbar, without a second simplified nav. */
#fcCloudCommunityRoot .fc-cloud-integrated-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-height:60px;padding:8px 12px;border-bottom:1px solid rgba(208,184,130,.16)}
#fcCloudCommunityRoot .fc-cloud-integrated-toolbar .fc-cloud-subnav{display:flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;flex-wrap:wrap}
#fcCloudCommunityRoot .fc-cloud-integrated-tools{display:flex;flex:1;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
#fcCloudCommunityRoot .fc-cloud-integrated-tools .gl-search-wrap{min-width:180px;max-width:260px;flex:1 1 180px}
#fcCloudCommunityRoot .fc-cloud-integrated-tools .gl-search{width:100%;min-width:0;box-sizing:border-box}
#fcCloudCommunityRoot .fc-cloud-integrated-tools .gl-filter-select{max-width:152px;min-height:33px}
#fcCloudCommunityRoot .fc-cloud-integrated-tools .gl-toolbar-save{white-space:nowrap;min-height:33px;cursor:pointer;padding:6px 14px;border-radius:7px}
#fcCloudCommunityRoot .fc-cloud-integrated-tools .fc-cloud-refresh{white-space:nowrap;min-height:33px;cursor:pointer}
#fcCloudCommunityRoot .fc-cloud-build [data-fc-local-key]{color:#b8b7b0;white-space:nowrap}
#fcCloudCommunityRoot .fc-cloud-results{min-height:130px}
#fcCloudCommunityRoot .fc-cloud-results .fc-cloud-loading{min-height:112px;display:grid;place-items:center}
@media(max-width:1000px){#fcCloudCommunityRoot .fc-cloud-integrated-toolbar{align-items:flex-start}#fcCloudCommunityRoot .fc-cloud-integrated-tools{justify-content:flex-start;width:100%;}#fcCloudCommunityRoot .fc-cloud-integrated-tools .gl-search-wrap{max-width:none}}

/* R9.3: Cloud publish reveal, presentation-only (server draw is immutable). */
.fc-cloud-modal:has(.fc-cloud-reveal){width:min(620px,96vw);overflow:hidden;text-align:center;background:radial-gradient(ellipse at 50% 38%,#313449 0%,#101419 66%);border-color:#a18a5b}
.fc-cloud-reveal{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:22px 10px}
.fc-cloud-reveal-kicker{color:#d7bf87;font-size:11px;letter-spacing:.22em}.fc-cloud-reveal-orbit{display:grid;place-items:center;width:132px;height:132px;border-radius:18px;border:1px solid #aa915f;color:#e9d3a6;font:700 90px/1 Georgia,serif;box-shadow:0 0 55px #a98d5333;transform:scale(.90);opacity:.65;transition:transform 1.4s ease,opacity 1.4s ease,box-shadow 1.4s ease}
.fc-cloud-reveal[data-fc-cloud-reveal=reveal] .fc-cloud-reveal-orbit{transform:scale(1);opacity:1;box-shadow:0 0 100px #a98d5377}.fc-cloud-reveal p,.fc-cloud-reveal small{color:#a8a8ad}.fc-cloud-reveal h3{font-size:21px}
@media(prefers-reduced-motion:reduce){.fc-cloud-reveal-orbit{transition:none}}

/* Accepted Gallery presentation: private preview title is a quiet row action. */
#fcCloudCommunityRoot .gl-cloud-build-preview{border:0;background:none;color:inherit;padding:0;text-align:left;font:inherit;cursor:pointer}
#fcCloudCommunityRoot .gl-cloud-build-preview:hover strong{color:#ecd69d}
/* Guest account views use the list's secondary typography. */
.fc-cloud-login-state{padding:40px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;font-family:inherit;font-size:13px;line-height:1.6;color:#8f9ca6}
.fc-cloud-login-state p{margin:0;font:inherit;color:inherit}
.fc-cloud-login-state a.gl-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 15px;border:1px solid #b7a16a55;border-radius:8px;background:#b7a16a09;color:#baa77d;font:500 12px/1.4 system-ui,"Microsoft YaHei",sans-serif;text-decoration:none}
.fc-cloud-login-state a:hover{border-color:#b7a16a99;background:#b7a16a15}
[data-fc-list-heading][hidden]{display:none!important}
/* This is a login affordance; protected values are also absent from guest JSON. */
/* Empty lists share the same quiet secondary type, with no empty table chrome. */
#fcCloudCommunityRoot .fc-cloud-empty,#fcCloudCommunityRoot .fc-cloud-loading,#fcCloudCommunityRoot .fc-cloud-error{font:400 13px/1.6 system-ui,"Microsoft YaHei",sans-serif;padding:40px 24px;color:#8e9ba5;text-align:center}
#fcCloudCommunityRoot .fc-cloud-error{color:#bf8d87}
.fc-guest-back-blur{position:absolute;inset:0;filter:blur(12px);pointer-events:none;user-select:none;overflow:hidden}
.fc-guest-back-login{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:rgba(10,16,22,.14);font:500 14px/1.6 system-ui,"Microsoft YaHei",sans-serif;color:#d1bc8b}
.fc-guest-back-login svg{width:25px;height:25px}.fc-guest-back-login a{padding:9px 16px;border:1px solid #b6a07877;border-radius:9px;background:#111a22e8;color:#cfbc94;text-decoration:none}.fc-guest-back-login a:focus-visible{outline:2px solid #c1ab76;outline-offset:3px}
