html{scrollbar-gutter:stable}
html.factory-starting .factory-shell,html.factory-starting .shared-site-header,html.journal-starting #app,html.journal-starting .shared-site-header{visibility:hidden!important}
html body .shared-auth-button{min-width:62px!important;box-sizing:border-box}
html body button,html body button:hover,html body button:active,html body .primary:hover,html body .secondary:hover{transform:none!important;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease!important}
html body :is(.factory-nav,.factory-admin-tabs,.compact-tab-actions,.segmented,.event-actions){gap:4px!important}
html body :is(.factory-nav,.factory-admin-tabs,.segmented) button{padding:6px 9px!important;font-size:12px!important;font-weight:650!important;box-sizing:border-box}
html body .compact-tab-actions button{padding:6px 9px!important;font-size:12px!important}
html body :is(.factory-nav,.factory-admin-tabs,.compact-tab-actions,.segmented){transition:none!important}
@media(max-width:760px){html body :is(.factory-nav,.factory-admin-tabs,.compact-tab-actions,.segmented) button{min-height:44px!important}html body .app>.sidebar>#nav .compact-tab-actions button{font-size:11px!important}}
/* Clock is anchored to the first header row, independent of menu/tool widths. */
html body .shared-site-header{position:relative!important;max-width:none!important;width:100%;margin-inline:0!important;padding:4px 12px!important;min-height:44px!important;align-items:center!important}
html body .shared-site-header>.shared-site-brand{order:0!important;flex:0 0 auto}
html body .shared-site-header>.shared-menu-toggle{order:1!important}
html body .shared-site-header>.shared-sections-toggle,html body .shared-site-header .journal-view-toggle{order:2!important}
html body .shared-site-header>.shared-site-nav{order:3!important;flex:0 1 auto!important;width:auto!important;max-width:calc(50vw - 180px)!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding:0!important;border:0;white-space:nowrap}
html body .shared-site-header>.shared-site-nav a{flex:0 0 auto}
html body .shared-site-header>.shared-site-tools{order:6!important;flex:0 0 auto!important;margin-left:auto!important;margin-right:0!important;min-height:36px!important;padding:0!important;border:0;gap:6px!important;flex-wrap:nowrap!important}
html body .shared-site-header>.shared-site-datetime{position:absolute;top:22px;left:50%;transform:translate(-50%,-50%);width:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;pointer-events:none;line-height:1.15}
html body .shared-site-datetime .shared-site-date{font-size:10px!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
html body .shared-site-datetime .shared-site-clock{font-size:14px!important;line-height:1.2}
@media(max-width:760px){
 html body .shared-site-header{gap:5px!important;min-height:52px!important}
 html body .shared-site-header>.shared-site-datetime{top:26px;width:calc(100% - 242px);max-width:210px}
 html body .shared-site-header>.shared-site-tools{gap:4px!important;min-height:44px!important}
 html body .shared-site-header>.shared-site-nav{width:auto!important;max-width:calc(100% - 24px)!important;padding:6px!important;white-space:normal}
 html body .shared-site-datetime .shared-site-date{font-size:0!important}
 html body .shared-site-datetime .shared-site-date::after{content:attr(data-short);font-size:10px;line-height:1.2}
}
@media(max-width:360px){html body .shared-site-header{gap:3px!important}html body .shared-site-datetime .shared-site-date{display:none}html body .shared-site-datetime .shared-site-clock{font-size:13px!important}}
html body .shared-site-header button{box-sizing:border-box!important}
html body .shared-site-header>.shared-site-tools{order:4!important}
html body .shared-site-header>.shared-mobile-actions,html body .shared-site-header #nav .compact-tab-actions{order:5!important}
html body .shared-site-header>.shared-site-nav{margin:0!important;justify-content:flex-start!important}
html body .shared-site-header>.shared-site-brand{margin-right:0!important}
html body .shared-site-header>.shared-site-datetime{flex-direction:row;gap:7px;width:230px}
@media(max-width:760px){html body .shared-site-header>.shared-site-datetime{width:calc(100% - 242px);min-width:48px;gap:4px}}
html body .shared-install-app{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 9px;border:1px solid var(--ui-line,#dfe6e2);border-radius:8px;background:var(--ui-surface,#fff);color:var(--ui-ink,#253c32);font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;box-sizing:border-box}
html body .shared-install-app svg{display:block!important;flex:0 0 17px;width:17px;height:17px}
html body .shared-install-app[hidden],html body .shared-install-in-menu{display:none!important}
@media(max-width:1100px){html body .shared-site-tools .shared-install-app{width:32px;padding:6px}html body .shared-site-tools .shared-install-app>span{display:none}}
@media(max-width:760px){html body .shared-site-tools .shared-install-app{display:none!important}html body .shared-site-nav .shared-install-in-menu:not([hidden]){display:flex!important;order:99;gap:8px}}
