/* Quick admin (quickadmin.js): the › beside Admin in the account menu, and the panel it opens. The panel sits just
   under the header's own pop-ups (the account menu and search open over it) and above the page. */
.acct-admin { display: flex; align-items: stretch; gap: 2px; }
.acct-admin > a { flex: 1; }
.qa-arrow { width: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: calc(8px * var(--round)); cursor: pointer; }
.qa-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .qa-arrow:hover { background: var(--panel-2); color: var(--text); } }
.qa-arrow[aria-expanded="true"] { color: var(--accent); }

.qa { position: fixed; top: calc(var(--header) + 8px); right: 16px; z-index: 19; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - var(--header) - 24px);
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.qa[hidden] { display: none; }
.qa:focus { outline: none; }
.qa:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qa-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); }
.qa-head > b { font-size: 16px; }
.qa-acts { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.qa-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 8px; }
.qa-note { margin: 4px 0 0; }
.qa-body > .qa-note { padding: 8px 14px 0; }
.qa-tool { padding: 10px 14px 12px; }
.qa-tool + .qa-tool, .qa-links + .qa-tool, .qa-tool + .qa-links { border-top: 1px solid var(--line); }
.qa-tool h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.qa-tb { display: flex; flex-direction: column; gap: 8px; }
.qa-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
.qa-link { padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 13px; }
@media (hover: hover) { .qa-link:hover { border-color: var(--line-2); color: var(--accent); } }

.qa-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qa-row > span:first-child { flex: none; width: 66px; font-size: 13px; font-weight: 700; color: var(--muted); }
.qa-sel { flex: 1; min-width: 0; min-height: 34px; padding: 4px 10px; font-size: 14px; }
.qa-seg { padding: 2px; }
.qa-seg button { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.qa-seg button:disabled { opacity: .5; cursor: default; }
.qa-range { flex: 1; min-width: 120px; accent-color: var(--accent); }
.qa-range.wide { width: 100%; }
.qa-out { margin-left: auto; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qa-sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.qa-sw small { font-size: 13px; color: var(--muted); }
.qa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-chips .btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.qa-chips .btn.on { border-color: var(--accent); color: var(--accent); }
.qa-stats { margin: 0; font-variant-numeric: tabular-nums; }
.qa-clear { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.qa-clear small { font-size: 12px; line-height: 1.35; }

.qa-status { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.qa-status > i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 18%, transparent); }
.qa-status.st-warn > i { background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
.qa-status.st-down > i { background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 22%, transparent); }
.qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.qa-list a { display: block; color: var(--text); font-size: 13px; line-height: 1.5; }
.qa-jobs { max-height: 230px; overflow-y: auto; }
.qa-jobs li { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 13px; }
.qa-jn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-jobs .btn.sm { min-height: 28px; padding: 0 10px; font-size: 12px; flex: none; }

.qa-edit { list-style: none; margin: 6px 0 0; padding: 0; }
.qa-edit li { display: flex; align-items: center; }
.qa-edit li + li { border-top: 1px solid var(--line); }
.qa-edit .bb-opt { flex: 1; min-width: 0; padding-right: 8px; }
.qa-move { display: flex; flex-direction: column; padding-right: 8px; }
.qa-move .bb-ico { width: 28px; height: 22px; }
.qa-move .bb-ico:disabled { opacity: .3; cursor: default; }
.qa-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.qa-foot .linkish { margin-left: auto; }

@media (max-width: 700px) {
  .qa { top: auto; left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-height: min(70vh, calc(100vh - var(--header) - 100px)); }
  .qa-seg button, .qa-chips .btn.sm, .qa-sel { min-height: 40px; }
}
