/* Controle de Extensões: painel
   Tinta (barra lateral e ações), papel (fundo), latão (marca e item ativo) */
:root {
  --ink: #1c2140;
  --ink-2: #272d52;
  --ink-3: #343b68;
  --ink-text: #c9cce0;
  --ink-muted: #8c91b4;
  --brass: #b7862f;
  --brass-soft: #e8c98a;

  --paper: #f2f3f7;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --line: #e2e4ec;
  --line-strong: #cdd0dc;
  --text: #191c2b;
  --muted: #646a82;

  --green: #1f7a52;
  --green-bg: #e3f4ea;
  --red: #b8322a;
  --red-bg: #fbe7e5;
  --amber: #8f5600;
  --amber-bg: #fff1d6;
  --blue: #2b56c4;
  --blue-bg: #e6edfc;
  --discord: #5865f2;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --sidebar-w: 248px;
  --font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
strong { font-weight: 600; }
code {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 5px; color: var(--ink);
  white-space: nowrap;
}
small { color: var(--muted); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.block { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.icon { flex: none; display: block; }

/* ---------- Estrutura ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--ink-text);
  padding: 20px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 24px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--brass); color: var(--ink);
}
.brand-mark.large { width: 52px; height: 52px; border-radius: 14px; }
.brand-name { font-weight: 700; font-size: 14.5px; line-height: 1.15; letter-spacing: -.005em; }

.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.nav-group-label { margin: 0 0 6px; padding: 0 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 8px; color: var(--ink-text); font-weight: 500;
}
.nav-link .icon { color: var(--ink-muted); }
.nav-link:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav-link:hover .icon { color: var(--ink-text); }
.nav-link.active { background: var(--ink-3); color: #fff; }
.nav-link.active .icon { color: var(--brass-soft); }
.nav-link.active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brass);
}
.nav-count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--brass); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center;
}

.side-user {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px 8px 4px; border-top: 1px solid var(--ink-2);
}
.side-user img { border-radius: 50%; background: var(--ink-2); }
.side-user-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-user-name strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-name span { color: var(--ink-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user form { margin: 0; }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar, .scrim { display: none; }
.content { width: 100%; padding: 36px 40px 64px; }

/* ---------- Cabeçalhos ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.page-sub { margin: 6px 0 0; color: var(--muted); max-width: 68ch; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 14px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.section-note { color: var(--muted); font-size: 13.5px; }
.empty { color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { text-decoration: none; }
.btn.block { width: 100%; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-3); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface-2); border-color: var(--muted); }
.btn.ghost-danger { background: transparent; color: var(--red); border-color: transparent; }
.btn.ghost-danger:hover { background: var(--red-bg); }
.btn.discord { background: var(--discord); color: #fff; height: 46px; font-size: 15px; }
.btn.discord:hover { background: #4752c4; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.is-dirty { background: var(--ink); color: #fff; border-color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: var(--radius-s); background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--line); color: var(--text); }
.icon-btn.on-dark { color: var(--ink-muted); }
.icon-btn.on-dark:hover { background: var(--ink-2); color: #fff; }
.icon-btn.copied { color: var(--green); background: var(--green-bg); }

/* ---------- Avisos ---------- */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px 11px 14px; margin-bottom: 24px;
  border-radius: var(--radius-m); border: 1px solid; font-weight: 500;
}
.flash > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.flash.success { background: var(--green-bg); border-color: #b9e2cb; color: #13543a; }
.flash.error { background: var(--red-bg); border-color: #f1c2bd; color: #8a241e; }
.flash-close { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; opacity: .7; }
.flash-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 20px;
  background: var(--blue-bg); color: #1f3d8a; border-radius: var(--radius-m);
}
.callout .icon { margin-top: 2px; }
.callout p { margin: 0; max-width: 90ch; }
.callout code { background: rgba(255, 255, 255, .7); border-color: #c8d5f5; }

/* ---------- Fila de pendentes ---------- */
.queue {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden;
}
.queue-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 20px 18px 22px; position: relative;
}
.queue-item + .queue-item { border-top: 1px solid var(--line); }
.queue-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--amber-bg);
}
.queue-item:hover::before { background: var(--brass); }
.queue-main { min-width: 0; }
.queue-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.queue-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.queue-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.token-chip { font-size: 12px; }
.queue-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.queue-actions form { margin: 0; }

/* Botão segmentado: aprovar por N dias */
.approve-group {
  display: inline-flex; align-items: stretch; height: 36px;
  border: 1px solid var(--ink); border-radius: var(--radius-s); overflow: hidden;
}
.approve-group form { display: flex; margin: 0; }
.approve-label {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.seg {
  border: 0; border-left: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: 600 13px/1 var(--font); padding: 0 13px; cursor: pointer; white-space: nowrap;
  transition: background-color .12s, color .12s;
}
.approve-group form:first-of-type .seg { border-left: 0; }
.seg:hover { background: var(--green-bg); color: var(--green); }
.seg:focus-visible { outline-offset: -3px; }
.seg:active { background: var(--green); color: #fff; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; vertical-align: middle; }
th {
  background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 500;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfd; }
td form { margin: 0; }
th.num, td.num { width: 56px; font-variant-numeric: tabular-nums; }
th.right, td.right { text-align: right; }
td.right form { display: inline-block; }
td strong { white-space: nowrap; }
.result { display: flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.token-cell { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Selos ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.aprovado { color: var(--green); background: var(--green-bg); }
.badge.recusado { color: var(--red); background: var(--red-bg); }
.badge.expirado { color: var(--red); background: var(--red-bg); }
.badge.pendente { color: var(--amber); background: var(--amber-bg); }
.badge.novo { color: var(--blue); background: var(--blue-bg); }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 12.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-strong); white-space: nowrap;
}
.tag.renovacao { color: var(--blue); border-color: #c3d1f3; }

.status-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.on { background: var(--green); }
.dot.off { background: var(--line-strong); }

/* ---------- Formulários ---------- */
input[type=text], textarea {
  width: 100%; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  transition: border-color .12s, box-shadow .12s;
}
input[type=text]:hover, textarea:hover { border-color: var(--muted); }
input[type=text]:focus, textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 33, 64, .12); }
textarea { min-width: 240px; resize: vertical; line-height: 1.4; }
.edit-table td { vertical-align: top; }
.edit-table td:first-child, .edit-table td:nth-child(5), .edit-table td:last-child { padding-top: 18px; }

.money { position: relative; display: block; width: 116px; }
.money span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.money input { padding-left: 32px; font-variant-numeric: tabular-nums; }

.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track {
  width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong);
  position: relative; transition: background-color .15s;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(25, 28, 43, .25); transition: transform .15s;
}
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brass); outline-offset: 2px; }

