#storage-switcher-bar {
  max-width:1000px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#storage-tab-filter.active {
  border-color:#a78bfa;
  background:#2b2344;
}
.filter-mode #input-container {
  display:none!important;
}
.filter-mode .account-workspace.has-admin-tools {
  display:block;
}
.filter-mode .account-list-workspace>:not(.storage-picker-heading):not(#storage-switcher-bar):not(#filter-queue-panel):not(.search-bar-wrap):not(#unified-account-search):not(.wb-work-queues):not(#wb-warehouse-picker):not(#zone-player-divider) {
  display:none!important;
}
#filter-queue-panel[hidden] {
  display:none;
}
.fq-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.fq-heading h3 {
  font-size:1rem;
  margin:0 0 5px;
}
.fq-heading p,.fq-note {
  color:var(--text-sub);
  font-size:.77rem;
  line-height:1.65;
}
.fq-tools,.fq-actions,.fq-search,.fq-pagination,.fq-transfer-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.fq-import {
  cursor:pointer;
  min-height:40px;
}
.fq-search {
  margin:14px 0 8px;
}
.fq-search input {
  flex:1 1 260px;
}
.fq-search input,.fq-search select,.fq-transfer-card input,.fq-transfer-card select {
  min-width:0;
  max-width:100%;
  padding:10px;
  background:#111c2d;
  border:1px solid #485872;
  border-radius:8px;
  color:#eef3ff;
  font:inherit;
}
.fq-message {
  font-size:.77rem;
  color:#efcc8b;
  min-height:20px;
  margin:8px 0;
  overflow-wrap:anywhere;
}
.fq-list {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.fq-row {
  display:grid;
  grid-template-columns:70px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid #35445a;
  border-radius:9px;
  padding:11px 12px;
  background:#131c2b;
}
.fq-row.is-working {
  background:#332b1b;
  border-color:#a47a36;
  box-shadow:inset 3px 0 0 #e5b85b;
}
.fq-number {
  font-size:.78rem;
  font-weight:800;
  color:#a7b9d3;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.fq-account {
  min-width:0;
}
.fq-account code {
  font:600 .85rem/1.6 "JetBrains Mono",monospace;
  color:#f0f5ff;
  overflow-wrap:anywhere;
  user-select:all;
}
.fq-account small {
  display:block;
  color:#95a8c2;
  font-size:.68rem;
  overflow-wrap:anywhere;
  margin-top:3px;
}
.fq-account small b {
  color:#f2d089;
  font-weight:650;
}
.fq-actions button,.fq-pagination button {
  padding:8px 10px;
  min-height:36px;
  border:1px solid #57617e;
  border-radius:7px;
  background:#28243e;
  color:#f0eaff;
  cursor:pointer;
  font-family:inherit;
  font-size:.72rem;
  font-weight:600;
  line-height:1.4;
}
.fq-actions button:first-child {
  background:#4f3e99;
  border-color:#9783d5;
}
.fq-actions .fq-delete {
  background:#351e2a;
  border-color:#8a4c5d;
  color:#ffa7bc;
}
.fq-pagination button:disabled {
  opacity:.45;
  cursor:default;
}
.fq-pagination {
  justify-content:flex-end;
  margin-top:14px;
  font-size:.73rem;
  color:#aab9d0;
}
.fq-empty {
  padding:30px 12px;
  text-align:center;
  color:var(--text-sub);
}
#filter-transfer-modal>.fq-transfer-card,
#unban-transfer-modal>.fq-transfer-card {
  width:100%;
  max-width:min(460px,calc(100vw - 24px))!important;
  text-align:left;
}
.fq-transfer-card label {
  display:block;
  font-size:.78rem;
  color:#bfcee4;
  margin:12px 0 5px;
}
.fq-transfer-card input,.fq-transfer-card select {
  width:100%;
}
.fq-transfer-account {
  font-size:.84rem;
  color:#c6b8ff;
  margin:8px 0;
  overflow-wrap:anywhere;
}
.fq-meta-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.fq-transfer-actions {
  justify-content:flex-end;
  margin-top:16px;
}
.fq-actions button:focus-visible,.fq-pagination button:focus-visible {
  outline:2px solid #c1adff;
  outline-offset:3px;
}
@media(max-width:700px) {
  #storage-switcher-bar {
    gap:7px;
  }
  #storage-switcher-bar .storage-tab-btn {
    padding:9px;
    min-width:0;
  }
  #storage-switcher-bar .storage-tab-btn.active {
    padding:8px;
  }
  #storage-switcher-bar .storage-tab-title {
    font-size:.7rem;
    overflow-wrap:anywhere;
  }
  #storage-switcher-bar .storage-tab-btn::after {
    font-size:.6rem;
  }
  .fq-row {
    grid-template-columns:48px minmax(0,1fr);
    gap:8px;
    padding:11px;
  }
  .fq-actions {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1.1fr 1.1fr .8fr;
  }
  .fq-actions button {
    min-height:44px;
    font-size:.7rem;
    padding:8px 5px;
  }
  .fq-search input,.fq-search select,.fq-transfer-card input,.fq-transfer-card select {
    font-size:16px;
  }
}
.fq-release {
  margin-left:5px;
  padding:2px 5px;
  border:0;
  background:transparent;
  color:#c7b8e7;
  text-decoration:underline;
  cursor:pointer;
  font:inherit;
}
#filter-queue-panel[aria-busy=true] .fq-import {
  pointer-events:none;
}
@media(max-width:700px) {
  .fq-release {
    min-height:32px;
    padding:5px;
  }
}
.filter-mode #stat-active {
  color:#efc778;
}
.filter-mode #stat-ban {
  color:#a9b8ce;
}

