/* P0 layout convergence: keep the existing ad Studio in normal vertical flow. */
.ad-mode{overflow:hidden!important}
.ad-mode #adWorkspace{height:calc(100vh - 32px)!important;min-height:0!important;overflow:hidden!important}
.ad-mode #adStudioFlat{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 0 112px!important;scrollbar-gutter:stable}
.ad-mode #adStudioFlat>#realAdStudio{display:block!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
.ad-mode #adStudioFlat>#marketHitCompiler{display:block!important;position:relative!important;flex:0 0 auto!important;z-index:1!important}
.ad-mode #realAdStudio .ad-studio-shell{height:auto!important;min-height:0!important;overflow:visible!important}
.ad-mode #realAdStudio .ad-studio-nav{position:sticky;top:0;align-self:start;max-height:calc(100vh - 48px);overflow-y:auto;z-index:4}
.ad-mode #realAdStudio .ad-studio-main,.ad-mode #realAdStudio .ad-studio-page{height:auto!important;min-height:0!important;overflow:visible!important}
.ad-mode #realAdStudio .create-page{position:relative!important;padding-bottom:24px!important}
.ad-mode #realAdStudio .create-workspace{display:block!important;height:auto!important;min-height:0!important}
.ad-mode #realAdStudio .command-surface{display:grid!important;grid-template-rows:auto auto auto auto auto auto!important;height:auto!important;min-height:0!important;overflow:visible!important}
.ad-mode #realAdStudio .command-surface textarea{min-height:132px!important;max-height:260px!important}
.ad-mode #realAdStudio .asset-manager{position:static!important;height:auto!important;min-height:0!important;max-height:420px!important;overflow-y:auto!important;overflow-x:hidden!important;margin-top:14px!important;padding-bottom:12px!important}
.ad-mode #realAdStudio .asset-manager-head{position:sticky;top:0;z-index:3;background:#fff;padding-bottom:8px}
.ad-mode #realAdStudio .asset-strip{display:flex!important;flex-wrap:wrap!important;align-content:flex-start!important;min-height:0!important;max-height:184px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:6px 2px!important}
.ad-mode #realAdStudio .asset-strip:empty{display:none!important}
.ad-mode #realAdStudio .asset-strip>span{padding:10px 0!important;min-height:0!important}
.ad-mode #realAdStudio .creation-tools{position:static!important;flex-wrap:wrap!important;background:#fff!important;z-index:4!important}
.ad-mode #realAdStudio .generate-action-bar{position:sticky!important;bottom:0!important;z-index:7!important;margin:16px -24px -24px!important;padding:14px 24px 18px!important;background:#fff!important;border-top:1px solid #e3e6ea!important;box-shadow:0 -8px 18px rgba(20,24,30,.08)!important}
.mh-compiler{position:static;margin:20px;border:1px solid #ead9c7;border-radius:18px;background:#fffaf5;padding:22px;color:#30261f;max-width:100%;overflow:hidden;box-sizing:border-box;scroll-margin:16px}.mh-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.mh-head h2{margin:0}.mh-badge{padding:6px 10px;border-radius:999px;background:#f0dfcf;font-size:12px}.mh-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px;margin:16px 0}.mh-card{min-width:0;background:white;border:1px solid #eadfd5;border-radius:12px;padding:14px;overflow:hidden}.mh-card.selected{border-color:#a96c3b;box-shadow:0 0 0 2px #ead2bd}.mh-card h3,.mh-card p{margin:5px 0;overflow-wrap:anywhere}.mh-controls{position:sticky;bottom:0;z-index:8;display:flex;gap:10px;flex-wrap:wrap;margin:14px -10px;padding:12px 10px 16px;background:#fffaf5;border-top:1px solid #ead9c7;box-shadow:0 -8px 18px rgba(48,38,31,.08)}.mh-controls select,.mh-controls button{padding:10px 14px;border-radius:9px;border:1px solid #cdb7a3;background:white}.mh-controls button.primary{background:#3d2a1f;color:white}.mh-controls button:disabled{opacity:.55}.mh-disabled-reason{flex-basis:100%;font-size:12px;color:#8b2d20}.mh-gate{padding:12px;border-radius:10px;background:#fff0ed;color:#8b2d20}.mh-ok{background:#edf8f0;color:#236537}.mh-shot details{margin-top:8px}.mh-shot pre,.mh-card pre{max-height:260px;overflow:auto hidden;white-space:pre-wrap;word-break:break-word;font-size:11px;background:#f8f5f2;padding:8px}.mh-assets img{width:90px;height:120px;object-fit:contain;background:#eee;border-radius:8px}.mh-missing{columns:2;margin:8px 0}.mh-state{font-family:monospace;font-size:12px;white-space:normal;overflow-wrap:anywhere;padding-bottom:18px}
@media(max-width:700px){.sidebar{display:flex!important;position:fixed;z-index:100;inset:0 0 auto 0;height:54px;padding:6px;background:#fff;border-bottom:1px solid #e3e6ea;overflow-x:auto;overflow-y:hidden}.sidebar .logo,.sidebar .section{display:none!important}.sidebar .menu{flex:0 0 auto;width:auto;height:42px;margin:0}.app{padding-top:54px!important}.main{height:calc(100vh - 54px)!important}.ad-mode #adWorkspace{height:calc(100vh - 54px)!important}.ad-mode #adStudioFlat{padding-bottom:96px!important}.ad-mode #realAdStudio .ad-studio-shell{grid-template-columns:72px minmax(0,1fr)!important}.ad-mode #realAdStudio .create-page{padding:10px!important}.ad-mode #realAdStudio .command-surface{padding:12px!important}.ad-mode #realAdStudio .asset-manager{max-height:350px!important}.ad-mode #realAdStudio .generate-action-bar{margin:14px -12px -12px!important;padding:12px!important}.mh-compiler{margin:12px 8px;padding:14px}.mh-controls>*{max-width:100%}.mh-missing{columns:1}}
