/*
 * VDT Tools — design tokens + component library (public).
 * Phạm vi: mọi quy tắc nằm dưới .vdt-tools (main#vdtt-main). Không style toàn cục body/button/input/table.
 * Theme có `body.vdt-page p, li, h2` (0,1,2) → quy tắc cho thẻ p/li/h* dùng dạng `.vdt-tools p.vdtt-x` (0,2,1).
 */

.vdt-tools {
	--vdtt-navy: #0b1f3a;
	--vdtt-navy-2: #132c4f;
	--vdtt-blue: #2563eb;
	--vdtt-blue-ink: #1d4ed8;
	--vdtt-blue-soft: #eaf1fe;
	--vdtt-teal: #0d9488;
	--vdtt-teal-ink: #0f766e;
	--vdtt-teal-soft: #e6f5f3;
	--vdtt-bg: #f4f7fb;
	--vdtt-surface: #ffffff;
	--vdtt-paper: #fbfcfe;
	--vdtt-text: #172033;
	--vdtt-muted: #526174;
	--vdtt-border: #dce4ee;
	--vdtt-border-strong: #c3cfdd;
	--vdtt-success: #16804c;
	--vdtt-success-soft: #e8f5ee;
	--vdtt-warning: #a36312;
	--vdtt-warning-soft: #fff6e6;
	--vdtt-danger: #b42318;
	--vdtt-danger-soft: #fdecea;
	--vdtt-gold: #d4a853;
	--vdtt-radius-s: 8px;
	--vdtt-radius: 12px;
	--vdtt-radius-l: 16px;
	--vdtt-shadow: 0 1px 2px rgba(11, 31, 58, .05), 0 4px 14px rgba(11, 31, 58, .06);
	--vdtt-focus: 0 0 0 3px #fff, 0 0 0 5px var(--vdtt-blue);
	--vdtt-ease: cubic-bezier(.2, .7, .2, 1);
	--vdtt-t: 160ms;
	--vdtt-font: var(--vdt-font-main, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);

	display: block;
	background: var(--vdtt-bg);
	color: var(--vdtt-text);
	font-family: var(--vdtt-font);
	font-size: 15px;
	line-height: 1.55;
	padding-bottom: 56px;
	overflow-x: clip;
}
.vdt-tools *, .vdt-tools *::before, .vdt-tools *::after { box-sizing: border-box; }
.vdt-tools [hidden] { display: none !important; }
.vdt-tools .vdtt-wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 24px; }
.vdt-tools .vdtt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vdt-tools .vdtt-icon { flex: none; vertical-align: middle; }
.vdt-tools .vdtt-num, .vdt-tools [data-vdtt-money] { font-variant-numeric: tabular-nums; }
.vdt-tools a:focus-visible, .vdt-tools button:focus-visible, .vdt-tools input:focus-visible,
.vdt-tools select:focus-visible, .vdt-tools [tabindex]:focus-visible, .vdt-tools summary:focus-visible { outline: none; box-shadow: var(--vdtt-focus); border-radius: 6px; }
.vdt-tools .vdtt-js-only { display: none; }
.vdt-tools.vdtt-js .vdtt-js-only { display: inline-flex; }
.vdt-tools.vdtt-js .vdtt-nojs-only { display: none; }

/* ---------- Thanh sản phẩm ---------- */
.vdt-tools .vdtt-productbar { background: var(--vdtt-surface); border-bottom: 1px solid var(--vdtt-border); }
.vdt-tools .vdtt-productbar__inner { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.vdt-tools .vdtt-wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--vdtt-navy); }
.vdt-tools .vdtt-wordmark img { width: 32px; height: 32px; object-fit: contain; }
.vdt-tools .vdtt-wordmark__name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.vdt-tools .vdtt-wordmark__tag { color: var(--vdtt-muted); font-size: 13px; padding-left: 10px; border-left: 1px solid var(--vdtt-border); }
.vdt-tools .vdtt-productnav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.vdt-tools .vdtt-productnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--vdtt-radius-s); color: var(--vdtt-muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: color var(--vdtt-t), background var(--vdtt-t); }
.vdt-tools .vdtt-productnav a:hover { color: var(--vdtt-navy); background: var(--vdtt-bg); }
.vdt-tools .vdtt-productnav a[aria-current] { color: var(--vdtt-navy); box-shadow: inset 0 -2px 0 var(--vdtt-blue); border-radius: 0; }
/* 01B: [aria-current] có độ ưu tiên cao hơn quy tắc focus chung — ghép lại để vẫn thấy vòng focus. */
.vdt-tools .vdtt-productnav a[aria-current]:focus-visible { box-shadow: inset 0 -2px 0 var(--vdtt-blue), var(--vdtt-focus); border-radius: 6px; }

