/* Admin-only extras. Everything else comes from ../css/ui.css */
.page.top { align-items: flex-start; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.stat { padding: 16px; }
.stat b { display: block; font-size: 28px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 14px; }
.panel { margin-bottom: 16px; }
.tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.tools .input, .tools .select { width: auto; min-width: 150px; padding: 7px 10px; font-size: 14px; }
.select.sm { padding: 4px 8px; font-size: 13px; width: auto; }
.formrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.bar { width: 110px; height: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--primary); }
.thumb { width: 40px; height: 40px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.table audio { height: 32px; width: 210px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
.acc-mail { font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* image gallery */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tile-img { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.tile-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tile figcaption { padding: 8px 10px; font-size: 13px; }
.tile figcaption b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }

@media (max-width: 600px) {
  .tabs { order: 3; width: 100%; overflow-x: auto; }
  .acc-mail { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
