/* Фотобанк Vector Media — theo hệ thiết kế vtid.ru (Đợt 275+ "token redesign"):
   thanh trên dải cam→đỏ, nền xám lạnh #f5f6f8, thẻ trắng viền #e4e7ec bo 16px,
   tiêu đề Manrope 800, chữ Inter, nút bo 12px / chip bo tròn, icon nét mảnh (Lucide). */
:root {
  --vt-bg: #f5f6f8;
  --vt-surface: #ffffff;
  --vt-line: #e4e7ec;
  --vt-line-soft: #f2f4f7;
  --vt-stage: #12151c;
  --vt-ink: #101828;
  --vt-ink-2: #344054;
  --vt-muted: #475467;
  --vt-faint: #667085;
  --vt-brand: #f0530b;
  --vt-brand-2: #dc2626;
  --vt-brand-action: #d2440b;
  --vt-brand-text: #c2410c;
  --vt-brand-deep: #9a3412;
  --vt-brand-tint: #fff1e8;
  --vt-on-brand: #ffe4d5;
  --vt-up: #067647;
  --vt-down: #b42318;
  --vt-grad: linear-gradient(120deg, #f0530b, #dc2626);
  --vt-grad-hero: linear-gradient(120deg, #f0530b 0%, #e5341a 55%, #c81e1e 100%);
  --vt-font-d: "Manrope", "Inter", system-ui, sans-serif;
  --vt-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --vt-r-sm: 8px;
  --vt-r-btn: 12px;
  --vt-r-card: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 12px 28px -12px rgba(16, 24, 40, 0.22);
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--vt-bg);
  color: var(--vt-ink);
  font: 400 15px/1.5 var(--vt-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--vt-brand-text); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font: 500 13px/1.4 ui-monospace, "JetBrains Mono", Menlo, monospace; background: var(--vt-line-soft); padding: 1px 6px; border-radius: 6px; }
.ic { display: inline-block; flex-shrink: 0; vertical-align: -0.15em; }
.muted { color: var(--vt-muted); }
.err { color: var(--vt-down); }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 28px 16px 48px; flex: 1; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .wrap { padding: 32px 32px 64px; } }

