@media(max-width:720px){
  body .topbar .globalMenuBtn{position:fixed;top:calc(10px + env(safe-area-inset-top));right:12px;transform:none;z-index:940}
  body .topbar .globalMenu{position:fixed;top:calc(50px + env(safe-area-inset-top));right:12px;z-index:941}
}
body.forceMobile .topbar .globalMenuBtn{position:fixed;top:calc(10px + env(safe-area-inset-top));right:12px;transform:none;z-index:940}
body.forceMobile .topbar .globalMenu{position:fixed;top:calc(50px + env(safe-area-inset-top));right:12px;z-index:941}
body[data-view="contentSheet"] .centerControl,
body[data-view="contentSheet"] .sideNav{display:none!important}
body[data-view="contentSheet"] .mapWrap{overflow:auto!important}
body[data-view="contentSheet"] .map{display:block!important;width:100%!important;min-width:0!important;transform:none!important}
.brand .baseLink[hidden]{display:none!important}
.contentSheet{padding:24px;background:#fff;min-height:calc(100vh - 110px);box-sizing:border-box;color:#111;letter-spacing:0}
.contentSheet header{display:flex;align-items:center;gap:24px;margin-bottom:24px;flex-wrap:wrap}
.contentSheet h1{font-size:28px;line-height:1.2;font-weight:400;margin:0;overflow-wrap:anywhere;min-width:0}
.contentSheet button{font:inherit;cursor:pointer;background:transparent;color:inherit;border:0}
.contentSheet .sheetBack{padding:6px 0;color:#666;max-width:100%;overflow-wrap:anywhere;text-align:left}
.sheetScroll{overflow:auto;background:#fff;border-top:1px solid #d8d8d8}
.contentSheet table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:820px;text-align:left}
.contentSheet col.sheetDateCol{width:155px}
.contentSheet col.sheetAccountCol{width:175px}
.contentSheet col.sheetContentCol{width:auto}
.contentSheet col.sheetImageCol{width:auto}
.sheetViewControls{display:flex;align-items:center;gap:20px;margin-left:auto;flex-wrap:wrap}
.contentSheet .sheetViewControls select{width:180px;border-bottom:1px solid #ddd;padding:6px}
.sheetViewSwitch{display:flex;border-bottom:1px solid #ddd;gap:16px}
.sheetViewSwitch button{padding:8px 0;color:#888}
.sheetViewSwitch button[aria-pressed="true"]{color:#111;box-shadow:0 1px 0 #111}
.contentSheet .sheetGroup th{background:#f4f4f4;color:#111;font-size:14px;font-weight:600;padding:12px}
.contentSheet th{font-size:12px;color:#888;font-weight:400;background:#fff;padding:12px;border-bottom:1px solid #d8d8d8}
.contentSheet td{padding:10px 12px;border-right:1px solid #eee;border-bottom:1px solid #e8e8e8;vertical-align:top}
.contentSheet th:not(:last-child){border-right:1px solid #e8e8e8}
.contentSheet td:last-child{border-right:0}
.contentSheet tr:last-child td{border-bottom:0}
.contentSheet input,.contentSheet textarea,.contentSheet select{font:inherit;color:inherit;background:transparent;box-sizing:border-box;width:100%;min-width:0;border:0;border-radius:0;padding:4px 0;outline-offset:3px}
.contentSheet input{font-size:14px}
.contentSheet textarea{font-size:14px;line-height:1.6;resize:vertical;min-height:64px;overflow:hidden}
.contentSheet textarea:focus{min-height:100px}
.sheetAccountHead{display:flex;align-items:center;gap:6px}
.sheetAccountHead select{font-size:13px;width:125px}
.contentSheet .sheetIcon{width:26px;height:26px;flex:0 0 26px;display:inline-flex;align-items:center;justify-content:center;color:#999;padding:0}
.contentSheet .sheetIcon:hover{color:#111;background:#eee}
.sheetImages{display:flex;flex-wrap:wrap;gap:6px;min-height:55px;align-content:flex-start}
.sheetImage{position:relative;display:inline-block}
.sheetImage img{width:112px;height:96px;object-fit:contain;background:#f7f7f7;display:block;cursor:zoom-in}
.sheetImage .sheetRemoveImage{position:absolute;right:0;top:0;background:#fff;color:#111;width:20px;height:20px;opacity:0}
.sheetImage:hover .sheetRemoveImage,.sheetImage:focus-within .sheetRemoveImage{opacity:1}
.sheetImageActions{display:flex;align-items:center;justify-content:space-between;margin-top:4px}
.sheetDelete{opacity:0}
.contentSheet .sheetDelete[hidden]{display:none}
tr:hover .sheetDelete,tr:focus-within .sheetDelete{opacity:1}
.sheetUploadCell:focus,.sheetUploadCell.dragOver{outline:1px solid #666;outline-offset:-2px;background:#f7f7f7}
.sheetPreview{max-width:90vw;max-height:90vh;border:0;padding:12px;background:white}
.sheetPreview::backdrop{background:#0007}
.sheetPreview img{display:block;max-width:80vw;max-height:78vh;object-fit:contain}
.sheetPreview button{float:right;background:transparent;border:0;font-size:22px;cursor:pointer}
.sheetError{font-size:13px;color:#a32929;margin-top:12px}
.sheetNodeIcon{color:#555!important;opacity:1!important}
.sheetCatalog{width:min(460px,calc(100vw - 32px));max-height:80vh;padding:20px;border:1px solid #ddd;box-sizing:border-box;background:#fff;color:#171717}
.sheetCatalog::backdrop{background:#0003}
.sheetCatalog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.sheetCatalog h2{font-size:18px;font-weight:500;margin:0}
.sheetCatalog button{font:inherit;cursor:pointer;border:0;background:transparent;color:inherit;text-align:left}
.sheetCatalogRows>button{display:block;width:100%;padding:14px 0;border-top:1px solid #eee;overflow-wrap:anywhere}
.sheetCatalogRows>button:hover{background:#f6f6f6}
.sheetCatalogRows small{display:block;color:#888;font-size:12px;margin-top:5px}
.sheetCatalog .sheetCatalogAdd{padding:14px 0 0;border-top:1px solid #ddd;width:100%;margin-top:12px;overflow-wrap:anywhere}
@media(max-width:720px){
  .contentSheet{padding:12px 12px 90px;min-height:100%}
  .contentSheet header{gap:10px;align-items:flex-start;flex-direction:column;margin-bottom:16px}
  .contentSheet h1{font-size:20px}
  .sheetViewControls{margin-left:0;gap:12px;width:100%}
  .sheetDelete,.sheetImage .sheetRemoveImage{opacity:1}
}
/* Brand work views and account publishing share the brand selector. */
.brandPublishTab{border-left:1px solid #ccc!important;margin-left:8px;padding-left:14px!important}
body[data-view="brand"][data-brand-layout="publish"] :is([data-brand-home],[data-brand-fit],[data-brand-zoom],[data-brand-zoom-reset],#brandSearchInput){display:none}
#brandPublishHost{min-width:0;flex:1;overflow:auto}
.publishView{padding:24px;position:relative;min-width:0;color:#111;background:#faf9f6;min-height:100%;box-sizing:border-box}
.publishHead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.publishHead strong{font-weight:500;letter-spacing:.08em}
.publishView button{font:inherit;background:transparent;color:inherit;border:0;cursor:pointer}
.publishHead button{padding:8px 12px;border:1px solid #ddd;margin-left:6px}
.publishScroll{overflow:auto;max-width:100%}
.publishAxis,.publishLane{display:grid;grid-template-columns:170px 2688px;width:max-content}
.publishAxis{position:sticky;top:0;z-index:3;background:#faf9f6;font-size:12px;color:#999}
.publishAxis>div{display:flex}
.publishAxis time{width:96px;text-align:center;padding:10px 0}
.publishAxis time.current{color:#111;font-weight:bold}
.publishAxis>span,.publishLaneLabel{position:sticky;left:0;background:#faf9f6;z-index:2;padding:10px;box-sizing:border-box}
.publishLaneLabel{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding-top:45px}
.publishLaneLabel button:first-child{text-align:left;overflow-wrap:anywhere}
.publishRail{position:relative;height:190px;background:repeating-linear-gradient(to right,transparent 0,transparent 95px,#f0efec 95px,#f0efec 96px)}
.publishRail:before{content:'';position:absolute;left:0;right:0;top:95px;border-top:1px solid #555}
.publishNode{position:absolute;top:80px;width:30px;height:30px;transform:translateX(-50%);touch-action:none}
.publishNode>span{background:#faf9f6;font-size:25px;line-height:26px}
.publishNode small{position:absolute;top:38px;left:50%;transform:translateX(-50%);width:88px;font-size:12px;max-height:44px;overflow:hidden}
.publishPending{display:flex;gap:14px;flex-wrap:wrap;border-top:1px solid #ddd;padding:18px 0;margin-top:20px;font-size:13px;color:#777}
.publishPending button{border-bottom:1px solid #ccc}
.publishEmpty{padding:30px;color:#888}
.publishEditorPanel.contentSheet{position:fixed;right:0;top:76px;bottom:0;width:360px;max-width:90vw;z-index:950;overflow:auto;box-shadow:-8px 0 30px #0001;padding:24px;min-height:0}
.publishEditorPanel label{display:block;margin:18px 0;font-size:12px;color:#888}
.publishEditorPanel input,.publishEditorPanel textarea,.publishEditorPanel select{display:block;border-bottom:1px solid #ddd;padding:9px 0;color:#111}
.publishEditorPanel textarea{min-height:150px}
.publishEditorPanel header{justify-content:space-between}
@media(max-width:720px){.publishView{padding:12px}.publishAxis,.publishLane{grid-template-columns:110px 2688px}.publishEditorPanel.contentSheet{top:60px;bottom:70px}.brandPublishTab{margin-left:4px;padding-left:8px!important}}
body[data-view="brand"]:is([data-brand-layout="publish"],[data-brand-layout="timeline"]) .brandBoard:not(.sidebarCollapsed) .treePanel{left:320px}
body[data-view="brand"][data-brand-layout="publish"] #brandPublishHost{height:100%}
body.forceMobile[data-view="brand"]:is([data-brand-layout="publish"],[data-brand-layout="timeline"]) .brandBoard:not(.sidebarCollapsed) .treePanel{left:0}
@media(max-width:720px){body[data-view="brand"]:is([data-brand-layout="publish"],[data-brand-layout="timeline"]) .brandBoard:not(.sidebarCollapsed) .treePanel{left:0}}
.publishLaneLabel button:first-child{flex:1;min-width:0}
.publishLaneLabel button[data-publish-new]{flex:0 0 24px;padding:0}
.publishNode small{pointer-events:none}
@media(max-width:720px){body[data-view="brand"] .topbar.brandMode .brandModeBtn{width:auto;min-width:0;flex:0 0 auto;padding:8px;font-size:10px}.publishLaneLabel{padding-left:4px;padding-right:4px}}
body.forceMobile[data-view="brand"] .topbar.brandMode .brandModeBtn{width:auto;min-width:0;flex:0 0 auto;padding:8px;font-size:10px}
@media(max-width:720px){body[data-view="brand"] .topbar.brandMode .brandTopControls.brandZoomControls{grid-template-columns:minmax(0,1fr) auto}body[data-view="brand"] .topbar.brandMode .brandModeToggle{width:auto;min-width:0;justify-content:flex-start}body[data-view="brand"][data-brand-layout="publish"] .brandModeToggle{grid-column:1 / -1}}
body.forceMobile[data-view="brand"] .topbar.brandMode .brandTopControls.brandZoomControls{grid-template-columns:minmax(0,1fr) auto}
body.forceMobile[data-view="brand"] .topbar.brandMode .brandModeToggle{width:auto;min-width:0;justify-content:flex-start}
body.forceMobile[data-view="brand"][data-brand-layout="publish"] .brandModeToggle{grid-column:1 / -1}
