/* ── Fonts (self-hosted Roboto, SIL OFL — no request to Google) ─────────── */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/roboto-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/roboto-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/roboto-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/roboto-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, fieldset { border: none; }

/* ── Base ─────────────────────────────────────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 1.125rem;
  background-color: rgba(0, 0, 0, 0.05);
  color: #111;
}

a:link, a:visited, a:hover, a:active {
  color: inherit;
  text-decoration: none;
}

/* ── Public layout ────────────────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 128px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

header {
  padding: 48px 0;
  display: flex;
  align-items: center;
}

header img {
  height: 56px;
}

main h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 48px;
  margin-bottom: 40px;
}

.instructions {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 32px;
}

.visit-counter {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 32px;
}

.instagram {
  display: flex;
  margin-bottom: 48px;
}

.instagram a {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: 1.125rem;
  font-weight: 400;
  gap: 12px;
  align-items: center;
}

.instagram-link {
  height: 40px;
}

.no-posts {
  margin: 48px 0;
  color: #666;
}

/* ── Site footer ──────────────────────────────────────────────────────────── */
.site-footer {
  padding: 48px 0 32px;
  font-size: 0.875rem;
  color: #888;
  margin-top: auto;
}

.site-footer a:hover {
  border-bottom: 1px solid #888;
}

/* ── Masonry grid ─────────────────────────────────────────────────────────── */
.masonry {
  columns: 4 240px;
  column-gap: 12px;
  margin-bottom: 64px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  break-inside: avoid;
  display: inline-block; /* prevent column break artifacts */
  width: 100%;
  margin-bottom: 12px;
  background: #fff;
}

.card-img-link {
  display: block;
  line-height: 0; /* remove img bottom gap */
}

.card-img-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.card-img-link:hover img {
  opacity: 0.92;
}

.card-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px 12px;
}

/* ── Buttons (public) ─────────────────────────────────────────────────────── */
.btn {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  white-space: nowrap;
}

.btn:hover {
  border-bottom: 2px solid #111;
}

