:root {
  --vp-primary: #6d4aff;
  --vp-primary-dark: #5635dc;
  --vp-blue: #3587f5;
  --vp-pink: #ec4899;
  --vp-cyan: #22c7e8;
  --vp-amber: #f59e0b;
  --vp-green: #18a66a;
  --vp-red: #e5485d;
  --vp-ink: #182033;
  --vp-muted: #6f7890;
  --vp-border: #e7e9f2;
  --vp-surface: #ffffff;
  --vp-surface-soft: #f8f8fd;
  --vp-page: #f5f6fb;
  --vp-sidebar: #15192b;
  --vp-sidebar-2: #232044;
  --vp-gradient: linear-gradient(135deg, #3587f5 0%, #6d4aff 52%, #ec4899 100%);
  --vp-gradient-soft: linear-gradient(135deg, rgba(53, 135, 245, .12), rgba(109, 74, 255, .12) 52%, rgba(236, 72, 153, .10));
  --vp-shadow-sm: 0 8px 24px rgba(31, 36, 70, .07);
  --vp-shadow-md: 0 16px 44px rgba(31, 36, 70, .11);
  --vp-radius-sm: 10px;
  --vp-radius: 16px;
  --vp-radius-lg: 22px;
}

* { box-sizing: border-box; }

html { background: var(--vp-page); }

body.vtm-shell,
body.vtm-login-page {
  color: var(--vp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.vtm-shell {
  background:
    radial-gradient(circle at 88% -10%, rgba(236, 72, 153, .07), transparent 32%),
    radial-gradient(circle at 28% -5%, rgba(53, 135, 245, .08), transparent 34%),
    var(--vp-page) !important;
}

a { text-decoration: none; }

/* App shell */
.app-wrapper { min-height: 100dvh; }

.app-header {
  min-height: 68px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .9) !important;
  border-bottom: 1px solid rgba(231, 233, 242, .88) !important;
  box-shadow: 0 7px 24px rgba(34, 39, 76, .035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.vtm-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--vp-ink) !important;
  background: var(--vp-surface-soft);
  border: 1px solid var(--vp-border);
  transition: .18s ease;
}
.vtm-menu-toggle:hover { color: var(--vp-primary) !important; transform: translateY(-1px); }
.vtm-menu-toggle .bi { font-size: 1.35rem; }

.vtm-header-copy { min-width: 0; }
.vtm-header-title {
  font-size: .98rem;
  font-weight: 780;
  color: var(--vp-ink);
  line-height: 1.25;
  max-width: 44vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vtm-header-meta {
  color: var(--vp-muted);
  font-size: .76rem;
  line-height: 1.25;
  max-width: 48vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vtm-user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 8px 5px 6px;
  border: 1px solid var(--vp-border);
  border-radius: 14px;
  background: white;
  color: var(--vp-ink);
  box-shadow: 0 5px 16px rgba(31, 36, 70, .045);
}
.vtm-user-trigger:hover { border-color: rgba(109, 74, 255, .32); }
.vtm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vp-gradient);
  color: white;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(109, 74, 255, .23);
}
.vtm-user-name { font-size: .82rem; font-weight: 700; line-height: 1.1; }
.vtm-user-role { font-size: .68rem; color: var(--vp-muted); line-height: 1.1; }
.vtm-user-menu {
  min-width: 230px;
  border: 1px solid var(--vp-border);
  border-radius: 16px;
  box-shadow: var(--vp-shadow-md);
  padding: 8px;
}
.vtm-user-menu .dropdown-item { border-radius: 10px; padding: 10px 12px; }

/* Sidebar */
.app-sidebar {
  background:
    radial-gradient(circle at 10% 4%, rgba(53, 135, 245, .28), transparent 27%),
    radial-gradient(circle at 95% 30%, rgba(236, 72, 153, .18), transparent 28%),
    linear-gradient(165deg, var(--vp-sidebar), var(--vp-sidebar-2)) !important;
  border-right: 0 !important;
  box-shadow: 12px 0 40px rgba(18, 22, 47, .16) !important;
}
.app-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  opacity: .24;
}
.sidebar-brand,
.sidebar-wrapper { position: relative; z-index: 1; }
.sidebar-brand {
  min-height: 78px;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  padding: 12px 14px !important;
}
.vtm-brand-link {
  width: 100%;
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 6px !important;
  color: white !important;
}
.vtm-brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.vtm-brand-name { color: white; font-weight: 820; font-size: 1.03rem; letter-spacing: -.02em; line-height: 1.12; }
.vtm-brand-tagline { color: rgba(255,255,255,.58); font-size: .68rem; line-height: 1.2; }

