.disk-usage-widget { display: grid; gap: 6px; width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid #e5e2eb; border-radius: 9px; background: #fff; }
.disk-usage-widget .disk-usage-strip { padding: 0; border: 0; border-radius: 0; background: transparent; }
.disk-usage-widget #mac-disk-usage-strip { gap: 0 7px; }
.disk-usage-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.disk-usage-strip { display: grid; grid-template-columns: 17px minmax(0,1fr) minmax(0,max-content); align-items: center; gap: 3px 7px; width: 100%; min-width: 0; margin: 0; padding: 7px 9px; border: 1px solid #e5e2eb; border-radius: 9px; background: #fff; color: #65616d; text-align: left; }
.disk-usage-strip:hover { border-color: #ccc5df; background: #faf9fd; }
.disk-usage-strip:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.disk-usage-icon { grid-row: 1 / 3; width: 16px; height: 16px; fill: none; stroke: #726886; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.disk-usage-strip strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
#disk-usage-summary,#mac-disk-usage-summary { min-width: 0; overflow: hidden; color: #87828e; font-size: 8px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.disk-usage-track { grid-column: 2 / 4; height: 4px; overflow: hidden; border-radius: 999px; background: #e6e3eb; }
.disk-usage-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #7357ea; transition: width .25s ease; }
.disk-usage-strip.warning .disk-usage-track i { background: #d89530; }
.disk-usage-strip.critical .disk-usage-track i { background: #d85168; }
.disk-usage-modal { width: min(680px,calc(100% - 28px)); max-width: 680px; max-height: calc(100vh - 28px); overflow: hidden; }
.disk-usage-shell { display: flex; max-height: calc(100vh - 28px); flex-direction: column; padding: 28px; }
.disk-usage-detail { min-height: 190px; overflow-y: auto; overscroll-behavior: contain; margin: 22px -8px -6px 0; padding-right: 8px; }
.disk-usage-loading { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 10px; color: #77717f; text-align: center; }
.disk-usage-spinner { width: 24px; height: 24px; border: 3px solid #e7e2f3; border-top-color: #7357ea; border-radius: 50%; animation: diskUsageSpin .8s linear infinite; }
.disk-usage-loading p,.disk-usage-error p { margin: 0; font-size: 12px; line-height: 1.5; }
.disk-usage-overview { padding: 16px; border: 1px solid #e4def3; border-radius: 12px; background: linear-gradient(145deg,#fbfaff,#f6f3ff); }
.disk-usage-overview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.disk-usage-overview-head strong { color: #3f374b; font: 700 17px Manrope; }
.disk-usage-overview-head span { color: #777080; font-size: 11px; font-variant-numeric: tabular-nums; }
.disk-usage-total-track { height: 8px; overflow: hidden; margin-top: 11px; border-radius: 999px; background: #e0dce7; }
.disk-usage-total-track i { display: block; height: 100%; border-radius: inherit; background: #7357ea; }
.disk-usage-overview.warning .disk-usage-total-track i { background: #d89530; }
.disk-usage-overview.critical .disk-usage-total-track i { background: #d85168; }
.disk-usage-section { margin-top: 22px; }
.disk-usage-section h3 { margin: 0 0 8px; color: #898291; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.disk-usage-list { display: grid; margin: 0; padding: 0; list-style: none; }
.disk-usage-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 38px; border-bottom: 1px solid #efedf2; }
.disk-usage-row:last-child { border-bottom: 0; }
.disk-usage-row-label { display: flex; min-width: 0; align-items: center; gap: 8px; color: #514b57; font-size: 12px; }
.disk-usage-row-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disk-usage-project-dot,.disk-usage-category-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #9a91aa; }
.disk-usage-category-dot { border-radius: 3px; background: #a49aad; }
.disk-usage-row strong { color: #443d4b; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.disk-usage-measured { margin: 18px 0 0; color: #99929f; font-size: 9px; text-align: right; }
.disk-usage-reconciliation { margin-top: 20px; }
.disk-usage-reconciliation h3 { margin: 0 0 8px; color: #514b57; font-size: 12px; }
.disk-usage-reconciliation dl { margin: 0; font-size: 11px; }
.disk-usage-reconciliation dl > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 5px 0; }
.disk-usage-reconciliation dt { min-width: 0; }
.disk-usage-reconciliation dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.disk-usage-reconciliation [data-disk-key="listed"],.disk-usage-reconciliation [data-disk-key="used"],.disk-usage-reconciliation [data-disk-key="total"] { border-top: 1px solid #e4def3; font-weight: 700; }
.disk-usage-reconciliation p { color: #777080; font-size: 10px; line-height: 1.5; }
.disk-usage-error { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 12px; color: #6f6876; text-align: center; }
@keyframes diskUsageSpin { to { transform: rotate(360deg); } }
@media(max-width:680px) {
  .disk-usage-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .disk-usage-shell { max-height: calc(100dvh - 20px); padding: 22px; }
  .disk-usage-detail { margin-top: 18px; }
  .disk-usage-overview-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media(prefers-reduced-motion:reduce) { .disk-usage-spinner { animation-duration: 1.6s; } .disk-usage-track i { transition: none; } }
.backup-status-strip { min-width: 0; padding: 8px 9px; border: 1px solid #e5e2eb; border-radius: 9px; background: #fff; color: #65616d; font-size: 9px; }
.backup-status-heading { display: grid; grid-template-columns: auto max-content minmax(0,1fr); align-items: center; gap: 5px; }
.backup-status-metrics { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px; }
.backup-status-heading > *,.backup-status-metrics > * { min-width: 0; white-space: nowrap; }
.backup-status-metrics > * { overflow: hidden; text-overflow: ellipsis; }
.backup-status-heading strong { font-size: 10px; }
#backup-status-label { overflow: hidden; color: #87828e; font-size: 8px; text-align: right; text-overflow: ellipsis; }
.backup-status-strip.ready #backup-status-label { color: #25815e; }
.backup-status-strip.warning #backup-status-label { color: #b27124; }
#backup-status-time { color: #87828e; font-size: 9px; font-variant-numeric: tabular-nums; }
.backup-status-metrics { color: #87828e; font-size: 8px; font-variant-numeric: tabular-nums; }
.backup-status-strip.error { border-color: #dc5263; background: #fff1f2; color: #a32134; box-shadow: inset 3px 0 0 #dc5263; }
.backup-status-strip.error #backup-status-label,.backup-status-strip.error #backup-status-time,.backup-status-strip.error .backup-status-metrics { color: #a32134; }
.backup-status-strip.error #backup-status-label { font-weight: 700; }

#mac-disk-usage-strip[data-state="unavailable"] .disk-usage-track { opacity: .4; }
