.agent-resource-editor{display:grid;gap:14px;min-width:0}.agent-resource-intro,.agent-resource-section{padding:13px;border:1px solid var(--line);border-radius:8px}.agent-resource-intro{background:var(--surface-muted)}.agent-resource-intro h3,.agent-resource-head h3{margin:0;font-size:14px}.agent-resource-intro p,.agent-resource-head p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.55}.agent-resource-section,.agent-resource-list,.agent-slot-list{display:grid;gap:9px;min-width:0}.agent-resource-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;min-width:0}.agent-resource-head>div{min-width:0}.agent-resource-head .button{flex:0 0 auto;white-space:nowrap}.agent-resource-browser{overflow:hidden}.agent-resource-toolbar{display:grid;grid-template-columns:minmax(220px,1.7fr) repeat(4,minmax(108px,.65fr));gap:8px;align-items:center}.agent-resource-toolbar :is(input,select,.button){width:100%;min-width:0;min-height:34px;font-size:10px}.agent-resource-search{display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:6px;min-width:0}.agent-resource-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.65fr);gap:5px 12px;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface-muted)}.agent-resource-summary>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.agent-resource-summary strong{font-size:11px}.agent-resource-summary span,.agent-resource-summary small{color:var(--muted);font-size:9px}.agent-resource-summary small{grid-column:1/-1}.agent-resource-summary-bar{height:6px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--line) 72%,transparent)}.agent-resource-summary-bar i{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .2s ease}.agent-resource-summary.is-over{border-color:#c14d4d88;background:#c14d4d0b}.agent-resource-summary.is-over .agent-resource-summary-bar i{background:#c14d4d}.agent-resource-summary.is-over small{color:#a23d3d}.agent-resource-row{display:grid;grid-template-columns:18px minmax(0,1fr) minmax(118px,138px);gap:8px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:7px;min-width:0;background:var(--surface)}.agent-resource-row.is-bound{border-color:color-mix(in srgb,var(--accent) 38%,var(--line));background:color-mix(in srgb,var(--accent) 4%,var(--surface))}.agent-resource-row>[data-binding]{width:15px;height:15px;margin:0}.agent-resource-copy{min-width:0}.agent-resource-copy strong,.agent-resource-copy small{display:block}.agent-resource-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.agent-resource-copy small{margin-top:3px;color:var(--muted);font-size:9px}.agent-resource-row>select{width:100%;min-width:0;min-height:32px;font-size:9px}.agent-resource-options{grid-column:2/-1;display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-width:0}.agent-resource-options label,.agent-slot-options label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:9px;white-space:nowrap}.agent-resource-options select{min-width:82px;min-height:30px;font-size:9px}.agent-resource-empty{display:grid;justify-items:center;gap:5px;padding:24px 12px;border:1px dashed var(--line);border-radius:7px;color:var(--muted);text-align:center;font-size:10px}.agent-resource-empty strong{color:var(--text);font-size:11px}.agent-resource-empty .button{margin-top:4px;white-space:nowrap}.agent-resource-pagination{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:34px;color:var(--muted);font-size:9px}.agent-resource-pagination>div{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.agent-resource-pagination .button{min-width:32px;min-height:30px;padding:5px 8px;white-space:nowrap}.agent-resource-pagination .button.is-current{border-color:var(--accent);color:var(--accent);opacity:1}.agent-slot-card{display:grid;grid-template-columns:minmax(0,1fr) 112px 34px;gap:7px;padding:9px;border:1px solid var(--line);border-radius:7px;min-width:0}.agent-slot-card :is(input,select){min-width:0;min-height:34px;font-size:10px}.agent-slot-card textarea,.agent-slot-options{grid-column:1/-1}.agent-slot-card textarea{min-height:58px}.agent-slot-options{display:flex;gap:14px}.agent-resource-save{display:flex;align-items:center;justify-content:flex-end;gap:10px}.agent-resource-save output{margin-right:auto;color:var(--muted);font-size:10px}.agent-resource-save .button{white-space:nowrap}.agent-resource-locked{padding:10px;border:1px solid #d39a2566;border-radius:7px;background:#d39a2510;color:#8b620b;font-size:10px}.buyer-slot-card{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:7px}.buyer-slot-card h4{margin:0;font-size:12px}.buyer-slot-card p{margin:3px 0 0;color:var(--muted);font-size:9px}.buyer-slot-card .button{justify-self:end}.resource-access-badge{display:inline-block;padding:3px 6px;border-radius:5px;background:var(--surface-muted);color:var(--muted);font-size:9px}
@media(max-width:980px){.agent-resource-toolbar{grid-template-columns:minmax(210px,1fr) repeat(2,minmax(120px,.6fr))}.agent-resource-search{grid-column:1/-1}.agent-resource-summary{grid-template-columns:1fr}.agent-resource-summary small{grid-column:1}.agent-resource-pagination{align-items:flex-start;flex-direction:column}.agent-resource-pagination>div{justify-content:flex-start}}
@media(max-width:560px){.agent-resource-intro,.agent-resource-section{padding:11px}.agent-resource-head{align-items:stretch;flex-direction:column}.agent-resource-head .button{align-self:flex-start}.agent-resource-toolbar{grid-template-columns:1fr 1fr}.agent-resource-search{grid-column:1/-1}.agent-resource-toolbar [data-resource-sort],.agent-resource-toolbar [data-resource-page-size]{grid-column:auto}.agent-resource-row{grid-template-columns:18px minmax(0,1fr)}.agent-resource-row>select{grid-column:2}.agent-resource-options{grid-column:1/-1;gap:9px}.agent-resource-options label:last-child{width:100%}.agent-resource-pagination>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.agent-resource-pagination .button{width:100%}.agent-slot-card{grid-template-columns:1fr}.agent-slot-card>*{grid-column:1!important}.agent-resource-save{align-items:stretch;flex-direction:column}.agent-resource-save output{margin:0}.agent-resource-save .button{align-self:flex-end}}
/* Batch authorization controls keep large imported packages manageable. */
.agent-resource-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface-muted)}.agent-resource-bulk>div{display:grid;gap:2px;margin-right:auto;min-width:110px}.agent-resource-bulk strong{font-size:10px}.agent-resource-bulk span,.agent-resource-bulk label{color:var(--muted);font-size:9px}.agent-resource-bulk :is(select,.button){min-height:30px;font-size:9px}.agent-resource-bulk label{display:flex;align-items:center;gap:4px;white-space:nowrap}.agent-resource-row{grid-template-columns:18px 18px minmax(0,1fr) minmax(118px,138px)}
@media(max-width:560px){.agent-resource-bulk{align-items:stretch}.agent-resource-bulk>div,.agent-resource-bulk :is(select,.button),.agent-resource-bulk label{width:100%}.agent-resource-row{grid-template-columns:18px 18px minmax(0,1fr)}.agent-resource-row>select{grid-column:3}}
