.provider-filter-panel { margin-top: 16px; }
.provider-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.provider-list-panel, .provider-detail-panel { margin-top: 0; }
.provider-table-wrap { max-height: calc(100vh - 365px); overflow: auto; }
.provider-row { cursor: pointer; }
.provider-row.selected { background: #edf8f3; }
.provider-row.selected td:first-child { box-shadow: inset 4px 0 #14754a; }
.provider-detail-panel { position: sticky; top: 18px; max-height: calc(100vh - 150px); overflow: auto; }
.provider-detail-panel h3 { margin: 18px 0 9px; font-size: 14px; }
.provider-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.provider-detail-grid > div { padding: 11px; border: 1px solid #e4e9ee; border-radius: 10px; background: #f8fafb; }
.provider-detail-grid span { display: block; margin-bottom: 4px; color: #76818c; font-size: 11px; }
.provider-detail-grid b { font-size: 14px; }
.provider-detail-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf0f3; }
.provider-detail-actions button { min-height: 38px; }
.capability-list { display: grid; gap: 8px; }
.capability-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid #e1e7ed; border-radius: 10px; background: #fafbfd; }
.capability-list article b,.capability-list article small { display: block; }
.capability-list article small { margin-top: 3px; color: #77838f; font-size: 10px; word-break: break-all; }
.provider-form label { min-width: 0; }
.security-banner { display: flex; align-items: flex-start; gap: 14px; padding: 17px 20px; border: 1px solid #f0c2c2; border-radius: 14px; background: #fff6f6; color: #8c2e2e; }
.security-banner strong { white-space: nowrap; }
.security-banner span { color: #6d4a4a; font-size: 13px; line-height: 1.7; }
.key-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) 1.5fr auto auto; gap: 12px; padding: 18px 22px; border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; background: #fafbfd; }
.key-filter-grid > * { width: 100%; min-height: 40px; }
.key-table-wrap { overflow: auto; }
.key-table { min-width: 1800px; }
.key-table th:nth-child(1) { width: 180px; }
.key-table th:nth-child(2) { width: 180px; }
.key-table th:nth-child(3) { width: 260px; }
.key-table th:nth-child(12) { width: 230px; }
.key-capabilities { min-width: 260px; max-width: 360px; white-space: normal; line-height: 1.65; }
.key-mask { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.key-mask button { margin-left: 8px; }
.pill.degraded, .pill.cooling, .pill.exhausted, .pill.near_limit, .pill.no_data { color: #8a5a00; background: #fff2d5; }
.pill.healthy { color: #14754a; background: #e7f8ee; }
.pill.unhealthy, .pill.error, .pill.unconfigured { color: #b33333; background: #fdecec; }
.security-confirm { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #f0c2c2; border-radius: 10px; background: #fff6f6; color: #8c2e2e; font-size: 13px; line-height: 1.7; }
.revealed-secret { display: grid; gap: 9px; margin-top: 16px; padding: 14px; border: 1px solid #f0c2c2; border-radius: 12px; background: #fff9f9; }
.revealed-secret code { display: block; padding: 11px; border-radius: 8px; background: #20262d; color: #f3f6f8; word-break: break-all; }
.revealed-secret small { color: #8c2e2e; }
.revealed-secret button { justify-self: start; }
@media (max-width: 1450px) {
  .provider-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .key-filter-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .key-filter-grid input { grid-column: span 2; }
}
@media (max-width: 1150px) {
  .provider-layout { grid-template-columns: 1fr; }
  .provider-detail-panel { position: static; max-height: none; }
  .key-filter-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}
.admin-access-form { align-items: start; }
.admin-access-form .inline-check { display: flex; align-items: center; gap: 9px; }
.admin-access-form .inline-check input { width: 17px; height: 17px; margin: 0; }
.role-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 9px; }
.check-card { display: flex!important; align-items: flex-start; gap: 10px; min-height: 64px; padding: 11px 12px; border: 1px solid #dce3ea; border-radius: 10px; background: #fafbfd; cursor: pointer; }
.check-card:hover { border-color: #8db9ea; background: #f4f9ff; }
.check-card input { width: 17px!important; height: 17px!important; flex: none; margin: 2px 0 0!important; }
.check-card span { min-width: 0; }
.check-card b,.check-card small { display: block; }
.check-card b { color: #2d3a47; font-size: 13px; }
.check-card small { margin-top: 4px; color: #7b8793; font-size: 11px; line-height: 1.45; word-break: break-all; }
.permission-groups { display: grid; gap: 12px; margin-top: 9px; }
.permission-groups section { padding: 13px; border: 1px solid #dfe6ed; border-radius: 12px; background: #f8fafc; }
.permission-groups h4 { margin: 0 0 10px; color: #425466; font-size: 13px; }
.permission-groups section>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
@media (max-width: 900px) { .role-check-grid,.permission-groups section>div { grid-template-columns: 1fr; } }
