/* Global layout: full-width header on top; modules and workspace begin below. */
.app{display:grid!important;grid-template-columns:224px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}
.app>.top{grid-column:1/-1;grid-row:1;width:100%;min-width:0;flex-shrink:0}
.app>.sidebar{grid-column:1;grid-row:2;min-height:0;height:100%;overflow-y:auto}
.app>.main{grid-column:2;grid-row:2;min-height:0;height:100%;width:100%;min-width:0}
.fc-header-brand{display:flex;flex:0 0 224px;align-items:center;justify-content:flex-start;min-width:0;text-decoration:none}
.fc-header-brand img{display:block;width:155px;max-width:100%;height:45px;object-fit:contain;object-position:left center}
.sidebar>.brand{display:none!important}
body.fc-catalog-zone .app{grid-template-columns:minmax(0,1fr)!important}
body.fc-catalog-zone .sidebar{display:none!important}
body.fc-catalog-zone .main{grid-column:1;grid-row:2}
body.fc-catalog-zone .content{padding:0!important;flex:1;min-height:0;overflow:hidden}
body.fc-catalog-zone #view{height:100%;min-height:0}
body.fc-catalog-zone .fc-embedded-module{height:100%;min-height:0;margin:0}
body.fc-catalog-zone .fc-embedded-module iframe{height:100%;min-height:0;width:100%;border:0}
@media(max-width:800px){.app{grid-template-columns:minmax(0,1fr)!important}.app>.sidebar{position:fixed;z-index:20;top:var(--fc-header-height,70px);bottom:0;left:0;height:auto;grid-column:auto;grid-row:auto}.app>.main{grid-column:1;grid-row:2}.fc-header-brand{flex:0 0 auto}.fc-header-brand img{width:105px;height:34px}.app>.top{min-width:0;gap:6px}}
/* Mobile: keep the top bar compact, without the desktop FullCator logo. */
@media(max-width:800px){.app>.top>.fc-header-brand{display:none!important}}
/* Desktop logo: larger and centered above the modules column. */
@media(min-width:801px){
 .app>.top>.fc-header-brand{flex:0 0 224px;width:224px;justify-content:center;align-items:center}
 .app>.top>.fc-header-brand img{width:195px;max-width:calc(100% - 16px);height:64px;object-position:center}
}
/* Larger desktop logo without increasing the header height. */
@media(min-width:801px){
 .app>.top>.fc-header-brand img{width:218px;max-width:calc(100% - 4px);height:76px;object-fit:contain;object-position:center}
}
/* Mobile catalog: hamburger opens the actual module list, not an empty panel. */
@media(max-width:800px){
 body.fc-catalog-zone .sidebar.open{display:flex!important;position:fixed!important;top:70px;bottom:0;left:0;width:min(280px,85vw);height:auto;z-index:100;overflow-y:auto;background:#fff;box-shadow:0 0 0 100vmax #0a173a66}
}
@media(max-width:800px){
 .fc-mobile-drawer-backdrop:not([hidden]){display:block!important;position:fixed;inset:70px 0 0;z-index:90;border:0;border-radius:0;background:#0a173a66;cursor:pointer;padding:0;width:100%;height:calc(100dvh - 70px)}
 .app>.sidebar.open{z-index:100!important;box-shadow:none!important}
}