/* ---------- Dải xem trước ---------- */
.vdt-tools .vdtt-preview-banner { background: #fff8e8; border-bottom: 1px solid #f1d7a3; color: #5c3a06; }
.vdt-tools .vdtt-preview-banner .vdtt-wrap { display: flex; gap: 12px; align-items: center; padding-block: 10px; flex-wrap: wrap; }
.vdt-tools .vdtt-preview-banner p { margin: 0; font-size: 14px; flex: 1 1 420px; color: inherit; }
.vdt-tools .vdtt-preview-banner a { color: #5c3a06; font-weight: 600; font-size: 14px; }

/* ---------- Breadcrumb ---------- */
.vdt-tools .vdtt-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 14px 0 0; font-size: 13px; }
.vdt-tools .vdtt-breadcrumb li { margin: 0; font-size: 13px; line-height: 1.5; color: var(--vdtt-muted); display: inline-flex; gap: 8px; }
.vdt-tools .vdtt-breadcrumb li + li::before { content: "/"; color: var(--vdtt-border-strong); }
.vdt-tools .vdtt-breadcrumb a { color: var(--vdtt-muted); text-decoration: none; }
.vdt-tools .vdtt-breadcrumb a:hover { color: var(--vdtt-blue-ink); text-decoration: underline; }
.vdt-tools .vdtt-breadcrumb [aria-current] { color: var(--vdtt-text); }
.vdt-tools.vdtt-page--hub .vdtt-breadcrumb { display: none; }

/* ---------- Nút & liên kết ---------- */
.vdt-tools .vdtt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--vdtt-radius-s); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background var(--vdtt-t) var(--vdtt-ease), border-color var(--vdtt-t), color var(--vdtt-t); white-space: nowrap; }
.vdt-tools .vdtt-btn--primary { background: var(--vdtt-blue); color: #fff; }
.vdt-tools .vdtt-btn--primary:hover { background: var(--vdtt-blue-ink); color: #fff; }
.vdt-tools .vdtt-btn--ghost { background: var(--vdtt-surface); border-color: var(--vdtt-border-strong); color: var(--vdtt-text); }
.vdt-tools .vdtt-btn--ghost:hover { border-color: var(--vdtt-blue); color: var(--vdtt-blue-ink); }
.vdt-tools .vdtt-btn--light { background: #fff; color: var(--vdtt-navy); }
.vdt-tools .vdtt-btn--light:hover { background: #eaf1fe; color: var(--vdtt-navy); }
.vdt-tools .vdtt-btn--danger { background: var(--vdtt-danger); color: #fff; }
.vdt-tools .vdtt-btn--danger:hover { background: #912018; }
.vdt-tools .vdtt-btn[disabled], .vdt-tools .vdtt-btn[aria-disabled="true"] { background: #eef2f7; border-color: var(--vdtt-border); color: #6b7a8d; cursor: not-allowed; }
.vdt-tools .vdtt-linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-size: 14px; color: var(--vdtt-blue-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vdt-tools .vdtt-link, .vdt-tools a.vdtt-link { color: var(--vdtt-blue-ink); font-weight: 600; text-decoration: none; }
.vdt-tools .vdtt-link:hover { text-decoration: underline; }
.vdt-tools .vdtt-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid transparent; background: transparent; border-radius: var(--vdtt-radius-s); color: var(--vdtt-muted); cursor: pointer; }
.vdt-tools .vdtt-iconbtn:hover { background: var(--vdtt-bg); color: var(--vdtt-text); }
.vdt-tools .vdtt-iconbtn--danger:hover { background: var(--vdtt-danger-soft); color: var(--vdtt-danger); }
.vdt-tools .vdtt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* ---------- Chip trạng thái ---------- */
.vdt-tools .vdtt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; border: 1px solid transparent; }
.vdt-tools .vdtt-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vdt-tools .vdtt-chip--planned { background: #eef2f7; color: #475569; border-color: #dbe3ec; }
.vdt-tools .vdtt-chip--draft { background: var(--vdtt-warning-soft); color: #8a520c; border-color: #f3dcb2; }
.vdt-tools .vdtt-chip--review { background: var(--vdtt-blue-soft); color: var(--vdtt-blue-ink); border-color: #cddcfb; }
.vdt-tools .vdtt-chip--active { background: var(--vdtt-success-soft); color: #116a3f; border-color: #c4e5d2; }
.vdt-tools .vdtt-chip--disabled, .vdt-tools .vdtt-chip--retired { background: #f2f4f7; color: #475467; border-color: #e4e7ec; }
.vdt-tools .vdtt-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--vdtt-blue); color: #fff; font-size: 12px; margin-left: 4px; }

/* ---------- Hero (trang chủ VDT Tools) ---------- */
.vdt-tools .vdtt-hero { background: var(--vdtt-navy); color: #fff; padding: 48px 0 0; position: relative; }
.vdt-tools .vdtt-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding-bottom: 36px; }
.vdt-tools h1#vdtt-hero-title { color: #fff; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 700; max-width: 22ch; }
.vdt-tools p.vdtt-hero__lead { color: rgba(255, 255, 255, .82); font-size: 16.5px; line-height: 1.6; margin: 0; max-width: 54ch; }
.vdt-tools .vdtt-hero__search { background: #fff; color: var(--vdtt-text); border-radius: var(--vdtt-radius-l); padding: 22px 22px 18px; }
.vdt-tools .vdtt-hero__search > label { display: block; font-weight: 700; font-size: 17px; color: var(--vdtt-navy); margin-bottom: 10px; }
.vdt-tools p.vdtt-hero__hint { font-size: 13px; color: var(--vdtt-muted); margin: 14px 0 8px; }
.vdt-tools .vdtt-abbr { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vdt-tools li.vdtt-abbr__item, .vdt-tools .vdtt-abbr li { margin: 0; font-size: 13px; line-height: 1.3; }
.vdt-tools .vdtt-abbr a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); text-decoration: none; color: var(--vdtt-muted); background: var(--vdtt-paper); transition: border-color var(--vdtt-t), background var(--vdtt-t); }
.vdt-tools .vdtt-abbr a:hover { border-color: var(--vdtt-blue); background: var(--vdtt-blue-soft); color: var(--vdtt-text); }
.vdt-tools .vdtt-abbr abbr { text-decoration: none; font-weight: 700; color: var(--vdtt-navy); letter-spacing: .02em; }
.vdt-tools .vdtt-hero__stats { display: flex; gap: 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.vdt-tools .vdtt-hero__stats > div { padding: 16px 28px 18px 0; margin-right: 28px; border-right: 1px solid rgba(255, 255, 255, .14); }
.vdt-tools .vdtt-hero__stats > div:last-child { border-right: 0; }
.vdt-tools .vdtt-hero__stats dt { font-size: 13px; color: rgba(255, 255, 255, .72); }
.vdt-tools .vdtt-hero__stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.vdt-tools .vdtt-hero a:focus-visible, .vdt-tools .vdtt-hero button:focus-visible, .vdt-tools .vdtt-hero input:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--vdtt-gold); }

/* ---------- Ô tìm kiếm ---------- */
.vdt-tools .vdtt-searchbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--vdtt-border-strong); border-radius: var(--vdtt-radius); padding: 4px 4px 4px 14px; background: #fff; transition: border-color var(--vdtt-t), box-shadow var(--vdtt-t); }
.vdt-tools .vdtt-searchbox:focus-within { border-color: var(--vdtt-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.vdt-tools .vdtt-searchbox .vdtt-icon { color: var(--vdtt-muted); }
.vdt-tools .vdtt-searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; min-height: 44px; padding: 0; color: var(--vdtt-text); }
.vdt-tools .vdtt-searchbox input:focus-visible { box-shadow: none; }
.vdt-tools .vdtt-searchbox--compact { flex: 1; }

/* ---------- Section ---------- */
.vdt-tools .vdtt-section { margin-top: 48px; }
.vdt-tools .vdtt-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.vdt-tools .vdtt-section__head h2 { margin: 0; color: var(--vdtt-navy); font-size: clamp(21px, 2vw, 26px); letter-spacing: -.01em; }
.vdt-tools p.vdtt-lead { color: var(--vdtt-muted); font-size: 16px; margin: 6px 0 0; max-width: 72ch; }

/* ---------- Nhóm công cụ (hub) ---------- */
.vdt-tools .vdtt-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vdt-tools li.vdtt-cat { margin: 0; font-size: 15px; }
.vdt-tools .vdtt-cat > a, .vdt-tools .vdtt-cat > div { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "icon name" "icon desc" "icon count"; column-gap: 14px; row-gap: 4px; height: 100%; padding: 20px; background: var(--vdtt-surface); border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius); text-decoration: none; color: inherit; transition: border-color var(--vdtt-t), box-shadow var(--vdtt-t); }
.vdt-tools .vdtt-cat > a:hover { border-color: var(--vdtt-blue); box-shadow: var(--vdtt-shadow); }
.vdt-tools .vdtt-cat__icon { grid-area: icon; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--vdtt-blue-soft); color: var(--vdtt-blue-ink); }
.vdt-tools .vdtt-cat__name { grid-area: name; font-weight: 700; color: var(--vdtt-navy); font-size: 16.5px; }
.vdt-tools .vdtt-cat__desc { grid-area: desc; color: var(--vdtt-muted); font-size: 14px; }
.vdt-tools .vdtt-cat__count { grid-area: count; color: var(--vdtt-teal-ink); font-size: 13px; font-weight: 600; margin-top: 6px; }
.vdt-tools .vdtt-cat--roadmap > div { background: transparent; border-style: dashed; }
.vdt-tools .vdtt-cat--roadmap .vdtt-cat__icon { background: #eef2f7; color: var(--vdtt-muted); }
.vdt-tools .vdtt-cat--roadmap .vdtt-cat__count { color: var(--vdtt-muted); }

/* ---------- Quy trình 4 bước ---------- */
.vdt-tools .vdtt-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius); background: var(--vdtt-surface); }
.vdt-tools li.vdtt-steps__item, .vdt-tools .vdtt-steps li { margin: 0; padding: 22px 22px 24px; counter-increment: s; border-right: 1px solid var(--vdtt-border); font-size: 14.5px; }
.vdt-tools .vdtt-steps li:last-child { border-right: 0; }
.vdt-tools .vdtt-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--vdtt-navy); color: var(--vdtt-navy); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.vdt-tools .vdtt-steps h3 { margin: 0 0 6px; font-size: 16px; color: var(--vdtt-navy); }
.vdt-tools .vdtt-steps p { margin: 0; color: var(--vdtt-muted); font-size: 14px; }

/* ---------- CTA khóa học ---------- */
.vdt-tools .vdtt-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--vdtt-radius-l); background: var(--vdtt-navy-2); color: #fff; flex-wrap: wrap; }
.vdt-tools .vdtt-cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.vdt-tools .vdtt-cta-band p { margin: 0; color: rgba(255, 255, 255, .84); max-width: 70ch; }
.vdt-tools .vdtt-cta-band a:not(.vdtt-btn) { color: #fff; font-weight: 600; }

/* ---------- Thẻ công cụ ---------- */
.vdt-tools .vdtt-grid { display: grid; gap: 16px; }
.vdt-tools .vdtt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vdt-tools .vdtt-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; background: var(--vdtt-surface); border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius); transition: border-color var(--vdtt-t), box-shadow var(--vdtt-t); min-width: 0; }
.vdt-tools .vdtt-card:hover { border-color: var(--vdtt-border-strong); box-shadow: var(--vdtt-shadow); }
.vdt-tools .vdtt-card--planned { background: var(--vdtt-paper); border-style: dashed; }
.vdt-tools .vdtt-card--planned:hover { box-shadow: none; }
.vdt-tools .vdtt-card__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vdt-tools .vdtt-card__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--vdtt-blue-soft); color: var(--vdtt-blue-ink); }
.vdt-tools .vdtt-card--planned .vdtt-card__icon { background: #eef2f7; color: var(--vdtt-muted); }
.vdt-tools .vdtt-card__id { font-size: 12.5px; font-weight: 700; color: var(--vdtt-muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.vdt-tools .vdtt-card__top .vdtt-chip { margin-left: auto; }
.vdt-tools h3.vdtt-card__title { margin: 2px 0 0; font-size: 16.5px; line-height: 1.35; letter-spacing: -.005em; }
.vdt-tools .vdtt-card__title a { color: var(--vdtt-navy); text-decoration: none; }
.vdt-tools .vdtt-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.vdt-tools .vdtt-card__title a:focus-visible { box-shadow: none; }
.vdt-tools .vdtt-card:has(.vdtt-card__title a:focus-visible) { box-shadow: var(--vdtt-focus); }
.vdt-tools p.vdtt-card__desc { margin: 0; color: var(--vdtt-muted); font-size: 14px; line-height: 1.55; }
.vdt-tools .vdtt-card__meta { margin: 4px 0 0; display: grid; gap: 4px; font-size: 13px; }
.vdt-tools .vdtt-card__meta > div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; }
.vdt-tools .vdtt-card__meta dt { color: var(--vdtt-muted); }
.vdt-tools .vdtt-card__meta dd { margin: 0; color: var(--vdtt-text); }
.vdt-tools .vdtt-card__cta { position: relative; z-index: 1; margin-top: auto; align-self: flex-start; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--vdtt-blue-ink); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.vdt-tools .vdtt-card--planned .vdtt-card__cta { color: var(--vdtt-muted); }
.vdt-tools .vdtt-card__cta:hover { text-decoration: underline; }

/* ---------- Danh mục ---------- */
.vdt-tools .vdtt-dir__head { padding: 18px 0 6px; }
.vdt-tools .vdtt-dir__head h1, .vdt-tools .vdtt-toolhead h1 { margin: 0; color: var(--vdtt-navy); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.015em; }
.vdt-tools .vdtt-dir__layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 20px 28px; margin-top: 18px; }
.vdt-tools .vdtt-dir__search { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.vdt-tools .vdtt-dir__filter-toggle { display: none; }
.vdt-tools .vdtt-filters { align-self: start; background: var(--vdtt-surface); border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius); padding: 16px 16px 8px; }
.vdt-tools .vdtt-filters__head { display: flex; align-items: center; justify-content: space-between; }
.vdt-tools .vdtt-filters__head h2 { margin: 0; font-size: 16px; color: var(--vdtt-navy); }
.vdt-tools .vdtt-filters__close { display: none; }
.vdt-tools p.vdtt-filters__hint { font-size: 12.5px; color: var(--vdtt-muted); margin: 6px 0 10px; line-height: 1.45; }
.vdt-tools .vdtt-fieldset { border: 0; border-top: 1px solid var(--vdtt-border); margin: 0; padding: 12px 0 10px; min-width: 0; }
.vdt-tools .vdtt-fieldset legend { font-weight: 700; font-size: 13.5px; color: var(--vdtt-text); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.vdt-tools .vdtt-fieldset legend + * { clear: both; }
.vdt-tools .vdtt-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; color: var(--vdtt-text); }
.vdt-tools .vdtt-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--vdtt-blue); flex: none; }
.vdt-tools .vdtt-check__count { margin-left: auto; color: var(--vdtt-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vdt-tools .vdtt-check--inline { display: inline-flex; margin-right: 14px; }
.vdt-tools .vdtt-filters__foot { position: sticky; bottom: 0; background: var(--vdtt-surface); padding: 10px 0; }
.vdt-tools .vdtt-filters__apply { display: none !important; }
.vdt-tools .vdtt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vdt-tools p.vdtt-toolbar__count { margin: 0; font-weight: 600; color: var(--vdtt-text); font-size: 15px; }
.vdt-tools .vdtt-toolbar__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vdt-tools .vdtt-select { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--vdtt-muted); }
.vdt-tools .vdtt-select select, .vdt-tools .vdtt-input select { min-height: 44px; border: 1px solid var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); padding: 0 34px 0 12px; font: inherit; font-size: 14.5px; color: var(--vdtt-text); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23526174' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; }
.vdt-tools .vdtt-segmented { display: inline-flex; border: 1px solid var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); overflow: hidden; background: #fff; }
.vdt-tools .vdtt-segmented button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--vdtt-muted); cursor: pointer; }
.vdt-tools .vdtt-segmented button + button { border-left: 1px solid var(--vdtt-border); }
.vdt-tools .vdtt-segmented button[aria-pressed="true"] { background: var(--vdtt-navy); color: #fff; }
.vdt-tools .vdtt-cards { display: grid; gap: 16px; }
.vdt-tools .vdtt-cards--luoi { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vdt-tools .vdtt-cards--danh-sach { grid-template-columns: 1fr; gap: 10px; }
.vdt-tools .vdtt-cards--danh-sach .vdtt-card { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px 130px; grid-template-areas: "top title meta cta" "top desc meta cta"; align-items: start; gap: 4px 20px; padding: 14px 18px; }
.vdt-tools .vdtt-cards--danh-sach .vdtt-card__top { grid-area: top; }
.vdt-tools .vdtt-cards--danh-sach .vdtt-card__top .vdtt-chip { margin-left: 0; }
.vdt-tools .vdtt-cards--danh-sach .vdtt-card__title { grid-area: title; }
.vdt-tools .vdtt-cards--danh-sach .vdtt-card__desc { grid-area: desc; }
.vdt-tools .vdtt-cards--danh-sach .vdtt-card__meta { grid-area: meta; margin: 0; }
.vdt-tools .vdtt-cards--danh-sach .vdtt-card__cta { grid-area: cta; align-self: center; justify-self: end; margin: 0; }
.vdt-tools .vdtt-empty { text-align: center; padding: 40px 20px; background: var(--vdtt-surface); border: 1px dashed var(--vdtt-border-strong); border-radius: var(--vdtt-radius); color: var(--vdtt-muted); }
.vdt-tools .vdtt-empty .vdtt-icon { width: 32px; height: 32px; color: var(--vdtt-muted); }
.vdt-tools .vdtt-empty h3 { color: var(--vdtt-text); margin: 10px 0 6px; font-size: 17px; }
.vdt-tools .vdtt-empty p { margin: 0 auto 14px; max-width: 46ch; }
.vdt-tools p.vdtt-empty--inline { padding: 18px; margin: 0; font-size: 14px; text-align: left; }
.vdt-tools .vdtt-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.vdt-tools .vdtt-pagination a { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: var(--vdtt-radius-s); border: 1px solid var(--vdtt-border); background: #fff; color: var(--vdtt-text); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.vdt-tools .vdtt-pagination a:hover { border-color: var(--vdtt-blue); }
.vdt-tools .vdtt-pagination a[aria-current] { background: var(--vdtt-navy); border-color: var(--vdtt-navy); color: #fff; }
.vdt-tools .vdtt-overlay { position: fixed; inset: 0; background: rgba(11, 31, 58, .45); z-index: 99990; }

/* ---------- Trang công cụ ---------- */
.vdt-tools .vdtt-toolhead { padding: 18px 0 20px; max-width: 980px; }
.vdt-tools .vdtt-toolhead__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.vdt-tools .vdtt-toolhead__cat { display: inline-flex; align-items: center; gap: 6px; color: var(--vdtt-muted); font-size: 13.5px; }
.vdt-tools .vdtt-toolhead__cat .vdtt-icon { width: 16px; height: 16px; }
.vdt-tools .vdtt-alert { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: var(--vdtt-radius-s); border: 1px solid; font-size: 14px; line-height: 1.55; }
.vdt-tools .vdtt-alert > div, .vdt-tools .vdtt-alert p { margin: 0; font-size: 14px; }
.vdt-tools .vdtt-alert--warning { background: var(--vdtt-warning-soft); border-color: #f1d7a3; color: #5c3a06; }
.vdt-tools .vdtt-alert--warning .vdtt-icon { color: var(--vdtt-warning); margin-top: 1px; }
.vdt-tools .vdtt-alert--danger { background: var(--vdtt-danger-soft); border-color: #f5c2bd; color: #7a1a12; }
.vdt-tools .vdtt-alert--info { background: var(--vdtt-blue-soft); border-color: #cddcfb; color: #1e3a8a; }
.vdt-tools .vdtt-alert--success { background: var(--vdtt-success-soft); border-color: #c4e5d2; color: #0f5132; }
.vdt-tools .vdtt-alert ul { margin: 4px 0 0 18px; padding: 0; }
.vdt-tools .vdtt-alert li { font-size: 14px; margin: 2px 0; }
.vdt-tools .vdtt-tool__grid { display: grid; gap: 20px; align-items: start; }
.vdt-tools .vdtt-tool__grid--3 { grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.12fr) minmax(270px, .82fr); }
.vdt-tools .vdtt-tool__grid--main { grid-template-columns: minmax(0, 1fr) 320px; }
.vdt-tools .vdtt-tool__main { min-width: 0; display: grid; gap: 16px; }
.vdt-tools .vdtt-aside { display: grid; gap: 16px; min-width: 0; }
.vdt-tools .vdtt-panel { background: var(--vdtt-surface); border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius); padding: 20px; min-width: 0; }
.vdt-tools .vdtt-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17.5px; color: var(--vdtt-navy); letter-spacing: -.005em; }
.vdt-tools .vdtt-panel h2 .vdtt-icon { color: var(--vdtt-teal-ink); }
.vdt-tools .vdtt-panel p { font-size: 14.5px; }
.vdt-tools h3.vdtt-subhead { font-size: 14.5px; color: var(--vdtt-text); margin: 18px 0 8px; }

/* ---------- Trường nhập ---------- */
.vdt-tools .vdtt-field { margin-bottom: 16px; min-width: 0; }
.vdt-tools .vdtt-field > label, .vdt-tools .vdtt-inline-options legend { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--vdtt-text); }
.vdt-tools .vdtt-req { color: var(--vdtt-danger); }
.vdt-tools .vdtt-optional { font-weight: 400; font-size: 12.5px; color: var(--vdtt-muted); margin-left: 6px; }
.vdt-tools .vdtt-input { position: relative; display: flex; align-items: stretch; }
.vdt-tools .vdtt-input input, .vdt-tools .vdtt-input select { width: 100%; min-height: 46px; border: 1px solid var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); padding: 0 12px; font: inherit; font-size: 16px; color: var(--vdtt-text); background-color: #fff; transition: border-color var(--vdtt-t), box-shadow var(--vdtt-t); }
.vdt-tools .vdtt-input input:focus-visible, .vdt-tools .vdtt-input select:focus-visible { border-color: var(--vdtt-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); border-radius: var(--vdtt-radius-s); }
.vdt-tools .vdtt-input--suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; text-align: right; }
.vdt-tools .vdtt-input__suffix { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--vdtt-border-strong); border-left: 0; border-radius: 0 var(--vdtt-radius-s) var(--vdtt-radius-s) 0; background: var(--vdtt-bg); color: var(--vdtt-muted); font-size: 14px; min-width: 56px; }
.vdt-tools p.vdtt-hint { font-size: 13px; color: var(--vdtt-muted); margin: 6px 0 0; line-height: 1.5; }
.vdt-tools p.vdtt-error { font-size: 13.5px; color: var(--vdtt-danger); margin: 6px 0 0; font-weight: 600; display: flex; gap: 6px; }
.vdt-tools p.vdtt-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--vdtt-danger); color: #fff; font-size: 12px; flex: none; margin-top: 1px; }
.vdt-tools .vdtt-field--invalid input, .vdt-tools .vdtt-field--invalid select { border-color: var(--vdtt-danger); }
.vdt-tools .vdtt-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.vdt-tools .vdtt-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vdt-tools .vdtt-inline-options { border: 0; padding: 0; margin: 8px 0 0; }
.vdt-tools .vdtt-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 40px; }
.vdt-tools .vdtt-switch input { width: 18px; height: 18px; accent-color: var(--vdtt-blue); margin: 0; }

