/* Keep native overscroll from triggering a second, full-page refresh. */
@media (pointer:coarse){html{overscroll-behavior-y:none}}
.mono-refresh{position:fixed;z-index:90;top:env(safe-area-inset-top,0px);left:50%;transform:translate(-50%,var(--pull-offset,24px));display:flex;align-items:center;gap:10px;padding:11px 18px;border:1px solid #e8e8ed;border-radius:999px;background:rgba(255,255,255,.96);color:#6e6e73;box-shadow:0 4px 24px #00000012;font:500 13px -apple-system,BlinkMacSystemFont,Arial,sans-serif;pointer-events:none}
.mono-refresh[hidden]{display:none}.mono-refresh::before{content:'↓';font-size:18px}.mono-refresh.is-ready{color:#0071e3}.mono-refresh.is-ready::before{content:'↻'}.mono-refresh.is-loading::before{content:'';width:14px;height:14px;border:2px solid #dce9f8;border-top-color:#0071e3;border-radius:50%;animation:mono-refresh-spin .7s linear infinite}
@keyframes mono-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.mono-refresh.is-loading::before{animation:none}}

:root{--mono-brand-height:calc(52px + env(safe-area-inset-top,0px))}
.has-mono-brand-bar{padding-top:var(--mono-brand-height)}
.mono-brand-bar{position:fixed;inset:0 0 auto;height:var(--mono-brand-height);padding-top:env(safe-area-inset-top,0px);z-index:30;display:flex;align-items:center;justify-content:center;background:#fff;border-bottom:1px solid #e8e8ed}
.mono-brand-refresh{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;width:146px;padding:0;border:0;border-radius:10px;background:transparent;cursor:pointer}
.mono-brand-refresh img{display:block;width:132px;height:48px;object-fit:contain}
.mono-brand-refresh:focus-visible{outline:2px solid #0071e3;outline-offset:1px}
.mono-brand-refresh:active{background:#f5f5f7}
.mono-brand-spinner{display:none;position:absolute;right:0;width:12px;height:12px;border:2px solid #dce9f8;border-top-color:#0071e3;border-radius:50%}
.mono-brand-refresh[aria-busy=true] .mono-brand-spinner{display:block;animation:mono-refresh-spin .7s linear infinite}
.mono-brand-status:not(:empty){position:absolute;top:100%;margin-top:8px;padding:9px 14px;border-radius:12px;background:#fff;box-shadow:0 3px 16px #0002;font-size:12px;text-align:center;max-width:90vw}
.has-mono-brand-bar .topbar,.has-mono-brand-bar .sidebar{top:var(--mono-brand-height)}
.has-mono-brand-bar .sidebar{height:calc(100dvh - var(--mono-brand-height))}
.has-mono-brand-bar .app-shell{min-height:calc(100dvh - var(--mono-brand-height))}
.has-mono-brand-bar .mono-refresh{top:var(--mono-brand-height)}
@media(prefers-reduced-motion:reduce){.mono-brand-refresh[aria-busy=true] .mono-brand-spinner{animation:none}}
