/* VNLD Editorial Studio v2.4.3 — Calm Human-Crafted Editorial Workspace
   Surfaces: Frontend Studio (/viet-bai/), Unauthenticated Gate, Published LXD Blocks,
             WP-Admin Horizontal Studio Tab (`Editor | UX Builder | VNLD Editorial Studio`),
             Media Library Modal & WP-Admin Settings Sheet.
   Calibrated to DESIGN.md: 100% unified self-hosted Vietnamese Inter (`tabular-nums`) &
   Meta Astryx concentric rounded-rectangle geometry (12px -> 10px -> 8px -> 6px -> 4px -> 2px;
   strictly zero capsule/pill `999px` UI controls). */

/* ==========================================================================
   1. Published Article LXD Pedagogical Blocks & Responsive Rubric Tables
   ========================================================================== */
.vnld-lxd-callout,
.vnld-lxd-objectives,
.vnld-lxd-casestudy {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: var(--ax-radius-card, 12px);
}

.vnld-lxd-callout > :first-child,
.vnld-lxd-objectives > :first-child,
.vnld-lxd-casestudy > :first-child {
  margin-top: 0 !important;
}

.vnld-lxd-callout > :last-child,
.vnld-lxd-objectives > :last-child,
.vnld-lxd-casestudy > :last-child {
  margin-bottom: 0 !important;
}

.vnld-lxd-callout {
  background: rgba(247, 131, 16, 0.08);
  border: 1px solid rgba(194, 85, 0, 0.28);
}

.vnld-lxd-objectives {
  background: rgba(15, 73, 206, 0.06);
  border: 1px solid rgba(15, 73, 206, 0.24);
}

.vnld-lxd-casestudy {
  background: rgba(15, 118, 110, 0.07);
  border: 1px solid rgba(15, 118, 110, 0.26);
}

html[data-theme="dark"] .vnld-lxd-callout {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.34);
}

html[data-theme="dark"] .vnld-lxd-objectives {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.34);
}

html[data-theme="dark"] .vnld-lxd-casestudy {
  background: rgba(45, 212, 191, 0.11);
  border-color: rgba(45, 212, 191, 0.32);
}

.vnld-lxd-block-title {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ax-text-primary, #0f172a);
  margin: 0 0 8px !important;
  letter-spacing: -0.01em;
}

.vnld-lxd-callout .vnld-lxd-block-title {
  color: #a64700;
}

.vnld-lxd-objectives .vnld-lxd-block-title {
  color: var(--ax-brand, #0f49ce);
}

.vnld-lxd-casestudy .vnld-lxd-block-title {
  color: #0f766e;
}

html[data-theme="dark"] .vnld-lxd-callout .vnld-lxd-block-title {
  color: #fdba74;
}

html[data-theme="dark"] .vnld-lxd-objectives .vnld-lxd-block-title {
  color: #60a5fa;
}

html[data-theme="dark"] .vnld-lxd-casestudy .vnld-lxd-block-title {
  color: #2dd4bf;
}

.vnld-table-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 0;
  background: transparent;
}

