.ac-page, .ac-dialog-body { display: grid; gap: 12px; min-width: 0; }
.ac-page { grid-template-columns: minmax(0, 1fr); }
.ac-page-list { min-width: 0; }
.ac-toolbar, .ac-action-group, .ac-pagination, .ac-card footer, .ac-detail-group > header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0;
}
.ac-toolbar > button, .ac-action-group > button, .ac-card footer > button { white-space: nowrap; }
.ac-search { min-width: min(240px, 100%); flex: 1 1 240px; }
.ac-select {
  width: auto; max-width: 100%; min-height: 35px; min-width: 0; padding: 5px 8px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink);
}
.ac-page-status { color: var(--muted); overflow-wrap: anywhere; }
.ac-page-status:empty, .ac-dialog-message:empty { display: none; }
.ac-page-header { justify-content: space-between; }
.ac-totals { color: var(--muted); font-size: 12px; }
.ac-filters {
  display: grid; grid-template-columns: minmax(200px, 2fr) minmax(140px, auto) minmax(150px, 1.3fr) auto
    repeat(2, minmax(135px, auto)); gap: 8px; padding: 10px; align-items: center; min-width: 0;
}
.ac-filters .ac-search { min-width: 0; }
.ac-filters .ac-select { width: 100%; height: 38px; }
.ac-filters .long-select-trigger { width: 100%; max-width: 100%; height: 38px; }
.ac-filters > button { white-space: nowrap; height: 38px; }
.ac-filters > button[aria-pressed="true"] { color: var(--primary); background: var(--primary-soft); }
.ac-selection-bar { display: flex; align-items: center; gap: 7px 14px; flex-wrap: wrap; min-width: 0; font-size: 12px; }
.ac-selection-bar label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ac-selection-bar > span { margin-inline-start: auto; color: var(--muted); }
.ac-selection-bar > button { min-height: 32px; padding: 4px 9px; white-space: nowrap; }
.ac-table-frame { min-width: 0; overflow: hidden; }
.ac-table-scroll { max-width: 100%; overflow: auto; }
.ac-table { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ac-table :is(th, td) { padding: 9px 8px; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.ac-table th { background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.ac-table td { height: 55px; border-top: 1px solid var(--line); color: var(--ink); background: var(--surface); font-size: 12px; }
.ac-table tr:hover td { background: var(--surface-2); }
.ac-table :is(th, td):first-child { width: 34px; text-align: center; }
.ac-table :is(th, td):nth-child(2) { width: 13%; }
.ac-table :is(th, td):nth-child(6) { width: 7%; }
.ac-table :is(th, td):nth-child(8) { width: 13%; }
.ac-table :is(th, td):last-child { width: 22%; }
.ac-table td > strong, .ac-table td > small { display: block; }
.ac-table td > small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.ac-table td > small[title] { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; }
.ac-row-actions button { min-height: 25px; padding: 2px 0; white-space: nowrap; font-size: 11px; }
.ac-row-actions button[data-asset-action="delete"] { color: var(--danger); }
.ac-badge { display: inline-block; padding: 3px 7px; white-space: nowrap; border-radius: 20px; color: var(--muted); background: var(--surface-2); }
.ac-badge--primary { color: var(--primary); background: var(--primary-soft); }
.ac-badge--available { color: var(--success); background: color-mix(in srgb, var(--success) 9%, var(--surface)); }
.ac-badge--failed, .ac-badge--unavailable, .ac-badge--authorization_expired, .ac-badge--expired { color: var(--danger); }
.ac-sr-only { position: absolute; block-size: 1px; inline-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ac-main-pagination { padding: 10px 12px; }
.ac-pagination .page-buttons { min-width: 0; flex-wrap: wrap; }
.ac-pagination .page-buttons button { flex: 0 0 auto; min-width: 31px; min-height: 32px; }
.ac-page-size, .ac-jump { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; }
.ac-jump input { width: 4rem; }
.ac-jump button { min-height: 35px; padding-inline: 9px; }
.ac-result { display: grid; gap: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; color: var(--ink); }
.ac-result p { margin: 0; }
.ac-result small { color: var(--muted); }
.ac-result--success { border-color: color-mix(in srgb, var(--success) 40%, var(--line)); background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.ac-result--success strong { color: var(--success); }
.ac-result--error { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); }
.ac-result--error strong, .ac-muted-failure { color: var(--danger) !important; }
.ac-result--warning { background: var(--surface-2); }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(315px, 100%), 1fr)); gap: 12px; }
.ac-card { min-width: 0; padding: 13px; display: flex; flex-direction: column; gap: 11px; }
.ac-card > header, .ac-binding, .ac-line {
  display: flex; justify-content: space-between; align-items: center; gap: 9px; min-width: 0;
}
.ac-card > header, .ac-line { align-items: baseline; }
.ac-card h3, .ac-card p, .ac-dialog h3, .ac-dialog p { margin: 0; }
.ac-card h3 { font-size: 14px; }
.ac-identity { display: grid; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.ac-identity small, .ac-line small, .ac-owner, .ac-pagination > span, .ac-choice small { color: var(--muted); }
.ac-owner { text-align: right; overflow-wrap: anywhere; max-width: 38%; font-size: 11px; }
.ac-card-links, .ac-detail-group, .ac-candidate-list, .ac-job-items, .ac-share-users { display: grid; gap: 7px; min-width: 0; }
.ac-card-links { flex: 1; }
.ac-card-preview {
  display: grid; justify-items: center; align-content: center; gap: 7px; min-height: 150px;
  padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2, var(--bg));
  color: var(--muted); text-align: center; overflow-wrap: anywhere;
}
.ac-card-preview img[data-ac-card-image] { width: 130px; height: 130px; background: #fff; object-fit: contain; border-radius: 4px; }
.ac-empty-qr { width: 34px; height: 34px; opacity: .36; filter: var(--icon-filter, none); }
.ac-card-preview [hidden] { display: none; }
.ac-line { background: var(--surface-2, var(--bg)); border-radius: 7px; padding: 6px 8px; }
.ac-line > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-line > small { text-align: right; overflow-wrap: anywhere; }
.ac-empty { padding: 12px; text-align: center; color: var(--muted); }
.ac-pagination { justify-content: space-between; }
.ac-pagination > div { display: flex; gap: 6px; }

.ac-dialog.modal {
  width: min(690px, calc(100vw - 22px)); max-height: calc(100dvh - 26px); padding: 0;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 13px; overflow: auto;
}
.ac-dialog-head, .ac-dialog-body, .ac-dialog-message { padding: 12px 14px; }
.ac-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.ac-dialog-message { padding-top: 0; color: var(--danger, #be3838); overflow-wrap: anywhere; }
.ac-dialog-head button { min-width: 34px; min-height: 34px; padding: 0; }
.ac-dialog .search-shell { width: 100%; }
.ac-detail-preview { display: grid; justify-items: center; gap: 6px; background: var(--surface-2, var(--bg)); border-radius: 9px; padding: 10px; color: var(--muted); }
.ac-detail-preview img { display: block; width: min(216px, 100%); height: auto; aspect-ratio: 1; background: white; border-radius: 5px; }
.ac-detail-preview img[hidden] { display: none; }
.ac-detail-group { border-top: 1px solid var(--line); padding-top: 9px; }
.ac-detail-group > header { justify-content: space-between; }
.ac-binding { flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; }
.ac-binding > .ac-identity { flex: 1 1 145px; }
.ac-action-group { justify-content: flex-start; }
.ac-field { display: grid; gap: 4px; font-size: 12px; min-width: 0; }
.ac-field:has(select) { flex: 1 1 190px; }
.ac-detail-header { justify-content: space-between; }
.ac-bind-source { align-items: end; }
.ac-bind-source > button, .ac-detail-header > button { min-height: 36px; }
.ac-verify-progress:empty, .ac-candidates:empty { display: none; }
.ac-wide-dialog.modal {
  --ac-dialog-inset: clamp(16px, 3vw, 32px);
  width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.ac-wide-dialog .ac-dialog-head {
  position: sticky; top: 0; z-index: 2; padding: 16px var(--ac-dialog-inset); background: var(--surface);
}
.ac-wide-dialog .ac-dialog-head h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; }
.ac-wide-dialog .ac-dialog-head button { min-width: 40px; min-height: 40px; }
.ac-wide-dialog .ac-dialog-body { gap: 20px; padding: 22px var(--ac-dialog-inset) 26px; }
.ac-wide-dialog .ac-dialog-message { padding: 0 var(--ac-dialog-inset) 22px; }
.ac-program-summary {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(38%, 20rem)); align-items: center;
  gap: 12px 24px; min-width: 0; padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.ac-program-summary .ac-identity > strong { font-size: clamp(17px, 2vw, 22px); line-height: 1.3; }
.ac-program-summary .ac-detail-account { justify-self: end; text-align: right; }
.ac-program-summary select { width: 100%; min-height: 40px; }
.ac-detail-empty {
  display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 190px; padding: 24px 16px;
  border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); text-align: center;
}
.ac-detail-empty .ac-empty-qr { width: 36px; height: 36px; }
.ac-detail-dialog .primary-button { min-height: 42px; }
.ac-detail-footer { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 16px; }
.ac-detail-content { display: grid; grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); align-items: start; gap: 16px; }
.ac-detail-content .ac-detail-preview {
  align-content: center; min-height: 200px; padding: 14px; border: 1px solid var(--line);
  text-align: center; overflow-wrap: anywhere;
}
.ac-detail-content .ac-detail-group { border: 0; padding: 0; gap: 10px; }
.ac-detail-content .ac-detail-group h4 { margin: 0; font-size: 14px; }
.ac-detail-content .ac-binding { display: grid; gap: 9px; padding: 12px; }
.ac-detail-content .ac-action-group { flex-wrap: wrap; gap: 6px; }
.ac-detail-content .ac-action-group > button { padding-inline: 10px; }
.ac-detail-dialog .ac-dialog-body { gap: clamp(12px, 2vw, 18px); }
.ac-detail-dialog .ac-dialog-message:empty { display: none; }
.ac-detail-dialog .ac-program-summary {
  grid-template-columns: minmax(0, 1fr) minmax(0, min(48%, 25rem));
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.ac-detail-dialog .ac-program-summary > .ac-field { justify-self: end; width: fit-content; min-width: min(160px, 100%); max-width: 100%; }
.ac-detail-dialog .ac-program-summary .ac-field select { width: max-content; max-width: 100%; }
.ac-detail-dialog .ac-detail-content { grid-template-columns: minmax(180px, 224px) minmax(0, 1fr); gap: clamp(12px, 2vw, 22px); }
.ac-detail-dialog .ac-detail-preview {
  min-height: 0;
  gap: 8px;
  background: var(--panel-soft);
  font-size: 12px;
}
.ac-detail-qr-frame { width: min(100%, 188px); aspect-ratio: 1; }
.ac-detail-content .ac-detail-qr-frame img { width: 100%; }
.ac-detail-qr-frame:has(img[hidden]) { display: none; }
.ac-detail-preview [data-ac-preview-message] { min-width: 0; }
.ac-detail-preview.is-loading .ac-progress { min-height: 209px; }
.ac-detail-content .ac-binding.is-previewed { border-color: color-mix(in srgb, var(--primary) 36%, var(--line)); }
.ac-detail-binding-head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; overflow-wrap: anywhere; }
.ac-detail-status { padding: 2px 6px; border-radius: 5px; background: var(--panel-soft); color: var(--muted); font-size: 11px; }
.ac-detail-status[data-status="available"] { background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--success); }
.ac-detail-timing { color: var(--muted); }
.ac-detail-content .ac-action-group > button { min-height: 34px; }
.ac-detail-dialog .ac-detail-footer { padding-top: 10px; }
.ac-detail-dialog .ac-detail-empty { min-height: 136px; gap: 8px; padding: 16px; }
.ac-detail-dialog .ac-detail-empty p { margin: 0; }
.ac-detail-dialog .ac-dialog-message .ac-progress { color: var(--muted); justify-content: flex-start; }
.ac-share-context strong { font-size: 17px; }
.ac-share-layout {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); align-items: start;
  gap: 16px; min-width: 0;
}
.ac-share-recipients, .ac-share-settings {
  display: grid; align-content: start; gap: 12px; min-width: 0; padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--line); border-radius: 12px;
}
.ac-share-recipients h4, .ac-share-duration legend { margin: 0; font-size: 14px; font-weight: 650; }
.ac-share-dialog .search-shell { max-width: none; min-width: 0; }
.ac-share-dialog .search-shell input { min-height: 42px; }
.ac-share-dialog .ac-share-users {
  align-content: start; min-height: 140px; max-height: min(330px, 43dvh); padding: 2px 10px 2px 2px;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.ac-share-dialog .ac-share-users .ac-choice { min-height: 50px; padding: 8px 10px; gap: 10px; cursor: pointer; }
.ac-share-dialog .ac-share-users .ac-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.ac-share-dialog .ac-share-users .ac-choice > span:nth-child(2) { flex: 1; min-width: 0; }
.ac-recipient-permission { font-size: 11px; color: var(--muted); }
.ac-share-empty { color: var(--muted); line-height: 1.6; padding: 12px 2px; }
.ac-share-settings { background: var(--surface-2); }
.ac-share-settings p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.ac-share-duration { display: grid; gap: 8px; min-width: 0; padding: 0; margin: 0; border: 0; }
.ac-share-duration legend { padding: 0; margin-bottom: 10px; }
.ac-share-duration .ac-choice { min-height: 40px; padding-inline: 10px; background: var(--surface); cursor: pointer; }
.ac-share-duration .ac-choice:has(input:checked) { border-color: var(--primary); }
.ac-share-days[hidden] { display: none; }
.ac-share-days input { width: 100%; min-height: 40px; }
.ac-share-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 18px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.ac-share-selected { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ac-share-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.ac-share-actions button { min-height: 42px; }
.ac-batch-dialog .ac-job-summary { justify-content: space-between; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); }
.ac-batch-dialog .ac-job-summary span { color: var(--muted); font-size: 13px; }
.ac-batch-dialog .ac-job-items .ac-binding { padding: 11px 12px; }
.ac-batch-dialog .ac-job-footer { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.ac-binding-dialog .ac-detail-header { align-items: center; gap: 10px 20px; }
.ac-binding-dialog .ac-identity strong { font-size: 16px; }
.ac-source-section {
  display: grid; min-width: 0; gap: 10px; padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.ac-source-section h4 { margin: 0; font-size: 14px; }
.ac-binding-dialog .ac-bind-source { display: flex; gap: 12px; align-items: flex-start; }
.ac-source-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-source-actions:empty, .ac-binding-options:empty { display: none; }
.ac-source-empty { flex: 1; align-self: center; color: var(--muted); }
.ac-binding-dialog .ac-source-actions button, .ac-binding-dialog .game-combobox-trigger,
.ac-binding-dialog .ac-toolbar > button, .ac-binding-dialog .ac-select { min-height: 42px; }
.ac-binding-dialog .ac-source-picker { width: auto; min-width: 0; flex: 1 1 280px; }
.ac-source-picker .game-options-popover {
  position: static; width: 100%; min-width: 0; margin-top: 6px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent);
}
.ac-source-picker .game-options-list { max-height: min(280px, 30dvh); margin-right: 5px; padding-inline-end: 9px; }
.ac-source-picker .game-option { display: grid; gap: 3px; min-height: 48px; padding: 7px 10px; overflow-wrap: anywhere; }
.ac-source-picker .game-option small { color: var(--muted); }
.ac-source-picker .game-options-empty { font-size: 13px; }
.ac-effective-source { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ac-binding-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.ac-binding-options > details:only-child, .ac-binding-options > details[open] { grid-column: 1 / -1; }
.ac-binding-dialog .ac-binding-options details { min-width: 0; padding: 0; border-radius: 10px; }
.ac-binding-dialog .ac-binding-options summary { min-height: 44px; padding: 12px 14px; font-weight: 600; }
.ac-binding-dialog .ac-binding-options form { padding: 0 14px 14px; gap: 12px; }
.ac-binding-dialog .ac-binding-options .ac-roster-toolbar { align-items: end; padding: 0 14px 14px; gap: 12px; }
.ac-binding-dialog .ac-binding-options .ac-roster-toolbar[hidden] { display: none; }
.ac-binding-dialog .ac-binding-options .ac-field { flex: 1 1 160px; gap: 6px; }
.ac-binding-dialog .ac-verify-progress:not(:empty) { margin: 0 14px 14px; }
.ac-workbench-roster:not(:empty) { padding: 0 14px 14px; }
.ac-binding-dialog .ac-workbench-empty { padding: 0 14px 14px; color: var(--muted); }
.ac-roster-results { border: 1px solid var(--line); border-radius: 9px; padding: 8px; }
.ac-roster-results .search-shell { min-width: 0; max-width: none; }
.ac-roster-results .game-options-list { max-height: min(250px, 30dvh); padding-right: 12px; }
.ac-roster-results .game-option { display: grid; gap: 3px; overflow-wrap: anywhere; }
.ac-roster-results .game-option small { color: var(--muted); }
.ac-progress {
  display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 37px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink);
  font-size: 13px; overflow-wrap: anywhere;
}
.ac-progress .ac-spinner {
  flex: 0 0 14px; width: 14px; height: 14px; border: 2px solid var(--line-strong);
  border-top-color: var(--primary); border-radius: 50%;
  /* Request progress stays visible when decorative page motion is off. */
  animation: spin .7s linear infinite !important;
}
@media (prefers-reduced-motion: reduce) { .ac-progress .ac-spinner { animation: none !important; } }
.ac-verify-progress { margin-top: 8px; }
.ac-choice { display: flex; align-items: center; gap: 7px; min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 7px; overflow-wrap: anywhere; }
.ac-choice small { display: block; }
.ac-choice:has(input:disabled) { color: var(--muted); }
.ac-candidates { display: grid; gap: 8px; }
.ac-verify-workbench { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.ac-verify-workbench summary { cursor: pointer; color: var(--primary); }
.ac-verify-workbench form { align-items: end; padding-top: 9px; }
.ac-verify-workbench input { min-width: min(170px, 100%); }
.ac-id-lookup .ac-field { flex: 1 1 200px; }
.ac-id-lookup input { width: 100%; }

.ac-qr-button, .preview-quick-button.ac-qr-button {
  display: inline-grid; align-content: center; justify-items: center; gap: 1px;
  width: 36px; min-width: 36px; height: 37px; padding: 1px; flex: 0 0 36px;
  border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); cursor: pointer;
  font: inherit; font-size: 9px; line-height: 1.05;
}
.ac-qr-button img, .preview-quick-button.ac-qr-button img { width: 15px; height: 15px; opacity: .75; filter: var(--icon-filter, none); }
.ac-qr-button span { display: block; overflow: hidden; white-space: nowrap; }
.ac-qr-button:hover { background: var(--primary-soft); border-color: var(--primary); }
.ac-qr-button.is-bound { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.ac-qr-pair { display: inline-flex; gap: 4px; align-items: center; flex: none; }

@media (max-width: 1460px) {
  .ac-filters { grid-template-columns: minmax(190px, 1.3fr) minmax(125px, auto) minmax(125px, 1fr) auto repeat(2, minmax(115px, auto)); }
}
@container workspace (max-width: 66rem) {
  .ac-filters { grid-template-columns: minmax(7.5rem, 1.3fr) minmax(8.75rem, auto) minmax(9rem, 1fr) auto repeat(2, minmax(8.125rem, auto)); gap: 7px; }
  .ac-filters .ac-select, .ac-filters .long-select-trigger { font-size: 13px; }
  .ac-filters > button { padding-inline: 8px; }
}
@container workspace (max-width: 53rem) {
  .ac-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ac-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-filters .ac-search { grid-column: 1 / -1; }
  .ac-filters .ac-select, .ac-filters .long-select-trigger { padding-inline: 6px; }
  .ac-main-pagination { justify-content: flex-start; }
  .ac-main-pagination > span, .ac-main-pagination > .page-buttons { width: 100%; }
  .ac-selection-bar > span { margin-inline-start: 0; width: 100%; }
  .ac-dialog-head, .ac-dialog-body { padding: 10px; }
  .ac-toolbar > .ac-search { flex-basis: 100%; }
  .ac-action-group > button { padding-inline: 6px; }
}
@media (max-width: 620px) {
  .ac-share-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ac-share-dialog .ac-share-users { min-height: 100px; max-height: min(230px, 34dvh); }
  .ac-share-actions { width: 100%; }
  .ac-share-actions .primary-button { flex: 1; }
}
@media (max-width: 520px) {
  .ac-wide-dialog.modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .ac-wide-dialog .ac-dialog-body { gap: 16px; padding-block: 16px 20px; }
  .ac-program-summary, .ac-detail-content { grid-template-columns: minmax(0, 1fr); }
  .ac-program-summary .ac-detail-account { justify-self: start; text-align: left; }
  .ac-detail-content .ac-detail-preview { min-height: 155px; }
  .ac-detail-dialog .ac-program-summary, .ac-detail-dialog .ac-detail-content { grid-template-columns: minmax(0, 1fr); }
  .ac-detail-dialog .ac-program-summary { padding-top: 0; }
  .ac-detail-dialog .ac-program-summary > .ac-field { justify-self: start; }
  .ac-detail-dialog .ac-detail-preview { width: 100%; }
  .ac-detail-dialog .ac-detail-qr-frame { width: min(100%, 155px); }
  .ac-detail-dialog .ac-detail-preview.is-loading .ac-progress { min-height: 176px; }
  .ac-binding-dialog .ac-bind-source { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ac-binding-options { grid-template-columns: minmax(0, 1fr); }
  .ac-binding-dialog .ac-binding-options form { align-items: stretch; }
  .ac-binding-dialog .ac-binding-options .ac-field { flex-basis: 100%; }
  .ac-source-actions > .primary-button { flex: 1 1 auto; }
}