/* ---------- Kết quả tính (phiếu) ---------- */
.vdt-tools .vdtt-result__empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 36px 16px; color: var(--vdtt-muted); border: 1px dashed var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); }
.vdt-tools .vdtt-result__empty .vdtt-icon { width: 30px; height: 30px; }
.vdt-tools .vdtt-result__empty p { margin: 0; }
.vdt-tools .vdtt-slip { background: var(--vdtt-paper); border: 1px solid var(--vdtt-border); border-top: 3px solid var(--vdtt-navy); border-radius: 4px 4px var(--vdtt-radius-s) var(--vdtt-radius-s); padding: 18px 18px 16px; }
.vdt-tools p.vdtt-slip__label { margin: 0; font-size: 13.5px; color: var(--vdtt-muted); }
.vdt-tools p.vdtt-slip__value { margin: 6px 0 2px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; color: var(--vdtt-navy); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.vdt-tools .vdtt-slip__unit { font-size: 16px; font-weight: 600; color: var(--vdtt-muted); }
.vdt-tools p.vdtt-slip__words { margin: 0; font-size: 14px; color: var(--vdtt-text); font-style: italic; }
.vdt-tools .vdtt-calcsteps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--vdtt-border); }
.vdt-tools .vdtt-calcsteps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px dotted var(--vdtt-border-strong); font-size: 14px; }
.vdt-tools .vdtt-calcsteps li span:first-child { color: var(--vdtt-muted); }
.vdt-tools .vdtt-calcsteps li span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; }
.vdt-tools p.vdtt-servercheck { font-size: 13px; margin: 10px 0 0; color: var(--vdtt-success); display: flex; gap: 6px; }
.vdt-tools p.vdtt-servercheck--warn { color: var(--vdtt-warning); }
.vdt-tools p.vdtt-disclaimer { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; padding: 10px 12px; background: var(--vdtt-bg); border-radius: var(--vdtt-radius-s); font-size: 13px; color: var(--vdtt-muted); }