#storage-switcher-bar.has-filter-access { grid-template-columns:repeat(3,minmax(0,1fr)); }
#storage-tab-filter[hidden] { display:none!important; }

.fq-groups { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; margin:16px 0; }
.fq-group { min-width:0; border:1px solid #38445b; border-radius:10px; background:#141e30; padding:10px; }

.fq-group>button[data-group] { display:flex; flex-direction:column; gap:7px; width:100%; text-align:left; background:transparent; color:inherit; border:0; padding:4px; cursor:pointer; font:inherit; }
.fq-group small { color:#b6c5dc; line-height:1.5; }
.fq-group progress { width:100%; height:6px; accent-color:#a78bfa; }
.fq-group-delete { margin-top:10px; min-height:36px; padding:5px 10px; border:1px solid #8e4659; border-radius:6px; color:#ffb2bf; background:#38212c; cursor:pointer; }

@media(max-width:500px) { .fq-groups { grid-template-columns:1fr; } }

.fq-group-source { display:block; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#d0c4ff; font-size:.82rem; }
.fq-group .fq-group-import { font-size:.72rem; color:#9eacc2; overflow-wrap:anywhere; }

.fq-row.is-resumed { outline:2px solid #bca7ff; outline-offset:2px; box-shadow:0 0 0 5px rgba(167,139,250,.12); scroll-margin-block:24px; }
.fq-resume { border:1px solid #a78bfa!important; color:#e1d6ff!important; background:#342950!important; }

/* Import batches share a subtle tint; selection has its own outline and label. */
.fq-group.fq-batch-cyan { --batch-rgb:103,211,235; }
.fq-group.fq-batch-violet { --batch-rgb:184,160,245; }
.fq-group.fq-batch-mint { --batch-rgb:111,217,180; }
.fq-group.fq-batch-amber { --batch-rgb:235,199,121; }
.fq-group.fq-batch-blue { --batch-rgb:139,184,249; }
.fq-group.fq-batch-rose { --batch-rgb:236,164,194; }
.fq-group { --batch-rgb:103,211,235; border-top:4px solid rgb(var(--batch-rgb)); background:linear-gradient(rgba(var(--batch-rgb),.075),rgba(var(--batch-rgb),.075)),#141e30; }
.fq-group .fq-group-source { width:100%; box-sizing:border-box; padding:5px 7px; border-radius:5px; background:rgba(var(--batch-rgb),.16); color:rgb(var(--batch-rgb)); }
.fq-group progress { accent-color:rgb(var(--batch-rgb)); }
.fq-group-title { display:flex; width:100%; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px; }
.fq-group-selected { font-size:.66rem; color:#f3f4ff; background:#42435e; padding:3px 5px; border-radius:4px; }
.fq-group.is-selected { outline:2px solid #e0d8ff; outline-offset:2px; }
.fq-group:has(button[data-group]:hover) { box-shadow:0 0 0 1px rgba(var(--batch-rgb),.45); }
.fq-group>button[data-group]:focus-visible { outline:2px solid #e0d8ff; outline-offset:2px; border-radius:5px; }

.badge-filter-transfer { color:#b6f1e0; background:rgba(45,173,139,.12); border:1px solid rgba(100,210,177,.3); font-size:.65rem; line-height:1.4; white-space:normal; }

/* Working status overrides the background; the top border keeps the import color. */
.fq-group.is-filtering { background:linear-gradient(135deg,rgba(244,181,65,.15),rgba(244,181,65,.06)),#141e30; border-left-color:#a77c35; border-right-color:#a77c35; border-bottom-color:#a77c35; }
.fq-group-working { display:inline-flex; align-items:center; padding:3px 6px; border-radius:5px; color:#ffe0a0; background:rgba(244,181,65,.15); border:1px solid rgba(244,181,65,.35); font-size:.68rem; line-height:1.4; }

.fq-group-workers { display:flex; flex-wrap:wrap; gap:5px; width:100%; }
.fq-worker-tag { display:inline-flex; max-width:100%; box-sizing:border-box; padding:3px 7px; border:1px solid rgba(244,181,65,.28); border-radius:6px; color:#ffe7b8; background:rgba(244,181,65,.1); font-size:.72rem; line-height:1.4; overflow-wrap:anywhere; }

#admin-account-tools { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; justify-content:center; }
#admin-account-tools[hidden], .filter-mode .account-list-workspace>#admin-account-tools[hidden] { display:none!important; }
.filter-mode .account-list-workspace>#admin-account-tools { display:flex!important; }
.aat-card { max-width:760px; width:100%; text-align:left; overflow:auto; }
.aat-heading,.aat-query,.aat-pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.aat-heading h3 { margin:0; }
.aat-query input { flex:1; min-width:0; }
#aat-message { color:#b7c8df; line-height:1.5; }
.aat-result { display:flex; flex-direction:column; gap:7px; padding:12px; margin:10px 0; border:1px solid #3c4961; border-radius:10px; background:#111b2d; overflow-wrap:anywhere; }
.aat-result small { color:#adbeda; }
.aat-result button { align-self:flex-start; }
.aat-names { max-height:150px; overflow:auto; line-height:1.7; padding-top:8px; }
.aat-pagination { margin-top:12px; }
@media(max-width:500px) { .aat-card { padding:16px 12px; } .aat-query { flex-wrap:wrap; } }

/* Compact group chooser: only the selected group stays visible when closed. */
.fq-group-picker { margin:14px 0; border:1px solid #48546d; border-radius:10px; background:#141e30; }
.fq-group-picker>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 14px; cursor:pointer; list-style:none; overflow-wrap:anywhere; }
.fq-group-picker>summary::-webkit-details-marker { display:none; }
.fq-group-picker>summary:focus-visible { outline:2px solid #bca7ff; border-radius:9px; }
.fq-picker-action { flex-shrink:0; color:#c8b5ff; font-size:.8rem; }
.fq-group-picker .fq-groups { display:flex; flex-direction:column; max-height:360px; max-height:min(360px,55dvh); overflow-y:auto; overscroll-behavior:contain; padding:10px; margin:0; gap:8px; border-top:1px solid #354159; }
.fq-group-picker .fq-group { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:9px 10px; flex-shrink:0; border-top-width:1px; border-left:4px solid rgb(var(--batch-rgb)); }
.fq-group-picker .fq-group.is-selected { outline-offset:-2px; }
.fq-group-picker .fq-group>button[data-group] { display:grid; grid-template-columns:minmax(110px,.7fr) minmax(160px,1.5fr) minmax(190px,1fr); gap:6px 12px; padding:2px; }
.fq-group-picker .fq-group-title { grid-column:1; grid-row:1; justify-content:flex-start; }
.fq-group-picker .fq-group-source { grid-column:2; grid-row:1; }
.fq-group-picker .fq-group-import { grid-column:2; grid-row:2; }
.fq-group-picker .fq-group-count { grid-column:3; grid-row:1; }
.fq-group-picker .fq-group-progress-note { grid-column:3; grid-row:2; }
.fq-group-picker .fq-group-workers { grid-column:1; grid-row:2; }
.fq-group-picker progress { display:none; }
.fq-group-picker .fq-group-delete { margin:0; }
#fq-account-list-start { scroll-margin-top:20px; }
@media(max-width:760px) {
 .fq-group-picker .fq-group>button[data-group] { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .fq-group-picker .fq-group-count { grid-column:1; grid-row:3; }
 .fq-group-picker .fq-group-progress-note { grid-column:2; grid-row:3; }
 .fq-group-picker .fq-group { gap:8px; }
}
@media(max-width:450px) {
 .fq-group-picker>summary { flex-wrap:wrap; gap:6px; padding:11px; }
 .fq-group-picker .fq-group { display:block; }
 .fq-group-picker .fq-group-delete { margin-top:8px; }
 .fq-group-picker .fq-groups { padding:7px; }
}

#storage-tab-unban[hidden] { display:none!important; }
#storage-tab-unban.active { background:#183b34; border-color:#64d2b1; }
#storage-switcher-bar.has-unban.has-filter-access { grid-template-columns:repeat(4,minmax(0,1fr)); max-width:1280px; }
.storage-mode-unban #input-container { display:none!important; }
.storage-mode-unban .account-workspace.has-admin-tools { display:block; }
.btn-return-rank { min-height:36px; border:1px solid #418d78; background:#173e34; color:#b5f4df; border-radius:7px; padding:6px 9px; cursor:pointer; font:inherit; font-size:.72rem; }
.badge-unban-checked { color:#b9eadb; background:#173e34; border:1px solid #418d78; font-size:.65rem; white-space:normal; }
@media(max-width:760px){#storage-switcher-bar.has-unban.has-filter-access { grid-template-columns:repeat(2,minmax(0,1fr)); }}

/* Review cards: balanced metadata, then one clear row of actions. */
.storage-mode-unban .mobile-card-list .m-action-row.mode-unban { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.storage-mode-unban .mobile-card-list .m-admin-actions { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(100px,1fr) 44px; gap:8px; align-items:stretch; }
.storage-mode-unban .mobile-card-list .m-admin-actions>button { width:100%; min-width:0; min-height:44px; box-sizing:border-box; margin:0; padding:8px; white-space:nowrap; }
.storage-mode-unban .mobile-card-list .m-admin-actions .btn-return-rank { display:flex; align-items:center; justify-content:center; font-size:.76rem; }
.storage-mode-unban .mobile-card-list .m-admin-actions .m-btn-del { width:44px; padding:8px; }
.storage-mode-unban .mobile-card-list .m-admin-actions .m-btn-del span { display:none; }
.storage-mode-unban .mobile-card-list .m-creds-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.storage-mode-unban .mobile-card-list .m-creds-row>*,.storage-mode-unban .mobile-card-list .m-action-row>.tbl-input { min-width:0; }
.storage-mode-unban .mobile-card-list .m-created-row { flex-wrap:wrap; gap:6px 10px; }
@media(max-width:360px){.storage-mode-unban .mobile-card-list .m-admin-actions { grid-template-columns:minmax(0,1fr) minmax(92px,1fr) 40px; gap:6px; }.storage-mode-unban .mobile-card-list .m-admin-actions .m-btn-del { width:40px; }}

.fq-active-groups { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:10px 0 14px; }
.fq-active-label { color:#f1cc80; font-size:.75rem; font-weight:700; margin-right:3px; }
.fq-active-group-tag { display:inline-flex; flex-wrap:wrap; align-items:center; gap:5px 8px; max-width:100%; padding:7px 9px; border:1px solid #826735; border-radius:8px; background:rgba(244,181,65,.08); color:#ffe5b6; cursor:pointer; font:inherit; font-size:.74rem; text-align:left; }
.fq-active-group-tag span { overflow-wrap:anywhere; min-width:0; }
.fq-active-group-tag small { color:#cabb9e; }
.fq-active-group-tag:focus-visible { outline:2px solid #f1cc80; outline-offset:2px; }
@media(hover:hover){.fq-active-group-tag:hover { background:rgba(244,181,65,.16); border-color:#d6ac61; }}

#tab-banned-watch[hidden] { display:none!important; }
.chip-banned-watch { color:#ffacb7; border-color:#854655; }
/* Use two compact columns when the list has enough room. */
.ban-watch { container-type:inline-size; margin:14px 0; min-width:0; max-width:100%; }
.ban-watch h3 { margin:0 0 5px; line-height:1.4; }
.ban-watch>p { color:#abbdd5; font-size:.8rem; line-height:1.5; margin:0 0 10px; }
.ban-watch-list { display:grid; grid-template-columns:minmax(0,1fr); gap:6px 10px; min-width:0; }
@container(min-width:1160px) { .ban-watch-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.ban-watch .ban-watch-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"account date" "meta footer"; align-items:center; gap:10px; padding:8px 10px; margin:0; border:1px solid #354052; border-left:2px solid #b96275; border-radius:7px; background:#111827; box-sizing:border-box; min-width:0; max-width:100%; color:#dfe8f6; font-size:.8rem; }
.ban-watch-row>div { min-width:0; }
.ban-watch-account{grid-area:account}.ban-watch-meta{grid-area:meta}.ban-watch-date{grid-area:date}.ban-watch-footer{grid-area:footer}
.ban-watch-account strong { font:700 .82rem/1.5 'JetBrains Mono',monospace; overflow-wrap:anywhere; }
.ban-watch-status { display:none; }
.ban-watch-meta { display:flex; align-items:center; flex-wrap:wrap; gap:4px 14px; }
.ban-watch-meta>div { display:flex; align-items:baseline; gap:5px; min-width:0; }
.ban-watch-meta span,.ban-watch-date>span { color:#9caec6; font-size:.72rem; }
.ban-watch-meta b { font-size:.77rem; overflow-wrap:anywhere; }
.ban-watch-date { display:flex; flex-direction:column; align-items:flex-start; gap:3px; color:#ffc1c9; }
.ban-watch-date>b { font-size:.84rem; white-space:nowrap; }
.ban-watch-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 10px; }
.ban-watch-remaining { flex:1 1 125px; min-width:0; color:#edca91; font-size:.74rem; white-space:normal; overflow-wrap:anywhere; line-height:1.5; }
.ban-watch .ban-watch-edit { display:inline-flex; width:auto; flex:0 0 auto; max-width:100%; justify-content:center; align-items:center; min-height:36px; padding:5px 9px; margin:0; border:1px solid #4b5870; border-radius:6px; background:#242e40; color:#e2e9f6; font-family:inherit; font-size:.72rem; font-weight:600; line-height:1.4; white-space:normal; overflow-wrap:anywhere; cursor:pointer; }
.ban-watch-edit:hover { background:#303c53; }
.ban-watch-edit:focus-visible { outline:2px solid #b5a4f5; outline-offset:3px; }
@container(max-width:580px) {
 .ban-watch .ban-watch-row { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"account account" "meta date" "footer footer"; gap:9px 12px; padding:12px; }
 .ban-watch-account { grid-area:account; }
 .ban-watch-meta { gap:4px 12px; }
 .ban-watch-footer { grid-area:footer; border-top:1px solid #303b4d; padding-top:6px; }
 .ban-watch .ban-watch-edit { min-height:44px; padding:7px 12px; }
}
@media(max-width:380px) {
 .ban-watch .ban-watch-row { gap:6px 8px; padding:9px 10px; }
 .ban-watch-meta { gap:3px 8px; }
 .ban-watch-date { gap:4px; }
}

/* Persistent classification guide in the filter warehouse. */
#filter-queue-panel .fq-usage-guide{margin:12px 0 16px;padding:16px 18px;border:1px solid #a97b294f;border-left:4px solid #e9b748;border-radius:10px;background:#b9861010;line-height:1.65}
#filter-queue-panel .fq-usage-guide h4{margin:0 0 12px;color:#f4cd72;font-size:.8rem;line-height:1.5}
#filter-queue-panel .fq-usage-guide p{margin:12px 0 0;font-size:.82rem;color:#b8c5d9;overflow-wrap:anywhere}
#filter-queue-panel .fq-usage-guide strong,#filter-queue-panel .fq-usage-guide span{display:block}
#filter-queue-panel .fq-usage-guide strong{margin-bottom:3px}
#filter-queue-panel .fq-guide-rank{color:#66d8fb}
#filter-queue-panel .fq-guide-event{color:#f4cc76}
@media(max-width:600px){#filter-queue-panel .fq-usage-guide{padding:13px 14px}#filter-queue-panel .fq-usage-guide p{font-size:.78rem}}

/* Compact filtering controls, with secondary actions revealed on demand. */
.fq-usage-guide>summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;color:#f4cd72;font-size:.8rem;font-weight:700;min-height:24px;align-items:center}
.fq-usage-guide>summary::-webkit-details-marker,.fq-tool-menu>summary::-webkit-details-marker{display:none}
.fq-usage-guide:not([open]){padding-top:12px!important;padding-bottom:12px!important}
.fq-tool-menu>summary{list-style:none;cursor:pointer;min-height:42px;display:flex;align-items:center}
.fq-tool-menu{position:relative;min-width:0}
.fq-tool-menu-body{position:absolute;right:0;top:calc(100% + 7px);z-index:30;display:flex;flex-direction:column;gap:4px;width:300px;max-width:calc(100vw - 40px);max-height:50dvh;overflow-y:auto;padding:8px;border:1px solid #465a78;border-radius:10px;background:#152237;box-shadow:0 12px 32px #0009}
.fq-tool-menu:not([open])>.fq-tool-menu-body{display:none}
.fq-tool-menu-body>.btn{width:100%;min-height:44px;justify-content:flex-start;text-align:left;white-space:normal;background:transparent;border-color:transparent;border-radius:6px}
.fq-tool-menu-body>.btn:hover{background:#263b59;border-color:#456285}
.fq-tool-menu-body>.fq-note{padding:10px 8px 4px;border-top:1px solid #34465e;font-size:.7rem}
.fq-tool-menu-body .fq-note{flex-basis:100%;margin:4px 0}
.fq-tools{align-items:flex-start}
@media(max-width:600px){.fq-tools>.fq-import,.fq-tools>.fq-tool-menu{flex:1 1 0;min-width:0}.fq-tool-menu>summary{width:100%;justify-content:center}.fq-tool-menu-body{width:min(300px,calc(100vw - 40px))}}
.fq-filter-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,.5fr);gap:10px;align-items:start;margin:14px 0 8px}
.fq-filter-controls .fq-group-picker,.fq-filter-controls .fq-search{margin:0;min-width:0}
.fq-filter-controls .fq-search select{width:100%;min-height:48px}
.fq-selected-file{display:block;font-size:.7rem;color:#a9bad1;font-weight:400;overflow-wrap:anywhere}
.fq-filter-controls .fq-picker-action{font-size:0;flex-shrink:0}
.fq-filter-controls .fq-picker-action:after{content:'▾';font-size:14px}
.fq-filter-controls .fq-group-picker>summary{min-height:48px;padding:9px 12px;flex-wrap:nowrap}
.fq-filter-controls:has(.fq-group-picker[open]){grid-template-columns:minmax(0,1fr)}
.fq-message.is-synced{color:#66cda6}
.fq-usage-guide summary:focus-visible,.fq-tool-menu summary:focus-visible{outline:2px solid #a5cfff;outline-offset:4px}

.aat-search-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:12px}
.aat-search-controls label{display:grid;gap:6px;flex:1 1 180px;min-width:0;font-size:.78rem;color:#a9bdd8}
.aat-search-controls select{width:100%;min-height:44px;padding:9px;border:1px solid #435873;border-radius:8px;background:#111c2d;color:#eef3ff;font:inherit}
.aat-query input{min-height:44px;width:100%;padding:10px;border:1px solid #435873;border-radius:8px;background:#111c2d;color:#eef3ff;font-size:16px}
#account-tools-modal .aat-pagination button,#account-tools-modal .aat-result button,#aat-submit,#aat-reload{min-height:44px}
@media(max-width:600px){.aat-query{flex-wrap:nowrap}.aat-query>button{flex-shrink:0}.aat-search-controls>*{max-width:100%}.aat-result strong{word-break:break-word}.aat-search-controls>button{flex:1 1 150px}#account-tools-modal .aat-heading h3{font-size:1rem}}

/* Pending filter actions lock safely without dimming the whole queue. */
.fq-actions button:disabled,.fq-tools button:disabled,.fq-group-delete:disabled{opacity:1;cursor:not-allowed}

/* Selection stays within one group and survives pagination. */
.fq-bulk-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
.fq-bulk-bar button{min-height:44px}.fq-bulk-bar span{font-size:.8rem;color:#b6c9e2}
.fq-select-label{display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer}
.fq-select-label input{width:20px;height:20px;flex-shrink:0;accent-color:#438cff}
.fq-row:has([data-select-id]:checked){outline:2px solid #438cff;outline-offset:-2px}
@media(max-width:600px){.fq-bulk-bar>*{flex:1 1 135px}.fq-bulk-bar span{text-align:center}.fq-row:has(.fq-select-label) .fq-number{min-width:64px}}

/* Per-account feedback, preserved after redraw. */
.rank-copy-person,.row-save-status{display:block;font-size:11px;line-height:1.5;margin-top:5px;white-space:normal;overflow-wrap:anywhere;color:#94a3b8}
.rank-copy-person{color:#a7f3d0}
.row-save-status[data-state="saving"]{color:#93c5fd}
.row-save-status[data-state="saved"]{color:#6ee7b7}
.row-save-status[data-state="error"],.row-save-status[data-state="conflict"]{color:#fbbf24}
.row-save-status button{min-height:36px;padding:4px 8px;border:1px solid #64748b;border-radius:6px;background:#1e293b;color:#fff}
@media(max-width:600px){.rank-copy-person,.row-save-status{flex-basis:100%;text-align:right}.row-save-status button{min-height:44px}}
