/* Tokens (#/tokens, #/tokens/:id). Scope every rule under .page-tokens.
   The detail drawer and the create / rotate / revoke dialogs open on <body>, outside
   .page-tokens, so they use shared classes plus CSSOM styles only. */

.page-tokens .tokens-controls { display: grid; gap: 12px; }
.page-tokens .list-card .tokens-controls { gap: 0; }
.page-tokens .tokens-list { display: grid; gap: 12px; min-width: 0; }
.page-tokens .strong { font-weight: 600; }
.page-tokens .row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.page-tokens .table td:has(> .row-actions) { width: 40px; }
.page-tokens .table td[data-label="Scope"] .pill { white-space: normal; }
.page-tokens .table td[data-label="State"] .pills { flex-wrap: wrap; max-width: 260px; }
.page-tokens .banner a { font-weight: 600; }

@media (max-width: 640px) {
  .page-tokens .row-actions { justify-content: flex-start; }
}

.page-tokens td.td-primary { min-width: 170px; }
@media (max-width: 640px) { .page-tokens td.td-primary { min-width: 0; } }

/* One quiet "..." per row, shown on row hover or keyboard focus (always on touch screens). */
@media (hover: hover) {
  .page-tokens .row-actions .btn-menu { opacity: 0; transition: opacity 120ms ease-out; }
  .page-tokens tr:hover .row-actions .btn-menu,
  .page-tokens tr:focus-within .row-actions .btn-menu,
  .page-tokens .row-actions .btn-menu[aria-expanded="true"] { opacity: 1; }
}
.page-tokens .row-actions .btn-menu { border-color: transparent; background: transparent; }