/* ---------- Căn cứ / ghi chú / liên quan ---------- */
.vdt-tools .vdtt-evidence { border-left: 3px solid var(--vdtt-teal); }
.vdt-tools p.vdtt-evidence__state { margin: 0 0 8px; }
.vdt-tools .vdtt-notes { margin: 0; padding-left: 18px; }
.vdt-tools .vdtt-notes li { font-size: 14px; margin: 0 0 6px; color: var(--vdtt-text); }
.vdt-tools .vdtt-related { list-style: none; margin: 0; padding: 0; }
.vdt-tools li.vdtt-related__item, .vdt-tools .vdtt-related li { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--vdtt-border); font-size: 14px; }
.vdt-tools .vdtt-related li:last-child { border-bottom: 0; }
.vdt-tools .vdtt-related a { color: var(--vdtt-text); text-decoration: none; font-weight: 600; }
.vdt-tools .vdtt-related a:hover { color: var(--vdtt-blue-ink); text-decoration: underline; }
.vdt-tools .vdtt-course__embed { font-size: 14px; }
.vdt-tools .vdtt-course__embed .vdt-tm-course-cta { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0; margin: 0; border: 0; box-shadow: none; background: transparent; }
.vdt-tools .vdtt-course__embed .vdt-tm-course-cta h3 { margin: 0; font-size: 15.5px; color: var(--vdtt-navy); }
.vdt-tools .vdtt-course__embed .vdt-tm-eyebrow { display: none; }
.vdt-tools .vdtt-course__embed .vdt-tm-details { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 10px; margin: 8px 0 0; font-size: 13.5px; }
.vdt-tools .vdtt-course__embed .vdt-tm-details dt { color: var(--vdtt-muted); }
.vdt-tools .vdtt-course__embed .vdt-tm-details dd { margin: 0; }
.vdt-tools .vdtt-course__embed .vdt-tm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vdt-tools .vdtt-course__embed .vdt-tm-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--vdtt-radius-s); border: 1px solid var(--vdtt-border-strong); color: var(--vdtt-text); text-decoration: none; font-weight: 600; font-size: 14px; }
.vdt-tools .vdtt-course__embed .vdt-tm-actions a:last-child { background: var(--vdtt-blue); border-color: var(--vdtt-blue); color: #fff; }
.vdt-tools .vdtt-course__embed .vdt-tm-status { font-size: 12.5px; color: var(--vdtt-teal-ink); font-weight: 600; }

/* ---------- Stepper ---------- */
.vdt-tools .vdtt-stepper { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vdt-tools .vdtt-stepper li { margin: 0; font-size: 14px; }
.vdt-tools .vdtt-stepper button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); background: var(--vdtt-surface); font: inherit; font-size: 14px; color: var(--vdtt-muted); text-align: left; cursor: pointer; position: relative; }
.vdt-tools .vdtt-stepper button:disabled { cursor: default; background: transparent; }
.vdt-tools .vdtt-stepper__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--vdtt-border-strong); font-weight: 700; font-size: 13px; flex: none; background: #fff; }
.vdt-tools .vdtt-stepper button[aria-current="step"] { border-color: var(--vdtt-blue); color: var(--vdtt-navy); font-weight: 700; box-shadow: inset 0 -3px 0 var(--vdtt-blue); }
.vdt-tools .vdtt-stepper button[aria-current="step"]:focus-visible { box-shadow: inset 0 -3px 0 var(--vdtt-blue), var(--vdtt-focus); }
.vdt-tools .vdtt-stepper button[aria-current="step"] .vdtt-stepper__num { background: var(--vdtt-blue); border-color: var(--vdtt-blue); color: #fff; }
.vdt-tools .vdtt-stepper button[data-done="1"] { color: var(--vdtt-text); }
.vdt-tools .vdtt-stepper button[data-done="1"] .vdtt-stepper__num { background: var(--vdtt-teal-soft); border-color: var(--vdtt-teal); color: var(--vdtt-teal-ink); }
.vdt-tools .vdtt-stepper--vertical { grid-template-columns: 1fr; margin: 0; }
.vdt-tools .vdtt-stepnav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.vdt-tools .vdtt-stepnav [data-vdtt-next] { margin-left: auto; }

/* ---------- Tiêu chí (compliance) ---------- */
.vdt-tools .vdtt-criteria { display: grid; gap: 12px; margin-top: 6px; }
.vdt-tools .vdtt-criterion { border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); padding: 12px 14px 4px; background: var(--vdtt-paper); }
.vdt-tools .vdtt-criterion[data-off="1"] { opacity: .72; }
.vdt-tools .vdtt-criterion[data-off="1"] .vdtt-field, .vdt-tools .vdtt-criterion[data-off="1"] .vdtt-inline-options { display: none; }
.vdt-tools .vdtt-criterion__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.vdt-tools .vdtt-subform { margin-top: 18px; padding: 16px; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); background: var(--vdtt-paper); }
.vdt-tools .vdtt-subform h3 { margin: 0 0 12px; font-size: 15.5px; color: var(--vdtt-navy); }
.vdt-tools .vdtt-subform[data-editing="1"] { border-color: var(--vdtt-blue); background: #f6f9ff; }
.vdt-tools .vdtt-upload-disabled { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); color: var(--vdtt-muted); }
.vdt-tools .vdtt-upload-disabled label { font-weight: 600; display: block; color: var(--vdtt-text); margin-bottom: 4px; font-size: 14px; }
.vdt-tools .vdtt-upload-disabled input[type="file"] { font-size: 13px; max-width: 100%; }

