/* Monitoring pojemności D1 i R2 w panelu administratora Learnly */
.ad-storage-panel{margin-top:5px}
.ad-storage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.ad-storage-meter{min-width:0;border:1px solid var(--line,#dfe5ef);background:var(--surface,#fff);border-radius:17px;padding:19px;display:flex;flex-direction:column;gap:14px}
.ad-storage-top,.ad-storage-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.ad-storage-top>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ad-storage-top strong{font-size:20px}
.ad-storage-top small{color:var(--muted,#64748b);font-size:12px;width:100%;margin-left:38px}
.ad-storage-icon{display:grid;place-items:center;font-size:19px;border-radius:11px;background:#e6ecff;color:#455db5;width:28px;height:28px}
.ad-storage-status{font-size:11px;padding:7px 10px;border-radius:100px;font-weight:750;white-space:nowrap}
.ad-storage-status.connected{color:#117b4e;background:#e3f8ec}
.ad-storage-status.disconnected{color:#946011;background:#ffedd0}
.ad-storage-reading{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.ad-storage-reading strong{font-size:clamp(24px,2.6vw,32px);font-weight:850;letter-spacing:-1px;line-height:1.2}
.ad-storage-reading span{font-size:12px;color:var(--muted,#66738a)}
.ad-storage-bar{height:13px;background:#e5eaf4;overflow:hidden;border-radius:99px;width:100%;border:1px solid #d6dfeb;box-sizing:border-box}
.ad-storage-bar>span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#4e74df,#49bdb0);transition:width .35s ease}
.ad-storage-bar>span.warning{background:linear-gradient(90deg,#efad38,#e4753f)}
.ad-storage-bottom{font-size:12px;color:var(--muted,#5f6d83);line-height:1.4}
.ad-storage-bottom span:first-child{font-weight:650}
.ad-storage-note{margin:0;font-size:12px;color:var(--muted,#5f6d83);line-height:1.6}
.ad-storage-meter.storage-disconnected{border-style:dashed;background:var(--surface,#fff)}
:root[data-theme=dark] .ad-storage-icon{background:#333e65;color:#c9d5ff}
:root[data-theme=dark] .ad-storage-status.connected{color:#a1f2c6;background:#22523f}
:root[data-theme=dark] .ad-storage-status.disconnected{color:#f4d59c;background:#554126}
:root[data-theme=dark] .ad-storage-bar{background:#323f5a;border-color:#4e5d75}
@media(max-width:870px){.ad-storage-grid{grid-template-columns:minmax(0,1fr)}.ad-storage-top small{margin-left:0}}
