.resource-page{width:100%;max-width:none}.resource-debt-alert{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 16px;align-items:center;padding:14px 16px;border:1px solid #e5a43a;border-radius:8px;background:#fff8e8;color:#6f4810}.resource-debt-alert strong,.resource-debt-alert span{display:block}.resource-debt-alert span{font-size:12px;line-height:1.55}.resource-debt-alert a{grid-column:2;grid-row:1/3;align-self:center}.resource-heading-actions button:disabled{cursor:not-allowed;opacity:.5}.resource-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:20px}.resource-heading h1{margin:4px 0 7px}.resource-heading-actions{display:flex;gap:9px}.resource-kpis{display:grid;grid-template-columns:1.35fr repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.resource-kpi{min-width:0;padding:17px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.resource-kpi span,.resource-kpi small{display:block;color:var(--muted);font-size:11px}.resource-kpi strong{display:block;margin:7px 0 4px;font-size:22px}.resource-meter{height:6px;margin-top:10px;border-radius:3px;background:var(--surface-muted);overflow:hidden}.resource-meter i{display:block;height:100%;background:var(--orange)}.resource-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:16px;align-items:start}.resource-tabs{display:grid;gap:4px;position:sticky;top:92px}.resource-tabs button{display:flex;justify-content:space-between;align-items:center;min-height:42px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);text-align:left}.resource-tabs button:hover,.resource-tabs button.active{background:var(--surface);color:var(--ink);box-shadow:inset 3px 0 var(--orange)}.resource-tabs b{font-size:11px}.resource-panel{padding:18px}.resource-toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.resource-search{display:flex;gap:8px;flex:1}.resource-search input{width:min(520px,100%)}.resource-table{width:100%;border-collapse:collapse}.resource-table th{padding:10px 12px;color:var(--muted);font-size:10px;text-align:left;border-bottom:1px solid var(--line)}.resource-table td{padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.resource-name{display:flex;align-items:center;gap:11px;min-width:0}.resource-file-icon{display:grid;width:38px;height:38px;flex:0 0 38px;border-radius:7px;background:var(--surface-muted);color:var(--orange);font-size:11px;font-weight:800;place-items:center}.resource-name div{min-width:0}.resource-name strong,.resource-name small{display:block}.resource-name strong{max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resource-name small{margin-top:3px;color:var(--muted);font-size:11px}.resource-actions{display:flex;justify-content:flex-end;gap:6px}.resource-pagination{display:flex;justify-content:flex-end;align-items:center;gap:6px;padding-top:15px}.resource-empty{padding:64px 20px;text-align:center;color:var(--muted)}.resource-empty strong{display:block;margin-bottom:7px;color:var(--ink)}.resource-usage{display:grid;gap:16px}.resource-chart{height:220px;display:flex;align-items:flex-end;gap:5px;padding:20px 6px 4px;border-bottom:1px solid var(--line)}.resource-chart span{position:relative;flex:1;min-width:3px;border-radius:3px 3px 0 0;background:#2d6ecb}.resource-chart span i{position:absolute;left:0;right:0;bottom:0;background:#25a36d;border-radius:3px 3px 0 0}.resource-legend{display:flex;gap:18px;color:var(--muted);font-size:11px}.resource-legend i{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:2px;background:#2d6ecb}.resource-legend span+span i{background:#25a36d}.resource-dialog{width:min(600px,calc(100vw - 28px));padding:0;border:0;border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #0f172a55}.resource-dialog::backdrop{background:#0f172a88}.resource-dialog-card{display:grid;gap:14px;padding:22px}.resource-dialog-card header,.resource-dialog-card footer{display:flex;justify-content:space-between;align-items:center;gap:14px}.resource-dialog-card h2{margin:3px 0}.resource-dialog-card label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:700}.resource-dialog-card .check-row{display:flex;align-items:center}.resource-dialog-card footer output{color:var(--muted);font-size:12px}.resource-limit-note,.resource-security-note{margin:0;padding:11px 13px;border:1px solid var(--line);border-radius:7px;background:var(--surface-muted);color:var(--muted);font-size:11px;line-height:1.6}@media(max-width:900px){.resource-kpis{grid-template-columns:1fr 1fr}.resource-layout{grid-template-columns:1fr}.resource-tabs{position:static;display:flex;overflow:auto}.resource-tabs button{flex:0 0 auto}.resource-heading{align-items:flex-start;flex-direction:column}.resource-table th:nth-child(3),.resource-table td:nth-child(3){display:none}}@media(max-width:600px){.resource-kpis{grid-template-columns:1fr}.resource-heading-actions,.resource-toolbar,.resource-search{width:100%;flex-wrap:wrap}.resource-heading-actions .button,.resource-search input{flex:1}.resource-panel{padding:12px}.resource-table th:nth-child(2),.resource-table td:nth-child(2){display:none}.resource-actions{flex-wrap:wrap}}

.resource-layout,.resource-panel{min-width:0}.resource-panel{overflow:hidden}
@media(max-width:600px){.resource-heading-actions .button,.resource-search input{min-width:0}.resource-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 104px}.resource-search{min-width:0}.resource-toolbar>select{width:104px}.resource-panel{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden}.resource-table,.resource-table tbody,.resource-table tr,.resource-table td{display:block;width:100%;box-sizing:border-box}.resource-table thead{display:none}.resource-table tr{padding:14px 0;border-bottom:1px solid var(--line)}.resource-table td{padding:4px 0;border:0}.resource-table td:nth-child(2){display:inline;width:auto;margin-left:49px;color:var(--muted);font-size:10px}.resource-name strong{max-width:calc(100vw - 118px)}.resource-actions{justify-content:flex-start;margin:8px 0 0 49px}.resource-pagination{justify-content:flex-start;flex-wrap:wrap}.resource-pagination .muted{width:100%}}

