/* V15.6.1 — Compact status in the existing header, not a floating obstruction. */
#st-sync-health-badge{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin-top:4px;padding:3px 8px;border:1px solid #ffffff50;border-radius:20px;background:#ffffff18;color:#fff;cursor:pointer;font:700 10px/1.35 inherit;white-space:nowrap;box-shadow:none}
#st-sync-health-badge .st-health-label{font-family:inherit;font-size:10px;font-weight:800;line-height:1.35}
.st-health-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:#dbe4e7;display:inline-block}
#st-sync-health-badge[data-status=synced] .st-health-dot,.st-health-main[data-status=synced] .st-health-dot{background:#56e0a6}
#st-sync-health-badge[data-status=saved] .st-health-dot,.st-health-main[data-status=saved] .st-health-dot{background:#b0f4cc}
#st-sync-health-badge[data-status=pending] .st-health-dot,.st-health-main[data-status=pending] .st-health-dot,#st-sync-health-badge[data-status=saving] .st-health-dot,.st-health-main[data-status=saving] .st-health-dot{background:#ffd46e}
#st-sync-health-badge[data-status=conflict] .st-health-dot,.st-health-main[data-status=conflict] .st-health-dot,#st-sync-health-badge[data-status=error] .st-health-dot,.st-health-main[data-status=error] .st-health-dot{background:#ff6a7e}
#st-sync-health-badge[data-status=offline] .st-health-dot,.st-health-main[data-status=offline] .st-health-dot{background:#bdc7d1}
.st-health-overlay{display:none;position:fixed;inset:0;z-index:2500;background:rgba(10,24,31,.72);padding:12px;align-items:center;justify-content:center;direction:rtl}.st-health-overlay.st-health-open{display:flex}
.st-health-panel{width:min(610px,100%);max-height:92dvh;overflow:hidden;border-radius:21px;background:#fff;display:flex;flex-direction:column;color:#153a36;box-shadow:0 20px 50px #0004;font-family:inherit}
.st-health-panel>header{padding:18px;background:linear-gradient(110deg,#056351,#0c7964);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px}.st-health-panel h2{font-size:17px;font-weight:900;margin:0}.st-health-panel>header p{font-size:11px;margin:5px 0 0;opacity:.85}.st-health-panel>header button{height:40px;width:40px;min-width:40px;border:1px solid #ffffff66;border-radius:11px;font-size:27px;color:white}
.st-health-body{overflow:auto;overscroll-behavior:contain;padding:15px;flex:1}.st-health-main{padding:13px;background:#ecf8f4;border:1px solid #c9e9dc;border-radius:14px;display:flex;gap:11px;align-items:flex-start}.st-health-main .st-health-dot{width:12px;height:12px;margin-top:7px;background:#839e98}.st-health-main strong{font-size:16px;font-weight:900}.st-health-main p{font-size:12px;margin:6px 0 0;color:#536863;line-height:1.7}
.st-health-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}.st-health-kpis>div{border:1px solid #dae8e3;border-radius:12px;padding:12px;min-width:0}.st-health-kpis span{display:block;color:#728880;font-size:11px;margin-bottom:7px}.st-health-kpis strong{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.st-health-storage{border-radius:13px;background:#f6f8f7;border:1px solid #e2e8e6;padding:12px;margin-top:13px}.st-health-storage h3{font-size:13px;font-weight:900;margin:0 0 5px}.st-health-storage p{font-size:11px;line-height:1.7;margin:0;color:#60736d}.st-health-notice{font-size:11px;color:#704d1c;background:#fff7ea;border:1px solid #f4e0be;border-radius:12px;padding:11px;line-height:1.8;margin:13px 0 0}
.st-health-panel>footer{display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #e1e9e5;padding:12px}.st-health-panel>footer button{font-size:11px;font-weight:900;border-radius:10px;padding:9px 12px;border:1px solid #aac9be;color:#096d5a;background:#fff}.st-health-panel>footer button:first-child{background:#097e67;color:white}.st-health-panel>footer button:disabled{opacity:.5}
@media(max-width:600px){#st-sync-health-badge{margin-top:3px;padding:2px 7px}.st-health-overlay{padding:6px}.st-health-panel{max-height:94dvh;border-radius:16px}.st-health-panel>header{padding:13px}.st-health-panel h2{font-size:15px}.st-health-body{padding:11px}.st-health-panel>footer button{flex:1}}
@media print{#st-sync-health-badge,.st-health-overlay{display:none!important}}
