/* Account summary and read-only, paged storage management share one capacity view. */
.app-screen .line-icon.database::before,.app-screen .line-icon.database::after { content:none !important; display:none !important; }
.line-icon.database > svg { display:block; width:100%; height:100%; }
.account-session-actions { display:flex; justify-content:flex-end; padding-top:18px; border-top:1px solid var(--line); }
.account-session-actions form { margin:0; }
.account-session-actions .btn { min-width:128px; min-height:44px; }
.storage-summary-card { display:block; }
.storage-summary-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:20px; }
.storage-summary-heading :is(h1,h2) { margin:0; font-size:20px; line-height:1.35; }
.storage-summary-heading .settings-heading { margin:0; }
.storage-capacity-line { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; }
.storage-capacity-used { color:var(--text); font-size:30px; line-height:1.3; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.storage-capacity-context { color:var(--muted); font-size:12px; }
.storage-capacity-meter { height:8px; margin:12px 0 9px; border-radius:8px; overflow:hidden; background:var(--theme-control,var(--surface-2)); }
.storage-capacity-meter > span { display:block; height:100%; background:var(--theme-accent,var(--accent)); }
.storage-capacity-foot { display:flex; flex-wrap:wrap; gap:6px 20px; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.storage-capacity-foot:empty { display:none; }
.storage-usage-card { display:block; padding:clamp(18px,2.6vw,30px); min-width:0; }
.storage-usage-warning { margin:18px 0 0; font-size:13px; color:var(--theme-warning,var(--warning)); }
.storage-management-layout { display:grid; grid-template-columns:minmax(190px,230px) minmax(0,1fr); gap:clamp(18px,2.6vw,32px); border-top:1px solid var(--line); margin-top:26px; padding-top:24px; }
.storage-categories { display:flex; flex-direction:column; align-self:start; gap:8px; min-width:0; }
.storage-category { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; color:var(--text); background:var(--surface); font-size:13px; text-decoration:none; }
.storage-category > strong { font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.storage-category:hover { background:var(--theme-hover,var(--surface-3)); }
.storage-category.is-selected { background:var(--theme-selected,var(--surface-2)); }
.storage-category-actions { display:flex; flex-direction:column; gap:12px; margin-top:12px; padding:4px 2px; }
.storage-category-actions a,.storage-action-cell a { color:var(--theme-link,var(--blue)); font-size:12px; }
.storage-list-panel { display:flex; flex-direction:column; min-width:0; }
.storage-list-heading { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-bottom:12px; }
.storage-list-heading h2 { margin:0; font-size:16px; }
.storage-list-heading > span { color:var(--muted); font-size:12px; }
.storage-list-scroll { height:clamp(260px,calc(100dvh - var(--topbar-height,72px) - 330px),600px); min-width:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.storage-list-scroll:focus-visible { outline:2px solid var(--theme-focus,var(--blue)); outline-offset:3px; }
.storage-file-table { border-collapse:separate; border-spacing:0; table-layout:fixed; width:100%; font-size:13px; }
.storage-file-table th { position:sticky; top:0; z-index:1; background:var(--surface); color:var(--muted); font-size:12px; font-weight:500; padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; }
.storage-file-table td { padding:14px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
.storage-file-table tbody tr:last-child td { border-bottom:0; }
.storage-file-table tbody tr:hover { background:var(--theme-hover,var(--surface-3)); }
.storage-file-name { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
.storage-file-detail { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.storage-file-table .storage-size-cell { width:120px; white-space:nowrap; text-align:right; font-variant-numeric:tabular-nums; }
.storage-file-table .storage-action-cell { width:90px; text-align:right; }
.storage-action-cell a { display:inline-block; white-space:nowrap; }
.storage-empty { min-height:100%; display:grid; place-content:center; padding:24px; color:var(--muted); font-size:14px; text-align:center; }
.storage-pagination { display:flex; justify-content:center; align-items:center; gap:20px; padding-top:14px; font-size:13px; font-variant-numeric:tabular-nums; }
.storage-pagination .btn { padding:7px 12px; min-height:36px; }
.storage-page-disabled { color:var(--muted); opacity:.65; padding:7px 12px; }
@media (max-width:900px) {
  .storage-management-layout { grid-template-columns:1fr; gap:20px; }
  .storage-categories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .storage-category { flex-direction:column; align-items:flex-start; gap:4px; }
  .storage-category-actions { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; margin-top:0; }
}
@media (max-width:480px) {
  .account-session-actions form,.account-session-actions .btn { width:100%; }
  .storage-summary-heading > [data-storage-manage] { width:100%; }
  .storage-categories { grid-template-columns:1fr; }
  .storage-category { flex-direction:row; align-items:center; }
  .storage-usage-card { padding:16px; }
  .storage-management-layout { margin-top:20px; padding-top:20px; }
  .storage-file-table :is(th,td) { padding:10px 6px; }
  .storage-file-table .storage-size-cell { width:78px; }
  .storage-file-table .storage-action-cell { width:74px; }
}
@media (pointer:coarse) {
  .storage-category,.storage-pagination .btn { min-height:44px; }
  .storage-action-cell a { min-height:44px; display:inline-flex; align-items:center; }
}