@media(min-width:901px){.resource-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;margin-bottom:18px}.resource-heading h1{font-size:46px;line-height:1.05;letter-spacing:0}.resource-heading .muted{max-width:780px;margin:8px 0 0;line-height:1.6}.resource-heading-actions{align-self:end;margin-bottom:2px}.resource-layout{grid-template-columns:190px 190px minmax(0,1fr)}.resource-folder-browser{position:sticky;top:92px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.resource-folder-browser-title{padding:3px 6px 9px;color:var(--muted);font-size:11px;font-weight:800}.resource-folder-choice,[data-resource-folders] button{display:block;width:100%;padding:8px 7px;border:0;border-radius:6px;background:transparent;color:var(--muted);text-align:left;font-size:12px;cursor:pointer}.resource-folder-choice:hover,.resource-folder-choice.active,[data-resource-folders] button:hover,[data-resource-folders] button.active{background:var(--surface-muted);color:var(--ink)}.resource-folder-choice[data-depth="1"],[data-resource-folders] button[data-depth="1"]{padding-left:18px}.resource-folder-choice[data-depth="2"],[data-resource-folders] button[data-depth="2"]{padding-left:30px}.resource-panel{padding:20px 22px}.resource-toolbar{align-items:center;margin-bottom:10px}.resource-search input{max-width:none}.resource-table{table-layout:fixed}.resource-table th:first-child{width:auto}.resource-table th:nth-child(2){width:82px}.resource-table th:nth-child(3){width:142px}.resource-table th:last-child{width:252px}.resource-table td{height:66px;padding:12px 10px}.resource-primary{min-width:0}.resource-name strong{max-width:none}.resource-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resource-size,.resource-date{white-space:nowrap;color:var(--muted);font-size:11px}.resource-action-cell{padding-left:4px!important;padding-right:0!important}.resource-actions{flex-wrap:nowrap;align-items:center}.resource-actions .button{min-width:54px;min-height:34px;padding:7px 11px;white-space:nowrap}.resource-pagination{padding-top:14px;border-top:1px solid var(--line)}}
@media(max-width:900px){.resource-folder-browser{order:-1;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.resource-folder-browser-title{margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:800}.resource-folder-choice,[data-resource-folders] button{display:inline-block;width:auto;margin:2px 4px 2px 0;padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--muted);font-size:11px}.resource-folder-choice.active,[data-resource-folders] button.active{background:var(--surface-muted);color:var(--ink)}}