tr.is-dirty td { background: #fffaf0; }

/* ---------- Tokens (admin) ---------- */
.tabs {
  display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto;
  border-bottom: 1px solid var(--line); scrollbar-width: thin;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: -1px;
  color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tab-count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--line); color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tab.active .tab-count { background: var(--ink); color: #fff; }

.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search {
  position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 420px;
}
.search .icon { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
input[type=search], select, input[type=datetime-local] {
  height: 38px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  transition: border-color .12s, box-shadow .12s;
}
input[type=search] { width: 100%; padding-left: 34px; }
select { padding-right: 32px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23646a82' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
input[type=search]:hover, select:hover, input[type=datetime-local]:hover { border-color: var(--muted); }
input[type=search]:focus, select:focus, input[type=datetime-local]:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 33, 64, .12); }
.clear-link { font-size: 14px; font-weight: 500; }

.tokens-table th, .tokens-table td { padding-left: 12px; padding-right: 12px; }
.tokens-table td { padding-top: 11px; padding-bottom: 11px; }
.tokens-table th:first-child, .tokens-table td:first-child { padding-left: 16px; }
.tokens-table tr.is-off td { color: var(--muted); }
.tokens-table tr.is-off code { opacity: .6; text-decoration: line-through; }
.sub, .sub-link { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.sub-link:hover { color: var(--blue); }
.sub.is-late { color: var(--red); }
.sub-link.pending-link { color: var(--amber); font-weight: 500; margin-top: 4px; }
.tokens-table .badge + .sub { margin-top: 4px; }
.tokens-table code { font-size: 12px; padding: 2px 6px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.pager-links { display: flex; align-items: center; gap: 10px; }
.pager-pos { color: var(--muted); font-variant-numeric: tabular-nums; }
.btn[aria-disabled=true] { opacity: .45; pointer-events: none; }

.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { background: #9a2a23; }

/* Janela "Gerenciar" */
.sheet {
  width: min(520px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--radius-l);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(20, 23, 45, .45);
}
.sheet::backdrop { background: rgba(20, 23, 45, .5); }
.sheet[open] { animation: sheet-in .16s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head .badge { margin-top: 3px; }
.sheet-token { font-size: 14px; padding: 4px 8px; }
.sheet-meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.sheet-section { padding: 18px 20px; }
.sheet-section + .sheet-section { border-top: 1px solid var(--line); }
.sheet-section h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sheet-help { margin: 2px 0 12px; color: var(--muted); font-size: 14px; }
.sheet-help strong { color: var(--text); font-weight: 600; }
.date-row { display: flex; gap: 8px; }
.date-row input { flex: 1; min-width: 0; }
.quick-add { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.chip {
  height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 500 13px/1 var(--font); cursor: pointer;
}
.chip:hover { border-color: var(--ink); background: var(--surface-2); }
.sheet-actions { display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border-radius: 0 0 var(--radius-l) var(--radius-l); }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; margin: 0; }
.action-row[hidden] { display: none; }
.action-row strong { font-size: 14px; }
.action-row p { margin: 1px 0 0; color: var(--muted); font-size: 13px; max-width: 40ch; }

/* ---------- Estado vazio ---------- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-l);
}
.empty-state p { margin: 0; color: var(--muted); max-width: 46ch; }
.empty-state p strong { color: var(--text); font-size: 16px; }
.empty-state p + p { margin-top: 4px; }
.empty-state .btn { margin-top: 18px; }
.empty-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 12px; background: var(--paper); color: var(--ink);
}

/* ---------- Produtos (loja) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.product {
  display: flex; flex-direction: column; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
}
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.monogram {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px;
  background: var(--ink); color: var(--brass-soft); font-size: 20px; font-weight: 700;
}
.price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.price.free { color: var(--green); background: var(--green-bg); padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.product h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.product .desc { margin: 0; color: var(--muted); white-space: pre-line; font-size: 14px; }
.product-foot { margin-top: auto; padding-top: 20px; }
.product-foot form { margin: 0; }

/* ---------- Telas sem barra lateral ---------- */
.solo { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.solo .flash { max-width: 420px; width: 100%; margin: 0 auto 16px; }
.no-shell { background: var(--ink); }

.signin { display: flex; justify-content: center; }
.signin-card {
  width: 100%; max-width: 420px; padding: 36px 32px 28px;
  background: var(--surface); border-radius: 18px; text-align: center;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5);
}
.signin-card .brand-mark { margin: 0 auto 20px; }
.signin-card h1 { font-size: 24px; }
.signin-card > p { color: var(--muted); margin: 10px 0 24px; }
.signin-card .signin-foot { margin: 16px 0 0; font-size: 13px; }

.error-page { text-align: center; padding: 64px 0; }
.error-code { margin: 0 0 6px; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--brass); font-variant-numeric: tabular-nums; }
.error-page h1 { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.no-shell .error-page h1 { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 1400px) {
  .content { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1100px) {
  .queue-item { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 30; left: 0; top: 0; width: min(280px, 84vw);
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .nav-link.active::before { left: -14px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(20, 23, 45, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }

  .topbar {
    display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 10;
    height: 56px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .topbar-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 15px; }
  .topbar-brand:hover { text-decoration: none; }
  .topbar-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .topbar .nav-count { margin-left: auto; }
  .content { padding: 24px 16px 48px; }
  h1 { font-size: 24px; }
  .approve-group { max-width: 100%; }
  .queue-actions { flex-wrap: wrap; }
  .search { max-width: none; flex-basis: 100%; }
  .filters .select { flex: 1 1 140px; }
  .filters select { width: 100%; }
  .action-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
