/* Healthy refreshes do not occupy a card. Real staleness/errors remain visible. */
html body #app-view #home-refresh-status:is([data-state="current"], [data-state="preview"]) { display:none !important; }
html body #app-view #home-refresh-status[data-state="updating"] { min-height:0; padding:8px 12px; gap:8px; }
.background-refresh-notice { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:0 0 12px; padding:8px 12px; border:1px solid var(--theme-border,#d4ded7); border-radius:10px; background:var(--theme-surface,#fff); color:var(--theme-text,#17291e); font-size:.875rem; }
.background-refresh-notice button { min-height:44px; padding:8px 12px; font:inherit; color:inherit; background:transparent; border:1px solid currentColor; border-radius:8px; }

.background-refresh-notice[data-mode="deferred"] { margin:8px 0 0; padding:4px 0; border:0; border-radius:0; background:transparent; font-size:.8rem; }
/* A first-load or empty/error state needs a brief sheet, not an empty screen. */
#service-order-dialog:has(#service-order-feedback:not([hidden])):not(:has(#service-order-timeline-list li)) { height:fit-content !important; min-height:0 !important; max-height:calc(100dvh - 32px) !important; }