.vtm-workspace-chip {
  margin: 12px 12px 5px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  color: white;
  display: flex;
  align-items: center;
  gap: 9px;
}
.vtm-workspace-chip .bi { color: #90c4ff; font-size: 1rem; }
.vtm-workspace-chip-name { font-size: .78rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtm-workspace-chip-meta { color: rgba(255,255,255,.55); font-size: .66rem; }

.sidebar-wrapper { padding: 4px 8px 22px; }
.sidebar-menu .nav-header {
  color: rgba(255,255,255,.38) !important;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 15px 12px 7px;
}
.sidebar-menu .nav-item { margin: 2px 0; }
.sidebar-menu .nav-link {
  min-height: 43px;
  border-radius: 12px;
  color: rgba(255,255,255,.73) !important;
  padding: 10px 11px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.sidebar-menu .nav-link .nav-icon {
  width: 24px;
  margin-right: 8px;
  color: rgba(255,255,255,.58);
  font-size: 1rem;
}
.sidebar-menu .nav-link p { font-size: .83rem; font-weight: 590; }
.sidebar-menu .nav-link:hover {
  color: white !important;
  background: rgba(255,255,255,.085) !important;
  transform: translateX(2px);
}
.sidebar-menu .nav-link:hover .nav-icon { color: white; }
.sidebar-menu .nav-link.active {
  color: white !important;
  background: linear-gradient(115deg, rgba(53,135,245,.92), rgba(109,74,255,.94) 58%, rgba(236,72,153,.78)) !important;
  box-shadow: 0 9px 22px rgba(54, 70, 210, .25);
}
.sidebar-menu .nav-link.active .nav-icon { color: white; }

.vtm-sidebar-footer {
  margin: 12px 10px 4px;
  border-radius: 14px;
  padding: 10px 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: .7rem;
}

/* Main content */
.app-main { background: transparent !important; }
.app-content-header { padding: 25px 0 12px; }
.app-content { padding-bottom: 30px; }
.app-content > .container-fluid,
.app-content-header > .container-fluid { padding-left: 24px; padding-right: 24px; }

.vtm-page-title { margin: 0; font-size: clamp(1.35rem, 2vw, 1.85rem); font-weight: 820; letter-spacing: -.035em; color: var(--vp-ink); }
.vtm-page-subtitle { margin-top: 5px; color: var(--vp-muted); font-size: .86rem; }
.vtm-eyebrow { color: var(--vp-primary); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; font-weight: 850; }

.card {
  border: 1px solid rgba(231, 233, 242, .9) !important;
  border-radius: var(--vp-radius) !important;
  box-shadow: var(--vp-shadow-sm) !important;
  overflow: hidden;
  background: rgba(255,255,255,.96);
}
.card-header {
  min-height: 55px;
  padding: 15px 18px;
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid var(--vp-border) !important;
  color: var(--vp-ink);
}
.card-body { padding: 18px; }

.vtm-hero-card {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  background: linear-gradient(120deg, #141a35 0%, #252151 52%, #3c2159 100%) !important;
  color: white;
  box-shadow: 0 18px 48px rgba(35, 32, 78, .22) !important;
}
.vtm-hero-card::before,
.vtm-hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.vtm-hero-card::before { width: 260px; height: 260px; right: -80px; top: -120px; background: rgba(236,72,153,.22); }
.vtm-hero-card::after { width: 180px; height: 180px; right: 125px; bottom: -130px; background: rgba(53,135,245,.27); }
.vtm-hero-card > .card-body { position: relative; z-index: 1; padding: 22px 24px; }
.vtm-hero-label { color: rgba(255,255,255,.62); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.vtm-hero-title { color: white; font-size: clamp(1.45rem, 3vw, 2.2rem); font-weight: 850; letter-spacing: -.04em; }
.vtm-hero-meta { color: rgba(255,255,255,.67); font-size: .82rem; }
.vtm-hero-card .form-select { background-color: rgba(255,255,255,.94); border: 0; min-width: 160px; }

.vtm-stat-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 132px;
  padding: 18px;
  border-radius: var(--vp-radius);
  background: white;
  border: 1px solid var(--vp-border);
  box-shadow: var(--vp-shadow-sm);
}
.vtm-stat-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -37px;
  bottom: -42px;
  border-radius: 50%;
  background: var(--stat-soft, rgba(109,74,255,.08));
}
.vtm-stat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.vtm-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stat-soft, rgba(109,74,255,.1));
  color: var(--stat-color, var(--vp-primary));
  font-size: 1.15rem;
}
.vtm-stat-value { margin-top: 14px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.1; font-weight: 850; letter-spacing: -.035em; color: var(--vp-ink); }
.vtm-stat-label { margin-top: 5px; color: var(--vp-muted); font-size: .78rem; font-weight: 620; }
.vtm-stat-primary { --stat-color: #5c48e8; --stat-soft: rgba(109,74,255,.12); }
.vtm-stat-green { --stat-color: #15935d; --stat-soft: rgba(24,166,106,.12); }
.vtm-stat-pink { --stat-color: #d93f8d; --stat-soft: rgba(236,72,153,.12); }
.vtm-stat-blue { --stat-color: #267de3; --stat-soft: rgba(53,135,245,.12); }

.vtm-section-title { font-size: .98rem; font-weight: 780; letter-spacing: -.015em; }
.vtm-section-subtitle { color: var(--vp-muted); font-size: .76rem; }

.vtm-mini-metric {
  border: 1px solid var(--vp-border);
  background: var(--vp-surface-soft);
  border-radius: 13px;
  padding: 13px;
  height: 100%;
}
.vtm-mini-metric-value { font-weight: 800; font-size: 1.03rem; color: var(--vp-ink); }
.vtm-mini-metric-label { color: var(--vp-muted); font-size: .71rem; margin-top: 2px; }

.vtm-quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid var(--vp-border);
  border-radius: 14px;
  color: var(--vp-ink);
  background: white;
  transition: .18s ease;
}
.vtm-quick-action:hover { border-color: rgba(109,74,255,.28); transform: translateY(-2px); box-shadow: var(--vp-shadow-sm); color: var(--vp-primary); }
.vtm-quick-action-icon { width: 37px; height: 37px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--vp-gradient-soft); color: var(--vp-primary); }
.vtm-quick-action-title { font-size: .79rem; font-weight: 760; }
.vtm-quick-action-meta { font-size: .67rem; color: var(--vp-muted); }

/* Bootstrap components */
.btn { border-radius: 11px; font-weight: 670; padding: .55rem .9rem; box-shadow: none !important; }
.btn-sm { border-radius: 9px; padding: .38rem .67rem; }
.btn-primary {
  border-color: transparent !important;
  background: var(--vp-gradient) !important;
  box-shadow: 0 7px 18px rgba(109,74,255,.20) !important;
}
.btn-primary:hover { filter: brightness(.97); transform: translateY(-1px); }
.btn-outline-primary { color: var(--vp-primary); border-color: rgba(109,74,255,.35); }
.btn-outline-primary:hover { color: white; border-color: var(--vp-primary); background: var(--vp-primary); }
.btn-success { background: var(--vp-green); border-color: var(--vp-green); }
.btn-danger { background: var(--vp-red); border-color: var(--vp-red); }

.form-control,
.form-select,
.input-group-text {
  min-height: 43px;
  border-color: var(--vp-border);
  border-radius: 11px;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(109,74,255,.58);
  box-shadow: 0 0 0 .22rem rgba(109,74,255,.10);
}
.input-group > .input-group-text:first-child { border-radius: 11px 0 0 11px; }
.input-group > .form-control:last-child { border-radius: 0 11px 11px 0; }
.form-label { color: #3e465d; font-size: .78rem; font-weight: 700; }
.form-text { color: var(--vp-muted); font-size: .7rem; }
.form-check-input:checked { background-color: var(--vp-primary); border-color: var(--vp-primary); }

.table { --bs-table-bg: transparent; color: var(--vp-ink); }
.table > :not(caption) > * > * { padding: .78rem .8rem; border-bottom-color: var(--vp-border); }
.table thead th { color: var(--vp-muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; background: #fafafe; border-bottom-width: 1px; white-space: nowrap; }
.table tbody td { font-size: .79rem; vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: rgba(247,248,253,.8); }
.table-hover > tbody > tr:hover > * { --bs-table-accent-bg: rgba(109,74,255,.035); }

.alert { border: 0; border-radius: 13px; font-size: .79rem; }
.alert-success { background: rgba(24,166,106,.10); color: #136d48; }
.alert-info { background: rgba(53,135,245,.10); color: #235fa8; }
.alert-warning { background: rgba(245,158,11,.13); color: #86570b; }
.alert-danger { background: rgba(229,72,93,.10); color: #9e2c3e; }

.badge { border-radius: 999px; padding: .46em .72em; font-weight: 720; }
.text-bg-primary { background-color: var(--vp-primary) !important; }
.text-bg-success { background-color: var(--vp-green) !important; }
.text-bg-danger { background-color: var(--vp-red) !important; }
.text-bg-info { background-color: var(--vp-blue) !important; color: white !important; }
.text-bg-warning { background-color: #f4b13d !important; color: #4f3504 !important; }

.progress { border-radius: 999px; background: #eceef5; overflow: hidden; }
.progress-bar { border-radius: 999px; background: var(--vp-gradient); }

.pagination .page-link { color: var(--vp-primary); border-color: var(--vp-border); }
.pagination .page-item.active .page-link { background: var(--vp-primary); border-color: var(--vp-primary); }

/* Footer */
.app-footer {
  background: transparent !important;
  border-top: 0 !important;
  color: var(--vp-muted);
  padding: 18px 24px 24px;
  font-size: .72rem;
}
.vtm-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.vtm-footer-brand { color: var(--vp-ink); font-weight: 750; }

/* Login */
body.vtm-login-page {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(53,135,245,.22), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(236,72,153,.18), transparent 30%),
    linear-gradient(145deg, #11162c 0%, #1d1b43 50%, #2c1b43 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}
.vtm-login-shell {
  width: min(100%, 980px);
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border-radius: 28px;
  background: white;
  box-shadow: 0 32px 90px rgba(3, 7, 24, .34);
}
.vtm-login-showcase {
  position: relative;
  overflow: hidden;
  padding: 42px;
  color: white;
  background:
    radial-gradient(circle at 78% 15%, rgba(236,72,153,.42), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(53,135,245,.42), transparent 32%),
    linear-gradient(155deg, #171c38, #292150 58%, #3b2055);
}
.vtm-login-showcase::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -130px;
  bottom: -120px;
  border-radius: 50%;
  border: 56px solid rgba(255,255,255,.055);
}
.vtm-login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.vtm-login-brand img { width: 48px; height: 48px; }
.vtm-login-brand-name { font-size: 1.05rem; font-weight: 830; }
.vtm-login-brand-sub { font-size: .7rem; color: rgba(255,255,255,.6); }
.vtm-login-copy { position: relative; z-index: 1; margin-top: 95px; }
.vtm-login-copy h1 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 860; margin: 0; }
.vtm-login-copy p { max-width: 400px; color: rgba(255,255,255,.68); line-height: 1.65; font-size: .9rem; margin-top: 18px; }
.vtm-login-points { position: relative; z-index: 1; margin-top: 34px; display: grid; gap: 10px; }
.vtm-login-point { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.78); font-size: .76rem; }
.vtm-login-point i { color: #8cc9ff; }
.vtm-login-form-wrap { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.vtm-login-form-wrap h2 { font-size: 1.7rem; letter-spacing: -.04em; font-weight: 830; margin: 0; }
.vtm-login-form-wrap > p { color: var(--vp-muted); margin: 7px 0 24px; font-size: .82rem; }
.vtm-login-field { position: relative; }
.vtm-login-field > i { position: absolute; z-index: 2; left: 14px; top: 50%; transform: translateY(-50%); color: #9098aa; }
.vtm-login-field .form-control { padding-left: 42px; min-height: 49px; }
.vtm-login-submit { min-height: 49px; width: 100%; }
.vtm-password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8a92a6; padding: 7px; }
.vtm-login-error { margin-top: 14px; }
.vtm-login-foot { text-align: center; margin-top: 24px; color: var(--vp-muted); font-size: .69rem; }

/* Utility */
.text-muted { color: var(--vp-muted) !important; }
.vtm-empty { padding: 34px 20px; text-align: center; color: var(--vp-muted); }
.vtm-gradient-text { background: var(--vp-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }

@media (max-width: 991.98px) {
  .app-content > .container-fluid,
  .app-content-header > .container-fluid { padding-left: 17px; padding-right: 17px; }
  .app-content-header { padding-top: 19px; }
  .vtm-login-shell { grid-template-columns: 1fr; max-width: 510px; min-height: auto; }
  .vtm-login-showcase { display: none; }
  .vtm-login-form-wrap { padding: 38px 32px; }
}

@media (max-width: 767.98px) {
  .app-header { min-height: 62px; padding: 0 4px; }
  .vtm-menu-toggle { width: 39px; height: 39px; }
  .vtm-user-copy { display: none; }
  .vtm-user-trigger { padding: 3px; border: 0; background: transparent; box-shadow: none; }
  .vtm-header-title { max-width: 48vw; font-size: .87rem; }
  .vtm-header-meta { max-width: 48vw; font-size: .67rem; }

  .app-sidebar {
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  .app-sidebar .sidebar-brand { flex: 0 0 auto; }
  .app-sidebar .sidebar-wrapper {
    height: calc(100vh - 78px) !important;
    height: calc(100dvh - 78px) !important;
    max-height: calc(100dvh - 78px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .app-sidebar .sidebar-menu { padding-bottom: 26px; }

  .app-content > .container-fluid,
  .app-content-header > .container-fluid { padding-left: 13px; padding-right: 13px; }
  .app-content-header { padding-top: 15px; padding-bottom: 9px; }
  .card { border-radius: 14px !important; }
  .card-body { padding: 15px; }
  .card-header { padding: 13px 15px; }
  .vtm-hero-card > .card-body { padding: 19px 17px; }
  .vtm-stat-card { min-height: 118px; padding: 14px; }
  .vtm-stat-icon { width: 37px; height: 37px; border-radius: 11px; }
  .vtm-stat-value { font-size: 1.3rem; }
  .table > :not(caption) > * > * { padding: .68rem .65rem; }
  .btn { min-height: 41px; }
  .btn-sm { min-height: 34px; }
  .mobile-sticky-submit {
    position: sticky;
    bottom: 0;
    z-index: 999;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-top: 1px solid var(--vp-border);
    margin-left: -12px;
    margin-right: -12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .rate-btn { width: 48%; padding: 14px 8px; font-size: 14px; }
  #dataChat { min-height: 220px; font-size: 16px; }
  .vtm-login-form-wrap { padding: 32px 22px; }
  .vtm-login-shell { border-radius: 22px; }
}

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

/* Compatibility layer for pages not yet migrated to custom components */
.app-content-header h3,
.app-content-header h1 {
  margin: 0;
  color: var(--vp-ink);
  font-size: clamp(1.28rem, 2vw, 1.75rem);
  font-weight: 820;
  letter-spacing: -.035em;
}
.small-box {
  min-height: 126px;
  border: 0 !important;
  border-radius: var(--vp-radius) !important;
  box-shadow: var(--vp-shadow-sm) !important;
  overflow: hidden;
  position: relative;
}
.small-box::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -45px;
  bottom: -55px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.small-box .inner { padding: 18px; position: relative; z-index: 1; }
.small-box .inner h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 850; letter-spacing: -.04em; }
.small-box .inner p { margin-bottom: 0; font-size: .78rem; font-weight: 650; opacity: .82; }
.small-box.text-bg-primary { background: linear-gradient(135deg, #3587f5, #6d4aff) !important; }
.small-box.text-bg-success { background: linear-gradient(135deg, #1ca86e, #42c08a) !important; }
.small-box.text-bg-warning { background: linear-gradient(135deg, #f29b38, #f6c453) !important; color: white !important; }
.small-box.text-bg-info { background: linear-gradient(135deg, #21aadb, #3d83ef) !important; }
.min-width-0 { min-width: 0; }

/* =========================================================
   VTM v1.15 — Mobile Operations UX
   ========================================================= */

.vtm-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.vtm-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vtm-context-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #50457a;
  background: rgba(109,74,255,.08);
  border: 1px solid rgba(109,74,255,.13);
  font-size: .74rem;
  font-weight: 750;
}
.vtm-context-pill i { color: var(--vp-primary); }

.vtm-hero-compact > .card-body { padding-top: 18px; padding-bottom: 18px; }
.vtm-hero-compact .vtm-hero-title { margin-top: 2px; }
.vtm-hero-compact .vtm-hero-meta { display: inline-flex; align-items: center; }

.vtm-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border-radius: 15px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(231,233,242,.9);
  box-shadow: 0 8px 24px rgba(31,36,70,.035);
}
.vtm-step {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-radius: 11px;
  color: var(--vp-muted);
  font-size: .72rem;
}
.vtm-step span {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eceef7;
  color: #777f94;
  font-size: .68rem;
  font-weight: 850;
}
.vtm-step.is-active {
  color: var(--vp-primary);
  background: var(--vp-gradient-soft);
}
.vtm-step.is-active span { color: white; background: var(--vp-gradient); }

.vtm-form-card .card-header,
.vtm-help-card .card-header { min-height: auto; }
.vtm-form-card .input-group-text { min-width: 43px; justify-content: center; color: var(--vp-primary); background: #fafafe; }
.vtm-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
}
.vtm-rate-option {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: 13px;
}
.vtm-rate-option.btn-primary { color: white; }
.vtm-rate-name { display: block; font-weight: 780; font-size: .82rem; }
.vtm-rate-value { display: block; margin-top: 3px; font-size: .69rem; opacity: .75; }
.vtm-selection-note {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #565f76;
  background: var(--vp-surface-soft);
  border: 1px solid var(--vp-border);
  font-size: .76rem;
  font-weight: 650;
}
.vtm-selection-note i { color: var(--vp-primary); }
.vtm-data-textarea {
  resize: vertical;
  min-height: 260px;
  padding: 15px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.7;
  background: #fcfcff;
}
.vtm-format-example {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--vp-border);
}
.vtm-format-example:last-child { border-bottom: 0; }
.vtm-format-example code {
  padding: 6px 8px;
  border-radius: 8px;
  color: #5136c8;
  background: rgba(109,74,255,.08);
  font-size: .71rem;
  white-space: nowrap;
}
.vtm-format-example span { color: var(--vp-muted); font-size: .72rem; }
.vtm-help-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--vp-primary);
  background: var(--vp-gradient-soft);
  font-size: 1.1rem;
}

.vtm-sticky-action-bar {
  position: sticky;
  bottom: 12px;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(224,226,238,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 46px rgba(31,36,70,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.vtm-sticky-copy { min-width: 0; }
.vtm-sticky-copy strong { display: block; font-size: .8rem; }
.vtm-sticky-copy span { display: block; color: var(--vp-muted); font-size: .68rem; }
.vtm-primary-submit { min-width: 180px; }

.vtm-filter-card { margin-bottom: 14px; }
.vtm-filter-card .card-body { padding: 14px; }
.vtm-filter-card .form-label { margin-bottom: 5px; }
.vtm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.vtm-toolbar-meta { color: var(--vp-muted); font-size: .75rem; }
.vtm-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vtm-action-group form { margin: 0; }

.vtm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.vtm-kpi-card {
  min-height: 94px;
  padding: 14px;
  border-radius: 15px;
  background: white;
  border: 1px solid var(--vp-border);
  box-shadow: var(--vp-shadow-sm);
}
.vtm-kpi-card-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.vtm-kpi-label { color: var(--vp-muted); font-size: .69rem; font-weight: 720; }
.vtm-kpi-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--kpi-color, var(--vp-primary));
  background: var(--kpi-soft, rgba(109,74,255,.1));
}
.vtm-kpi-value { margin-top: 10px; font-size: 1.28rem; line-height: 1.05; font-weight: 850; letter-spacing: -.035em; }
.vtm-kpi-meta { margin-top: 4px; color: var(--vp-muted); font-size: .66rem; }
.vtm-kpi-purple { --kpi-color:#6147e6; --kpi-soft:rgba(109,74,255,.11); }
.vtm-kpi-green { --kpi-color:#15935d; --kpi-soft:rgba(24,166,106,.11); }
.vtm-kpi-blue { --kpi-color:#267de3; --kpi-soft:rgba(53,135,245,.11); }
.vtm-kpi-pink { --kpi-color:#d93f8d; --kpi-soft:rgba(236,72,153,.11); }
.vtm-kpi-amber { --kpi-color:#c87b05; --kpi-soft:rgba(245,158,11,.12); }
.vtm-kpi-red { --kpi-color:#cf3f55; --kpi-soft:rgba(229,72,93,.1); }

.vtm-topic-cell strong,
.vtm-identity-cell strong { font-size: .84rem; }
.vtm-topic-meta,
.vtm-identity-meta { margin-top: 3px; color: var(--vp-muted); font-size: .68rem; }
.vtm-progress-compact { min-width: 115px; }
.vtm-progress-compact .progress { height: 6px; margin-top: 5px; }
.vtm-progress-compact .small { font-size: .68rem; }

.vtm-table-shell { overflow: hidden; }
.vtm-table-shell .card-body { padding: 0; }
.vtm-table-shell .table-responsive { margin: 0; }
.vtm-table-cards { margin-bottom: 0; }
.vtm-table-cards tbody tr:last-child td { border-bottom: 0; }
.vtm-empty-state {
  padding: 38px 20px !important;
  color: var(--vp-muted);
  text-align: center;
}
.vtm-empty-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--vp-primary);
  background: var(--vp-gradient-soft);
  font-size: 1.25rem;
  margin-bottom: 9px;
}

.vtm-mode-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.vtm-mode-banner-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255,255,255,.62);
}
.vtm-mode-banner-title { font-size: .79rem; font-weight: 800; }
.vtm-mode-banner-copy { margin-top: 2px; font-size: .72rem; opacity: .84; }

.vtm-form-section {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--vp-border);
  background: var(--vp-surface-soft);
}
.vtm-form-section + .vtm-form-section { margin-top: 12px; }
.vtm-form-section-title { font-size: .82rem; font-weight: 790; margin-bottom: 3px; }
.vtm-form-section-copy { color: var(--vp-muted); font-size: .7rem; margin-bottom: 12px; }

.vtm-mobile-card-title { display: none; }

@media (min-width: 1200px) {
  .vtm-help-card { position: sticky; top: 86px; }
}

@media (max-width: 767.98px) {
  .app-content-header { padding-top: 13px; }
  .vtm-page-head { align-items: flex-start; gap: 10px; }
  .vtm-page-actions { width: 100%; }
  .vtm-context-pill { min-height: 32px; padding: 6px 9px; font-size: .68rem; }
  .vtm-page-subtitle { line-height: 1.45; }

  .vtm-hero-compact > .card-body { padding: 15px; gap: 13px !important; }
  .vtm-hero-compact .vtm-hero-title { font-size: 1.6rem; }
  .vtm-hero-compact .vtm-hero-meta { font-size: .73rem; }
  .vtm-hero-compact .form-select { min-width: 145px; }

  .vtm-stepper { gap: 4px; padding: 6px; }
  .vtm-step { min-height: 38px; gap: 4px; padding: 5px 3px; font-size: .61rem; }
  .vtm-step span { width: 20px; height: 20px; font-size: .6rem; }

  .vtm-rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .vtm-rate-option { width: 100% !important; min-height: 62px; padding: 9px 10px; }
  .vtm-data-textarea { min-height: 225px; font-size: 16px; }
  .vtm-format-example { grid-template-columns: 1fr; gap: 5px; }
  .vtm-format-example code { width: fit-content; }

  .vtm-sticky-action-bar {
    bottom: calc(8px + env(safe-area-inset-bottom));
    margin-left: -4px;
    margin-right: -4px;
    padding: 8px;
    border-radius: 14px;
  }
  .vtm-primary-submit { width: 100%; min-width: 0; }

  .vtm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vtm-kpi-card { min-height: 87px; padding: 12px; }
  .vtm-kpi-icon { width: 31px; height: 31px; }
  .vtm-kpi-value { font-size: 1.16rem; }

  .vtm-filter-card .card-body { padding: 12px; }
  .vtm-filter-card .row { --bs-gutter-y: .65rem; }
  .vtm-toolbar { align-items: flex-start; }
  .vtm-toolbar .btn { flex: 1 1 auto; }
  .vtm-page-actions .btn { flex: 1 1 auto; }

  .vtm-table-cards thead { display: none; }
  .vtm-table-cards,
  .vtm-table-cards tbody { display: block; width: 100%; }
  .vtm-table-cards tbody tr {
    display: block;
    margin: 10px;
    padding: 12px;
    border: 1px solid var(--vp-border);
    border-radius: 14px;
    background: white;
    box-shadow: 0 7px 20px rgba(31,36,70,.045);
  }
  .vtm-table-cards tbody tr.vtm-empty-row { padding: 0; }
  .vtm-table-cards tbody tr.vtm-empty-row td { display: block; border: 0; }
  .vtm-table-cards tbody td {
    min-height: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0 !important;
    border: 0 !important;
    border-bottom: 1px dashed #eceef5 !important;
    text-align: right;
  }
  .vtm-table-cards tbody td:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
  .vtm-table-cards tbody td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    color: var(--vp-muted);
    text-align: left;
    font-size: .66rem;
    font-weight: 780;
    text-transform: uppercase;
    letter-spacing: .035em;
  }
  .vtm-table-cards tbody td[data-label=""]::before { display: none; }
  .vtm-table-cards .vtm-card-primary {
    display: block;
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    text-align: left;
  }
  .vtm-table-cards .vtm-card-primary::before { display: none; }
  .vtm-table-cards .vtm-card-actions {
    display: block;
    padding-top: 11px !important;
    text-align: left;
  }
  .vtm-table-cards .vtm-card-actions::before { display: none; }
  .vtm-table-cards .vtm-action-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtm-table-cards .vtm-action-group .btn,
  .vtm-table-cards .vtm-action-group form,
  .vtm-table-cards .vtm-action-group form .btn { width: 100%; }
  .vtm-table-cards .vtm-action-group .btn { min-height: 38px; }

  .sidebar-menu .nav-link.active {
    background: linear-gradient(115deg, rgba(53,135,245,.80), rgba(109,74,255,.86) 62%, rgba(236,72,153,.62)) !important;
    box-shadow: 0 7px 18px rgba(54,70,210,.20);
  }
  .vtm-brand-name { font-size: .9rem; }
}
.vtm-preview-talent .card-body { padding: 13px; }
.vtm-preview-talent { box-shadow: none !important; }
@media (max-width: 767.98px) {
  .vtm-table-cards tfoot { display: block; margin: 10px; padding: 10px 12px; border-radius: 12px; background: var(--vp-gradient-soft); }
  .vtm-table-cards tfoot tr { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; }
  .vtm-table-cards tfoot th { display: block; padding: 4px !important; border: 0 !important; background: transparent !important; font-size: .7rem; }
  .vtm-table-cards tfoot th:empty { display: none; }
}
@media (min-width: 1200px) {
  .vtm-help-card { position: static; }
  .col-xl-4 > .vtm-help-card:first-child { position: sticky; top: 86px; }
}

/* Auto Speed Up V1.16 */
.vtm-mini-stat {
  height: 100%;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--vtm-border, #e5e7eb);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.vtm-mini-stat span {
  color: var(--vtm-muted, #64748b);
  font-size: .78rem;
  font-weight: 700;
}
.vtm-mini-stat strong {
  color: var(--vtm-ink, #111827);
  font-size: 1.04rem;
  line-height: 1.25;
}
@media (max-width: 575.98px) {
  .vtm-mini-stat { min-height: 70px; padding: 10px 11px; border-radius: 12px; }
  .vtm-mini-stat span { font-size: .73rem; }
  .vtm-mini-stat strong { font-size: .92rem; }
}

/* =========================================================
   VTM v1.18 — Performance & Mobile Lite
   ========================================================= */
.vtm-defer-render {
  content-visibility: auto;
  contain-intrinsic-size: 1px 560px;
}

.vtm-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--vp-border);
  background: #fff;
}
.vtm-pagination-meta { color: var(--vp-muted); font-size: .73rem; }
.vtm-pagination-wrap { overflow-x: auto; max-width: 100%; }
.vtm-pagination-wrap .pagination { flex-wrap: nowrap; }
.vtm-pagination-wrap .page-link { min-width: 34px; text-align: center; }

.vtm-perf-badge {
  position: fixed;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 2000;
  padding: 7px 9px;
  border-radius: 10px;
  color: #fff;
  background: rgba(18, 24, 45, .92);
  font-size: .66rem;
  line-height: 1.35;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  pointer-events: none;
}

@media (max-width: 767.98px), (hover: none) and (pointer: coarse) {
  :root {
    --vp-shadow-sm: 0 2px 8px rgba(31, 36, 70, .045);
    --vp-shadow-md: 0 5px 14px rgba(31, 36, 70, .07);
  }

  html,
  body.vtm-shell { background: var(--vp-page) !important; }
  body.vtm-shell {
    background-image: none !important;
    text-rendering: auto;
  }

  body.vtm-shell *,
  body.vtm-shell *::before,
  body.vtm-shell *::after {
    animation: none !important;
    transition-duration: 0s !important;
  }

  .app-header,
  .mobile-sticky-submit,
  .vtm-sticky-action-bar {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .app-header { box-shadow: 0 1px 4px rgba(31,36,70,.045) !important; }
  .app-sidebar { box-shadow: 4px 0 14px rgba(18,22,47,.10) !important; }
  .card,
  .vtm-stat-card,
  .vtm-kpi-card,
  .vtm-table-cards tbody tr,
  .vtm-user-menu,
  .vtm-sticky-action-bar {
    box-shadow: var(--vp-shadow-sm) !important;
  }

  .vtm-hero-card {
    background: linear-gradient(120deg, #1b2140 0%, #2d2754 100%) !important;
    box-shadow: 0 4px 14px rgba(35,32,78,.13) !important;
  }
  .vtm-hero-card::before,
  .vtm-hero-card::after,
  .vtm-stat-card::after,
  .small-box::after { display: none !important; }

  .btn-primary,
  .progress-bar,
  .vtm-avatar,
  .vtm-step.is-active span {
    background: #6548e8 !important;
    box-shadow: none !important;
  }

  .sidebar-menu .nav-link:hover,
  .sidebar-menu .nav-link.active,
  .vtm-menu-toggle:hover,
  .vtm-quick-action:hover,
  .btn-primary:hover {
    transform: none !important;
  }
  .sidebar-menu .nav-link.active {
    background: #4d4a8f !important;
    box-shadow: none !important;
  }

  .vtm-gradient-text { color: var(--vp-primary); background: none; }
  .vtm-gradient-text,
  .vtm-context-pill,
  .vtm-quick-action-icon,
  .vtm-empty-icon,
  .vtm-help-icon,
  .vtm-selection-note,
  .vtm-step.is-active {
    background-image: none !important;
  }

  .vtm-defer-render { contain-intrinsic-size: 1px 440px; }
  .vtm-pagination-bar { padding: 10px; align-items: flex-start; }
  .vtm-pagination-wrap { width: 100%; }
  .vtm-pagination-wrap .pagination { justify-content: center; }
}

/* =========================================================
   VTM v1.19 — Compact Dashboard & True Lazy Load
   ========================================================= */
.vtm-dashboard-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.vtm-dashboard-money {
  border: 1px solid var(--vp-border);
  border-radius: 13px;
  background: var(--vp-surface-soft);
  overflow: hidden;
}
.vtm-dashboard-money summary {
  padding: 11px 13px;
  cursor: pointer;
  color: var(--vp-ink);
  font-size: .82rem;
  font-weight: 800;
  list-style: none;
}
.vtm-dashboard-money summary::-webkit-details-marker { display: none; }
.vtm-dashboard-money summary::after {
  content: '+';
  float: right;
  color: var(--vp-primary);
  font-size: 1rem;
}
.vtm-dashboard-money[open] summary::after { content: '−'; }
.vtm-dashboard-money-body {
  padding: 0 13px 12px;
  border-top: 1px solid var(--vp-border);
  padding-top: 12px;
}

.vtm-dashboard-lazy {
  min-height: 240px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}
.vtm-lazy-placeholder {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
}
.vtm-lazy-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius-lg);
  background: #fff;
  box-shadow: var(--vp-shadow-sm);
}
.vtm-lazy-card span {
  display: block;
  height: 13px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: #eef0f7;
}
.vtm-lazy-card span:first-child { width: 42%; height: 18px; }
.vtm-lazy-card span:nth-child(2) { width: 82%; }
.vtm-lazy-card span:nth-child(3) { width: 64%; }
.vtm-dashboard-lazy.is-loaded { min-height: 0; }

.vtm-dashboard-empty {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--vp-muted);
  text-align: center;
}
.vtm-dashboard-empty i {
  margin-bottom: 5px;
  color: var(--vp-primary);
  font-size: 1.7rem;
}
.vtm-dashboard-empty strong { color: var(--vp-ink); }
.vtm-dashboard-empty span { font-size: .78rem; }

.vtm-talent-ranking { display: flex; flex-direction: column; }
.vtm-ranking-item {
  min-height: 62px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--vp-border);
}
.vtm-ranking-item:last-child { border-bottom: 0; }
.vtm-ranking-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--vp-primary);
  background: var(--vp-primary-soft);
  font-size: .75rem;
  font-weight: 900;
}
.vtm-ranking-main { min-width: 0; }
.vtm-ranking-main strong,
.vtm-ranking-main span { display: block; }
.vtm-ranking-main strong {
  overflow: hidden;
  color: var(--vp-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vtm-ranking-main span { color: var(--vp-muted); font-size: .72rem; }
.vtm-ranking-fee { color: var(--vp-ink); font-size: .82rem; white-space: nowrap; }

.vtm-latest-topic-list { display: flex; flex-direction: column; gap: 9px; }
.vtm-latest-topic-item {
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--vp-border);
  border-radius: 13px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}
.vtm-latest-topic-item:hover {
  border-color: rgba(111, 79, 232, .28);
  color: inherit;
  background: var(--vp-primary-soft);
}
.vtm-latest-topic-copy { min-width: 0; flex: 1; }
.vtm-latest-topic-progress {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--vp-muted);
  font-size: .72rem;
}
.vtm-latest-topic-progress .progress { height: 6px; }

@media (max-width: 767.98px), (hover: none) and (pointer: coarse) {
  .app-content-header { padding-top: 18px; padding-bottom: 12px; }
  .vtm-dashboard-heading { gap: 13px !important; }
  .vtm-dashboard-heading > div:first-child { width: 100%; }
  .vtm-dashboard-heading .vtm-page-subtitle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .vtm-dashboard-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: .82fr 1fr 1.15fr;
    gap: 8px !important;
  }
  .vtm-dashboard-actions .btn {
    min-width: 0;
    min-height: 47px;
    padding: 8px 7px;
    gap: 5px;
    border-radius: 13px;
    font-size: .78rem;
  }
  .vtm-dashboard-actions .btn i { font-size: .95rem; }

  .vtm-hero-compact .card-body {
    padding: 18px !important;
    gap: 15px !important;
  }
  .vtm-hero-compact .vtm-hero-title { font-size: 1.55rem; }
  .vtm-hero-compact .vtm-hero-meta { font-size: .78rem; }
  .vtm-hero-compact .form-select { min-height: 44px; }

  .vtm-dashboard-money summary { padding: 10px 12px; }
  .vtm-dashboard-money-body { padding: 10px 12px 11px; }

  .vtm-dashboard-lazy { min-height: 190px; contain-intrinsic-size: 1px 620px; }
  .vtm-lazy-placeholder { grid-template-columns: 1fr; gap: 12px; }
  .vtm-lazy-card { min-height: 150px; padding: 18px; border-radius: 16px; }
  .vtm-lazy-card:nth-child(2) { display: none; }
  .vtm-dashboard-lazy-content { --bs-gutter-y: 12px; }
  .vtm-dashboard-empty { min-height: 145px; padding: 18px; }
  .vtm-ranking-item { padding: 11px 12px; grid-template-columns: 28px minmax(0,1fr); }
  .vtm-ranking-fee { grid-column: 2; }
  .vtm-latest-topic-item { padding: 11px; }
  .vtm-latest-topic-progress { grid-template-columns: 66px minmax(0,1fr); }
}