/* ---------------------------------------------------------------- thanh trên cùng */
.vt-nav { position: sticky; top: 0; z-index: 30; background: var(--vt-grad); color: #fff; box-shadow: 0 2px 10px rgba(16, 24, 40, 0.14); }
.vt-nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: inherit; pointer-events: none; }
.vt-nav-inner { max-width: 1376px; margin: 0 auto; min-height: 60px; padding: 8px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; margin-right: auto; }
.vt-nav-brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.vt-nav-brand span { display: flex; flex-direction: column; font: 800 19px/1 var(--vt-font-d); letter-spacing: -0.01em; }
.vt-nav-brand small { font: 600 11px/1.2 var(--vt-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--vt-on-brand); margin-top: 3px; }
.vt-nav-links { display: none; gap: 2px; }
.vt-nav-link { padding: 10px 14px; border-radius: 999px; color: #fff; font: 700 15px/1.2 var(--vt-font); white-space: nowrap; }
.vt-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.vt-nav-link.is-active { background: rgba(255, 255, 255, 0.22); }
.vt-nav-search { order: 5; display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.38); background: rgba(255, 255, 255, 0.16); color: #fff; }
.vt-nav-search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; color: #fff; font-size: 15px; }
.vt-nav-search input::placeholder { color: var(--vt-on-brand); }
.vt-nav-search input::-webkit-search-cancel-button { filter: invert(1); }
.vt-nav-search:focus-within { border-color: #fff; }
.lang-sw { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); }
.lang-sw a { display: grid; place-items: center; height: 32px; min-width: 38px; padding: 0 8px; border-radius: 999px; font: 700 13px/1 var(--vt-font); color: #fff; }
.lang-sw a:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.lang-sw a[aria-pressed="true"] { background: #fff; color: var(--vt-brand-text); }
.nav-right { margin: 0; }
@media (min-width: 1024px) {
  .vt-nav-inner { min-height: 72px; padding: 0 32px; gap: 20px; flex-wrap: nowrap; }
  .vt-nav-brand { margin-right: 0; }
  .brand-mark { width: 40px; height: 40px; }
  .vt-nav-brand span { font-size: 20px; }
  .vt-nav-links { display: flex; flex: 1; }
  .vt-nav-search { order: 0; width: 240px; }
}

/* ---------------------------------------------------------------- thành phần chung (vt-*) */
.vt-card { background: var(--vt-surface); border: 1px solid var(--vt-line); border-radius: var(--vt-r-card); }
.vt-lbl { display: block; font: 600 12px/1.3 var(--vt-font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--vt-muted); }
.vt-h2 { margin: 0; font: 800 20px/1.2 var(--vt-font-d); color: var(--vt-ink); }
.vt-row-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.vt-page-title { margin: 0; font: 800 26px/1.2 var(--vt-font-d); letter-spacing: -0.02em; }
.vt-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.vt-pagehead h1 { margin: 0; font: 800 34px/1.15 var(--vt-font-d); letter-spacing: -0.02em; color: var(--vt-ink); }
.vt-pagehead p { margin: 4px 0 0; max-width: 720px; font: 400 15px/1.5 var(--vt-font); color: var(--vt-muted); }
@media (max-width: 640px) { .vt-pagehead h1 { font-size: 26px; } }
.vt-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--vt-line); background: var(--vt-surface); color: var(--vt-ink-2); font: 600 14px/1 var(--vt-font); white-space: nowrap; flex: none; }
.vt-chip:hover { border-color: #d0d5dd; color: var(--vt-ink); }
.vt-chip.is-on { background: var(--vt-ink); border-color: var(--vt-ink); color: #fff; }
.chip-n { font-weight: 500; opacity: 0.65; }
.vt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--vt-r-btn); font: 700 15px/1.2 var(--vt-font); border: 0; cursor: pointer; text-align: center; white-space: nowrap; transition: transform 0.15s ease, background 0.15s; }
.vt-btn:disabled { opacity: 0.6; cursor: default; }
.vt-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.vt-btn--primary { background: var(--vt-brand-action); color: #fff; }
.vt-btn--primary:hover { background: var(--vt-brand-text); color: #fff; }
.vt-btn--white { background: #fff; color: var(--vt-brand-text); box-shadow: 0 8px 20px -10px rgba(120, 20, 0, 0.6); }
.vt-btn--white:hover { color: var(--vt-brand-deep); background: #fff7f2; transform: translateY(-1px); }
.vt-btn--ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.vt-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.vt-btn--neutral { background: var(--vt-line-soft); color: var(--vt-ink-2); }
.vt-btn--neutral:hover { background: var(--vt-line); color: var(--vt-ink); }
.vt-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font: 700 11px/1 var(--vt-font); letter-spacing: 0.03em; }
.vt-badge--vtid { background: var(--vt-brand-tint); color: var(--vt-brand-text); }
.kicker { font: 800 12px/1.2 var(--vt-font); letter-spacing: 0.09em; text-transform: uppercase; color: var(--vt-brand-text); }

/* ---------------------------------------------------------------- trang chủ */
.head-stats { display: flex; gap: 10px; }
.head-stats div { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 16px; border-radius: var(--vt-r-card); background: var(--vt-surface); border: 1px solid var(--vt-line); min-width: 112px; }
.head-stats b { font: 800 24px/1.1 var(--vt-font-d); font-variant-numeric: tabular-nums; }
.head-stats span { font-size: 13px; color: var(--vt-muted); }
.filters { display: flex; flex-direction: column; gap: 10px; }
.filters:empty { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.grid { display: grid; gap: 20px; }
.grid--projects { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .grid--projects { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more { display: flex; justify-content: center; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 16px; text-align: center; color: var(--vt-faint); background: var(--vt-surface); border: 1px dashed var(--vt-line); border-radius: var(--vt-r-card); }
.empty p { margin: 0; color: var(--vt-muted); }
.empty--page { border-style: solid; padding: 72px 16px; }

/* thẻ dự án (giống .evl-card của vtid) */
.pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: var(--vt-surface); border: 1px solid var(--vt-line); border-radius: 16px; box-shadow: var(--shadow); transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; }
.pcard:hover { border-color: #fed7c3; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pcard:focus-within { border-color: var(--vt-brand); box-shadow: 0 0 0 3px #ffe4d5; }
.pcard-cover, .acard-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--vt-brand-tint); }
.pcard-cover img, .acard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pcard:hover .pcard-cover img, .acard:hover .acard-cover img { transform: scale(1.035); }
.cover-ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(240, 83, 11, 0.45);
  background: repeating-linear-gradient(115deg, rgba(240, 83, 11, 0.06) 0 2px, transparent 2px 22px), linear-gradient(135deg, #fff4ec 0%, #ffe4d4 55%, #ffd6c4 100%); }
.pcard-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.pcard-title, .acard-title { margin: 0; font: 800 17px/1.3 var(--vt-font-d); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a::after, .acard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard:hover .pcard-title a, .acard:hover .acard-title a { color: var(--vt-brand-text); }
.meta { display: flex; flex-direction: column; gap: 5px; margin: 2px 0 0; padding: 0; list-style: none; }
.meta li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--vt-ink-2); }
.meta .ic { color: var(--vt-faint); }
.meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--vt-line-soft); font-size: 13px; color: var(--vt-muted); }
.pcard-stats b { font: 800 16px/1 var(--vt-font-d); color: var(--vt-ink); }

/* ---------------------------------------------------------------- hero (giống .tp-hero/.evl-featured) */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; min-height: 280px; display: flex; align-items: flex-end; color: #fff;
  background: radial-gradient(60% 90% at 78% 30%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%), repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 28px), var(--vt-grad-hero); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 21, 28, 0.15) 0%, rgba(18, 21, 28, 0.35) 45%, rgba(18, 21, 28, 0.85) 100%); }
