/* Uses the existing IPBA Light/Dark tokens; the home never displays an old draft. */
body.tactical-project-home .workspace,
body.tactical-project-home .layers-panel,
body.tactical-project-home .mobile-dock,
body.tactical-project-home #projectStateBar,
body.tactical-project-home .topbar {display:none!important}
.tactical-project-state{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;background:var(--panel,#fff);color:var(--ink,#333);border-bottom:1px solid var(--line,#ddd);font:13px/1.4 Arial,sans-serif}
.tactical-project-state strong{min-width:0;overflow-wrap:anywhere}
.tactical-project-state button,.tactical-project-notice button{min-height:32px;border:1px solid var(--line,#ccc);background:var(--panel,#fff);color:var(--ink,#333);border-radius:3px;padding:6px 10px;cursor:pointer}
.tactical-project-state button:hover,.tactical-project-notice button:hover{border-color:#00acd6}
.tactical-project-notice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;background:var(--accent-soft,#eaf7fb);border-left:3px solid #00acd6;color:var(--ink,#333);font:13px/1.4 Arial,sans-serif}
.tactical-project-notice span{flex:1;min-width:220px}
body.viewer #projectsBtn,body.viewer #moreMenuBtn,body.viewer #projectCopyBtn,body.viewer #projectHistoryBtn,body.viewer #projectShareBtn{display:inline-flex}
body.viewer .tactical-project-state button{display:inline-flex}
@media(max-width:700px){.tactical-project-state{align-items:flex-start;flex-wrap:wrap}.tactical-project-state button,.tactical-project-notice button{min-height:44px}.tactical-project-state strong{flex:1 1 100%}}

/* Remain inside the existing topbar grid, never add an unallocated app-shell row. */
.ipba-layout-tactical .topbar{flex-wrap:wrap}
.ipba-layout-tactical #projectStateBar{grid-column:1/-1;grid-row:4;flex:1 1 100%;padding:4px 0;border-top:1px solid var(--line,#ddd);border-bottom:0}
.ipba-layout-tactical #projectDraftNotice{grid-column:1/-1;grid-row:5;flex:1 1 100%}
.ipba-layout-tactical.viewer.ui-simplified .topbar-primary{display:flex;flex-wrap:wrap;grid-column:1/-1;grid-row:6}
.ipba-layout-tactical.viewer.ui-simplified #projectsBtn,.ipba-layout-tactical.viewer.ui-simplified #moreMenuBtn{display:inline-flex}
#projectCopyBtn[hidden],#projectVersionBtn[hidden],#projectHistoryBtn[hidden],#projectShareBtn[hidden]{display:none!important}