/* Unified folder tree and resource filters. */
.resource-layout{grid-template-columns:236px minmax(0,1fr)}
.resource-navigation{position:sticky;top:92px;min-width:0;max-height:calc(100dvh - 116px);overflow:auto;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);scrollbar-width:thin}
.resource-folder-browser{position:static;padding:0;border:0;background:transparent}
.resource-folder-browser-title{padding:5px 8px 8px;color:var(--muted);font-size:10px;font-weight:800}
.resource-folder-choice{display:flex;width:100%;min-height:38px;align-items:center;gap:8px;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px;text-align:left;cursor:pointer}
.resource-folder-choice:hover,.resource-folder-choice.active{background:var(--surface-muted);color:var(--ink)}
.resource-folder-choice b{margin-left:auto;font-size:10px}
.resource-folder-tree{display:grid;gap:1px}
.resource-tree-row{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;padding-left:calc(var(--tree-depth) * 12px)}
.resource-folder-tree .resource-tree-toggle{display:grid;width:18px;height:32px;margin:0;padding:0;border:0;background:transparent;color:var(--muted);font-size:17px;line-height:1;place-items:center;cursor:pointer}
.resource-tree-toggle:disabled{cursor:default}
.resource-folder-tree .resource-tree-choice{display:flex;width:100%;min-width:0;min-height:34px;align-items:center;gap:7px;margin:0;padding:5px 7px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px;text-align:left;cursor:pointer}
.resource-tree-choice:hover,.resource-tree-choice.active{background:var(--surface-muted);color:var(--ink)}
.resource-tree-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-folder-tree .resource-tree-choice b{flex:0 0 auto;margin-left:auto;padding-left:6px;color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap}
.resource-tree-folder{position:relative;width:14px;height:10px;flex:0 0 14px;border:1.5px solid currentColor;border-radius:2px;opacity:.78}
.resource-tree-folder::before{position:absolute;top:-4px;left:-1.5px;width:6px;height:4px;border:1.5px solid currentColor;border-bottom:0;border-radius:2px 2px 0 0;content:""}
.resource-tree-folder.package{color:var(--orange);opacity:1}
.resource-tabs{position:static;display:grid;gap:2px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.resource-tabs button{min-height:36px;padding:0 9px;font-size:11px}
.resource-tabs button:hover,.resource-tabs button.active{background:var(--surface-muted);box-shadow:none}
.resource-breadcrumb{display:flex;min-height:28px;align-items:center;gap:6px;margin:-2px 0 10px;padding-bottom:9px;border-bottom:1px solid var(--line);overflow:auto;color:var(--muted);white-space:nowrap}
.resource-breadcrumb[hidden]{display:none}
.resource-breadcrumb button{padding:3px 2px;border:0;background:transparent;color:var(--muted);font-size:10px;cursor:pointer}
.resource-breadcrumb button:last-child{color:var(--ink);font-weight:700}
.resource-panel{min-height:360px}

@media(min-width:901px){
  .resource-layout{grid-template-columns:236px minmax(0,1fr)}
  .resource-folder-browser{position:static;padding:0;border:0;background:transparent}
}
.resource-utilities{display:grid;gap:4px;position:sticky;top:92px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.resource-utilities button{display:flex;justify-content:space-between;align-items:center;min-height:42px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);text-align:left}
.resource-utilities button:hover,.resource-utilities button.active{background:var(--surface);color:var(--ink);box-shadow:inset 3px 0 var(--orange)}
.resource-cleanup-countdown{display:block;margin-top:3px;color:var(--orange);font-size:10px;font-variant-numeric:tabular-nums}

@media(max-width:1100px) and (min-width:901px){
  .resource-layout{grid-template-columns:218px minmax(0,1fr);gap:12px}
  .resource-panel{padding:16px}
  .resource-table th:nth-child(3),.resource-table td:nth-child(3){display:none}
}

@media(max-width:900px){
  .resource-layout{grid-template-columns:minmax(0,1fr)}
  .resource-navigation{position:static;max-height:none;padding:10px;overflow:visible}
  .resource-folder-browser{padding:0;border:0;background:transparent}
  .resource-folder-choice{display:flex;width:100%;margin:0;padding:7px 9px;border:0}
  .resource-folder-tree{max-height:280px;overflow:auto}
  .resource-tree-row{display:grid}
  .resource-tree-toggle,.resource-tree-choice{margin:0;border:0}
  .resource-tabs{display:flex;overflow:auto}
  .resource-tabs .resource-folder-browser-title{display:none}
  .resource-tabs button{flex:0 0 auto}
}