.vnld-table-scroll table,
.vnld-lxd-rubric {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  border-radius: var(--ax-radius-inner, 8px);
  background: var(--ax-surface-1, #ffffff);
  overflow: hidden;
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.55;
}

html[data-theme="dark"] .vnld-table-scroll table,
html[data-theme="dark"] .vnld-lxd-rubric {
  border-color: #24324b;
  background: #121b2e;
}

.vnld-table-scroll th,
.vnld-table-scroll td,
.vnld-lxd-rubric th,
.vnld-lxd-rubric td {
  padding: 11px 13px !important;
  border-right: 1px solid var(--ax-border-subtle, #e5e0d8);
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8);
  border-top: 0;
  border-left: 0;
  text-align: left;
  vertical-align: top;
  color: var(--ax-text-secondary, #334155);
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html[data-theme="dark"] .vnld-table-scroll th,
html[data-theme="dark"] .vnld-table-scroll td,
html[data-theme="dark"] .vnld-lxd-rubric th,
html[data-theme="dark"] .vnld-lxd-rubric td {
  border-right-color: #24324b;
  border-bottom-color: #24324b;
  color: #cbd5e1;
}

.vnld-table-scroll tbody tr:last-child td,
.vnld-lxd-rubric tbody tr:last-child td {
  border-bottom: 0;
}

.vnld-table-scroll th:last-child,
.vnld-table-scroll td:last-child,
.vnld-lxd-rubric th:last-child,
.vnld-lxd-rubric td:last-child {
  border-right: 0;
}

.vnld-table-scroll th,
.vnld-lxd-rubric th {
  background: var(--ax-surface-2, #f4f1ec);
  color: var(--ax-text-primary, #0f172a) !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

html[data-theme="dark"] .vnld-table-scroll th,
html[data-theme="dark"] .vnld-lxd-rubric th {
  background: #18243c;
  color: #f8fafc !important;
}

.has-text-align-left {
  text-align: left;
}

.has-text-align-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.has-text-align-right {
  text-align: right;
  margin-left: auto;
}

figure.has-text-align-left {
  text-align: left;
}

figure.has-text-align-right {
  text-align: right;
}

/* ==========================================================================
   2. Authorized Mobile Nav Item & Single-Post Author Bar
   ========================================================================== */
.vnld-ui-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.vnld-menu-write-item > a.vnld-nav-write-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  white-space: nowrap;
  font-weight: 700 !important;
}

.vnld-author-FloatingBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: var(--ax-radius-card, 12px);
  background: var(--ax-surface-2, #f4f1ec);
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  font-size: 14px;
  color: var(--ax-text-secondary, #334155);
}

.vnld-author-bar-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.vnld-author-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--ax-border-strong, #cfc8bc);
  background: var(--ax-surface-1, #ffffff);
  color: var(--ax-text-primary, #0f172a) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
}

@media (hover: hover) {
  .vnld-author-edit-btn:hover {
    border-color: var(--ax-brand, #0f49ce);
    color: var(--ax-brand, #0f49ce) !important;
  }
}

/* ==========================================================================
   3. Studio Page Frame, Zen Mode & Sticky Command Appbar (/viet-bai/)
   ========================================================================== */
:root {
  --vnld-adminbar-offset: 0px;
}

body.admin-bar,
html.wp-toolbar body.wp-admin {
  --vnld-adminbar-offset: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar,
  html.wp-toolbar body.wp-admin {
    --vnld-adminbar-offset: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar,
  html.wp-toolbar body.wp-admin {
    --vnld-adminbar-offset: 0px;
  }
}

.vnld-studio-shell,
.vnld-studio-shell *,
.vnld-studio-shell *::before,
.vnld-studio-shell *::after,
#uxbuilder-enable-disable.vnld-editor-mode-tabs,
#uxbuilder-enable-disable.vnld-editor-mode-tabs * {
  box-sizing: border-box;
}

/* Edge-to-edge workspace reset on /viet-bai/ */
body.vnld-studio-page #content.page-wrapper {
  padding-top: 0 !important;
  padding-bottom: 56px !important;
}

body.vnld-studio-page #content.page-wrapper > .row.row-main {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.vnld-studio-page #content.page-wrapper > .row.row-main > .large-12.col {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
}

/* Let marketing header scroll away naturally so only the slim Studio Appbar stays pinned */
body.vnld-studio-page #header .header-wrapper.stuck {
  position: static !important;
  top: auto !important;
  box-shadow: none !important;
  animation: none !important;
}

/* Distraction-Free Zen / Focus Mode (`Ctrl+\` or `[Tập trung]`) */
body.vnld-studio-page.vnld-studio-zen #header,
body.vnld-studio-page.vnld-studio-zen #footer,
body.vnld-studio-page.vnld-studio-zen .back-to-top {
  display: none !important;
}

.vnld-appbar-home,
.vnld-zen-only-btn {
  display: none !important;
}

body.vnld-studio-page.vnld-studio-zen .vnld-appbar-home,
body.vnld-studio-page.vnld-studio-zen .vnld-zen-only-btn {
  display: inline-flex !important;
}

.vnld-studio-shell {
  padding: 0;
  font-family: var(--ax-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.vnld-studio-shell code,
.vnld-studio-shell pre,
.vnld-studio-shell kbd,
.vnld-studio-admin-wrap code,
.vnld-studio-admin-wrap pre,
.vnld-studio-admin-wrap kbd,
.vnld-admin-meta-grid code,
.tox .tox-textarea {
  font-family: var(--ax-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.vnld-studio-wordcount,
.vnld-char-counter {
  font-family: var(--ax-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-variant-numeric: tabular-nums;
}

.vnld-studio-admin-wrap,
.vnld-studio-admin-wrap h1,
.vnld-studio-admin-wrap h2,
.vnld-studio-admin-wrap h3,
.vnld-studio-admin-wrap p,
.vnld-studio-admin-wrap button,
.vnld-studio-admin-wrap input,
.vnld-studio-admin-wrap select,
.vnld-studio-admin-wrap textarea,
.vnld-studio-admin-wrap .button,
.vnld-admin-meta-grid,
.vnld-admin-meta-grid input,
.vnld-admin-meta-grid select,
.vnld-admin-meta-grid textarea {
  font-family: var(--ax-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.vnld-studio-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.vnld-studio-appbar {
  position: sticky;
  top: var(--vnld-adminbar-offset, 0px);
  z-index: 28;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8);
  margin-bottom: 24px;
}

html[data-theme="dark"] .vnld-studio-appbar {
  background: rgba(11, 17, 32, 0.94);
  border-bottom-color: #1e2d47;
}

.vnld-appbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 56px;
  padding-top: 7px;
  padding-bottom: 7px;
  box-sizing: border-box;
}

.vnld-appbar-left,
.vnld-appbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

@media (min-width: 1080px) {
  .vnld-studio-shell:not(.vnld-studio-shell--admin) .vnld-appbar-inner,
  .vnld-studio-shell:not(.vnld-studio-shell--admin) .vnld-appbar-left,
  .vnld-studio-shell:not(.vnld-studio-shell--admin) .vnld-appbar-right,
  .vnld-studio-shell:not(.vnld-studio-shell--admin) .vnld-doc-status,
  body.vnld-studio-zen .vnld-appbar-inner,
  body.vnld-studio-zen .vnld-appbar-left,
  body.vnld-studio-zen .vnld-appbar-right,
  body.vnld-studio-zen .vnld-doc-status {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1360px) {
  .vnld-studio-shell--admin .vnld-appbar-inner,
  .vnld-studio-shell--admin .vnld-appbar-left,
  .vnld-studio-shell--admin .vnld-appbar-right,
  .vnld-studio-shell--admin .vnld-doc-status {
    flex-wrap: nowrap;
  }
}

.vnld-appbar-sep {
  width: 1px;
  height: 20px;
  background: var(--ax-border-subtle, #dfd9cf);
  margin: 0 4px;
}

html[data-theme="dark"] .vnld-appbar-sep {
  background: #2a3b59;
}

/* Semantic static status dot (zero decorative pulsing animation) */
.vnld-doc-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ax-text-muted, #475569);
  padding: 4px 6px;
}

html[data-theme="dark"] .vnld-doc-status {
  color: #94a3b8;
}

.vnld-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  background: #64748b;
}

.vnld-status-dot.is-publish {
  background: #16a34a;
}

.vnld-status-dot.is-future {
  background: #0f49ce;
}

.vnld-status-dot.is-private {
  background: #0f766e;
}

.vnld-status-dot.is-pending {
  background: #d97706;
}

html[data-theme="dark"] .vnld-status-dot.is-future {
  background: #60a5fa;
}

html[data-theme="dark"] .vnld-status-dot.is-private {
  background: #2dd4bf;
}

.vnld-status-dot.is-draft {
  background: #64748b;
}

.vnld-status-dot.is-new {
  background: #337dd4;
}

.vnld-status-dot.is-muted {
  background: #94a3b8;
}

.vnld-status-text {
  font-weight: 600;
  color: var(--ax-text-primary, #0f172a);
}

html[data-theme="dark"] .vnld-status-text {
  color: #f8fafc;
}

.vnld-meta-dot {
  opacity: 0.55;
}

.vnld-studio-metrics,
.vnld-studio-saved-meta {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.vnld-studio-saved-meta:empty {
  display: none;
}

.vnld-studio-saved-meta::before {
  content: "· ";
}

/* Unified Appbar Control Rhythm (>=38px desktop, >=44px touch) */
.vnld-appbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ax-text-secondary, #334155) !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  margin: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.vnld-appbar-btn[hidden] {
  display: none !important;
}

html[data-theme="dark"] .vnld-appbar-btn {
  color: #cbd5e1 !important;
}

@media (hover: hover) {
  .vnld-appbar-btn:hover:not(:disabled) {
    background: rgba(15, 23, 42, 0.06);
    color: var(--ax-text-primary, #0f172a) !important;
  }

  html[data-theme="dark"] .vnld-appbar-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
  }
}

.vnld-appbar-btn[aria-pressed="true"] {
  background: #efeae1;
  border-color: #cbc3b5;
  color: var(--ax-text-primary, #0f172a) !important;
}

html[data-theme="dark"] .vnld-appbar-btn[aria-pressed="true"] {
  background: #1e2d47;
  border-color: #3b4f6e;
  color: #f8fafc !important;
}

.vnld-appbar-btn--secondary {
  background: var(--ax-surface-1, #ffffff);
  border-color: var(--ax-border-strong, #cfc8bc);
  color: var(--ax-text-primary, #0f172a) !important;
  padding-inline: 14px;
}

html[data-theme="dark"] .vnld-appbar-btn--secondary {
  background: #18243c;
  border-color: #334155;
  color: #f8fafc !important;
}

@media (hover: hover) {
  .vnld-appbar-btn--secondary:hover:not(:disabled) {
    background: var(--ax-surface-2, #f4f1ec);
    border-color: #9e9689;
  }

  html[data-theme="dark"] .vnld-appbar-btn--secondary:hover:not(:disabled) {
    background: #223150;
    border-color: #475569;
  }
}

/* Single Brand Orange Primary CTA (Astryx color-emphasis DR3) — 4.66:1 WCAG AA in Light & Dark */
.vnld-appbar-btn--primary {
  background: #c25500 !important;
  border-color: #c25500 !important;
  color: #ffffff !important;
  padding-inline: 16px;
}

@media (hover: hover) {
  .vnld-appbar-btn--primary:hover:not(:disabled) {
    background: #a64700 !important;
    border-color: #a64700 !important;
    color: #ffffff !important;
  }
}

.vnld-appbar-btn:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

.vnld-appbar-btn:disabled,
.vnld-appbar-btn[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress !important;
  pointer-events: none;
}

.vnld-count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ax-text-secondary, #334155);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .vnld-count-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* ==========================================================================
   4. Workspace Grid: Dominant Paper Sheet + Single Cohesive Inspector Rail
   ========================================================================== */
.vnld-studio-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.vnld-studio-workspace.is-inspector-collapsed {
  grid-template-columns: minmax(0, 840px);
  justify-content: center;
}

.vnld-studio-workspace.is-inspector-collapsed .vnld-studio-inspector {
  display: none !important;
}

/* Paper Document Sheet (Flat 1px hairline edge, zero wide shadow slop, zero nested cards) */
.vnld-studio-sheet {
  background: var(--ax-surface-1, #ffffff);
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  border-radius: 12px;
  padding: 36px 48px 28px;
  box-shadow: none;
  min-width: 0;
}

html[data-theme="dark"] .vnld-studio-sheet {
  background: #121b2e;
  border-color: #24324b;
}

/* Cover Image Header */
.vnld-sheet-cover {
  margin-bottom: 14px;
}

.vnld-cover-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vnld-cover-empty[hidden],
.vnld-cover-figure[hidden] {
  display: none !important;
}

.vnld-cover-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  margin: 0 0 0 -12px !important;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ax-text-muted, #475569);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
}

.vnld-cover-ghost-btn + .vnld-cover-ghost-btn {
  margin-left: 0 !important;
}

html[data-theme="dark"] .vnld-cover-ghost-btn {
  color: #94a3b8;
}

@media (hover: hover) {
  .vnld-cover-ghost-btn:hover {
    background: var(--ax-surface-2, #f4f1ec);
    color: var(--ax-text-primary, #0f172a);
  }

  html[data-theme="dark"] .vnld-cover-ghost-btn:hover {
    background: #18243c;
    color: #f8fafc;
  }
}

.vnld-cover-ghost-btn:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

.vnld-cover-spec {
  font-size: 12px;
  color: var(--ax-text-muted, #64748b);
  opacity: 0.85;
}

html[data-theme="dark"] .vnld-cover-spec {
  color: #94a3b8;
}

.vnld-cover-figure {
  position: relative;
  margin: 0 0 18px;
  border-radius: 8px;
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  overflow: hidden;
  background: var(--ax-surface-2, #f4f1ec);
}

html[data-theme="dark"] .vnld-cover-figure {
  border-color: #24324b;
  background: #18243c;
}

.vnld-cover-media-box {
  position: relative;
}

.vnld-cover-figure img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.vnld-cover-alt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 !important;
  padding: 8px 12px;
  background: var(--ax-canvas, #faf8f5);
  border-top: 1px solid var(--ax-border-subtle, #e5e0d8);
  text-align: left;
}

html[data-theme="dark"] .vnld-cover-alt-bar {
  background: #121b2e;
  border-top-color: #24324b;
}

.vnld-cover-alt-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ax-text-secondary, #334155);
  white-space: nowrap;
  margin: 0 !important;
}

html[data-theme="dark"] .vnld-cover-alt-label {
  color: #cbd5e1;
}

.vnld-cover-alt-input,
body.wp-admin input.vnld-cover-alt-input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 34px !important;
  padding: 5px 10px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  border: 1px solid var(--ax-border-strong, #cfc8bc) !important;
  background: var(--ax-surface-1, #ffffff) !important;
  color: var(--ax-text-primary, #0f172a) !important;
  font-family: inherit;
  font-size: 13px !important;
  line-height: 1.4;
  box-shadow: none !important;
}

html[data-theme="dark"] .vnld-cover-alt-input {
  background: #18243c !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.vnld-cover-alt-input:focus,
body.wp-admin input.vnld-cover-alt-input:focus {
  outline: none !important;
  border-color: var(--ax-brand, #0f49ce) !important;
  box-shadow: inset 0 0 0 1px var(--ax-brand, #0f49ce) !important;
}

.vnld-cover-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: var(--ax-surface-2, #f4f1ec);
  border-top: 1px solid var(--ax-border-subtle, #e5e0d8);
}

html[data-theme="dark"] .vnld-cover-toolbar {
  background: #18243c;
  border-top-color: #24324b;
}

.vnld-cover-action-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--ax-border-strong, #cfc8bc);
  background: var(--ax-surface-1, #ffffff);
  color: var(--ax-text-primary, #0f172a);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  margin: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .vnld-cover-action-btn {
  background: #121b2e;
  border-color: #334155;
  color: #f8fafc;
}

.vnld-cover-action-btn:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

/* Borderless Auto-Growing Editorial Headline & Sapo */
.vnld-sheet-head {
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8);
}

html[data-theme="dark"] .vnld-sheet-head {
  border-bottom-color: #24324b;
}

.vnld-doc-title,
.vnld-doc-excerpt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 4px 2px !important;
  margin: 0 !important;
  resize: none;
  overflow: hidden;
  font-family: inherit;
}

.vnld-doc-title {
  font-size: clamp(26px, 3vw, 34px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.026em !important;
  color: var(--ax-text-primary, #0f172a) !important;
  min-height: 46px;
  margin-bottom: 10px !important;
}

.vnld-doc-excerpt {
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: var(--ax-text-secondary, #334155) !important;
  min-height: 36px;
}

html[data-theme="dark"] textarea.vnld-doc-title,
html[data-theme="dark"] textarea.vnld-doc-excerpt {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .vnld-doc-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .vnld-doc-excerpt {
  color: #cbd5e1 !important;
}

.vnld-doc-title::placeholder,
.vnld-doc-excerpt::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

html[data-theme="dark"] .vnld-doc-title::placeholder,
html[data-theme="dark"] .vnld-doc-excerpt::placeholder {
  color: #64748b !important;
}

.vnld-doc-title:focus,
.vnld-doc-excerpt:focus,
body.wp-admin textarea.vnld-doc-title,
body.wp-admin textarea.vnld-doc-excerpt,
body.wp-admin textarea.vnld-doc-title:focus,
body.wp-admin textarea.vnld-doc-excerpt:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.vnld-doc-title:focus-visible,
.vnld-doc-excerpt:focus-visible,
body.wp-admin textarea.vnld-doc-title:focus-visible,
body.wp-admin textarea.vnld-doc-excerpt:focus-visible {
  box-shadow: 0 2px 0 0 rgba(15, 73, 206, 0.35) !important;
}

/* ==========================================================================
   5. 1-Click Tactile LXD Block Quickbar & Seamless TinyMCE 8 Canvas
   ========================================================================== */
.vnld-lxd-quickbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 4px 0 10px;
}

.vnld-lxd-quickbar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ax-text-muted, #475569);
  white-space: nowrap;
}

html[data-theme="dark"] .vnld-lxd-quickbar-label {
  color: #94a3b8;
}

.vnld-lxd-quickbar-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.vnld-lxd-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--ax-border-subtle, #dfd9cf);
  background: var(--ax-surface-2, #f4f1ec);
  color: var(--ax-text-secondary, #334155);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  margin: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

html[data-theme="dark"] .vnld-lxd-chip {
  background: #18243c;
  border-color: #2a3b59;
  color: #cbd5e1;
}

@media (hover: hover) {
  .vnld-lxd-chip:hover {
    background: var(--ax-brand-soft, #eff6ff);
    border-color: rgba(15, 73, 206, 0.35);
    color: var(--ax-brand, #0f49ce);
  }

  html[data-theme="dark"] .vnld-lxd-chip:hover {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(96, 165, 250, 0.42);
    color: #93c5fd;
  }
}

.vnld-lxd-chip:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

/* TinyMCE 8 Shared Reset & Fullscreen Admin Bar Offset */
.tox,
.tox-tinymce-aux {
  --tox-private-font-stack: var(--ax-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.tox button,
.tox-tinymce-aux button {
  margin: 0 !important;
  min-height: 0;
  line-height: normal;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none;
}

body.admin-bar .tox.tox-tinymce.tox-fullscreen,
html.wp-toolbar body.wp-admin .tox.tox-tinymce.tox-fullscreen {
  top: var(--vnld-adminbar-offset, 32px) !important;
  height: calc(100vh - var(--vnld-adminbar-offset, 32px)) !important;
}

.vnld-studio-editor-wrap .tox .tox-promotion {
  display: none !important;
}

/* Paper Sheet TinyMCE: Completely Borderless, Flush & Calm */
.vnld-studio-sheet .tox-tinymce {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Critical: Remove Oxide's internal overflow:hidden so window is the scrollport for sticky toolbar */
.vnld-studio-sheet .tox.tox-tinymce:not(.tox-fullscreen),
.vnld-studio-sheet .tox:not(.tox-fullscreen) .tox-editor-container {
  overflow: visible !important;
}

.vnld-studio-editor-wrap .tox .tox-edit-area::before {
  display: none !important;
}

.vnld-studio-sheet .tox:not(.tox-tinymce-inline) .tox-editor-header {
  position: sticky;
  top: calc(var(--vnld-adminbar-offset, 0px) + 57px);
  z-index: 14;
  background: var(--ax-surface-1, #ffffff) !important;
  border-top: 1px solid var(--ax-border-subtle, #e5e0d8) !important;
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8) !important;
  border-radius: 0 !important;
  padding: 6px 0 !important;
  box-shadow: 0 -4px 0 0 var(--ax-surface-1, #ffffff) !important;
}

.tox-tinymce-aux .tox-dialog {
  border-radius: 10px !important;
}

.tox-tinymce-aux .tox-button {
  border-radius: 6px !important;
}

html[data-theme="dark"] .vnld-studio-sheet .tox:not(.tox-tinymce-inline) .tox-editor-header {
  background: #121b2e !important;
  border-top-color: #24324b !important;
  border-bottom-color: #24324b !important;
  box-shadow: 0 -4px 0 0 #121b2e !important;
}

/* Shared Oxide Button Harmonization */
.vnld-studio-editor-wrap .tox .tox-toolbar-overlord,
.vnld-studio-editor-wrap .tox .tox-toolbar__primary,
.vnld-studio-editor-wrap .tox .tox-toolbar__overflow {
  background: transparent !important;
}

.vnld-studio-editor-wrap .tox .tox-tbtn {
  background: transparent !important;
  border-radius: 6px !important;
}

.vnld-studio-editor-wrap .tox .tox-tbtn--bespoke {
  background: rgba(15, 23, 42, 0.05) !important;
  padding: 0 8px !important;
}

.vnld-studio-editor-wrap .tox .tox-tbtn--select {
  width: auto !important;
  max-width: 108px !important;
}

.vnld-studio-editor-wrap .tox .tox-toolbar__group {
  padding: 0 3px !important;
}

.vnld-studio-editor-wrap .tox .tox-tbtn:hover:not(.tox-tbtn--disabled) {
  background: rgba(15, 23, 42, 0.08) !important;
}

.vnld-studio-editor-wrap .tox .tox-tbtn--active,
.vnld-studio-editor-wrap .tox .tox-tbtn--enabled {
  background: rgba(15, 73, 206, 0.14) !important;
  color: var(--ax-brand, #0f49ce) !important;
}

/* Non-Destructive Dark Mode for TinyMCE 8 Oxide Chrome */
html[data-theme="dark"] .vnld-studio-editor-wrap .tox,
html[data-theme="dark"] .tox-tinymce-aux {
  --tox-private-color-black: #f8fafc;
  --tox-private-background-color: #18243c;
  --tox-private-background-secondary: #121b2e;
  --tox-private-text-color: #f8fafc;
  --tox-private-border-color: #334155;
  color: #f8fafc !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-edit-area__iframe {
  background-color: #121b2e !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn,
html[data-theme="dark"] .tox-tinymce-aux .tox-tbtn {
  background: transparent !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn--bespoke {
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn__select-label {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn--disabled,
html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn:disabled {
  background: transparent !important;
  color: rgba(226, 232, 240, 0.38) !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn--disabled svg,
html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn:disabled svg {
  fill: rgba(226, 232, 240, 0.38) !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn svg,
html[data-theme="dark"] .tox-tinymce-aux .tox-tbtn svg,
html[data-theme="dark"] .tox-tinymce-aux .tox-collection__item-icon svg {
  fill: #e2e8f0 !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn:hover:not(.tox-tbtn--disabled),
html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-tbtn--enabled,
html[data-theme="dark"] .tox-tinymce-aux .tox-tbtn:hover,
html[data-theme="dark"] .tox-tinymce-aux .tox-tbtn--enabled {
  background-color: #223150 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .vnld-studio-editor-wrap .tox .tox-toolbar__group:not(:last-of-type) {
  border-right-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .tox-tinymce-aux .tox-menu,
html[data-theme="dark"] .tox-tinymce-aux .tox-toolbar__overflow,
html[data-theme="dark"] .tox-tinymce-aux .tox-pop__dialog,
html[data-theme="dark"] .tox-tinymce-aux .tox-dialog {
  background-color: #18243c !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .tox-tinymce-aux .tox-dialog__header,
html[data-theme="dark"] .tox-tinymce-aux .tox-dialog__footer {
  background-color: #121b2e !important;
  border-color: #24324b !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .tox-tinymce-aux .tox-collection__item {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .tox-tinymce-aux .tox-collection__item--active,
html[data-theme="dark"] .tox-tinymce-aux .tox-collection__item--enabled {
  background-color: #223150 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .tox-tinymce-aux .tox-textfield,
html[data-theme="dark"] .tox-tinymce-aux .tox-textarea,
html[data-theme="dark"] .tox-tinymce-aux .tox-listboxfield .tox-listbox--select {
  background-color: #121b2e !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Collapsible Key Takeaways Footer Drawer inside Paper Sheet */
.vnld-sheet-drawer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ax-border-subtle, #e5e0d8);
}

html[data-theme="dark"] .vnld-sheet-drawer {
  border-top-color: #24324b;
}

.vnld-drawer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.vnld-drawer-summary::-webkit-details-marker {
  display: none;
}

.vnld-drawer-summary:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
  border-radius: 6px;
}

.vnld-drawer-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ax-text-primary, #0f172a);
}

html[data-theme="dark"] .vnld-drawer-title {
  color: #f8fafc;
}

.vnld-drawer-title .vnld-ui-svg {
  transition: transform 140ms ease;
  color: var(--ax-text-muted, #475569);
}

details[open] > .vnld-drawer-summary .vnld-drawer-title .vnld-ui-svg {
  transform: rotate(180deg);
}

.vnld-drawer-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ax-text-muted, #475569);
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .vnld-drawer-meta {
  color: #94a3b8;
}

.vnld-drawer-body {
  padding-top: 12px;
}

.vnld-drawer-hint {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ax-text-muted, #475569);
  margin-bottom: 10px;
}

html[data-theme="dark"] .vnld-drawer-hint {
  color: #94a3b8;
}

/* ==========================================================================
   6. Shared Form Inputs & Cohesive Inspector Rail (`Thiết lập` / `Bài của tôi`)
   ========================================================================== */
.vnld-studio-field {
  margin-bottom: 14px;
}

.vnld-studio-field[hidden] {
  display: none !important;
}

.vnld-studio-field.mb-0 {
  margin-bottom: 0;
}

.vnld-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.vnld-studio-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ax-text-secondary, #334155);
  margin: 0 0 6px;
}

.vnld-label-row .vnld-studio-label {
  margin-bottom: 0;
}

html[data-theme="dark"] .vnld-studio-label {
  color: #cbd5e1;
}

.vnld-field-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ax-surface-2, #f4f1ec);
  border: 1px solid var(--ax-border-subtle, #dfd9cf);
  color: var(--ax-text-muted, #475569);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html[data-theme="dark"] .vnld-field-badge {
  background: #18243c;
  border-color: #2a3b59;
  color: #94a3b8;
}

.vnld-field-hint {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ax-text-muted, #64748b);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html[data-theme="dark"] .vnld-field-hint {
  color: #94a3b8;
}

.vnld-inline-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  min-height: 22px !important;
  height: auto !important;
  padding: 2px 7px !important;
  margin: 0 !important;
  border-radius: 4px;
  border: 1px solid var(--ax-border-strong, #cfc8bc);
  background: var(--ax-surface-1, #ffffff);
  color: var(--ax-brand, #0f49ce);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.vnld-inline-reset-btn[hidden] {
  display: none !important;
}

html[data-theme="dark"] .vnld-inline-reset-btn {
  background: #18243c;
  border-color: #334155;
  color: #93c5fd;
}

@media (hover: hover) {
  .vnld-inline-reset-btn:hover {
    background: var(--ax-brand-soft, #eff6ff);
    border-color: var(--ax-brand, #0f49ce);
  }

  html[data-theme="dark"] .vnld-inline-reset-btn:hover {
    background: rgba(96, 165, 250, 0.16);
    border-color: #60a5fa;
  }
}

.vnld-inline-reset-btn:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

.vnld-studio-input,
.vnld-studio-textarea,
.vnld-studio-select,
.wp-core-ui select.vnld-studio-select,
body.wp-admin .vnld-studio-inspector input.vnld-studio-input {
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ax-canvas, #faf8f5) !important;
  color: var(--ax-text-primary, #0f172a) !important;
  border: 1px solid var(--ax-border-strong, #cfc8bc) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  min-height: 40px !important;
  font-family: inherit;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.vnld-studio-input:not(textarea),
.vnld-studio-select,
.wp-core-ui select.vnld-studio-select,
body.wp-admin .vnld-studio-inspector input.vnld-studio-input {
  height: 40px;
}

.vnld-studio-select,
.wp-core-ui select.vnld-studio-select {
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  background-size: 14px 14px !important;
  cursor: pointer;
}

html[data-theme="dark"] .vnld-studio-input,
html[data-theme="dark"] .vnld-studio-textarea,
html[data-theme="dark"] .vnld-studio-select {
  background-color: #18243c !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .vnld-studio-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

.vnld-studio-input:focus,
.vnld-studio-textarea:focus,
.vnld-studio-select:focus,
.wp-core-ui select.vnld-studio-select:focus,
body.wp-admin .vnld-studio-inspector input.vnld-studio-input:focus {
  outline: none !important;
  border-color: var(--ax-brand, #0f49ce) !important;
  box-shadow: inset 0 0 0 1px var(--ax-brand, #0f49ce) !important;
}

html[data-theme="dark"] .vnld-studio-input:focus,
html[data-theme="dark"] .vnld-studio-textarea:focus,
html[data-theme="dark"] .vnld-studio-select:focus {
  border-color: #60a5fa !important;
  box-shadow: inset 0 0 0 1px #60a5fa !important;
}

.vnld-moderation-hint {
  margin: 0 0 12px !important;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--ax-surface-2, #f4f1ec);
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: var(--ax-text-secondary, #334155);
}

html[data-theme="dark"] .vnld-moderation-hint {
  background: #18243c;
  border-color: #2a3b59;
  color: #cbd5e1;
}

.vnld-slug-preview {
  margin: 7px 0 0 !important;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--ax-surface-2, #f4f1ec);
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--ax-text-muted, #64748b);
  word-break: break-all;
}

html[data-theme="dark"] .vnld-slug-preview {
  background: #18243c;
  border-color: #24324b;
  color: #94a3b8;
}

.vnld-slug-preview strong {
  color: var(--ax-brand, #0f49ce);
  font-weight: 600;
}

html[data-theme="dark"] .vnld-slug-preview strong {
  color: #93c5fd;
}

.vnld-post-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ax-border-subtle, #e5e0d8);
}

html[data-theme="dark"] .vnld-post-options {
  border-top-color: #24324b;
}

.vnld-option-toggle {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 5px 6px;
  margin: 0 -6px !important;
  border-radius: 6px;
  color: var(--ax-text-secondary, #334155);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  transition: background-color 120ms ease, color 120ms ease;
}

html[data-theme="dark"] .vnld-option-toggle {
  color: #cbd5e1;
}

.vnld-option-label {
  flex: 1;
  min-width: 0;
}

@media (hover: hover) {
  .vnld-option-toggle:hover {
    background: var(--ax-surface-2, #f4f1ec);
    color: var(--ax-text-primary, #0f172a);
  }

  .vnld-option-toggle:hover .vnld-cat-check {
    border-color: #7c7467;
  }

  html[data-theme="dark"] .vnld-option-toggle:hover {
    background: #18243c;
    color: #f8fafc;
  }
}

.vnld-option-toggle.is-checked,
.vnld-option-toggle:has(input:checked) {
  color: var(--ax-text-primary, #0f172a);
  font-weight: 600;
}

html[data-theme="dark"] .vnld-option-toggle.is-checked,
html[data-theme="dark"] .vnld-option-toggle:has(input:checked) {
  color: #f8fafc;
}

.vnld-option-toggle.is-checked .vnld-cat-check,
.vnld-option-toggle:has(input:checked) .vnld-cat-check {
  background: var(--ax-brand, #0f49ce);
  border-color: var(--ax-brand, #0f49ce);
}

.vnld-option-toggle.is-checked .vnld-cat-check::after,
.vnld-option-toggle:has(input:checked) .vnld-cat-check::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -0.5px);
}

html[data-theme="dark"] .vnld-option-toggle.is-checked .vnld-cat-check,
html[data-theme="dark"] .vnld-option-toggle:has(input:checked) .vnld-cat-check {
  background: #3b82f6;
  border-color: #60a5fa;
}

.vnld-option-toggle:has(input:focus-visible) {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 1px;
}

/* Single Cohesive Sticky Inspector Sheet (Pinned Tabs + Smooth Inner Scrollport) */
.vnld-studio-inspector {
  position: sticky;
  top: calc(var(--vnld-adminbar-offset, 0px) + 80px);
  max-height: calc(100vh - var(--vnld-adminbar-offset, 0px) - 96px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ax-surface-1, #ffffff);
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  border-radius: 12px;
  box-shadow: none;
  min-width: 0;
  font-family: var(--ax-font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ax-text-primary, #0f172a);
}

html[data-theme="dark"] .vnld-studio-inspector {
  background: #121b2e;
  border-color: #24324b;
  color: #f8fafc;
}

.vnld-inspector-tabs {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ax-surface-1, #ffffff);
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8);
  padding: 6px;
  gap: 4px;
}

html[data-theme="dark"] .vnld-inspector-tabs {
  background: #121b2e;
  border-bottom-color: #24324b;
}

.vnld-inspector-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px !important;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent !important;
  background: transparent;
  color: var(--ax-text-muted, #475569);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  margin: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .vnld-inspector-tab {
  color: #94a3b8;
}

.vnld-inspector-tab.is-active {
  background: var(--ax-surface-2, #f4f1ec);
  border-color: var(--ax-border-subtle, #dfd9cf) !important;
  color: var(--ax-text-primary, #0f172a);
  font-weight: 700;
}

html[data-theme="dark"] .vnld-inspector-tab.is-active {
  background: #1e2d47;
  border-color: #2f4366 !important;
  color: #f8fafc;
}

.vnld-inspector-tab:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: -2px;
}

.vnld-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .vnld-tab-badge {
  background: rgba(255, 255, 255, 0.12);
}

.vnld-inspector-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.vnld-inspector-panel[hidden] {
  display: none !important;
}

.vnld-inspector-section {
  padding: 15px 18px;
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8);
}

html[data-theme="dark"] .vnld-inspector-section {
  border-bottom-color: #24324b;
}

.vnld-section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.vnld-section-heading {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ax-text-primary, #0f172a);
  margin-bottom: 10px;
}

.vnld-section-head-row .vnld-section-heading {
  margin-bottom: 0;
}

html[data-theme="dark"] .vnld-section-heading {
  color: #f8fafc;
}

.vnld-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--ax-surface-2, #f4f1ec);
  border: 1px solid var(--ax-border-subtle, #dfd9cf);
  color: var(--ax-text-muted, #475569);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html[data-theme="dark"] .vnld-section-badge {
  background: #18243c;
  border-color: #2a3b59;
  color: #94a3b8;
}

.vnld-section-badge.is-active,
.vnld-drawer-meta.is-active {
  background: var(--ax-brand-soft, #eff6ff);
  border-color: rgba(15, 73, 206, 0.28);
  color: var(--ax-brand, #0f49ce);
}

.vnld-drawer-meta.is-active {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(15, 73, 206, 0.28);
  font-size: 11px;
  font-weight: 700;
}

html[data-theme="dark"] .vnld-section-badge.is-active,
html[data-theme="dark"] .vnld-drawer-meta.is-active {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.38);
  color: #93c5fd;
}

/* Strictly hide visually-hidden inputs across both WP-Admin and Flatsome Frontend */
.vnld-studio-shell .screen-reader-text,
.vnld-cat-chip > input[type="checkbox"],
.vnld-option-toggle > input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Checkable Rounded-Rectangle Category Rows (Zero Capsule Pills, Full Non-Color WCAG State) */
.vnld-cat-chips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.vnld-cat-chip {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--ax-border-subtle, #dfd9cf);
  background: var(--ax-canvas, #faf8f5);
  color: var(--ax-text-secondary, #334155);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  margin: 0 !important;
  user-select: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.vnld-cat-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #b8b0a2;
  background: #ffffff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.vnld-cat-name {
  flex: 1;
  min-width: 0;
}

html[data-theme="dark"] .vnld-cat-chip {
  background: #18243c;
  border-color: #2a3b59;
  color: #cbd5e1;
}

html[data-theme="dark"] .vnld-cat-check {
  background: #121b2e;
  border-color: #475569;
}

@media (hover: hover) {
  .vnld-cat-chip:hover {
    border-color: #9e9689;
    color: var(--ax-text-primary, #0f172a);
  }

  .vnld-cat-chip:hover .vnld-cat-check {
    border-color: #7c7467;
  }

  html[data-theme="dark"] .vnld-cat-chip:hover {
    border-color: #475569;
    color: #f8fafc;
  }
}

.vnld-cat-chip.is-checked,
.vnld-cat-chip:has(input:checked) {
  background: var(--ax-brand-soft, #eff6ff);
  border-color: var(--ax-brand, #0f49ce);
  color: var(--ax-brand, #0f49ce);
}

.vnld-cat-chip.is-checked .vnld-cat-check,
.vnld-cat-chip:has(input:checked) .vnld-cat-check {
  background: var(--ax-brand, #0f49ce);
  border-color: var(--ax-brand, #0f49ce);
}

.vnld-cat-chip.is-checked .vnld-cat-check::after,
.vnld-cat-chip:has(input:checked) .vnld-cat-check::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -0.5px);
}

html[data-theme="dark"] .vnld-cat-chip.is-checked,
html[data-theme="dark"] .vnld-cat-chip:has(input:checked) {
  background: rgba(96, 165, 250, 0.16);
  border-color: #60a5fa;
  color: #93c5fd;
}

html[data-theme="dark"] .vnld-cat-chip.is-checked .vnld-cat-check,
html[data-theme="dark"] .vnld-cat-chip:has(input:checked) .vnld-cat-check {
  background: #3b82f6;
  border-color: #60a5fa;
}

.vnld-cat-chip:has(input:focus-visible) {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 1px;
}

/* Concentric 6px Rounded-Rectangle Tag Chips (Zero Capsule Pills) */
.vnld-tags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.vnld-tags-chips[hidden] {
  display: none !important;
}

.vnld-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 4px 3px 8px;
  border-radius: 6px;
  background: var(--ax-surface-2, #f4f1ec);
  border: 1px solid var(--ax-border-subtle, #dfd9cf);
  color: var(--ax-text-primary, #0f172a);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

html[data-theme="dark"] .vnld-tag-chip {
  background: #18243c;
  border-color: #2a3b59;
  color: #e2e8f0;
}

.vnld-tag-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 210px;
}

.vnld-tag-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  color: var(--ax-text-muted, #64748b) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
}

html[data-theme="dark"] .vnld-tag-chip-remove {
  color: #94a3b8 !important;
}

@media (hover: hover) {
  .vnld-tag-chip-remove:hover {
    background: rgba(185, 28, 28, 0.1) !important;
    color: #b91c1c !important;
  }

  html[data-theme="dark"] .vnld-tag-chip-remove:hover {
    background: rgba(248, 113, 113, 0.2) !important;
    color: #fca5a5 !important;
  }
}

.vnld-tag-chip-remove:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 1px;
}

/* Interactive Click-to-Jump Document Outline */
.vnld-studio-toc-list {
  list-style: none;
  margin: 0 -4px;
  padding: 2px 4px;
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  font-size: 13px;
}

.vnld-studio-toc-list li {
  margin: 0 0 3px;
}

.vnld-studio-toc-list li:last-child {
  margin-bottom: 0;
}

.vnld-studio-toc-list li.is-empty {
  padding: 0 4px;
  color: var(--ax-text-muted, #475569);
  line-height: 1.5;
}

html[data-theme="dark"] .vnld-studio-toc-list li.is-empty {
  color: #94a3b8;
}

.vnld-toc-jump {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  min-height: 34px !important;
  padding: 6px 8px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  color: var(--ax-text-secondary, #334155) !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
}

html[data-theme="dark"] .vnld-toc-jump {
  color: #cbd5e1 !important;
}

@media (hover: hover) {
  .vnld-toc-jump:hover {
    background: var(--ax-surface-2, #f4f1ec) !important;
    color: var(--ax-brand, #0f49ce) !important;
  }

  html[data-theme="dark"] .vnld-toc-jump:hover {
    background: #18243c !important;
    color: #93c5fd !important;
  }
}

.vnld-toc-jump:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

.vnld-toc-num {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ax-text-muted, #64748b);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.vnld-studio-toc-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ax-text-muted, #475569);
}

html[data-theme="dark"] .vnld-studio-toc-note {
  color: #94a3b8;
}

.vnld-studio-toc-note[hidden] {
  display: none !important;
}

.vnld-inspector-drawer .vnld-drawer-summary {
  min-height: 32px;
  padding: 0;
}

.vnld-inspector-drawer .vnld-drawer-title {
  font-size: 13px;
}

/* Author Attribution & Admin Reassignment Card */
.vnld-inspector-author-section {
  border-bottom: 0;
}

.vnld-inspector-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ax-canvas, #faf8f5);
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
}

html[data-theme="dark"] .vnld-inspector-author {
  background: #18243c;
  border-color: #2a3b59;
}

.vnld-inspector-author img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.vnld-inspector-author-meta {
  flex: 1;
  min-width: 0;
}

.vnld-inspector-author-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ax-text-primary, #0f172a);
}

html[data-theme="dark"] .vnld-inspector-author-meta strong {
  color: #f8fafc;
}

.vnld-author-select,
.wp-core-ui select.vnld-author-select {
  height: 36px !important;
  min-height: 36px !important;
  padding: 5px 30px 5px 10px !important;
  border-radius: 6px !important;
  background-color: var(--ax-surface-1, #ffffff) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .vnld-author-select {
  background-color: #121b2e !important;
}

.vnld-inspector-author-meta .vnld-author-role-meta {
  display: block;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ax-text-muted, #475569);
  margin-top: 4px;
}

html[data-theme="dark"] .vnld-inspector-author-meta .vnld-author-role-meta {
  color: #94a3b8;
}

/* Understated Destructive Trash Action (Concentric 8px Rounded Rectangle) */
.vnld-inspector-danger {
  padding: 0 18px 18px;
}

.vnld-inspector-danger[hidden] {
  display: none !important;
}

.vnld-trash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px !important;
  padding: 7px 12px;
  margin: 0 !important;
  border-radius: 8px;
  border: 1px solid #e6d4d4;
  background: transparent;
  color: #b91c1c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

html[data-theme="dark"] .vnld-trash-btn {
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

@media (hover: hover) {
  .vnld-trash-btn:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
  }

  html[data-theme="dark"] .vnld-trash-btn:hover:not(:disabled) {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
  }
}

.vnld-trash-btn:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

.vnld-trash-btn:disabled {
  opacity: 0.6;
  cursor: progress !important;
  pointer-events: none;
}

/* ==========================================================================
   6b. Accessible Concentric Rounded-Rectangle Media Library Modal (<= 12px)
   ========================================================================== */
.vnld-media-modal {
  position: fixed;
  inset: 0;
  z-index: 100080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--vnld-adminbar-offset, 0px) + 20px) 18px 20px;
}

.vnld-media-modal[hidden] {
  display: none !important;
}

.vnld-media-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(2px);
}

.vnld-media-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - var(--vnld-adminbar-offset, 0px) - 48px);
  background: var(--ax-surface-1, #ffffff);
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
}

html[data-theme="dark"] .vnld-media-dialog {
  background: #121b2e;
  border-color: #2a3b59;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.52);
}

.vnld-media-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8);
  background: var(--ax-surface-1, #ffffff);
}

html[data-theme="dark"] .vnld-media-head {
  background: #121b2e;
  border-bottom-color: #24324b;
}

.vnld-media-head-titles h2 {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--ax-text-primary, #0f172a) !important;
}

html[data-theme="dark"] .vnld-media-head-titles h2 {
  color: #f8fafc !important;
}

.vnld-media-head-titles span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ax-text-muted, #475569);
}

html[data-theme="dark"] .vnld-media-head-titles span {
  color: #94a3b8;
}

.vnld-media-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vnld-media-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 8px;
  border: 1px solid var(--ax-border-subtle, #dfd9cf);
  background: var(--ax-canvas, #faf8f5);
  color: var(--ax-text-secondary, #334155);
  cursor: pointer;
  box-shadow: none !important;
}

html[data-theme="dark"] .vnld-media-close-btn {
  background: #18243c;
  border-color: #334155;
  color: #cbd5e1;
}

@media (hover: hover) {
  .vnld-media-close-btn:hover {
    background: var(--ax-surface-2, #f4f1ec);
    color: var(--ax-text-primary, #0f172a);
  }

  html[data-theme="dark"] .vnld-media-close-btn:hover {
    background: #223150;
    color: #ffffff;
  }
}

.vnld-media-close-btn:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

.vnld-media-toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8);
  background: var(--ax-canvas, #faf8f5);
}

html[data-theme="dark"] .vnld-media-toolbar {
  background: #0f172a;
  border-bottom-color: #24324b;
}

.vnld-media-body {
  flex: 1 1 auto;
  min-height: 220px;
  overflow-y: auto;
  padding: 18px 20px;
}

.vnld-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 12px;
}

.vnld-media-grid[hidden] {
  display: none !important;
}

.vnld-media-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  padding: 6px !important;
  margin: 0 !important;
  border-radius: 8px;
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  background: var(--ax-canvas, #faf8f5);
  color: var(--ax-text-primary, #0f172a);
  font-family: inherit;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: border-color 120ms ease, background-color 120ms ease;
}

html[data-theme="dark"] .vnld-media-item {
  background: #18243c;
  border-color: #2a3b59;
  color: #f8fafc;
}

@media (hover: hover) {
  .vnld-media-item:hover {
    border-color: var(--ax-brand, #0f49ce);
    background: var(--ax-brand-soft, #eff6ff);
  }

  html[data-theme="dark"] .vnld-media-item:hover {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.14);
  }
}

.vnld-media-item:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

.vnld-media-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ax-surface-2, #f4f1ec);
}

html[data-theme="dark"] .vnld-media-thumb {
  background: #121b2e;
}

.vnld-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vnld-media-caption {
  display: block;
  padding: 7px 4px 3px;
  min-width: 0;
}

.vnld-media-title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vnld-media-meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ax-text-muted, #64748b);
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .vnld-media-meta {
  color: #94a3b8;
}

.vnld-media-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--ax-border-subtle, #e5e0d8);
  background: var(--ax-surface-2, #f4f1ec);
}

html[data-theme="dark"] .vnld-media-foot {
  background: #18243c;
  border-top-color: #24324b;
}

.vnld-media-page-info {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ax-text-secondary, #334155);
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .vnld-media-page-info {
  color: #cbd5e1;
}

.vnld-media-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* `Bài của tôi` Tab + Instant Search */
.vnld-inspector-search-box {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ax-surface-1, #ffffff);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--ax-border-subtle, #e5e0d8);
}

html[data-theme="dark"] .vnld-inspector-search-box {
  background: #121b2e;
  border-bottom-color: #24324b;
}

.vnld-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.vnld-search-field .vnld-ui-svg {
  position: absolute;
  left: 11px;
  color: var(--ax-text-muted, #64748b);
  pointer-events: none;
}

.vnld-search-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 7px 12px 7px 34px !important;
  border-radius: 8px !important;
  border: 1px solid var(--ax-border-strong, #cfc8bc) !important;
  background: var(--ax-canvas, #faf8f5) !important;
  color: var(--ax-text-primary, #0f172a) !important;
  font-family: inherit;
  font-size: 13.5px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .vnld-search-input {
  background: #18243c !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.vnld-search-input:focus {
  outline: none !important;
  border-color: var(--ax-brand, #0f49ce) !important;
  box-shadow: inset 0 0 0 1px var(--ax-brand, #0f49ce) !important;
}

.vnld-studio-my-posts {
  list-style: none;
  margin: 0;
  padding: 6px 8px 12px;
}

.vnld-studio-my-posts li {
  margin: 0 0 2px;
}

.vnld-studio-my-posts li[hidden] {
  display: none !important;
}

.vnld-studio-my-posts li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 10px;
  border-radius: 6px;
  text-decoration: none !important;
  color: var(--ax-text-primary, #0f172a);
  transition: background-color 120ms ease;
}

.vnld-studio-my-posts li a:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: -2px;
}

html[data-theme="dark"] .vnld-studio-my-posts li a {
  color: #f8fafc;
}

.vnld-studio-my-posts li a .vnld-status-dot {
  margin-top: 6px;
}

@media (hover: hover) {
  .vnld-studio-my-posts li a:hover {
    background: var(--ax-surface-2, #f4f1ec);
  }

  html[data-theme="dark"] .vnld-studio-my-posts li a:hover {
    background: #18243c;
  }
}

.vnld-studio-my-posts li a.is-active {
  background: var(--ax-brand-soft, #eff6ff);
}

html[data-theme="dark"] .vnld-studio-my-posts li a.is-active {
  background: rgba(96, 165, 250, 0.16);
}

.vnld-my-post-body {
  flex: 1;
  min-width: 0;
}

.vnld-my-post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.vnld-studio-my-posts li a.is-active .vnld-my-post-title {
  color: var(--ax-brand, #0f49ce);
}

html[data-theme="dark"] .vnld-studio-my-posts li a.is-active .vnld-my-post-title {
  color: #93c5fd;
}

.vnld-my-post-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ax-text-muted, #475569);
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .vnld-my-post-meta {
  color: #94a3b8;
}

.vnld-empty-note {
  margin: 0;
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ax-text-muted, #475569);
}

.vnld-empty-note[hidden] {
  display: none !important;
}

/* ==========================================================================
   7. Live Toast Banner & Understated Sign-In Gate
   ========================================================================== */
.vnld-studio-toast-region {
  margin: 0;
}

.vnld-studio-toast-region.has-toast {
  position: sticky;
  top: calc(var(--vnld-adminbar-offset, 0px) + 72px);
  z-index: 32;
  margin-bottom: 18px;
}

.vnld-studio-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  border: 1px solid var(--ax-border-strong, #cfc8bc);
  background: var(--ax-surface-1, #ffffff);
  color: var(--ax-text-primary, #0f172a);
}

.vnld-studio-toast-region .vnld-studio-alert {
  margin-bottom: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.vnld-studio-alert-lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.vnld-studio-alert-body {
  flex: 1;
  min-width: 0;
}

.vnld-studio-alert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.vnld-studio-alert-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  margin: 0 !important;
}

html[data-theme="dark"] .vnld-studio-alert-action-btn {
  background: rgba(15, 23, 42, 0.45);
}

.vnld-studio-alert-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: -4px -4px -4px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  color: inherit !important;
  opacity: 0.78;
  cursor: pointer;
  box-shadow: none !important;
}

.vnld-studio-alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06) !important;
}

.vnld-studio-alert-action-btn:focus-visible,
.vnld-studio-alert-close:focus-visible {
  outline: 2px solid var(--ax-brand, #0f49ce);
  outline-offset: 2px;
}

.vnld-studio-alert--success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.vnld-studio-alert--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.vnld-studio-alert--warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

html[data-theme="dark"] .vnld-studio-alert--success {
  background: #0f291e;
  border-color: rgba(134, 239, 172, 0.38);
  color: #86efac;
}

html[data-theme="dark"] .vnld-studio-alert--error {
  background: #2c1215;
  border-color: rgba(252, 165, 165, 0.38);
  color: #fca5a5;
}

html[data-theme="dark"] .vnld-studio-alert--warning {
  background: #2c1f0e;
  border-color: rgba(252, 211, 77, 0.38);
  color: #fcd34d;
}

/* Understated Left-Aligned Gate Sheet (Zero Centered Splash Clichés) */
.vnld-studio-restricted {
  padding: 48px 0 32px;
}

.vnld-studio-gate-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 34px;
  background: var(--ax-surface-1, #ffffff);
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  border-radius: 12px;
  box-shadow: none;
  text-align: left;
}

html[data-theme="dark"] .vnld-studio-gate-card {
  background: #121b2e;
  border-color: #24324b;
}

.vnld-gate-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ax-text-muted, #475569);
  margin-bottom: 12px;
}

html[data-theme="dark"] .vnld-gate-kicker {
  color: #94a3b8;
}

.vnld-studio-gate-title {
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
  color: var(--ax-text-primary, #0f172a) !important;
  margin: 0 0 10px !important;
}

html[data-theme="dark"] .vnld-studio-gate-title {
  color: #f8fafc !important;
}

.vnld-studio-gate-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ax-text-secondary, #334155);
  margin: 0 0 24px;
}

html[data-theme="dark"] .vnld-studio-gate-desc {
  color: #cbd5e1;
}

.vnld-studio-gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.vnld-studio-gate-actions .vnld-appbar-btn {
  min-height: 40px;
}

.vnld-gate-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ax-text-secondary, #334155) !important;
  text-decoration: none !important;
}

html[data-theme="dark"] .vnld-gate-text-link {
  color: #cbd5e1 !important;
}

@media (hover: hover) {
  .vnld-gate-text-link:hover {
    color: var(--ax-brand, #0f49ce) !important;
  }

  html[data-theme="dark"] .vnld-gate-text-link:hover {
    color: #93c5fd !important;
  }
}

/* ==========================================================================
   8. WP-Admin Horizontal Mode Tabs (`Editor | UX Builder | VNLD Editorial Studio`)
      & Unified Linear/Astryx Settings Sheet
   ========================================================================== */
#uxbuilder-enable-disable.vnld-editor-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  margin: 10px 0 18px !important;
  padding: 6px 0 0 !important;
  border-bottom: 1px solid #c3c4c7 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.3;
}

#uxbuilder-enable-disable.vnld-editor-mode-tabs > a.nav-tab {
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  margin: 0 0 -1px !important;
  padding: 7px 15px !important;
  border: 1px solid #c3c4c7 !important;
  border-bottom-color: #c3c4c7 !important;
  border-radius: 8px 8px 0 0;
  background: #e7e5e0 !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

@media (hover: hover) {
  #uxbuilder-enable-disable.vnld-editor-mode-tabs > a.nav-tab:hover:not(.nav-tab-active) {
    background: #f5f3ef !important;
    color: #0f172a !important;
  }
}

#uxbuilder-enable-disable.vnld-editor-mode-tabs > a.nav-tab:focus-visible {
  outline: 2px solid #0f49ce;
  outline-offset: 2px;
}

#uxbuilder-enable-disable.vnld-editor-mode-tabs > a.nav-tab.nav-tab-active {
  background: #f0f0f1 !important;
  border-bottom-color: #f0f0f1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.vnld-ux-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1.5px solid #476481;
  color: #2c4762;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.vnld-brand-tab-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
}

/* Active Horizontal `VNLD Editorial Studio` Tab Mode inside WP-Admin (Full-Width & Full-Height 100dvh) */
body.vnld-admin-studio-active,
body.vnld-admin-studio-active #wpwrap,
body.vnld-admin-studio-active #wpcontent {
  background-color: #faf8f5 !important;
}

body.vnld-admin-studio-active #wpcontent {
  min-height: calc(100vh - var(--vnld-adminbar-offset, 32px));
}

@supports (height: 100dvh) {
  body.vnld-admin-studio-active #wpcontent {
    min-height: calc(100dvh - var(--vnld-adminbar-offset, 32px));
  }
}

body.vnld-admin-studio-active #wpwrap,
body.vnld-admin-studio-active #wpcontent,
body.vnld-admin-studio-active #wpbody,
body.vnld-admin-studio-active #wpbody-content {
  overflow: visible !important;
}

body.vnld-admin-studio-active #wpbody-content {
  padding-bottom: 0 !important;
}

body.vnld-admin-studio-active #poststuff,
body.vnld-admin-studio-active #screen-meta-links,
body.vnld-admin-studio-active #screen-meta,
body.vnld-admin-studio-active #local-storage-notice,
body.vnld-admin-studio-active #wpfooter {
  display: none !important;
}

body.vnld-admin-studio-active #wpbody-content > .wrap {
  max-width: none;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 0 !important;
  padding-bottom: 12px !important;
}

body.vnld-admin-studio-active #wpbody-content > .wrap > h1.wp-heading-inline {
  padding-top: 4px;
  padding-bottom: 2px;
}

body.vnld-admin-studio-active #uxbuilder-enable-disable.vnld-editor-mode-tabs {
  width: 100%;
  max-width: none;
  border-bottom-color: #d6d0c4 !important;
  margin-top: 6px !important;
  margin-bottom: 10px !important;
}

body.vnld-admin-studio-active #uxbuilder-enable-disable.vnld-editor-mode-tabs > a.nav-tab {
  border-color: #d6d0c4 !important;
}

body.vnld-admin-studio-active #uxbuilder-enable-disable.vnld-editor-mode-tabs > a.nav-tab.nav-tab-active {
  background: #faf8f5 !important;
  border-bottom-color: #faf8f5 !important;
  color: #0f172a !important;
}

.vnld-studio-shell--admin {
  width: 100%;
  max-width: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 0;
}

.vnld-studio-shell--admin .vnld-studio-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.vnld-studio-shell--admin .vnld-studio-workspace {
  --vnld-workspace-min-h: calc(100vh - var(--vnld-adminbar-offset, 32px) - 176px);
  --vnld-inspector-h: calc(100vh - var(--vnld-adminbar-offset, 32px) - 176px);
  grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 384px);
  gap: 20px;
  min-height: var(--vnld-workspace-min-h);
}

@supports (height: 100dvh) {
  .vnld-studio-shell--admin .vnld-studio-workspace {
    --vnld-workspace-min-h: calc(100dvh - var(--vnld-adminbar-offset, 32px) - 176px);
    --vnld-inspector-h: calc(100dvh - var(--vnld-adminbar-offset, 32px) - 176px);
  }
}

.vnld-studio-shell--admin .vnld-studio-workspace.is-inspector-collapsed {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

.vnld-studio-shell--admin .vnld-studio-sheet {
  display: flex;
  flex-direction: column;
  min-height: var(--vnld-workspace-min-h);
  padding: 22px 40px 16px;
}

.vnld-studio-shell--admin .vnld-sheet-cover {
  margin-bottom: 8px;
}

.vnld-studio-shell--admin .vnld-sheet-head {
  padding-bottom: 12px;
  margin-bottom: 10px;
}

.vnld-studio-shell--admin .vnld-doc-title {
  min-height: 42px;
  margin-bottom: 6px !important;
}

.vnld-studio-shell--admin .vnld-studio-editor-wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 12px;
}

.vnld-studio-shell--admin .vnld-studio-sheet .tox.tox-tinymce:not(.tox-fullscreen) {
  flex: 1 0 auto !important;
}

.vnld-studio-shell--admin .vnld-studio-sheet .tox:not(.tox-fullscreen) .tox-editor-container {
  flex: 1 1 auto !important;
}

.vnld-studio-shell--admin .vnld-sheet-drawer {
  margin-top: auto;
  padding-top: 12px;
}

.vnld-studio-shell--admin .vnld-studio-appbar {
  top: calc(var(--vnld-adminbar-offset, 32px) + 6px);
  background: #ffffff;
  backdrop-filter: none;
  border: 1px solid var(--ax-border-subtle, #e5e0d8);
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 12px;
  box-shadow: 0 -10px 0 4px #faf8f5;
}

.vnld-studio-shell--admin .vnld-studio-sheet .tox:not(.tox-tinymce-inline) .tox-editor-header {
  top: calc(var(--vnld-adminbar-offset, 32px) + 64px);
}

.vnld-studio-shell--admin .vnld-studio-inspector {
  top: calc(var(--vnld-adminbar-offset, 32px) + 76px);
  height: var(--vnld-inspector-h);
  max-height: var(--vnld-inspector-h);
}

.vnld-studio-shell--admin .vnld-studio-toast-region.has-toast {
  top: calc(var(--vnld-adminbar-offset, 32px) + 74px);
}

/* Distraction-Free Zen Mode inside WP-Admin (`Ctrl+\` or `[Tập trung]`) */
body.vnld-admin-studio-active.vnld-studio-zen #adminmenumain,
body.vnld-admin-studio-active.vnld-studio-zen #adminmenuback,
body.vnld-admin-studio-active.vnld-studio-zen #adminmenuwrap,
body.vnld-admin-studio-active.vnld-studio-zen #wpfooter,
body.vnld-admin-studio-active.vnld-studio-zen #uxbuilder-enable-disable,
body.vnld-admin-studio-active.vnld-studio-zen .wrap > h1.wp-heading-inline,
body.vnld-admin-studio-active.vnld-studio-zen .wrap > .page-title-action,
body.vnld-admin-studio-active.vnld-studio-zen .wrap > hr.wp-header-end {
  display: none !important;
}

body.vnld-admin-studio-active.vnld-studio-zen #wpcontent {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

body.vnld-admin-studio-active.vnld-studio-zen #wpbody-content > .wrap {
  max-width: none;
  width: 100%;
  margin: 0 !important;
  padding: 12px 24px 12px !important;
}

body.vnld-admin-studio-active.vnld-studio-zen .vnld-studio-shell--admin {
  margin: 0;
}

body.vnld-admin-studio-active.vnld-studio-zen .vnld-studio-shell--admin .vnld-studio-workspace {
  --vnld-workspace-min-h: calc(100vh - var(--vnld-adminbar-offset, 32px) - 94px);
  --vnld-inspector-h: calc(100vh - var(--vnld-adminbar-offset, 32px) - 94px);
}

@supports (height: 100dvh) {
  body.vnld-admin-studio-active.vnld-studio-zen .vnld-studio-shell--admin .vnld-studio-workspace {
    --vnld-workspace-min-h: calc(100dvh - var(--vnld-adminbar-offset, 32px) - 94px);
    --vnld-inspector-h: calc(100dvh - var(--vnld-adminbar-offset, 32px) - 94px);
  }
}

.vnld-admin-meta-grid {
  padding-top: 6px;
}

.vnld-admin-meta-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Unified Settings Page (`options-general.php?page=vnld-editorial-studio`) */
.vnld-studio-admin-wrap {
  max-width: 1060px;
  margin-top: 18px;
}

.vnld-admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.vnld-admin-page-titles h1 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.vnld-admin-page-titles p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  max-width: 64ch;
}

.vnld-admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vnld-admin-ext-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.vnld-admin-sheet {
  background: #ffffff;
  border: 1px solid #e5e0d8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
}

.vnld-admin-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 26px;
  border-bottom: 1px solid #ece9e2;
}

.vnld-admin-row--stack {
  display: block;
}

.vnld-admin-row-intro h2,
.vnld-admin-users-bar h2 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
}

.vnld-admin-row-intro p,
.vnld-admin-users-bar p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}

.vnld-admin-row-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vnld-admin-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.vnld-admin-check input[type="checkbox"],
.vnld-admin-role-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0 !important;
  flex-shrink: 0;
  accent-color: #0f49ce;
}

.vnld-admin-check-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.vnld-admin-check-text span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin-top: 2px;
}

.vnld-admin-inline-field {
  padding-top: 6px;
}

.vnld-input-narrow {
  max-width: 120px;
}

.vnld-admin-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 18px;
}

.vnld-admin-role-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.vnld-admin-role-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.vnld-admin-role-meta span {
  display: block;
  font-size: 12.5px;
  color: #475569;
  margin-top: 2px;
}

.vnld-admin-users-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.vnld-admin-search-wrap {
  width: 280px;
  max-width: 100%;
}

.vnld-users-table-wrap {
  overflow-x: auto;
  border: 0;
  background: transparent;
}

.vnld-users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ece9e2;
  border-radius: 8px;
  overflow: hidden;
  font-size: 13.5px;
}

.vnld-users-table th,
.vnld-users-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f1efe9;
}

.vnld-users-table tbody tr:last-child td {
  border-bottom: 0;
}

.vnld-users-table th {
  background: #faf8f5;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
}

.vnld-users-table tr[hidden] {
  display: none !important;
}

.vnld-user-cell strong {
  display: block;
  color: #0f172a;
  font-weight: 600;
}

.vnld-user-cell span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

.vnld-user-role-col {
  color: #334155;
}

.vnld-perm-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.vnld-perm-state.is-denied {
  color: #64748b;
  font-weight: 500;
}

.vnld-super-note {
  font-size: 13px;
  color: #64748b;
}

.wp-core-ui select.vnld-admin-select,
.vnld-admin-select {
  min-height: 36px !important;
  padding: 4px 28px 4px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #cfc8bc !important;
  font-size: 13px !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.wp-core-ui select.vnld-admin-select:focus,
.vnld-admin-select:focus {
  border-color: #0f49ce !important;
  outline: 2px solid rgba(15, 73, 206, 0.25) !important;
  outline-offset: 1px;
}

.vnld-empty-cell {
  text-align: center !important;
  color: #64748b;
  padding: 22px 14px !important;
}

.vnld-admin-sheet-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 26px;
  background: #faf8f5;
  border-radius: 0;
}

/* ==========================================================================
   9. Responsive Breakpoints & Coarse-Pointer / Reduced-Motion Polish
   ========================================================================== */
@media (max-width: 1359px) {
  body:not(.vnld-studio-zen) .vnld-studio-shell--admin .vnld-studio-appbar {
    position: static;
    top: auto;
    box-shadow: none;
  }

  body:not(.vnld-studio-zen) .vnld-studio-shell--admin .vnld-studio-sheet .tox:not(.tox-tinymce-inline) .tox-editor-header {
    top: var(--vnld-adminbar-offset, 32px);
  }

  body:not(.vnld-studio-zen) .vnld-studio-shell--admin .vnld-studio-inspector {
    top: calc(var(--vnld-adminbar-offset, 32px) + 12px);
    height: var(--vnld-inspector-h);
    max-height: var(--vnld-inspector-h);
  }

  body:not(.vnld-studio-zen) .vnld-studio-shell--admin .vnld-studio-toast-region.has-toast {
    top: calc(var(--vnld-adminbar-offset, 32px) + 8px);
  }
}

@media (max-width: 1180px) {
  body:not(.vnld-studio-zen) .vnld-studio-shell--admin .vnld-studio-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.vnld-studio-zen) .vnld-studio-shell--admin .vnld-studio-inspector {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body:not(.vnld-studio-zen) .vnld-studio-shell--admin .vnld-inspector-panel {
    overflow-y: visible;
    max-height: none;
  }
}

@media (min-width: 600px) and (max-width: 1180px) {
  body:not(.vnld-studio-zen) .vnld-studio-shell--admin .vnld-cat-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1079px) {
  .vnld-studio-appbar,
  .vnld-studio-shell--admin .vnld-studio-appbar {
    position: static;
    top: auto;
    box-shadow: none;
  }

  .vnld-studio-sheet .tox:not(.tox-tinymce-inline) .tox-editor-header,
  .vnld-studio-shell--admin .vnld-studio-sheet .tox:not(.tox-tinymce-inline) .tox-editor-header {
    top: var(--vnld-adminbar-offset, 0px);
  }

  .vnld-studio-toast-region.has-toast,
  .vnld-studio-shell--admin .vnld-studio-toast-region.has-toast {
    top: calc(var(--vnld-adminbar-offset, 0px) + 8px);
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  .vnld-cat-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .vnld-studio-workspace,
  .vnld-studio-shell--admin .vnld-studio-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .vnld-studio-inspector,
  .vnld-studio-shell--admin .vnld-studio-inspector {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .vnld-inspector-panel,
  .vnld-studio-shell--admin .vnld-inspector-panel {
    overflow-y: visible;
    max-height: none;
  }

  .vnld-studio-sheet,
  .vnld-studio-shell--admin .vnld-studio-sheet {
    padding: 24px 24px 18px;
  }

  .vnld-admin-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .vnld-admin-meta-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 599px) {
  #uxbuilder-enable-disable.vnld-editor-mode-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #uxbuilder-enable-disable.vnld-editor-mode-tabs::-webkit-scrollbar {
    display: none;
  }

  #uxbuilder-enable-disable.vnld-editor-mode-tabs > a.nav-tab {
    min-height: 40px;
    padding: 6px 9px !important;
    gap: 5px;
    font-size: 12px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .vnld-ux-badge {
    padding: 1px 4px;
    font-size: 10px;
  }

  .vnld-brand-tab-svg {
    width: 14px;
    height: 14px;
  }

  .vnld-studio-shell--admin .vnld-studio-appbar {
    padding: 2px 10px;
  }
  .vnld-studio-container {
    padding: 0 14px;
  }

  .vnld-appbar-inner {
    gap: 8px;
  }

  .vnld-appbar-sep {
    display: none;
  }

  .vnld-doc-status {
    width: 100%;
    order: 3;
    padding: 2px 2px 0;
    font-size: 12.5px;
  }

  .vnld-studio-sheet,
  .vnld-studio-shell--admin .vnld-studio-sheet {
    padding: 18px 16px 16px;
  }

  .vnld-doc-title {
    font-size: 24px !important;
  }

  .vnld-doc-excerpt {
    font-size: 16px !important;
  }

  .vnld-studio-gate-card {
    padding: 24px 20px;
  }

  .vnld-author-FloatingBar .vnld-author-edit-btn {
    width: 100%;
    justify-content: center;
  }

  .vnld-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vnld-media-head,
  .vnld-media-toolbar,
  .vnld-media-body,
  .vnld-media-foot {
    padding-inline: 14px;
  }
}

@media (pointer: coarse) {
  .vnld-appbar-btn,
  .vnld-lxd-chip,
  .vnld-cat-chip,
  .vnld-option-toggle,
  .vnld-cover-ghost-btn,
  .vnld-cover-action-btn,
  .vnld-trash-btn,
  .vnld-media-close-btn {
    min-height: 44px;
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .vnld-appbar-btn,
  .vnld-lxd-chip,
  .vnld-cat-chip,
  .vnld-option-toggle,
  .vnld-inline-reset-btn,
  .vnld-trash-btn,
  .vnld-media-item,
  .vnld-gallery-picker-card,
  .vnld-studio-my-posts li a,
  .vnld-drawer-title .vnld-ui-svg {
    transition-duration: 0s !important;
  }
}

/* ==========================================================================
   FooGallery Album Picker Modal & Quickbar Chip — v2.5.0
   Concentric Rounded-Rectangle Geometry (16px -> 12px -> 8px -> 6px)
   ========================================================================== */
.vnld-lxd-chip--gallery {
  border-color: rgba(194, 85, 0, 0.32) !important;
  background: rgba(247, 131, 16, 0.08) !important;
  color: #9a3412 !important;
}

.vnld-lxd-chip--gallery:hover {
  border-color: #c25500 !important;
  background: rgba(247, 131, 16, 0.16) !important;
  color: #7c2d12 !important;
}

html[data-theme="dark"] .vnld-lxd-chip--gallery {
  border-color: rgba(251, 146, 60, 0.34) !important;
  background: rgba(251, 146, 60, 0.12) !important;
  color: #fdba74 !important;
}

html[data-theme="dark"] .vnld-lxd-chip--gallery:hover {
  border-color: #fb923c !important;
  background: rgba(251, 146, 60, 0.2) !important;
  color: #ffedd5 !important;
}

.vnld-gallery-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.vnld-gallery-picker-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--st-surface, #ffffff);
  border: 1px solid var(--st-border, rgba(15, 23, 42, 0.12));
  cursor: pointer;
  font-family: var(--st-font-sans, "Inter", sans-serif);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vnld-gallery-picker-card:hover,
.vnld-gallery-picker-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c25500;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] .vnld-gallery-picker-card {
  background: #131c2e;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .vnld-gallery-picker-card:hover,
html[data-theme="dark"] .vnld-gallery-picker-card:focus-visible {
  border-color: #fb923c;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.vnld-gallery-picker-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  overflow: hidden;
}

.vnld-gallery-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vnld-gallery-picker-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.vnld-gallery-picker-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  flex: 1;
}

.vnld-gallery-picker-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--st-text, #0f172a);
}

html[data-theme="dark"] .vnld-gallery-picker-title {
  color: #f8fafc;
}

.vnld-gallery-picker-desc {
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--st-text-muted, #475569);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme="dark"] .vnld-gallery-picker-desc {
  color: #94a3b8;
}

.vnld-gallery-picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.vnld-gallery-picker-code {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

html[data-theme="dark"] .vnld-gallery-picker-code {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.vnld-gallery-picker-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: #c25500;
}

html[data-theme="dark"] .vnld-gallery-picker-cta {
  color: #fb923c;
}
