/* Shared geometry: regular controls 36px; inset segment controls 28px. */
html body{--workspace-control-height:36px;--workspace-toolbar-height:50px}
html body:is(.attributes-workspace-compact,.non-attribute-editor-active,.gl-gallery-active) .main .workspace-toolbar:not(.workspace-toolbar-empty),
html body .main :is(#playstylesPanel,#masteryCard,#facilitiesCard) .workspace-toolbar,
html body .main #attributeDesktopToolbar.review-workspace-toolbar,
html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar,
html body .gl-gallery-toolbar.workspace-toolbar{
 box-sizing:border-box!important;min-height:50px!important;height:auto!important;max-height:none!important;
 padding:6px 10px!important;gap:8px!important;align-items:center!important;
}
html body .main .workspace-toolbar :is(.toolbar-icon-button,.toolbar-text-button,.workspace-quick-save,.workspace-info,.gl-toolbar-save,.gl-sort-btn,.gl-filter-select,.gl-search),
html body #attributeDesktopToolbar.review-workspace-toolbar>button,
html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar :is(.gl-toolbar-save,.gl-sort-btn,.gl-filter-select,.gl-search,.fc-model-filter>summary,.fc-recommended),
html body .gl-gallery-toolbar :is(button,select){
 box-sizing:border-box!important;height:36px!important;min-height:36px!important;max-height:36px!important;
 margin-block:0!important;padding-block:0!important;font-size:12px!important;line-height:1.3!important;letter-spacing:normal!important;align-self:center;
}
html body #attributeDesktopToolbar #attributeValueMode{height:36px!important;min-height:36px!important;padding:3px!important;box-sizing:border-box}
html body #attributeDesktopToolbar #attributeValueMode button{height:28px!important;min-height:28px!important;box-sizing:border-box;font-size:12px!important}
.fc-personal-segment{display:inline-flex;align-items:center;flex:none;gap:2px;padding:3px;box-sizing:border-box;min-height:36px;border:1px solid #96a7ad33;border-radius:10px;background:#0002}
html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar .fc-personal-segment .gl-sort-btn{height:28px!important;min-height:28px!important;max-height:28px!important;padding-inline:10px!important;border-radius:7px!important;border-color:transparent!important}
html body #fcCloudCommunityRoot .fc-r3-primary{display:flex;align-items:center;gap:6px}
html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar .fc-personal-segment .gl-sort-btn.active{border-color:#b49b5c55!important;background:#b49b5c14!important}
/* One column contract in all four views; own-view actions use the author area. */
html body #fcCloudCommunityRoot :is(.fc-list-heading,.fc-cloud-build,.fc-r3-community-row){
 display:grid!important;grid-template-columns:minmax(0,1fr) 135px minmax(150px,180px) 150px!important;gap:14px!important;align-items:center!important;padding-inline:13px!important;
}
html body #fcCloudCommunityRoot :is(.fc-cloud-build,.fc-r3-community-row){min-height:52px!important;padding-block:8px!important}
html body #fcCloudCommunityRoot .fc-row-main{display:contents!important}
html body #fcCloudCommunityRoot .fc-row-divider{display:none!important}
html body #fcCloudCommunityRoot .fc-row-title{grid-column:1;display:flex!important;align-items:center!important;gap:7px!important;width:auto!important;max-width:none!important;min-width:0!important;overflow:hidden}
html body #fcCloudCommunityRoot .fc-row-title strong{flex:0 1 auto!important;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #fcCloudCommunityRoot .fc-row-title .fc-rename-button{flex:none!important;margin:0!important}
html body #fcCloudCommunityRoot .fc-status-stack{display:flex!important;flex:none!important;flex-direction:row!important;gap:8px!important;margin:0 0 0 auto!important;align-items:center;white-space:nowrap}
html body #fcCloudCommunityRoot .fc-row-model{grid-column:2;width:auto!important;min-width:0;max-width:none!important;gap:5px!important}
html body #fcCloudCommunityRoot .fc-row-author{grid-column:3;max-width:none!important;display:flex;align-items:center;gap:4px;min-width:0;font-size:12px}
html body #fcCloudCommunityRoot .identity-author-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
html body #fcCloudCommunityRoot .fc-r3-metrics{grid-column:4;display:flex!important;justify-content:space-between;gap:8px!important;width:auto!important}
html body #fcCloudCommunityRoot :is(.fc-r3-build-actions,.fc-list-heading-actions){grid-column:3/5;display:grid!important;justify-content:end;gap:5px!important}
html body #fcCloudCommunityRoot .fc-list-heading-metrics{grid-column:4;display:flex!important;justify-content:space-between;gap:8px!important}
html body #fcCloudCommunityRoot .fc-heading-main>span:empty{display:none!important}
html body #fcCloudCommunityRoot .fc-heading-main>span:nth-child(1){grid-column:1}
html body #fcCloudCommunityRoot .fc-heading-main>span:nth-child(3){grid-column:2}
html body #fcCloudCommunityRoot .fc-heading-main>span:nth-child(5){grid-column:3}
@media(max-width:1100px){html body #fcCloudCommunityRoot :is(.fc-list-heading,.fc-cloud-build,.fc-r3-community-row){grid-template-columns:minmax(0,1fr) 110px 145px 128px!important;gap:9px!important}html body #fcCloudCommunityRoot .fc-status-stack{gap:5px!important;font-size:10px}html body #fcCloudCommunityRoot .fc-status-pill{font-size:10px;padding-inline:5px}}
/* The horizontal navigation used overflow-y:visible, which computes to auto
   beside overflow-x:auto. Reserve the full height for the account control. */
html body .main>.editor-view-tabs{box-sizing:border-box!important;min-height:64px!important;height:auto!important;padding-block:10px!important;align-items:center!important}
html body .main>.editor-view-tabs #cloud-account-control{height:40px!important;min-height:40px!important;align-self:center!important;overflow:visible!important}
html body .main>.editor-view-tabs #cloud-account-toggle{box-sizing:border-box!important;height:40px!important;min-height:40px!important;margin-block:0!important}
html body .main>.editor-view-tabs .pc-admin-entry{box-sizing:border-box!important;flex-shrink:0;height:40px!important;min-height:40px!important}
/* Mobile uses the same two control sizes and reserves the real dock height. */
html body:has(.bottom-dock){--bottom-tool-h:48px!important}
html body .bottom-dock .context-toolbar.review-workspace-toolbar{height:48px!important;min-height:48px!important;padding:6px 8px!important;gap:5px!important}
html body .bottom-dock .context-toolbar.review-workspace-toolbar>button{height:36px!important;min-height:36px!important;max-height:36px!important}
html body .bottom-dock .context-toolbar.review-workspace-toolbar .mode{height:36px!important;min-height:36px!important}
html body .bottom-dock .context-toolbar.review-workspace-toolbar .mode button{height:28px!important;min-height:28px!important}
html body.mobile3-live .library-tabs{display:flex!important;align-items:center;gap:5px!important;padding:6px!important;min-height:50px;box-sizing:border-box}
html body.mobile3-live .library-tabs>button{flex:1 1 0!important;min-width:0!important;height:36px!important;padding:0 5px!important;font-size:12px!important;white-space:nowrap}
html body.mobile3-live .library-tabs .fc-personal-segment{flex:2 1 0;min-width:0}
html body.mobile3-live .library-tabs .fc-personal-segment button{flex:1 1 0!important;min-width:0!important;height:28px!important;padding:0 5px!important;font-size:12px!important;white-space:nowrap}
html body.mobile3-live .list-tools :is(input,button,select){height:36px!important;min-height:36px!important;box-sizing:border-box}
@media(max-width:360px){html body .bottom-dock .context-toolbar.review-workspace-toolbar{gap:4px!important;padding-inline:7px!important}html body.mobile3-live .library-tabs{gap:2px!important}html body.mobile3-live .library-tabs button{font-size:11px!important}}

/* Override the legacy per-panel ID rules at their own scope. */
html body .main #playstylesPanel .ps-page-k6 .ps-library-toolbar.workspace-toolbar,
html body .main #specializationPanel .specialization-workspace-toolbar.workspace-toolbar,
html body .main #masteryCard>.mastery-toolbar.workspace-toolbar,
html body .main #facilitiesCard>.facility-toolbar.workspace-toolbar,
html body .main #diyPanel .diy-workspace-toolbar.workspace-toolbar{min-height:50px!important;height:auto!important;max-height:none!important;padding:6px 10px!important;box-sizing:border-box!important}

html body .main #playstylesPanel .ps-library-toolbar button,
html body .main #specializationPanel .specialization-workspace-toolbar button,
html body .main #masteryCard .mastery-toolbar button,
html body .main #facilitiesCard .facility-toolbar button,
html body .main #masteryCard .mastery-toolbar-toggle,
html body .main #facilitiesCard .facility-toolbar-toggle{height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box!important;font-size:12px!important}
html body .main #glGalleryPanel .gl-gallery-fixed .gl-gallery-toolbar.workspace-toolbar{height:50px!important;min-height:50px!important;max-height:none!important;padding:6px 10px!important;box-sizing:border-box!important}

html body #fcCloudCommunityRoot :is(.fc-cloud-build,.fc-r3-community-row) :is(.fc-row-title,.fc-row-model,.fc-row-author){grid-row:1!important}
html body #fcCloudCommunityRoot .fc-r3-community-row>.fc-r3-metrics{grid-column:4!important;grid-row:1!important}
html body #fcCloudCommunityRoot .fc-cloud-build>.fc-r3-build-actions{grid-column:3/5!important;grid-row:1!important}
html body #fcCloudCommunityRoot .fc-list-heading :is(.fc-list-heading-metrics,.fc-list-heading-actions){grid-row:1!important}

html body.mobile3-live #homePage .library-tabs>button{height:36px!important;min-height:36px!important;max-height:36px!important}
html body.mobile3-live #homePage .library-tabs .fc-personal-segment button{height:28px!important;min-height:28px!important;max-height:28px!important}

html body .main #playstylesPanel .ps-page-k6 .ps-library-toolbar .ps-library-tool-btn.toolbar-icon-button,
html body .main #masteryCard #undoMasteryBtn{height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box!important}

/* Recommendation is a secondary filter; gold is reserved for its active state. */
html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar .fc-recommended{color:#aebbc2!important;border-color:#9aaeb333!important;background:linear-gradient(180deg,#ffffff07,#ffffff02)!important;font-weight:600!important}
html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar .fc-recommended:hover{color:#d3dce1!important;border-color:#9aaeb366!important}
html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar .fc-recommended.active{color:#dfc478!important;border-color:#b49b5c88!important;background:#b49b5c18!important}
html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar .fc-scope-quota{display:inline!important;margin-left:4px;font:inherit!important;font-size:.9em!important;white-space:nowrap}
@media(max-width:1250px){html body #fcCloudCommunityRoot .gl-hub-toolbar-left{gap:6px!important}html body #fcCloudCommunityRoot .fc-r3-primary{gap:3px!important}html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar .fc-personal-segment .gl-sort-btn{padding-inline:7px!important}html body #fcCloudCommunityRoot .fc-cloud-integrated-toolbar .gl-hub-toolbar-right .gl-search{min-width:110px!important;width:clamp(110px,15vw,220px)!important}}

@media (min-width: 761px) {
 body .main {container-name:fc-workspace;container-type:inline-size}
 .ovc-body-section {container-name:fc-body;container-type:inline-size}
 body.fc-pc-amp-active:not(.fc-amp-dialog-open) .main #ampWorkspacePanel:not([hidden]) {
  flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior-y:contain;
 }
 body.fc-pc-amp-active .main #ampWorkspacePanel iframe {display:block}
 html body .main>.editor-view-tabs:not([hidden]){scrollbar-width:thin!important}
 html body .main>.editor-view-tabs::-webkit-scrollbar{display:block!important;height:4px}
}
@container fc-workspace (min-width: 950px) {
 html body.attributes-workspace-compact .main #attributes.attr-columns {grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@container fc-body (max-width: 272px) {
 html body .global-archetype-overview-card .ovc-body-layout {
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"summary summary" "actions accel" "quick quick";
  column-gap:6px!important;row-gap:6px!important;
 }
 html body .global-archetype-overview-card .ovc-body-summary {flex-wrap:wrap;gap:6px!important}
 html body .global-archetype-overview-card .ovc-body-actions {flex-wrap:wrap}
 html body .global-archetype-overview-card .ovc-body-quick {justify-self:start;flex-wrap:wrap}
}
#facilitiesWorkspace .facility-slot-wrap.ai-facility-selected .facility-slot-card {
 border-color:rgba(146,207,221,.34)!important;
 background:radial-gradient(circle at 10% 2%,rgba(108,187,213,.09),transparent 52%),
 linear-gradient(150deg,rgba(64,115,143,.075),rgba(255,255,255,.012))!important;
 box-shadow:inset 0 0 0 1px rgba(142,214,237,.055),0 0 8px rgba(75,161,192,.035)!important;
}
#facilitiesWorkspace .facility-slot-wrap.ai-facility-selected:hover .facility-slot-card {
 border-color:rgba(146,207,221,.50)!important;
}
#facilitiesWorkspace .facility-slot-wrap:not(.ai-facility-selected) .facility-slot-card:not(:hover) {
 background:radial-gradient(circle at 13% 0,rgba(178,151,82,.064),transparent 55%),
 linear-gradient(155deg,rgba(255,255,255,.012),transparent)!important;
}
