.admin-shell:has([data-view="adminCredits"].active) .main-area { background: #eef4fa; }
.admin-shell:has([data-view="adminCredits"].active) .topbar-tools .search-box { display: none; }

.acc {
  --acc-ink: #142b48;
  --acc-muted: #526b84;
  --acc-line: #d7e4f3;
  --acc-blue: #2455d8;
  max-width: 1520px;
  min-width: 0;
  margin-inline: auto;
  color: var(--acc-ink);
}

.acc button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid #cbd9ec;
  border-radius: 8px;
  background: #fff;
  color: var(--acc-ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.acc button:disabled { opacity: .55; cursor: default; }
.acc button:not(:disabled):hover { background: #edf4ff; }
.acc button:focus-visible, .acc summary:focus-visible, .acc :is(input, select):focus-visible {
  outline: 2px solid var(--acc-blue);
  outline-offset: 2px;
}
.acc button.acc-primary { background: var(--acc-blue); border-color: var(--acc-blue); color: #fff; font-weight: 700; }
.acc button.acc-primary:not(:disabled):hover { background: #1d46bc; }
.acc button svg { width: 17px; height: 17px; }

.acc-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.acc-heading h1 { margin: 0; font-size: clamp(24px, 2.5vw, 32px); }
.acc-mobile-scope, .acc-mobile-filter, .acc-mobile-export, .acc-mobile-view, .acc-class-preview { display: none; }

.acc-filters, .acc-idle, .acc-panel, .acc-overview-detail, .acc-definitions {
  min-width: 0;
  border: 1px solid var(--acc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px #182f5210;
}

.acc-filters { padding: 18px; }
.acc-filters h2 { margin: 0 0 12px; font-size: 17px; line-height: 1.35; }
.acc-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.acc-filters label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: var(--acc-muted); font-size: 13px; font-weight: 650; }
.acc select, .acc input:not([type=checkbox]) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #ccd9ec;
  border-radius: 8px;
  background: #fff;
  color: var(--acc-ink);
  font: inherit;
  font-size: 14px;
}
.acc-filters .acc-check { flex-direction: row; align-items: center; align-self: end; min-height: 42px; gap: 7px; }
.acc-check input { width: 16px; height: 16px; accent-color: var(--acc-blue); }
.acc-advanced { margin-top: 10px; }
.acc-advanced[open] { padding-bottom: 10px; }
.acc-advanced[open] .acc-filter-grid { margin-top: 8px; }
.acc summary { cursor: pointer; font-size: 14px; font-weight: 650; line-height: 1.6; }
.acc-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.acc-form-actions > button { min-width: 70px; }
.acc-form-actions > .acc-mobile-filter { display: none; }

.acc-tabs {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  padding: 0 8px;
  margin: 14px 0;
  border: 1px solid var(--acc-line);
  border-radius: 11px;
  background: #fff;
}
.acc-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; }
.acc-tabs button.active { color: var(--acc-blue); border-bottom-color: var(--acc-blue); font-weight: 750; }
.acc-idle {
  display: grid;
  min-height: 226px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
}
.acc-idle-icon {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border-radius: 14px;
  background: #edf4ff;
  color: var(--acc-blue);
}
.acc-idle-icon svg { width: 29px; height: 29px; }
.acc-idle h2 { margin: 0; font-size: 20px; }
.acc-idle p, .acc-loading { margin: 0; color: var(--acc-muted); font-size: 14px; }
.acc-loading { padding: 38px 12px; text-align: center; }

.acc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.acc-cards article { min-width: 0; padding: 13px 15px; border: 1px solid var(--acc-line); border-radius: 10px; background: #fff; }
.acc-cards small { display: block; color: var(--acc-muted); font-size: 13px; }
.acc-cards strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.acc-cards strong span { font-size: 13px; font-weight: 500; }
.acc-highlight strong { color: var(--acc-blue); }
.acc-secondary { margin-top: 9px; }
.acc-secondary > summary { display: none; }
.acc-scope, .acc-panel p, .acc-definitions p { color: var(--acc-muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.acc-panel { margin-top: 12px; padding: 16px; }
.acc-panel h3 { margin: 0 0 10px; font-size: 17px; }
.acc-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.acc-class-detail > summary, .acc-overview-detail > summary { display: none; }
.acc-overview-detail { border: 0; background: transparent; box-shadow: none; }

.acc-table-scroll { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; }
.acc table { width: 100%; min-width: 0; border-collapse: collapse; line-height: 1.55; }
.acc td, .acc th { padding: 8px 10px; border-bottom: 1px solid #e5edf7; font-size: 13px; }
.acc th { background: #eef4fc; color: var(--acc-ink); white-space: nowrap; }
.acc td { min-width: 52px; white-space: nowrap; }
.acc td:last-child { min-width: 66px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
.acc tbody tr:nth-child(even) { background: #f9fbff; }
.acc td :is(.acc-value, .acc-link) { min-height: 29px; padding: 2px; border: 0; background: transparent; color: var(--acc-blue); text-decoration: underline; }
.acc-badge { margin-inline-start: 5px; padding: 2px 5px; border-radius: 4px; background: #f7eedf; color: #785725; font-size: 11px; }
.acc-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; font-size: 13px; }
.acc-empty { padding: 24px 10px !important; text-align: center; color: var(--acc-muted); }
.acc-bars > div { display: grid; grid-template-columns: minmax(70px, 100px) minmax(32px, 1fr) auto; align-items: center; gap: 8px; margin: 11px 0; font-size: 13px; }
.acc-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.acc-bar-track { position: relative; height: 11px; border-radius: 3px; background: #edf3f9; }
.acc-bar-track::after { content: ""; position: absolute; inset: -2px auto -2px 50%; width: 1px; background: #b5c7da; }
.acc-bar-track i { position: absolute; height: 100%; background: #168581; }
.acc-bar-track i.negative { background: #ad812f; }
.acc-error { margin: 8px 0; padding: 11px; border: 1px solid #f0c7bf; border-radius: 9px; background: #fff2ee; color: #9e362c; }
.acc-definitions { margin-top: 12px; padding: 12px 15px; }
.acc-dialog {
  width: min(1200px, 94vw);
  max-height: 88dvh;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--acc-line);
  border-radius: 12px;
  color: var(--acc-ink);
}
.acc-dialog::backdrop { background: #12324d80; }
.acc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-dialog-head h3 { margin: 0; }
.acc-dialog-head button { font-size: 21px; }
.acc-detail-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.acc-dialog p { color: var(--acc-muted); font-size: 13px; }
.acc-dialog .acc-table-scroll { max-height: 55dvh; }
.acc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (min-width: 721px) {
  .acc-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 12px; }
  .acc-filters h2 { margin: 0; }
  .acc-filter-fields { display: contents; }
  .acc-filters > .acc-filter-heading, .acc-filter-fields > .acc-filter-grid, .acc-advanced[open] { grid-column: 1 / -1; }
  .acc-advanced, .acc-form-actions { margin: 0; }
  .acc-form-actions { grid-column: 2; }
}

@media (max-width: 960px) {
  .acc-overview { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .admin-shell:has([data-view="adminCredits"].active) .admin-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 60px;
    gap: 9px;
    padding: 8px 12px;
    background: #2455d8;
    color: #fff;
  }
  .admin-shell:has([data-view="adminCredits"].active) .admin-topbar strong { font-size: 16px; text-align: center; }
  .admin-shell:has([data-view="adminCredits"].active) .admin-topbar :is(small, .search-box, .api-status, .ghost-button) { display: none; }
  .admin-shell:has([data-view="adminCredits"].active) .topbar-tools { width: auto; margin: 0; }
  .admin-shell:has([data-view="adminCredits"].active) :is(.sidebar-toggle, .avatar-button) { background: #fff; color: #2455d8; box-shadow: none; }
  .admin-shell:has([data-view="adminCredits"].active) .content-area { padding: 11px 12px 22px; }
  .acc-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .acc-filter-heading, .acc-desktop-export, .acc-tabs { display: none; }
  .acc-mobile-scope, .acc-mobile-view, .acc-mobile-export, .acc-class-preview { display: block; }
  .acc-filters { padding: 11px; }
  .acc-filters h2 { margin-bottom: 7px; font-size: 16px; }
  [data-acc-scope-chips] { display: flex; flex-wrap: wrap; gap: 5px; }
  [data-acc-scope-chips] span { padding: 4px 7px; border-radius: 6px; background: #eaf1fe; color: var(--acc-ink); font-size: 12px; overflow-wrap: anywhere; }
  .acc-filter-fields { display: none; margin-top: 10px; }
  .acc-filter-open .acc-filter-fields { display: block; }
  .acc-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .acc-form-actions > .acc-mobile-filter { display: inline-flex; }
  .acc-form-actions { justify-content: stretch; }
  .acc-form-actions > button { flex: 1 1 0; min-width: 0; min-height: 42px; }
  .acc-form-actions > [data-acc-reset] { display: none; }
  .acc-filter-open .acc-form-actions > [data-acc-reset] { display: inline-flex; }
  .acc-mobile-view { margin: 9px 0; }
  .acc-mobile-view select { font-weight: 700; }
  .acc-idle { min-height: 169px; }
  .acc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--acc-line); border-radius: 11px; background: #fff; overflow: hidden; }
  .acc-cards article { padding: 10px; border: 0; border-radius: 0; }
  .acc-cards article:nth-child(odd) { border-right: 1px solid var(--acc-line); }
  .acc-cards article:nth-child(-n+2) { border-bottom: 1px solid var(--acc-line); }
  .acc-cards strong { font-size: clamp(20px, 5.5vw, 27px); }
  .acc-secondary > summary, .acc-class-detail > summary, .acc-overview-detail > summary { display: list-item; }
  .acc-secondary > summary { margin-bottom: 5px; color: var(--acc-muted); font-size: 12px; }
  .acc-scope { margin: 6px 0 0; font-size: 12px; }
  .acc-panel { padding: 11px; }
  .acc-panel h3 { margin-bottom: 6px; font-size: 16px; }
  .acc-class-preview ul { margin: 0; padding: 0; list-style: none; }
  .acc-class-preview li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--acc-line); font-size: 14px; }
  .acc-class-detail > summary { color: var(--acc-blue); font-size: 12px; }
  .acc-class-detail[open] { margin-top: 6px; }
  .acc-overview-detail { margin-top: 10px; padding: 9px 11px; border: 1px solid var(--acc-line); background: #fff; }
  .acc-mobile-export { margin-top: 10px; }
  .acc-mobile-export button { width: 100%; min-height: 42px; }
  .acc-pagination { justify-content: flex-start; }
}