/* ---------- Bảng ---------- */
.vdt-tools .vdtt-tablewrap { overflow-x: auto; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); margin-top: 8px; }
.vdt-tools .vdtt-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; margin: 0; }
.vdt-tools .vdtt-table th, .vdt-tools .vdtt-table td { padding: 10px 12px; border-bottom: 1px solid var(--vdtt-border); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.45; }
.vdt-tools .vdtt-table thead th { background: var(--vdtt-bg); font-size: 13px; color: var(--vdtt-muted); font-weight: 700; white-space: nowrap; }
.vdt-tools .vdtt-table tbody tr:last-child td { border-bottom: 0; }
.vdt-tools .vdtt-table tfoot th, .vdt-tools .vdtt-table tfoot td { background: var(--vdtt-paper); font-weight: 700; border-top: 1px solid var(--vdtt-border-strong); border-bottom: 0; }
.vdt-tools .vdtt-table td.vdtt-num, .vdt-tools .vdtt-table th.vdtt-num { text-align: right; white-space: nowrap; }
.vdt-tools .vdtt-table .vdtt-rowactions { white-space: nowrap; text-align: right; }
.vdt-tools .vdtt-table tr[data-editing="1"] td { background: #f6f9ff; }
.vdt-tools .vdtt-st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.vdt-tools .vdtt-st::before { font-weight: 800; width: 1em; text-align: center; }
.vdt-tools .vdtt-st--pass { background: var(--vdtt-success-soft); color: #116a3f; }
.vdt-tools .vdtt-st--pass::before { content: "✓"; }
.vdt-tools .vdtt-st--fail { background: var(--vdtt-danger-soft); color: var(--vdtt-danger); }
.vdt-tools .vdtt-st--fail::before { content: "✕"; }
.vdt-tools .vdtt-st--unknown { background: var(--vdtt-warning-soft); color: #8a520c; }
.vdt-tools .vdtt-st--unknown::before { content: "?"; }
.vdt-tools .vdtt-st--na { background: #f2f4f7; color: #475467; }
.vdt-tools .vdtt-st--na::before { content: "–"; }
.vdt-tools .vdtt-st small { font-weight: 500; opacity: .85; }
.vdt-tools .vdtt-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- Kết luận / tóm tắt ---------- */
.vdt-tools .vdtt-verdict { padding: 16px 18px; border-radius: var(--vdtt-radius-s); border: 1px solid; margin-bottom: 16px; }
.vdt-tools .vdtt-verdict h3 { margin: 0 0 4px; font-size: 17px; }
.vdt-tools .vdtt-verdict p { margin: 0; font-size: 14.5px; }
.vdt-tools .vdtt-verdict--pass { background: var(--vdtt-success-soft); border-color: #c4e5d2; color: #0f5132; }
.vdt-tools .vdtt-verdict--fail { background: var(--vdtt-danger-soft); border-color: #f5c2bd; color: #7a1a12; }
.vdt-tools .vdtt-verdict--unknown { background: var(--vdtt-warning-soft); border-color: #f1d7a3; color: #5c3a06; }
.vdt-tools .vdtt-verdict h3, .vdt-tools .vdtt-verdict p { color: inherit; }
.vdt-tools .vdtt-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 14px; }
.vdt-tools .vdtt-summary > div { background: var(--vdtt-paper); border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); padding: 10px 12px; min-width: 0; }
.vdt-tools .vdtt-summary dt { font-size: 12.5px; color: var(--vdtt-muted); }
.vdt-tools .vdtt-summary dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; color: var(--vdtt-text); overflow-wrap: anywhere; }
.vdt-tools .vdtt-summary--stack { grid-template-columns: 1fr; }

/* ---------- Wizard ---------- */
.vdt-tools .vdtt-wizard { display: grid; grid-template-columns: 232px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.vdt-tools .vdtt-wizard__nav { position: sticky; top: 16px; }
.vdt-tools .vdtt-wizard__main { display: grid; gap: 16px; min-width: 0; }
.vdt-tools .vdtt-wizard__summary { position: sticky; top: 16px; }
.vdt-tools .vdtt-files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.vdt-tools .vdtt-file { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); background: var(--vdtt-paper); }
.vdt-tools .vdtt-file > div { display: grid; flex: 1; min-width: 0; }
.vdt-tools .vdtt-file span { font-size: 13px; color: var(--vdtt-muted); }
.vdt-tools .vdtt-file .vdtt-icon { color: var(--vdtt-muted); }
.vdt-tools .vdtt-fixturebox { margin-top: 18px; padding: 16px; border: 1px solid #cddcfb; background: #f6f9ff; border-radius: var(--vdtt-radius-s); }
.vdt-tools .vdtt-fixturebox h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--vdtt-navy); }
.vdt-tools .vdtt-fixturebox__out { margin-top: 10px; font-size: 14px; }

/* ---------- Trang quy hoạch ---------- */
.vdt-tools .vdtt-planned .vdtt-summary { margin-top: 14px; }

/* ---------- Dialog & toast ---------- */
.vdt-tools .vdtt-dialog { border: 0; border-radius: var(--vdtt-radius); padding: 22px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(11, 31, 58, .25); color: var(--vdtt-text); }
.vdt-tools .vdtt-dialog::backdrop { background: rgba(11, 31, 58, .45); }
.vdt-tools .vdtt-dialog h2 { margin: 0 0 8px; font-size: 18px; color: var(--vdtt-navy); }
.vdt-tools .vdtt-dialog .vdtt-actions { justify-content: flex-end; }
.vdt-tools .vdtt-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 99995; display: grid; gap: 8px; width: max-content; max-width: min(420px, calc(100vw - 32px)); }
.vdt-tools .vdtt-toast { background: var(--vdtt-navy); color: #fff; padding: 12px 16px; border-radius: var(--vdtt-radius-s); font-size: 14px; box-shadow: 0 10px 30px rgba(11, 31, 58, .25); animation: vdtt-in var(--vdtt-t) var(--vdtt-ease); }
@keyframes vdtt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
	.vdt-tools .vdtt-tool__grid--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.vdt-tools .vdtt-tool__grid--3 > .vdtt-aside { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.vdt-tools .vdtt-wizard { grid-template-columns: 210px minmax(0, 1fr); }
	.vdt-tools .vdtt-wizard__summary { grid-column: 2; position: static; }
	.vdt-tools .vdtt-cards--danh-sach .vdtt-card { grid-template-columns: 190px minmax(0, 1fr) 120px; grid-template-areas: "top title cta" "top desc cta" "top meta cta"; }
}
@media (max-width: 1023px) {
	.vdt-tools .vdtt-hero__inner { grid-template-columns: 1fr; gap: 24px; }
	.vdt-tools .vdtt-cats, .vdt-tools .vdtt-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vdt-tools .vdtt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vdt-tools .vdtt-steps li:nth-child(2) { border-right: 0; }
	.vdt-tools .vdtt-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--vdtt-border); }
	.vdt-tools .vdtt-dir__layout { grid-template-columns: 1fr; }
	.vdt-tools .vdtt-dir__filter-toggle { display: inline-flex; }
	.vdt-tools .vdtt-filters { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(380px, 92vw); max-height: none; border-radius: 0; z-index: 99991; transform: translateX(105%); transition: transform 200ms var(--vdtt-ease); visibility: hidden; padding-bottom: 96px; overflow-y: auto; }
	.vdt-tools .vdtt-filters[data-open="1"] { transform: none; visibility: visible; }
	.vdt-tools .vdtt-filters__close { display: inline-flex; }
	.vdt-tools.vdtt-js .vdtt-filters__apply { display: inline-flex !important; width: 100%; }
	.vdt-tools:not(.vdtt-js) .vdtt-filters { position: static; transform: none; visibility: visible; width: auto; z-index: auto; border-radius: var(--vdtt-radius); }
	.vdt-tools:not(.vdtt-js) .vdtt-dir__filter-toggle { display: none; }
	.vdt-tools .vdtt-tool__grid--main { grid-template-columns: 1fr; }
	.vdt-tools .vdtt-wizard { grid-template-columns: 1fr; }
	.vdt-tools .vdtt-wizard__nav { position: static; }
	.vdt-tools .vdtt-wizard__summary { grid-column: auto; }
	.vdt-tools .vdtt-stepper--vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.vdt-tools .vdtt-wrap { padding-inline: 16px; }
	.vdt-tools .vdtt-wordmark__tag { display: none; }
	.vdt-tools .vdtt-productbar__inner { gap: 4px; padding-block: 6px; }
	.vdt-tools .vdtt-productnav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
	.vdt-tools .vdtt-productnav a { white-space: nowrap; }
	.vdt-tools .vdtt-hero { padding-top: 28px; }
	.vdt-tools .vdtt-hero__search { padding: 16px; }
	.vdt-tools .vdtt-searchbox { flex-wrap: wrap; padding: 4px 4px 4px 12px; }
	.vdt-tools .vdtt-hero .vdtt-searchbox button { width: 100%; margin: 0 0 0 -8px; }
	.vdt-tools .vdtt-hero__stats > div { padding-right: 16px; margin-right: 16px; }
	.vdt-tools .vdtt-hero__stats dd { font-size: 22px; }
	.vdt-tools .vdtt-cats, .vdt-tools .vdtt-grid--3, .vdt-tools .vdtt-steps { grid-template-columns: 1fr; }
	.vdt-tools .vdtt-steps li { border-right: 0; border-bottom: 1px solid var(--vdtt-border); }
	.vdt-tools .vdtt-steps li:last-child { border-bottom: 0; }
	.vdt-tools .vdtt-cta-band { padding: 22px 18px; }
	.vdt-tools .vdtt-tool__grid--3 { grid-template-columns: 1fr; }
	.vdt-tools .vdtt-tool__grid--3 > .vdtt-aside { grid-template-columns: 1fr; }
	.vdt-tools .vdtt-row, .vdt-tools .vdtt-row--3 { grid-template-columns: 1fr; }
	.vdt-tools .vdtt-panel { padding: 16px; }
	.vdt-tools .vdtt-cards--luoi { grid-template-columns: 1fr; }
	.vdt-tools .vdtt-cards--danh-sach .vdtt-card { display: flex; }
	.vdt-tools .vdtt-toolbar__actions { width: 100%; }
	.vdt-tools .vdtt-segmented span { display: none; }
	.vdt-tools .vdtt-segmented button { min-width: 44px; justify-content: center; }
	.vdt-tools .vdtt-file { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; row-gap: 8px; }
	.vdt-tools .vdtt-file > .vdtt-chip { grid-column: 2; justify-self: start; }
	.vdt-tools .vdtt-stepper, .vdt-tools .vdtt-stepper--vertical { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.vdt-tools .vdtt-stepper button { flex-direction: column; justify-content: center; gap: 4px; min-height: 56px; padding: 6px 4px; text-align: center; font-size: 12px; }
	.vdt-tools .vdtt-stepper__label { display: none; }
	.vdt-tools .vdtt-stepper button[aria-current="step"] .vdtt-stepper__label { display: block; line-height: 1.2; }
	/* Bảng → thẻ dòng có tiêu đề cột */
	.vdt-tools .vdtt-tablewrap:has(.vdtt-table--cards) { border: 0; overflow: visible; }
	.vdt-tools .vdtt-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.vdt-tools .vdtt-table--cards, .vdt-tools .vdtt-table--cards tbody, .vdt-tools .vdtt-table--cards tr, .vdt-tools .vdtt-table--cards td { display: block; width: 100%; }
	.vdt-tools .vdtt-table--cards tbody tr { border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); margin-bottom: 10px; padding: 6px 12px; background: #fff; }
	.vdt-tools .vdtt-table--cards td { display: grid; grid-template-columns: 42% 1fr; gap: 8px; border-bottom: 1px dotted var(--vdtt-border); padding: 8px 0; text-align: left !important; }
	.vdt-tools .vdtt-table--cards td:last-child { border-bottom: 0; }
	.vdt-tools .vdtt-table--cards td::before { content: attr(data-label); color: var(--vdtt-muted); font-size: 12.5px; font-weight: 600; }
	.vdt-tools .vdtt-table--cards td.vdtt-rowactions { display: flex; justify-content: flex-end; }
	.vdt-tools .vdtt-table--cards td.vdtt-rowactions::before { content: none; }
	.vdt-tools .vdtt-table--cards tfoot { display: block; }
	.vdt-tools .vdtt-table--cards tfoot tr { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); background: var(--vdtt-paper); }
	.vdt-tools .vdtt-table--cards tfoot th, .vdt-tools .vdtt-table--cards tfoot td { display: block; border: 0; padding: 0; background: transparent; }
	.vdt-tools .vdtt-toasts { bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
	.vdt-tools *, .vdt-tools *::before, .vdt-tools *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.vdt-tools .vdtt-productbar, .vdt-tools .vdtt-preview-banner, .vdt-tools .vdtt-actions, .vdt-tools .vdtt-stepnav, .vdt-tools .vdtt-aside { display: none !important; }
}

/* ---------- Tương thích plugin liên hệ nổi (button-contact-nt) — CHỈ trên trang VDT Tools ----------
 * Khung .bcnt-fab-wrap (fixed, 141×356 px, góc phải dưới) trong suốt nhưng nhận click, che nút của công cụ khi cuộn.
 * Cho khung xuyên click, giữ nguyên các nút bên trong. Không ảnh hưởng trang khác (body.vdt-tools-body). */
body.vdt-tools-body .bcnt-fab-wrap { pointer-events: none; }
body.vdt-tools-body .bcnt-fab-wrap > * { pointer-events: auto; }

/* ===== P03 workspace (chỉ trong .vdt-tools, không ảnh hưởng theme) ===== */
.vdt-tools .vdtt-ws-intro { max-width: 72ch; margin: -4px 0 20px; color: var(--vdtt-text); }
.vdt-tools .vdtt-ws-group { margin: 0 0 18px; padding: 14px 14px 4px; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); }
.vdt-tools .vdtt-ws-group > .vdtt-legend { padding: 0 6px; font-weight: 600; color: var(--vdtt-navy); }
.vdt-tools .vdtt-field[hidden] { display: none; }
.vdt-tools .vdtt-ws-bool { margin: 0; padding: 0; border: 0; min-width: 0; }
.vdt-tools .vdtt-ws-bool > legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--vdtt-text); }
.vdt-tools .vdtt-ws-bool .vdtt-segmented label { position: relative; display: inline-flex; }
.vdt-tools .vdtt-ws-bool .vdtt-segmented label + label { border-left: 1px solid var(--vdtt-border); }
.vdt-tools .vdtt-ws-bool .vdtt-segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vdt-tools .vdtt-ws-bool .vdtt-segmented span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: var(--vdtt-muted); }
.vdt-tools .vdtt-ws-bool .vdtt-segmented input:checked + span { background: var(--vdtt-navy); color: #fff; }
.vdt-tools .vdtt-ws-bool .vdtt-segmented input:focus-visible + span { outline: 3px solid var(--vdtt-blue); outline-offset: -3px; } /* P06: --vdtt-focus là box-shadow, không dùng được cho outline */
.vdt-tools .vdtt-ws-tablelabel { margin: 0 0 6px; font-weight: 600; }
.vdt-tools .vdtt-ws-input-table td { vertical-align: top; min-width: 120px; }
.vdt-tools .vdtt-ws-input-table td.vdtt-num, .vdt-tools .vdtt-ws-input-table td:last-child { min-width: 0; width: 1%; }
.vdt-tools .vdtt-ws-input-table .vdtt-input input, .vdt-tools .vdtt-ws-input-table .vdtt-input select { min-width: 110px; }
.vdt-tools .vdtt-ws-input-table [aria-invalid="true"] { border-color: var(--vdtt-danger); box-shadow: 0 0 0 1px var(--vdtt-danger); }
.vdt-tools .vdtt-ws-addrow { margin-top: 8px; }
.vdt-tools .vdtt-ws-csv { font-family: ui-monospace, Consolas, monospace; font-size: 13px; white-space: pre; }
.vdt-tools .vdtt-ws-fixtures { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.vdt-tools .vdtt-ws-src { margin: 4px 0 0; font-size: 13px; color: var(--vdtt-teal-ink); }
.vdt-tools .vdtt-ws-status { margin-bottom: 14px; }
.vdt-tools .vdtt-ws-status p { margin: 0 0 4px; }
.vdt-tools .vdtt-ws-branch { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--vdtt-border); border-left: 4px solid var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); background: #fff; }
.vdt-tools .vdtt-ws-branch--pass { border-left-color: var(--vdtt-success); }
.vdt-tools .vdtt-ws-branch--fail { border-left-color: var(--vdtt-danger); }
.vdt-tools .vdtt-ws-branch--unknown { border-left-color: var(--vdtt-warning); }
.vdt-tools .vdtt-ws-branch > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.vdt-tools .vdtt-ws-branch h4 { margin: 0; font-size: 16px; color: var(--vdtt-navy); }
.vdt-tools .vdtt-ws-reason { margin: 4px 0 8px; color: var(--vdtt-text); }
.vdt-tools .vdtt-ws-sub { margin: 8px 0 2px; font-weight: 600; font-size: 14px; }
.vdt-tools .vdtt-ws-dl { display: grid; gap: 6px; margin: 6px 0; }
.vdt-tools .vdtt-ws-dl > div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--vdtt-border); }
.vdt-tools .vdtt-ws-dl dt { color: var(--vdtt-muted); font-size: 14px; }
.vdt-tools .vdtt-ws-dl dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vdt-tools .vdtt-ws-missing, .vdt-tools .vdtt-ws-assume { margin: 2px 0 6px 18px; padding: 0; font-size: 14px; }
.vdt-tools .vdtt-ws-rows { display: grid; gap: 8px; margin-top: 6px; }
.vdt-tools .vdtt-ws-row { padding: 8px 10px; background: var(--vdtt-paper); border-radius: var(--vdtt-radius-s); }
.vdt-tools .vdtt-ws-row > p { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.vdt-tools .vdtt-ws-ev, .vdt-tools .vdtt-ws-warn, .vdt-tools .vdtt-ws-echo { margin-top: 8px; }
.vdt-tools .vdtt-ws-ev summary, .vdt-tools .vdtt-ws-warn summary, .vdt-tools .vdtt-ws-echo summary { cursor: pointer; min-height: 32px; font-weight: 600; color: var(--vdtt-blue-ink); }
.vdt-tools .vdtt-ws-ev ul { margin: 6px 0 0 18px; padding: 0; font-size: 14px; }
.vdt-tools .vdtt-ws-ev blockquote { margin: 4px 0; padding: 6px 10px; border-left: 3px solid var(--vdtt-border-strong); background: var(--vdtt-paper); font-size: 13px; }
.vdt-tools .vdtt-ws-meta { margin: 8px 0 0; font-size: 12.5px; color: var(--vdtt-muted); }
.vdt-tools .vdtt-ws-check { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.vdt-tools .vdtt-ws-check li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 8px 0; border-bottom: 1px dashed var(--vdtt-border); }
.vdt-tools .vdtt-ws-check small { grid-column: 2; color: var(--vdtt-muted); }
.vdt-tools .vdtt-ws-gantt { display: grid; gap: 6px; margin: 8px 0 12px; }
.vdt-tools .vdtt-ws-gantt__row { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 10px; align-items: center; font-size: 13px; }
.vdt-tools .vdtt-ws-gantt__track { position: relative; height: 10px; background: var(--vdtt-paper); border-radius: 5px; }
.vdt-tools .vdtt-ws-gantt__dot { position: absolute; top: -3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--vdtt-blue); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--vdtt-blue); }
.vdt-tools .vdtt-ws-gantt__dot--legal { background: var(--vdtt-danger); box-shadow: 0 0 0 1px var(--vdtt-danger); border-radius: 3px; }
.vdt-tools .vdtt-ws-gantt__dot--computed { background: var(--vdtt-teal); box-shadow: 0 0 0 1px var(--vdtt-teal); }
.vdt-tools .vdtt-ws-howto { margin: 0 0 0 18px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.vdt-tools .vdtt-ws-rules { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.vdt-tools .vdtt-ws-rules li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vdt-tools .vdtt-ws-rules code { font-size: 12px; overflow-wrap: anywhere; }
.vdt-tools .vdtt-ws-ruletitle { flex-basis: 100%; color: var(--vdtt-muted); }
.vdt-tools .vdtt-ws-dlpl { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed var(--vdtt-teal); border-radius: var(--vdtt-radius-s); background: var(--vdtt-teal-soft); }
.vdt-tools .vdtt-ws-dlpl h3 { margin: 0 0 6px; font-size: 15px; color: var(--vdtt-teal-ink); }
.vdt-tools .vdtt-ws-dlpl .vdtt-ws-dlpl__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.vdt-tools .vdtt-ws-dlpl .vdtt-ws-dlpl__row .vdtt-field { flex: 1 1 200px; margin: 0; }
.vdt-tools .vdtt-ws-dlpl__results { margin-top: 10px; display: grid; gap: 8px; }
.vdt-tools .vdtt-ws-dlpl__item { padding: 10px; background: #fff; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); font-size: 14px; }
.vdt-tools .vdtt-ws-dlpl__item dl { margin: 6px 0; }
@media (max-width: 600px) {
	.vdt-tools .vdtt-ws-dl > div { grid-template-columns: 1fr; gap: 2px; }
	.vdt-tools .vdtt-ws-dl dd { text-align: left; }
	.vdt-tools .vdtt-ws-gantt__row { grid-template-columns: 1fr; }
}
@media print {
	.vdt-tools .vdtt-form-panel, .vdt-tools .vdtt-aside, .vdt-tools .vdtt-ws-outactions, .bcnt-dock, .bcnt-fab-wrap { display: none !important; }
	.vdt-tools .vdtt-ws-ev[open] blockquote { break-inside: avoid; }
	.vdt-tools details { display: block; }
}
/* P03: chống tràn ngang — fieldset mặc định min-width:min-content; ô grid 1fr có min auto. */
.vdt-tools .vdtt-ws .vdtt-tool__grid > *, .vdt-tools .vdtt-ws-group, .vdt-tools .vdtt-ws-bool { min-width: 0; }
.vdt-tools .vdtt-ws .vdtt-tool__grid--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, .82fr); }
.vdt-tools .vdtt-ws--wide .vdtt-tool__grid--3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); }
.vdt-tools .vdtt-ws--wide .vdtt-form-panel { grid-column: 1 / -1; }
@media (max-width: 1279px) {
	.vdt-tools .vdtt-ws .vdtt-tool__grid--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.vdt-tools .vdtt-ws .vdtt-tool__grid--3, .vdt-tools .vdtt-ws--wide .vdtt-tool__grid--3 { grid-template-columns: minmax(0, 1fr); }
}
/* Phần tử định vị tuyệt đối trong bảng nhập (hậu tố "đồng", radio) phải lấy khối chứa BÊN TRONG vùng cuộn, nếu không sẽ thoát clipping và làm trang tràn ngang. */
.vdt-tools .vdtt-ws .vdtt-tablewrap, .vdt-tools .vdtt-ws-input-table td { position: relative; }

