/* AES Explorer — condensed controls v1 (2026-11-10). Pairs with js/aes-condense.js.
   Smaller buttons on mouse/trackpad screens; touch screens keep 44px targets. */

/* ---------- Compact buttons (desktop pointers only) ---------- */
@media (pointer: fine) {
  .cats .btn { min-height: 40px; padding: 0 16px; }
  .cats .btn .th { font-size: 15px; }
  .cats .btn small { font-size: 11px; }
  .views .btn { min-height: 38px; padding: 0 12px; font-size: 12px; letter-spacing: .03em; }
  .views .btn .n { font-size: 11px; margin-right: 6px; }
  .views { margin-bottom: 12px; }
  #controls .btn { min-height: 32px; padding: 5px 11px; font-size: 11.5px; letter-spacing: .04em; }
  #controls .btn.sm { min-height: 30px; padding: 4px 9px; font-size: 11px; }
  #controls .btn i { width: 8px; height: 8px; margin-right: 6px; }
  #controls .btn .two { font-size: 10px; margin-bottom: 2px; }
  #controls .row { gap: 6px; margin-bottom: 8px; }
  #controls .row .lab { font-size: 11px; min-width: 84px; }
  .aes-extnav { margin: 4px 0 8px; }
}

/* ---------- Filters panel ---------- */
.aes-filters { margin: 2px 0 10px; border: 1.5px solid var(--ink, #111); background: rgba(255,255,255,.55); }
.aes-filters > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  min-height: 40px; padding: 0 14px; user-select: none;
}
.aes-filters > summary::-webkit-details-marker { display: none; }
.aes-filters > summary:focus-visible { outline: 3px solid #753BFF; outline-offset: 2px; }
.af-label { font: 800 12px/1 Inter, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.af-names { font: 500 11px/1.2 "IBM Plex Mono", monospace; letter-spacing: .06em; color: #666; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #753BFF; color: #fff; font: 800 11px/1 Inter, Arial, sans-serif; }
.af-caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.aes-filters[open] > summary .af-caret { transform: rotate(-135deg) translateY(-2px); }
.aes-filters[open] > summary { border-bottom: 1px solid rgba(17,17,17,.15); }
.aes-filters-body { padding: 12px 14px 4px; }
.aes-filters:not([open]) > summary:hover { background: #C5F500; }

/* ---------- Usage hint behind "?" (floats at the right end of the 01–08 strip) ---------- */
.aes-hint { float: right; position: relative; z-index: 20; margin: 6px 0 0 12px; }
.aes-hint > summary {
  list-style: none; cursor: pointer; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--ink, #111); display: inline-flex; align-items: center; justify-content: center;
  font: 800 13px/1 Inter, Arial, sans-serif; background: #fff;
}
.aes-hint > summary::-webkit-details-marker { display: none; }
.aes-hint > summary:focus-visible { outline: 3px solid #753BFF; outline-offset: 2px; }
.aes-hint[open] > summary { background: #111; color: #fff; }
.aes-hint > .hint {
  display: block !important; position: absolute; right: 0; top: 36px; width: min(520px, 80vw);
  margin: 0; padding: 12px 14px; background: rgba(255,255,255,.96); border: 1.5px solid var(--ink, #111);
  font-size: 12.5px; line-height: 1.6;
}
@media (max-width: 1000px) { .aes-hint { display: none; } }   /* touch layouts already hide/shorten the hint */

@media print { .aes-filters { border: 0; } .aes-filters-body { padding: 0; } .aes-hint { display: none; } }
