.activation-panel { padding: 18px; min-width: 0; }
.activation-panel .panel-head { margin-bottom: 14px; }
.activation-panel .panel-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.activation-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.activation-search { flex: 1 1 280px; min-width: 0; }
.activation-search input { width: 100%; min-width: 0; }
.activation-filters select { width: auto; min-width: 120px; }
.activation-filters .btn, .activation-filters .text-btn { flex-shrink: 0; }
.activation-panel .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.activation-result-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 5px; }
.activation-table { width: 100%; min-width: 900px; table-layout: fixed; }
.activation-table th:nth-child(1) { width: 180px; }
.activation-table th:nth-child(3) { width: 175px; }
.activation-table th:nth-child(4) { width: 185px; }
.activation-table th:nth-child(5) { width: 110px; }
.activation-table td { white-space: normal; vertical-align: top; overflow-wrap: anywhere; }
.activation-table small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.activation-hint { font-family: ui-monospace, monospace; letter-spacing: 1px; }
.activation-courses { margin: 0; padding: 0; list-style: none; line-height: 1.7; overflow-wrap: anywhere; }
.activation-courses li + li { margin-top: 5px; }
.activation-table summary { cursor: pointer; color: var(--link-ink); }
.activation-table details[open] summary { margin-bottom: 8px; }
.activation-claimant { margin-top: 8px; }
.activation-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.activation-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.activation-empty { padding: 34px 18px; text-align: center; background: var(--surface-subtle); border-radius: 5px; }
.activation-empty h3 { margin: 0 0 8px; font-size: 16px; }
.activation-empty p { margin: 0 0 12px; color: var(--muted); line-height: 1.8; }
.activation-export { margin: 18px 0; }
.activation-record-batch { border: 1px solid var(--line); border-radius: 6px; margin: 10px 0; overflow: hidden; }
.activation-record-batch > summary { cursor: pointer; padding: 14px 16px; background: var(--surface-subtle); line-height: 1.7; }
.activation-record-batch > summary span { display: inline-block; margin-left: 16px; font-size: 13px; color: var(--muted); }
.activation-record-batch .activation-table { margin: 0; }
.activation-export { max-height: 55vh; overflow-y: auto; }
dialog.wide:has(.activation-export) { width: min(820px, 94vw); }
.activation-batch { border: 1px solid var(--line); border-radius: 5px; padding: 12px; margin-top: 10px; }
.activation-batch summary { cursor: pointer; font-weight: 600; }
.activation-batch .activation-courses { margin-top: 10px; font-size: 13px; color: var(--muted); }
.activation-batch textarea { display: block; width: 100%; height: 260px; resize: vertical; margin-top: 12px; font-family: ui-monospace, monospace; font-size: 14px; line-height: 1.9; white-space: pre; overflow: auto; }
.activation-revoke-courses { padding: 14px; margin: 16px 0; background: var(--surface-subtle); max-height: 220px; overflow: auto; }
.grant-course > span { min-width: 0; flex: 1; }
.grant-course strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.grant-footer > span { min-width: 0; }
.grant-footer .toolbar { flex-shrink: 0; }
@media (max-width: 760px) {
  .activation-panel { padding: 14px; }
  .activation-table { min-width: 0; table-layout: auto; }
  .activation-table thead { display: none; }
  .activation-table tbody { display: block; }
  .activation-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 14px; gap: 14px 18px; border-bottom: 1px solid var(--line); }
  .activation-table tr:last-child { border-bottom: 0; }
  .activation-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .activation-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
  .activation-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .activation-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .activation-table td:last-child { align-self: end; }
  .activation-search { flex-basis: 100%; }
  .activation-batch textarea { font-size: 13px; height: 230px; }
}
@media (max-width: 430px) {
  .activation-filters { gap: 8px; }
  .activation-filters select { flex: 1; min-width: 0; }
  .activation-table tr { padding: 12px; gap: 12px; }
  .grant-header { gap: 12px; }
  .grant-header > div { min-width: 0; }
  .grant-header > button { flex-shrink: 0; }
  .grant-footer { flex-wrap: wrap; }
  .grant-footer .toolbar { width: 100%; justify-content: flex-end; }
}