/* ── Responsive (public) ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container {
    padding: 0 48px;
  }
  .masonry {
    columns: 3 200px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  header img {
    height: 36px;
  }
  main h1 {
    font-size: 1.6rem;
    margin-top: 32px;
    margin-bottom: 24px;
  }
  .masonry {
    columns: 2 140px;
    column-gap: 8px;
  }
  .card {
    margin-bottom: 8px;
  }
  .card-actions {
    gap: 8px;
    padding: 8px 8px 10px;
  }
  .btn {
    font-size: 0.65rem;
  }
}

@media (max-width: 380px) {
  .masonry {
    columns: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ── Feed tools, media types, ads, consent, post page ─────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.feed-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.feed-search {
  font: inherit; font-size: 1rem; width: 280px; max-width: 100%;
  padding: 10px 14px; border: 1px solid #ccc; background: #fff; color: #111; border-radius: 0;
}
.feed-search:focus { outline: 2px solid #111; outline-offset: -1px; border-color: #111; }
.feed-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-cat {
  font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 8px 12px; border: 1px solid #111; background: transparent; color: #111; cursor: pointer;
}
.feed-cat:hover { background: #fff; }
.feed-cat.is-active { background: #111; color: #fff; }
.feed-empty { color: #666; margin: 24px 0 48px; }
.feed-more { text-align: center; margin: -32px 0 64px; }
.feed-more-btn {
  font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 12px 28px; border: 1px solid #111; background: #fff; color: #111; cursor: pointer;
}
.feed-more-btn:hover { background: #111; color: #fff; }

/* media inside cards */
.m-img, .m-video { width: 100%; height: auto; display: block; }
.m-video { background: #000; }
.m-frame { position: relative; width: 100%; background: #fff; }
.m-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.m-lottie { width: 100%; background: #fff; }
.m-lottie svg { display: block; }
.card-media { display: block; line-height: 0; }

.card-text { padding: 10px 12px 0; }
.card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.card-caption { font-size: 0.85rem; line-height: 1.45; color: #555; margin-top: 2px; }
button.btn { font-family: inherit; }

/* ads — clearly labelled */
.card--ad { outline: 1px solid #ddd; outline-offset: -1px; }
.ad-label { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 0.7rem; color: #666; letter-spacing: 0.02em; }
.ad-badge { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #111; border: 1px solid #111; padding: 1px 5px; font-size: 0.65rem; }
.ad-cta { color: #111; }

/* footer */
.site-footer { display: flex; gap: 20px; align-items: center; }
.footer-link { font: inherit; font-size: 0.875rem; color: #888; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-link:hover { color: #111; }
.text-link { border-bottom: 1px solid currentColor; }

/* consent banner */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: #111; color: #fff; padding: 16px 20px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.consent-text { flex: 1 1 320px; font-size: 0.875rem; line-height: 1.5; }
.consent-text a { border-bottom: 1px solid rgba(255,255,255,.6); }
.consent-actions { display: flex; gap: 8px; }
.consent-btn {
  font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 18px; cursor: pointer; border: 1px solid #fff; background: transparent; color: #fff;
}
.consent-btn--primary { background: #fff; color: #111; }
.consent-btn:hover { opacity: .85; }

/* post page */
.post-page { max-width: 760px; padding-bottom: 64px; }
.post-back { margin: 8px 0 20px; font-size: 0.95rem; }
.post-figure { background: #fff; margin: 0 0 24px; line-height: 0; }
.post-figure .m-img, .post-figure .m-video { max-height: 80vh; width: 100%; object-fit: contain; }
.post-title { font-size: 1.75rem !important; margin: 0 0 8px !important; line-height: 1.2; }
.post-caption { font-size: 1.05rem; line-height: 1.6; color: #333; margin-bottom: 12px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.post-cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; padding: 6px 10px; border: 1px solid #111; }
.post-actions { padding: 16px 0 !important; gap: 16px !important; }
.post-actions .btn { font-size: 0.85rem; }
.post-more { margin-top: 24px; font-size: 0.95rem; }

@media (max-width: 640px) {
  .feed-search { width: 100%; }
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
  .post-title { font-size: 1.4rem !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ── Admin ────────────────────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════ */

.admin-body {
  background: #f5f5f5;
}

/* ── Login ────────────────────────────────────────────────────────────────── */
.admin-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.admin-login-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-logo {
  margin-bottom: 32px;
}

.admin-logo img {
  height: 40px;
}

.admin-login-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.admin-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  margin-bottom: 6px;
  margin-top: 16px;
  display: block;
}

.admin-input {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  border: 1.5px solid #d0d0d0;
  padding: 10px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  -webkit-appearance: none;
}

.admin-input:focus {
  border-color: #111;
}

.admin-submit-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #111;
  color: #fff;
  border: none;
  padding: 13px 24px;
  cursor: pointer;
  margin-top: 28px;
  transition: background 0.15s;
}

.admin-submit-btn:hover {
  background: #333;
}

/* ── Admin layout ─────────────────────────────────────────────────────────── */
.admin-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-logo {
  height: 32px;
  flex-shrink: 0;
}

.admin-header-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1;
}

.admin-nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
}

.admin-nav-link:hover {
  color: #111;
}

.admin-nav-link--logout {
  color: #c0392b;
}

.admin-main {
  padding: 40px 32px;
  flex: 1;
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.admin-alert {
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 28px;
  border-left: 4px solid;
}

.admin-alert--error {
  background: #fef2f2;
  border-color: #e74c3c;
  color: #c0392b;
}

.admin-alert--success {
  background: #f0fdf4;
  border-color: #27ae60;
  color: #1e8449;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.admin-section {
  margin-bottom: 56px;
}

.admin-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
}

.admin-empty {
  color: #888;
  font-size: 0.9rem;
}

/* ── Upload form ──────────────────────────────────────────────────────────── */
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.upload-drop-zone {
  border: 2px dashed #ccc;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.upload-drop-zone.drag-over {
  border-color: #111;
  background: #f0f0f0;
}

.upload-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  pointer-events: none;
}

.upload-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.upload-drop-text {
  font-size: 0.9rem;
  font-weight: 700;
}

.upload-drop-hint {
  font-size: 0.75rem;
  color: #888;
}

.upload-preview {
  margin-top: 16px;
  pointer-events: none;
}

.upload-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

/* ── Admin buttons ────────────────────────────────────────────────────────── */
.admin-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.admin-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-btn--primary {
  background: #111;
  color: #fff;
}

.admin-btn--primary:hover:not(:disabled) {
  background: #333;
}

.admin-btn--danger {
  background: #fef2f2;
  color: #c0392b;
  border: 1px solid #fca5a5;
  width: 100%;
  margin-top: 8px;
}

.admin-btn--danger:hover {
  background: #fee2e2;
}

/* ── Admin image grid ─────────────────────────────────────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.admin-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.admin-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.admin-card-meta {
  padding: 8px 0 4px;
}

.admin-card-date {
  font-size: 0.72rem;
  color: #999;
}

/* ── Admin responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .admin-header {
    padding: 12px 16px;
  }
  .admin-main {
    padding: 24px 16px;
  }
  .admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ── Admin: tabs, forms, lists, statistics ────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════ */
.admin-main { max-width: 1200px; margin: 0 auto; width: 100%; }
.a-tabs { display: flex; gap: 4px; flex: 1; }
.a-tab { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 14px; color: #555; border-bottom: 2px solid transparent; }
.a-tab:hover { color: #111; }
.a-tab.is-active { color: #111; border-bottom-color: #111; }
.admin-section { background: #fff; border: 1px solid #e6e6e6; padding: 24px; margin-bottom: 28px; }
.admin-section-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-note { font-size: 0.85rem; line-height: 1.55; color: #555; margin: -4px 0 18px; max-width: 80ch; }
.a-note code { font-size: 0.8rem; background: #f3f3f3; padding: 1px 4px; }
.a-hint { font-size: 0.75rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: #888; }
.a-muted { color: #888; }
.a-form .admin-label:first-child { margin-top: 0; }
.a-form textarea.admin-input { resize: vertical; line-height: 1.5; }
.a-form .upload-drop-zone { margin-bottom: 8px; }
.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.a-inline { display: flex; align-items: center; gap: 8px; }
.a-inline .admin-input { width: auto; flex: 1; min-width: 0; }
.a-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; line-height: 1.4; margin: 6px 0; cursor: pointer; }
.a-check input { flex: none; }
.a-check--big { margin-top: 36px; font-weight: 700; }
.a-num { width: 76px !important; padding: 6px 8px !important; display: inline-block; }
.a-vis { display: flex; flex-direction: column; gap: 2px; }
.a-row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; align-items: center; }
.a-row-btns .admin-btn, .a-actions .admin-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d0d0d0; background: #fff; color: #111; }
.a-row-btns .admin-btn--primary { background: #111; color: #fff; border-color: #111; }
.a-row-btns .admin-btn:hover, .a-actions .admin-btn:hover:not(:disabled) { border-color: #111; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.up-item { width: 110px; display: flex; flex-direction: column; gap: 4px; }
.up-item img, .up-item video, .up-item .a-thumb-ph { width: 110px; height: 110px; object-fit: cover; background: #f3f3f3; }
.up-item small { font-size: 0.7rem; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.a-filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.a-filterbar .admin-input { width: auto; flex: 1 1 200px; }
.a-list { display: flex; flex-direction: column; }
.a-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid #eee; }
.a-thumb { display: block; width: 96px; height: 96px; background: #f3f3f3; overflow: hidden; }
.a-thumb img, .a-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-thumb-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #666; background: repeating-linear-gradient(45deg, #f3f3f3 0 8px, #ececec 8px 16px); }
.a-meta { min-width: 0; }
.a-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.a-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.8rem; margin-bottom: 6px; }
.a-url { overflow-wrap: anywhere; }
.a-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px; border: 1px solid #ccc; color: #444; }
.a-badge--feed { border-color: #16a34a; color: #15803d; }
.a-badge--link { border-color: #d97706; color: #b45309; background: #fffbeb; }
.a-cat { font-size: 0.75rem; color: #555; background: #f3f3f3; padding: 2px 6px; }
.a-link { display: flex; gap: 6px; max-width: 560px; }
.a-link-input { font-size: 0.8rem !important; padding: 6px 8px !important; color: #555; }
.a-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 140px; }
.a-actions form { margin: 0; }
.a-actions .admin-btn { width: 100%; }
.a-actions .admin-btn--danger { margin-top: 0; border-color: #fca5a5; background: #fef2f2; color: #c0392b; }
.a-move { display: flex; gap: 6px; }
.a-move .admin-btn { flex: 1; }
.a-edit-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.a-edit-preview { background: #f3f3f3; aspect-ratio: 1; overflow: hidden; }
.a-edit-preview img, .a-edit-preview video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* statistics */
.a-stats-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.a-stats-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #555; }
.a-stats-filter .admin-input { font-size: 0.85rem; padding: 8px; }
.a-stats-filter .a-row-btns { grid-column: 1 / -1; margin-top: 4px; }
.a-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.a-kpi { border: 1px solid #e6e6e6; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.a-kpi-n { font-size: 1.6rem; font-weight: 700; }
.a-kpi-l { font-size: 0.75rem; color: #666; text-transform: uppercase; letter-spacing: 0.04em; }
.a-breakdowns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px 32px; margin-bottom: 32px; }
.a-h3 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px; }
.a-bars { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.a-bars th { text-align: left; font-weight: 400; padding: 4px 8px 4px 0; width: 38%; overflow-wrap: anywhere; }
.a-bars td { padding: 4px 0; }
.a-bar { display: block; height: 10px; background: #111; }
.a-num-cell { text-align: right; padding-left: 8px !important; width: 44px; font-variant-numeric: tabular-nums; }
.a-table-wrap { overflow-x: auto; border: 1px solid #eee; }
.a-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.a-table th { text-align: left; background: #fafafa; padding: 8px 10px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: #555; white-space: nowrap; }
.a-table td { padding: 7px 10px; border-top: 1px solid #f0f0f0; white-space: nowrap; }
.a-prune { margin-top: 24px; }
.a-prune .admin-btn { border: 1px solid #d0d0d0; background: #fff; }

@media (max-width: 800px) {
  .admin-header { flex-wrap: wrap; padding: 12px 16px; }
  .a-tabs { order: 3; width: 100%; overflow-x: auto; }
  .admin-main { padding: 24px 12px; }
  .admin-section { padding: 16px; }
  .a-grid2, .a-edit-grid { grid-template-columns: 1fr; }
  .a-item { grid-template-columns: 72px 1fr; }
  .a-thumb { width: 72px; height: 72px; }
  .a-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .a-actions .admin-btn, .a-actions form { width: auto; }
}
.a-grid2 { row-gap: 16px; }
.a-grid2 > div > .admin-label:first-child { margin-top: 0; }
.a-form > .a-grid2 { margin-top: 16px; }
.a-link .admin-btn { border: 1px solid #d0d0d0; background: #fff; color: #111; white-space: nowrap; }
.a-link .admin-btn:hover { border-color: #111; }
.post-figure--lottie, .post-figure--html { max-width: 560px; }