/* ===== P04 — không gian lập hồ sơ (4 bước) ===== */
.vdt-tools .vdtt-doc__grid { display: grid; grid-template-columns: 216px minmax(0, 1fr) minmax(280px, 330px); gap: 20px; align-items: start; }
.vdt-tools .vdtt-doc-steps { position: sticky; top: 96px; }
.vdt-tools .vdtt-doc-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: none; }
.vdt-tools .vdtt-doc-steps li { margin: 0; padding: 0; }
.vdt-tools .vdtt-doc-step { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--vdtt-radius-s); background: transparent; font: inherit; text-align: left; color: var(--vdtt-muted); cursor: pointer; transition: background var(--vdtt-t) var(--vdtt-ease), border-color var(--vdtt-t) var(--vdtt-ease); }
.vdt-tools .vdtt-doc-step:hover { background: var(--vdtt-surface); border-color: var(--vdtt-border); color: var(--vdtt-text); }
.vdt-tools .vdtt-doc-step:focus-visible { outline: none; box-shadow: var(--vdtt-focus); }
.vdt-tools .vdtt-doc-step__n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--vdtt-border-strong); font-weight: 700; font-size: 14px; background: var(--vdtt-surface); }
.vdt-tools .vdtt-doc-step__t { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.vdt-tools .vdtt-doc-step__s { font-size: 13px; font-weight: 700; color: var(--vdtt-success); }
.vdt-tools .vdtt-doc-step[aria-current="step"] { background: var(--vdtt-surface); border-color: var(--vdtt-border); color: var(--vdtt-navy); box-shadow: inset 3px 0 0 var(--vdtt-navy); }
.vdt-tools .vdtt-doc-step[aria-current="step"] .vdtt-doc-step__n { background: var(--vdtt-navy); border-color: var(--vdtt-navy); color: #fff; }
.vdt-tools .vdtt-doc-main { padding: 22px 22px 18px; }
.vdt-tools .vdtt-doc-pane__title { margin: 0 0 14px; font-size: 19px; color: var(--vdtt-navy); }
.vdt-tools .vdtt-doc-pane__title:focus, .vdt-tools .vdtt-doc-pane__title:focus-visible { outline: none; box-shadow: none; border: 0; }
.vdt-tools .vdtt-doc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--vdtt-border); }
.vdt-tools .vdtt-doc-nav [data-vdtt-next] { margin-left: auto; }
.vdt-tools .vdtt-doc-empty { margin: 0; padding: 16px; border: 1px dashed var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); color: var(--vdtt-muted); background: var(--vdtt-paper); }
.vdt-tools .vdtt-doc-suggest { padding: 4px 0; min-height: 36px; }
.vdt-tools .vdtt-doc-status { margin: 0 0 6px; }
.vdt-tools .vdtt-doc-checks, .vdt-tools .vdtt-doc-plan, .vdt-tools .vdtt-doc-files { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.vdt-tools .vdtt-doc-checks li, .vdt-tools .vdtt-doc-plan li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); background: var(--vdtt-surface); }
.vdt-tools .vdtt-doc-checks li .vdtt-st, .vdt-tools .vdtt-doc-plan li .vdtt-st { flex: none; margin-top: 1px; }
.vdt-tools .vdtt-doc-check--error { border-left: 4px solid var(--vdtt-danger) !important; }
.vdt-tools .vdtt-doc-check--warn { border-left: 4px solid var(--vdtt-warning) !important; }
.vdt-tools .vdtt-doc-sum th { width: 60%; font-weight: 500; text-align: left; color: var(--vdtt-text); background: var(--vdtt-paper); }
.vdt-tools .vdtt-doc-sum td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.vdt-tools .vdtt-doc-src { font-size: 12.5px; color: var(--vdtt-teal-ink); }
.vdt-tools .vdtt-doc-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; }
.vdt-tools .vdtt-doc-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--vdtt-navy); }
.vdt-tools .vdtt-doc-check.is-disabled { cursor: not-allowed; opacity: .6; }
.vdt-tools .vdtt-doc-done { margin-top: 14px; padding: 16px; border: 1px solid #c4e5d2; border-radius: var(--vdtt-radius); background: var(--vdtt-success-soft); }
.vdt-tools .vdtt-doc-done__title { margin: 0 0 10px; font-weight: 600; }
.vdt-tools .vdtt-doc-dl { margin: 4px 0 8px; max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.vdt-tools .vdtt-doc-dl.is-used { background: #eef2f7; color: var(--vdtt-muted); border-color: var(--vdtt-border); pointer-events: none; }
.vdt-tools .vdtt-doc-files li { padding: 8px 0; border-top: 1px solid #c4e5d2; overflow-wrap: anywhere; }
.vdt-tools .vdtt-doc-working { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--vdtt-muted); }
.vdt-tools .vdtt-spinner { width: 18px; height: 18px; border: 2px solid var(--vdtt-border-strong); border-top-color: var(--vdtt-navy); border-radius: 50%; animation: vdtt-spin .8s linear infinite; }
@keyframes vdtt-spin { to { transform: rotate(360deg); } }
.vdt-tools .vdtt-doc-aside { display: grid; gap: 16px; min-width: 0; }
.vdt-tools .vdtt-doc-outlist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.vdt-tools .vdtt-doc-out { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--vdtt-border); border-radius: var(--vdtt-radius-s); background: var(--vdtt-paper); }
.vdt-tools .vdtt-doc-out[data-vdtt-state="ready"] { border-color: #c4e5d2; background: #fff; }
.vdt-tools .vdtt-doc-out__name { margin: 0 0 4px; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--vdtt-text); }
.vdt-tools .vdtt-doc-out__meta { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--vdtt-muted); }
.vdt-tools .vdtt-doc-ftype { display: inline-flex; align-items: flex-end; justify-content: center; width: 36px; height: 44px; padding-bottom: 5px; border-radius: 4px 12px 4px 4px; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.vdt-tools .vdtt-doc-ftype--docx { background: #2b579a; }
.vdt-tools .vdtt-doc-ftype--xlsx { background: #217346; }
.vdt-tools .vdtt-doc-badge { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 12px; font-weight: 600; border: 1px solid; }
.vdt-tools .vdtt-doc-badge--official { color: #1e3a8a; background: var(--vdtt-blue-soft); border-color: #cddcfb; }
.vdt-tools .vdtt-doc-badge--internal { color: #6b4e00; background: #fff8e1; border-color: #f0dca0; }
.vdt-tools .vdtt-doc-badge--webform { color: var(--vdtt-teal-ink); background: var(--vdtt-teal-soft); border-color: #b8e0da; }
.vdt-tools .vdtt-doc-badge--blocked { color: var(--vdtt-danger); background: var(--vdtt-danger-soft); border-color: #f5c2bd; }
.vdt-tools .vdtt-doc .vdtt-tablewrap, .vdt-tools .vdtt-doc .vdtt-ws-input-table td { position: relative; }
@media (max-width: 1279px) {
	.vdt-tools .vdtt-doc__grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); }
	.vdt-tools .vdtt-doc-steps { grid-column: 1 / -1; position: static; }
	.vdt-tools .vdtt-doc-steps ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.vdt-tools .vdtt-doc-step[aria-current="step"] { box-shadow: inset 0 -3px 0 var(--vdtt-navy); }
}
@media (max-width: 1023px) {
	.vdt-tools .vdtt-doc__grid { grid-template-columns: minmax(0, 1fr); }
	.vdt-tools .vdtt-doc-aside { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 767px) {
	.vdt-tools .vdtt-doc-steps ol { gap: 2px; }
	.vdt-tools .vdtt-doc-step { grid-template-columns: 1fr; justify-items: center; gap: 4px; min-height: 64px; padding: 6px 2px; text-align: center; }
	.vdt-tools .vdtt-doc-step__t { font-size: 12px; }
	.vdt-tools .vdtt-doc-step__s { display: none; }
	.vdt-tools .vdtt-doc-main { padding: 16px 14px; }
	.vdt-tools .vdtt-doc-aside { grid-template-columns: minmax(0, 1fr); }
	.vdt-tools .vdtt-doc-nav .vdtt-btn { flex: 1 1 0; justify-content: center; }
}
@media print {
	.vdt-tools .vdtt-doc-steps, .vdt-tools .vdtt-doc-nav, .vdt-tools .vdtt-doc-aside { display: none; }
}

/* P04 — DT-058 nạp XLSX */
.vdt-tools .vdtt-ws-xlsx { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed var(--vdtt-border-strong); border-radius: var(--vdtt-radius-s); background: var(--vdtt-paper); }
.vdt-tools .vdtt-ws-xlsx__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vdt-tools .vdtt-ws-xlsx__row input[type=file] { max-width: 100%; min-height: 44px; font-size: 14px; }
.vdt-tools .vdtt-ws-xlsx__row select { min-height: 44px; }

/* ===== P06 UXSEO (chỉ trang VDT Tools) ===== */
/* Focus không bị che (WCAG 2.4.11): chừa chỗ cho header dính của theme và thanh liên hệ đáy khi cuộn tới phần tử được focus. */
html:has(#vdtt-main) { scroll-padding-top: 120px; scroll-padding-bottom: 24px; }
@media (max-width: 767px) { html:has(#vdtt-main) { scroll-padding-top: 84px; scroll-padding-bottom: 96px; } }
/* Vùng chạm tối thiểu 24 px (WCAG 2.5.8) cho liên kết đứng riêng: breadcrumb, dải xem trước, công cụ liên quan. */
.vdt-tools .vdtt-breadcrumb a, .vdt-tools .vdtt-breadcrumb [aria-current] { display: inline-block; padding: 3px 0; }
.vdt-tools .vdtt-preview-banner a { display: inline-flex; align-items: center; min-height: 32px; }
.vdt-tools .vdtt-preview-banner__guest { display: inline; margin-left: 4px; }
.vdt-tools .vdtt-related a { display: inline-block; padding: 4px 0; }
.vdt-tools p.vdtt-section__note { margin: 0; flex-basis: 100%; color: var(--vdtt-muted); font-size: 13.5px; }
.vdt-tools .vdtt-empty--soon { text-align: left; display: grid; gap: 4px; justify-items: start; padding: 28px; border-style: solid; }
.vdt-tools .vdtt-empty--soon h2, .vdt-tools .vdtt-empty--soon h3 { margin: 6px 0 2px; color: var(--vdtt-navy); font-size: 19px; }
.vdt-tools .vdtt-empty--soon p { margin: 0 0 10px; max-width: 70ch; text-align: left; }
.vdt-tools .vdtt-empty--soon .vdtt-icon { color: var(--vdtt-teal-ink); }
/* Thông tin công cụ (cột phải) */
.vdt-tools .vdtt-facts__list { margin: 0; display: grid; gap: 10px; }
.vdt-tools .vdtt-facts__list > div { display: grid; gap: 2px; }
.vdt-tools .vdtt-facts__list dt { font-size: 12.5px; font-weight: 600; color: var(--vdtt-muted); text-transform: none; }
.vdt-tools .vdtt-facts__list dd { margin: 0; font-size: 14px; color: var(--vdtt-text); overflow-wrap: anywhere; }
.vdt-tools .vdtt-section__head .vdtt-link { display: inline-block; padding: 6px 0; }

/* P06 DOCGEN: vùng chạm ≥ 44px cho điều khiển chính của không gian lập hồ sơ (chuyển từ template vào CSS chung, P06). */
.vdt-tools .vdtt-doc .vdtt-btn, .vdt-tools .vdtt-doc .vdtt-doc-step, .vdt-tools .vdtt-doc [data-vdtt-pick] .vdtt-doc-check, .vdt-tools .vdtt-doc .vdtt-doc-summary .vdtt-doc-check{min-height:44px}
.vdt-tools .vdtt-doc .vdtt-linkbtn, .vdt-tools .vdtt-doc .vdtt-check--inline{display:inline-flex;align-items:center;gap:.4em;min-height:44px}
.vdt-tools .vdtt-doc .vdtt-check--inline{margin-right:1.25em}