.hero:not(:has(.hero-bg)) .hero-shade { display: none; }
.hero-in { width: 100%; padding: 22px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.hero-kicker { font: 800 12px/1.2 var(--vt-font); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }
.hero-kicker:empty { display: none; }
.hero-title { margin: 4px 0 0; max-width: 900px; font: 800 26px/1.15 var(--vt-font-d); letter-spacing: -0.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25); }
.hero-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.92); }
.hero-sub span { display: inline-flex; align-items: center; gap: 6px; }
.hero-sub a { text-decoration: underline; text-underline-offset: 3px; }
.hero-sub a:hover { color: #fff; }
.hero-desc { margin: 6px 0 0; max-width: 720px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero--featured { min-height: 340px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: auto; font: 600 13px/1.3 var(--vt-font); color: rgba(255, 255, 255, 0.9); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 1024px) {
  .hero { min-height: 360px; }
  .hero--featured { min-height: 420px; }
  .hero-in { padding: 28px 32px 30px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
}

/* ---------------------------------------------------------------- album */
.grid--albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 768px) { .grid--albums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid--albums { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.acard { position: relative; overflow: hidden; background: var(--vt-surface); border: 1px solid var(--vt-line); border-radius: 14px; transition: border-color 0.18s, box-shadow 0.18s; }
.acard:hover { border-color: #fed7c3; box-shadow: var(--shadow-lg); }
.acard-cover { aspect-ratio: 3 / 2; }
.acard-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(18, 21, 28, 0.72); color: #fff; font: 700 12px/1.3 var(--vt-font); }
.acard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; align-items: flex-start; }
.acard-title { font-size: 15px; }
.acard-date { font-size: 12.5px; color: var(--vt-muted); }

/* ---------------------------------------------------------------- lưới ảnh (justified, JS gán --r) */
.gallery-sec { display: flex; flex-direction: column; gap: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.gallery .ph { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--vt-line); aspect-ratio: 1; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; }
.gallery .ph img.is-loaded, .no-js .gallery .ph img { opacity: 1; }
.gallery .ph:hover img { filter: brightness(1.06); }
.gallery .ph:focus-visible { outline: 3px solid var(--vt-brand); outline-offset: 2px; }
.gallery.is-justified { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery.is-justified .ph { aspect-ratio: auto; height: var(--row-h, 220px); flex: var(--r) 1 calc(var(--r) * var(--row-h, 220px)); }
.gallery.is-justified::after { content: ""; flex: 999 1 0; } /* hàng cuối không bị kéo giãn */
@media (max-width: 640px) { .gallery { gap: 4px; } .gallery.is-justified { gap: 4px; } .gallery .ph { border-radius: 4px; } }
.more { margin-top: 12px; }
.usage { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--vt-muted); }

/* ---------------------------------------------------------------- xem ảnh (lightbox) */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(12, 14, 19, 0.97); color: #fff; animation: lb-in 0.15s ease-out; touch-action: pan-y; }
@keyframes lb-in { from { opacity: 0; } }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.lb-count { font: 700 14px/1 var(--vt-font); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); margin-right: auto; padding-left: 6px; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.1); color: #fff; font: 700 14px/1 var(--vt-font); }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.lb-btn--dl { background: var(--vt-brand-action); }
.lb-btn--dl:hover { background: var(--vt-brand); }
.lb-btn--icon { padding: 0; width: 42px; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 8px; overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 0.2s ease; border-radius: 4px; }
.lb-img.is-loading { opacity: 0.35; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lb-nav:disabled { opacity: 0.2; cursor: default; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 10px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.lb-info a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }
.lb-info a:hover { color: #fff; }
.lb-btn-label { display: none; }
@media (min-width: 640px) { .lb-btn-label { display: inline; } }
@media (max-width: 640px) { .lb-nav { display: none; } .lb-stage { padding: 0; } }
body.lb-open { overflow: hidden; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: var(--vt-stage); color: #fff; font: 600 14px/1.3 var(--vt-font); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- form */
.form-card { padding: 20px; max-width: 720px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.3 var(--vt-font); color: var(--vt-ink-2); }
.form label small { font-weight: 400; color: var(--vt-faint); }
.form label a { color: var(--vt-brand-text); font-weight: 600; }
.input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; font: 400 15px/1.4 var(--vt-font); color: var(--vt-ink); }
.input:focus { outline: 0; border-color: var(--vt-brand-text); box-shadow: 0 0 0 3px #ffe4d5; }
textarea.input { resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.form .check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--vt-brand-action); }
.form .vt-btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.notice--ok { background: #dcfae6; color: #085d3a; }
.notice--err { background: #fff1f2; color: #be123c; }
.notice--warn { background: #fef0c7; color: #93370d; }
.notice a { font-weight: 700; text-decoration: underline; }

/* ---------------------------------------------------------------- chân trang */
.site-footer { border-top: 1px solid var(--vt-line); background: var(--vt-surface); font-size: 13px; color: var(--vt-muted); }
.site-footer-inner { max-width: 1376px; margin: 0 auto; padding: 20px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; }
@media (min-width: 1024px) { .site-footer-inner { padding: 22px 32px; } }
.site-footer-brand { display: flex; flex-direction: column; gap: 4px; }
.site-footer-brand p { margin: 0; font-weight: 700; color: var(--vt-ink); }
.site-footer-brand small { font-size: 12.5px; color: var(--vt-faint); }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer-links a:hover { color: var(--vt-brand-text); }

/* ---------------------------------------------------------------- quản trị */
.admin .wrap { gap: 18px; }
.admin-login { display: grid; place-items: center; padding: 16px; }
.login-box { width: 100%; max-width: 380px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.login-brand { display: flex; align-items: center; gap: 10px; font: 800 18px/1.2 var(--vt-font-d); }
.login-brand .brand-mark rect { fill: var(--vt-brand); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font: 800 18px/1.25 var(--vt-font-d); }
.stat small { font-size: 13px; color: var(--vt-muted); word-break: break-word; }
.js-copy { cursor: copy; }
.table-card, .help-card { padding: 18px; }
.help-card ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--vt-ink-2); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 12px/1.3 var(--vt-font); letter-spacing: 0.05em; text-transform: uppercase; color: var(--vt-muted); padding: 8px 10px; border-bottom: 1px solid var(--vt-line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--vt-line-soft); vertical-align: middle; }
.tbl td small { color: var(--vt-muted); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .nowrap { white-space: nowrap; }
.tbl .thumb { width: 72px; }
.tbl .thumb img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.tbl tr.is-hidden td { opacity: 0.55; }
.tbl form { display: flex; gap: 6px; margin: 0; }
.tbl select.input { min-height: 34px; padding: 4px 8px; width: auto; }
.td-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--vt-line-soft); color: var(--vt-muted); font-size: 12px; font-weight: 700; }
.form-grid { padding: 20px; display: grid; grid-template-columns: 1fr; gap: 14px 20px; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span2 { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 460px; overflow-y: auto; padding: 2px; }
.pick { position: relative; display: block; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--vt-line-soft); }
.form .pick { display: block; }
.pick input { position: absolute; opacity: 0; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick-auto { display: grid; place-items: center; height: 100%; font-size: 13px; font-weight: 700; color: var(--vt-muted); }
.pick:has(input:checked) { outline: 3px solid var(--vt-brand-action); outline-offset: -3px; }
.pick:has(input:focus-visible) { box-shadow: 0 0 0 3px #ffe4d5; }
.picker--hide .pick:has(input:checked) { outline-color: var(--vt-down); }
.picker--hide .pick:has(input:checked) img { opacity: 0.3; filter: grayscale(1); }

/* phần tử flex/grid không bị nội dung (ảnh 640px) kéo rộng quá màn hình điện thoại */
.wrap, .wrap > *, .gallery .ph, .pcard, .acard, .hero-in { min-width: 0; }
.hero-title { overflow-wrap: anywhere; }
/* ảnh trong cửa sổ xem: vừa khít phần còn lại của màn hình (trừ thanh trên + dòng thông tin) */
.lb-img { max-height: calc(100vh - 124px); max-height: calc(100dvh - 124px); width: auto; height: auto; }
.lb { background: #0c0e13; }
