/* Resource modules follow the reference's spacious horizontal card lists.
   All sizes are CSS pixels. Tables remain tables where the reference uses one. */
.resource-list{display:flex;flex-direction:column;gap:16px;min-width:0}
.resource-row{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(150px,.7fr) minmax(170px,.85fr) auto;align-items:center;gap:16px;min-height:126px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:0 1px 2px #0f172a12;min-width:0}
.resource-identity{display:flex;align-items:center;gap:16px;min-width:0}
.resource-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:8px;background:var(--hover);color:var(--text)}
.resource-icon .icon{width:21px;height:21px}
.resource-copy{min-width:0;flex:1}
.resource-title-line{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.resource-copy h3,.resource-node-card h3{margin:0;font-size:16px;line-height:24px;font-weight:650;letter-spacing:-.25px;overflow-wrap:anywhere}
.resource-description{margin:3px 0 6px;color:var(--muted);font-size:14px;line-height:20px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-tag{padding:2px 5px;border-radius:4px;background:var(--hover);font-size:11px;line-height:16px;color:var(--muted);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-inline-path{display:flex;gap:6px;align-items:center;min-width:0;font-size:12px;line-height:20px;color:var(--muted)}
.resource-inline-path>.icon{width:13px;height:13px;flex-shrink:0}
.resource-value{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:20px}
.resource-value.text-mono{font-size:12px;line-height:20px}
.resource-meta,.resource-dates{min-width:0;border-left:1px dashed var(--line);padding-left:16px}
.resource-meta-line{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;line-height:20px;color:var(--muted)}
.resource-meta-line>.icon{height:13px;width:13px;flex-shrink:0}
.resource-meta-label{white-space:nowrap;flex-shrink:0;opacity:.85}
.resource-meta-line .resource-value{margin-left:auto;text-align:right}
.resource-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0;flex-wrap:wrap;max-width:112px}
.resource-actions .icon-btn{width:30px;height:30px;color:var(--muted)}
.resource-actions .icon-btn:hover{color:var(--text)}
.resource-actions .icon-danger:hover{color:#dc2626;background:#fef2f2}
.resource-actions .icon-btn>.icon{width:16px;height:16px}
.resource-actions .btn{font-size:13px;line-height:20px}
.resource-error{grid-column:1/-1;display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:20px;color:#dc2626;overflow-wrap:anywhere}
.resource-error .icon{flex-shrink:0;margin-top:2px}
.resource-error-text{display:block;font-size:12px!important;line-height:20px;color:#dc2626;overflow-wrap:anywhere;white-space:normal;margin:6px 0 0}
.resource-table{min-width:0;max-width:100%}
.resource-table .table-wrap{border-radius:8px}
.resource-table table{font-size:14px;line-height:20px}
.resource-table th{font-size:14px;line-height:20px;height:44px;padding:12px 16px;background:transparent}
.resource-table td{height:60px;padding:14px 16px;font-size:14px;line-height:20px}
.resource-table td strong{font-size:14px;font-weight:500}
.resource-table-name{display:flex;align-items:center;gap:10px;min-width:0}
.resource-table-name>.icon{width:18px;height:18px;color:var(--muted);flex-shrink:0}
.resource-table .resource-actions{max-width:none;flex-wrap:nowrap}
.resource-table .resource-table-path{display:block;max-width:300px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:20px}
.resource-table-secondary{color:var(--muted);font-size:13px}
.environment-table th{height:40px;padding:8px;font-weight:500}
.environment-table td{height:54px;padding:8px;font-size:14px}
.resource-env-name{min-width:150px;max-width:220px}
.resource-env-name strong{font-size:14px;line-height:20px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-env-name small{display:block;font-size:12px;line-height:16px;color:var(--muted);margin-top:3px}
.resource-package-tags{display:flex;flex-wrap:wrap;gap:4px;max-width:230px;min-width:110px}
.environment-table .resource-value{max-width:130px;font-size:14px}
.environment-table .resource-actions{max-width:100px;flex-wrap:wrap;gap:1px}
.environment-table .resource-actions .icon-btn{width:28px;height:28px}
.resource-operation-menu{position:fixed;inset:auto;margin:0;width:180px;max-height:calc(100vh - 16px);overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:5px;box-shadow:0 8px 24px #0f172a1a}
.resource-operation-menu::backdrop{background:transparent}
.resource-menu-item{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:7px 9px;border:0;border-radius:4px;background:transparent;font-size:14px;line-height:20px;color:var(--text);text-align:left}
.resource-menu-item:hover{background:var(--hover)}
.resource-menu-item:disabled{opacity:.4;cursor:not-allowed}
.resource-menu-item.danger{color:#dc2626}
.resource-menu-item .icon{width:16px;height:16px}
.resource-access-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:150px;max-width:430px}
.resource-access-tags .resource-tag{font-size:12px;line-height:18px;max-width:180px}
.resource-role-tag{display:inline-flex;padding:1px 7px;border:1px solid var(--line);border-radius:5px;font-size:12px;line-height:18px;background:var(--hover);white-space:nowrap}
.users-table table th,.users-table table td{padding:8px;height:48px}
.users-table .avatar{width:28px;height:28px;font-size:11px}
.resource-installed-card{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:24px;min-width:0}
.resource-installed-card>header{margin-bottom:20px}
.resource-installed-card>header h3{margin:0 0 5px;font-size:16px;line-height:24px;font-weight:600}
.resource-installed-card>header p{margin:0;color:var(--muted);font-size:14px;line-height:20px}
.resource-installed-card .table-wrap{border:0;border-radius:0}
.resource-python-copy{min-width:0}
.resource-python-copy>small{margin:2px 0 0;color:var(--muted);font-size:12px;line-height:18px}
.resource-python-copy .resource-table-path{font-size:12px;margin-top:3px;max-width:430px;color:var(--muted)}
.python-table table td,.python-table table th{padding:8px}
.resource-node-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0 0 24px}
.resource-node-stat{padding:16px 20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);min-width:0}
.resource-node-stat>span{display:flex;align-items:center;gap:7px;font-size:13px;line-height:20px;color:var(--muted)}
.resource-node-stat .icon{width:16px;height:16px}
.resource-node-stat>strong{display:block;margin-top:8px;font-size:24px;line-height:32px;font-weight:650}
.resource-node-stat.stat-1>strong{color:var(--green,#16a34a)}
.resource-node-stat.stat-4>strong{color:#dc2626}
.resource-node-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.resource-node-card{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 1px 2px #0f172a0b;min-width:0}
.resource-node-card>header{display:flex;align-items:center;gap:12px;min-width:0}
.resource-node-card header p{margin:3px 0 0;color:var(--muted);font-size:13px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-node-address{display:flex;align-items:center;gap:7px;padding:12px 0;margin:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);min-width:0}
.resource-node-address .icon{height:14px;width:14px;flex-shrink:0}
.resource-node-details{display:grid;gap:7px}
.resource-node-usage{display:flex;gap:24px;padding:12px 0 0;font-size:12px;color:var(--muted)}
.resource-node-usage strong{margin-left:5px;color:var(--text);font-weight:500}
.resource-node-card footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.resource-node-card footer .resource-actions{max-width:none}
@media(min-width:1500px){.resource-row{grid-template-columns:minmax(260px,1.7fr) minmax(160px,.7fr) minmax(210px,.85fr) auto}.resource-actions{max-width:none}.resource-node-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1150px){.resource-row{grid-template-columns:minmax(220px,1.4fr) minmax(150px,1fr) auto}.resource-dates{display:none}.resource-actions{max-width:105px}.resource-node-summary{gap:10px}.resource-node-stat{padding:14px}}
@media(max-width:850px){.resource-row{grid-template-columns:minmax(190px,1fr) minmax(145px,.75fr) auto}.resource-identity{gap:12px}.resource-node-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.resource-node-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.resource-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px;min-height:0}.resource-identity{align-items:flex-start}.resource-meta{grid-column:1/-1;grid-row:2;border-left:0;border-top:1px dashed var(--line);padding:10px 0 0;display:grid;gap:4px}.resource-actions{grid-column:2;grid-row:1;max-width:68px}.resource-copy h3{font-size:15px}.resource-node-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.resource-node-grid{grid-template-columns:minmax(0,1fr)}.resource-table td,.resource-table th{padding:12px}.resource-node-card{padding:16px}}
