.ab { min-width: 0; color: var(--ink); letter-spacing: 0; }
.ab .page-head { margin-bottom: 20px; }
.ab-section { min-width: 0; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.ab .ab-section:first-child { margin-top: 0; }
.ab h2 { font-size: 18px; margin: 0 0 14px; }
.ab h3 { font-size: 15px; margin: 24px 0 12px; }
.ab-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ab-heading h2 { margin: 0; }
.ab-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 18px; }
.ab-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px 24px; margin: 18px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.ab-meta > div { min-width: 0; }
.ab-meta dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
.ab-meta dd { margin: 6px 0 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ab-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.ab-filters label { flex: 1 1 180px; max-width: 340px; min-width: 0; }
.ab-filters button { flex: 0 0 auto; }
.ab input { min-width: 0; max-width: 100%; caret-color: var(--blue); }
.ab-key-form { display: grid; grid-template-columns: minmax(0, 460px) auto; align-items: end; justify-content: start; gap: 12px; margin-top: 20px; }
.ab-key-form label { min-width: 0; }
.ab .actions { flex-wrap: wrap; min-width: 0; }
.ab-price-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.ab-price-fields label { min-width: 0; }
.ab button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.ab .icon { width: 40px; height: 40px; flex: 0 0 40px; padding: 9px; }
.ab button:disabled { cursor: not-allowed; opacity: .55; }
.ab button:focus-visible, .ab input:focus-visible, .ab summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ab-error { color: #a0392c; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.ab-error:empty, #ab-write-state:empty, #ab-write-result:empty { display: none; }
.ab-warning { color: #805018; }
.ab-loading { min-height: 100px; padding: 18px 0; color: var(--muted); }
.ab .ab-table { max-width: 100%; max-height: 640px; overscroll-behavior: contain; }
.ab-table table { min-width: 760px; table-layout: fixed; width: 100%; }
.ab-table th { white-space: normal; overflow-wrap: anywhere; }
.ab-table td { vertical-align: top; font-family: var(--sans); font-variant-numeric: tabular-nums; line-height: 1.7; overflow-wrap: anywhere; }
.ab-billing .ab-section:last-of-type .ab-table table { min-width: 1280px; }
.ab-snapshot { margin-top: 8px; font-size: 12px; }
.ab-snapshot summary { cursor: pointer; color: var(--blue); min-height: 28px; }
.ab-snapshot dl { margin: 8px 0 0; }
.ab-snapshot dt { color: var(--muted); }
.ab-snapshot dd { margin: 2px 0 10px; }
.ab .pager { flex-wrap: wrap; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.ab-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ab ::selection { background: #dde7fd; color: var(--ink); }
@media (max-width: 900px) { .ab-key-form { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ab .icon { width: 44px; height: 44px; flex-basis: 44px; }
  .ab-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ab-filters label { max-width: none; flex-basis: 100%; }
  .ab-key-form .actions { align-items: stretch; }
  .ab-key-form .actions button { flex: 1 1 120px; justify-content: center; }
  .ab-price-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) { .ab-meta { grid-template-columns: minmax(0, 1fr); } }
