.fq-managed-inventory { min-width: 0; color: var(--fq-ink); }
.fq-main > .fq-managed-inventory { animation: none; }
.fq-inventory-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 0; }
.fq-inventory-heading h2 { margin: 0; font-size: 24px; font-family: var(--fq-font-candy); }
.fq-inventory-heading p { margin: 8px 0 0; color: var(--fq-muted); }
.fq-inventory-heading .fq-button-row { margin: 0; }
.fq-inventory-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 18px 0; border-block: 1.5px solid var(--fq-ink); }
.fq-inventory-stats > div { display: flex; align-items: baseline; gap: 12px; }
.fq-inventory-stats span { color: var(--fq-muted); font-size: 13px; }
.fq-inventory-stats b { font-size: 24px; }
.fq-inventory-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 20px 0; }
.fq-inventory-filters .fq-field { flex: 1 1 190px; min-width: 0; }
.fq-inventory-filters .fq-field:first-child { flex: 2 1 270px; }
.fq-inventory-views { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; }
.fq-inventory-views .fq-field { width: 210px; }
.fq-inventory-columns { position: relative; }
.fq-inventory-columns summary { cursor: pointer; min-height: 42px; display: flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--fq-ink); border-radius: 8px; background: var(--fq-cloud, #fff); font-weight: 800; }
.fq-inventory-columns > div { position: absolute; z-index: 12; width: min(620px, calc(100vw - 48px)); max-height: 430px; overflow: auto; background: var(--fq-cloud, #fff); padding: 16px; border: 1.5px solid var(--fq-ink); border-radius: 8px; box-shadow: var(--fq-shadow); }
.fq-inventory-columns fieldset { border: 0; padding: 12px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fq-inventory-columns legend { font-weight: 800; }
.fq-inventory-columns label { font-size: 13px; overflow-wrap: anywhere; }
.fq-inventory-columns input { accent-color: var(--fq-blue); margin-right: 8px; }
.fq-inventory-table { width: max-content; min-width: 100%; table-layout: auto; overflow: visible; }
.fq-inventory-table th, .fq-inventory-table td { width: 190px; min-width: 150px; max-width: 260px; white-space: pre-line; overflow-wrap: anywhere; vertical-align: top; line-height: 1.65; }
.fq-inventory-table td[data-inventory-key="hardware"] { min-width: 240px; width: 240px; }
.fq-inventory-table td[data-inventory-key="network"] { min-width: 280px; width: 280px; max-width: 280px; }
.fq-inventory-table th:first-child, .fq-inventory-table td:first-child { width: 220px; min-width: 220px; max-width: 220px; position: sticky; left: 0; z-index: 2; background: var(--fq-cloud, #fff); }
.fq-inventory-table th:nth-child(2), .fq-inventory-table td:nth-child(2) { width: 240px; min-width: 240px; max-width: 240px; position: sticky; left: 220px; z-index: 2; background: var(--fq-cloud, #fff); border-right: 1.5px solid var(--fq-ink); }
.fq-inventory-table-nav { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -4px 0 10px; color: var(--fq-muted); font-size: 12px; }
.fq-inventory-table-nav .fq-button { width: 42px; min-width: 42px; padding: 0; font-size: 18px; }
.fq-inventory-desktop::-webkit-scrollbar { height: 12px; }
.fq-inventory-desktop::-webkit-scrollbar-track { background: var(--fq-cloud-blue, #eef7ff); }
.fq-inventory-desktop::-webkit-scrollbar-thumb { background: var(--fq-muted); border: 3px solid var(--fq-cloud-blue, #eef7ff); border-radius: 6px; }
.fq-inventory-table tbody tr { cursor: pointer; }
.fq-inventory-table tr:focus-visible, .fq-inventory-mobile-item:focus-visible { outline: 3px solid var(--fq-blue); outline-offset: -3px; }
.fq-inventory-table .fq-table-actions { min-width: 180px; }
.fq-inventory-table .fq-button { margin-bottom: 10px; }
.fq-inventory-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 0; }
.fq-inventory-pagination label { display: flex; align-items: center; gap: 8px; }
.fq-inventory-pagination select { width: 84px; }
.fq-inventory-mobile { display: none; }
.fq-inventory-modal h2 { font-size: 22px; overflow-wrap: anywhere; margin: 0; }
.fq-inventory-detail-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.fq-inventory-detail-tabs button { flex: 0 1 auto; }
.fq-inventory-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0 24px; }
.fq-inventory-facts > div { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--fq-muted); }
.fq-inventory-facts dt { font-size: 12px; color: var(--fq-muted); margin-bottom: 8px; }
.fq-inventory-facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; font-size: 14px; line-height: 1.65; text-wrap: pretty; }
.fq-inventory-line-list > div { padding: 12px 0; display: grid; gap: 8px; border-bottom: 1px solid var(--fq-muted); }
.fq-inventory-line-list span { color: var(--fq-muted); font-size: 13px; }
.fq-inventory-table td.fq-credential-column { width: 360px; min-width: 360px; max-width: 360px; white-space: normal; cursor: default; }
.fq-credential-category { min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--fq-line, #d9dfe5); }
.fq-credential-category h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.fq-credential-category h4, .fq-credential-column h4 { margin: 14px 0 8px; font-size: 13px; }
.fq-credential-category .fq-managed-asset-secret { border: 0; border-radius: 0; margin: 0; padding: 0; }
.fq-credential-category .fq-managed-asset-secret + .fq-managed-asset-secret { padding-top: 18px; }
.fq-credential-entry { min-width: 0; padding: 6px 0; }
.fq-credential-entry + .fq-credential-entry { border-top: 1px solid var(--fq-line, #d9dfe5); margin-top: 12px; padding-top: 12px; }
.fq-credential-entry dl { margin: 0; display: grid; gap: 10px; }
.fq-credential-entry dl > div { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; min-width: 0; }
.fq-credential-entry dt { color: var(--fq-muted); font-size: 12px; padding-top: 7px; }
.fq-credential-entry dd { min-width: 0; margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; align-self: center; }
.fq-secret-control { display: grid; grid-template-columns: minmax(0, 1fr) 36px 36px; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.fq-secret-control.is-revealed { grid-template-columns: minmax(0, 1fr) 36px; }
.fq-secret-control .fq-input { width: 100%; min-width: 0; height: 36px; min-height: 36px; padding: 6px 9px; font-family: var(--fq-font-mono, monospace); font-size: 13px; letter-spacing: 0; text-overflow: clip; cursor: text; }
.fq-credential-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1.5px solid var(--fq-ink); border-radius: 6px; background: var(--fq-cloud, #fff); color: var(--fq-ink); cursor: pointer; }
.fq-credential-icon:hover:not(:disabled) { background: var(--fq-cloud-blue, #eef7ff); }
.fq-credential-icon:focus-visible { outline: 3px solid var(--fq-blue); outline-offset: 2px; }
.fq-credential-icon:disabled { opacity: .4; cursor: default; }
.fq-credential-icon img, .fq-credential-unlock img { display: block; flex: 0 0 18px; width: 18px; height: 18px; }
.fq-credential-unlock { display: inline-flex; align-items: center; gap: 8px; }
.fq-credential-state { color: var(--fq-muted); font-size: 12px; }
.fq-credential-feedback { display: block; min-height: 18px; margin: 5px 0 0; color: var(--fq-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.fq-credential-feedback:empty { min-height: 18px; }
.fq-credential-dialog { box-sizing: border-box; width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 22px; overflow: auto; border: 1.5px solid var(--fq-ink); border-radius: 8px; background: var(--fq-cloud, #fff); color: var(--fq-ink); box-shadow: var(--fq-shadow); font-family: var(--fq-font-body, sans-serif); }
.fq-credential-dialog::backdrop { background: rgb(20 28 38 / 40%); }
.fq-credential-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.fq-credential-dialog-head h2 { margin: 0; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.fq-credential-dialog .fq-modal-close { position: static; flex: 0 0 36px; width: 36px; height: 36px; }
.fq-credential-dialog .fq-field { min-width: 0; }
.fq-credential-dialog .fq-input { width: 100%; min-width: 0; }
.fq-credential-dialog .fq-button-row { justify-content: flex-end; margin-top: 18px; }
.fq-credential-verified { color: var(--fq-muted); font-size: 13px; margin-bottom: 12px; }
.fq-credential-clipboard { position: fixed; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; }
@media (max-width: 700px) {
  .fq-inventory-desktop { display: none; }
  .fq-inventory-table-nav { display: none; }
  .fq-inventory-mobile { display: grid; gap: 16px; }
  .fq-inventory-mobile-item { min-width: 0; background: var(--fq-cloud, #fff); border: 1.5px solid var(--fq-ink); border-radius: 8px; padding: 16px; box-shadow: var(--fq-shadow-line); cursor: pointer; }
  .fq-inventory-mobile-item h3 { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; margin: 0 0 8px; }
  .fq-inventory-mobile-item p { overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; color: var(--fq-muted); }
  .fq-inventory-mobile-item dl { margin: 0; display: grid; gap: 10px; }
  .fq-inventory-mobile-item dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; font-size: 12px; }
  .fq-inventory-mobile-item dt { color: var(--fq-muted); }
  .fq-inventory-mobile-item dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
  .fq-inventory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fq-inventory-facts { grid-template-columns: minmax(0, 1fr); }
  .fq-inventory-columns > div { position: fixed; left: 20px; right: 20px; width: auto; }
  .fq-inventory-heading .fq-button { min-height: 44px; }
  .fq-inventory-filters { align-items: stretch; }
  .fq-inventory-filters .fq-field, .fq-inventory-filters .fq-field:first-child { flex-basis: 100%; }
  .fq-inventory-mobile-item dl > div.is-credential-category { display: block; padding-top: 12px; border-top: 1px solid var(--fq-line, #d9dfe5); }
  .fq-inventory-mobile-item .is-credential-category > dt { font-weight: 800; color: var(--fq-ink); margin-bottom: 10px; }
  .fq-inventory-mobile-item .fq-credential-entry dl > div { grid-template-columns: 42px minmax(0, 1fr); }
  .fq-secret-control { grid-template-columns: minmax(0, 1fr) 40px 40px; gap: 5px; }
  .fq-secret-control.is-revealed { grid-template-columns: minmax(0, 1fr) 40px; }
  .fq-credential-icon { width: 40px; height: 40px; }
  .fq-secret-control .fq-input { height: 40px; min-height: 40px; }
  .fq-credential-dialog { padding: 18px; }
}
