/* Máy Tính Bàn Daklak — Build PC tham khảo DIY slots
   Tông trắng · accent #d4e000 · full-width · P9 desk 3-col · P10 perf */
:root {
  --mtbd-bg: #f5f5f5;
  --mtbd-surface: #ffffff;
  --mtbd-elev: #ffffff;
  --mtbd-elev2: #f8fafc;
  --mtbd-line: #e2e8f0;
  --mtbd-line2: #cbd5e1;
  --mtbd-text: #0f172a;
  --mtbd-muted: #475569;
  --mtbd-accent: #d4e000;
  --mtbd-ink: #1a1a00;
  --mtbd-ok: #166534;
  --mtbd-warn: #92400e;
  --mtbd-bad: #b91c1c;
  --mtbd-r: 18px;
  --mtbd-rs: 12px;
  --mtbd-bottom: 108px;
  --mtbd-side-w: 0px;
  --mtbd-font: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mtbd-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.mtbd-tk, .mtbd-tk * { box-sizing: border-box; }
.mtbd-tk {
  background:
    radial-gradient(1000px 420px at 12% -80px, rgba(212,224,0,.08), transparent 55%),
    var(--mtbd-bg);
  color: var(--mtbd-text);
  font-family: var(--mtbd-font);
  min-height: 55vh;
  padding-bottom: calc(var(--mtbd-bottom) + 28px);
  line-height: 1.45;
}
.mtbd-tk a { color: var(--mtbd-accent); }
.mtbd-shell { max-width: 1280px; margin: 0 auto; padding: 16px 18px 28px; width: 100%; }
.mtbd-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Hero */
.mtbd-hero--diy {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(200px,.7fr);
  gap: 18px; align-items: stretch;
  background: linear-gradient(145deg, #151510 0%, var(--mtbd-surface) 50%, #121212 100%);
  border: 1px solid var(--mtbd-line); border-radius: 24px;
  padding: 24px 22px 20px; margin-bottom: 14px;
}
.mtbd-hero-glow {
  position: absolute; inset: -30% auto auto -8%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,224,0,.16), transparent 68%);
  pointer-events: none;
}
.mtbd-hero-copy { position: relative; z-index: 1; }
.mtbd-brand-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 6px 12px 6px 10px;
  border-radius: 999px; border: 1px solid rgba(212,224,0,.35);
  background: rgba(212,224,0,.08);
  font-size: 12px; font-weight: 750; letter-spacing: .04em;
  text-transform: uppercase; color: var(--mtbd-accent);
}
.mtbd-brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mtbd-accent); box-shadow: 0 0 10px rgba(212,224,0,.8);
}
.mtbd-hero--diy h1 {
  margin: 0 0 10px; font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.1; color: #fff;
}
.mtbd-lead { margin: 0; max-width: 58ch; color: var(--mtbd-muted); font-size: 14.5px; }
.mtbd-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mtbd-hero-stat {
  min-width: 100px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid var(--mtbd-line); background: rgba(0,0,0,.28);
}
.mtbd-hero-stat strong { display: block; font-size: 1rem; font-weight: 850; color: var(--mtbd-accent); }
.mtbd-hero-stat span { display: block; font-size: 11px; color: var(--mtbd-muted); margin-top: 2px; }
.mtbd-hero-aside { position: relative; z-index: 1; display: flex; }
.mtbd-hero-aside-card {
  width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 16px; border-radius: 16px; border: 1px dashed rgba(212,224,0,.35);
  background: rgba(0,0,0,.35);
}
.mtbd-badge {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  background: var(--mtbd-accent); color: var(--mtbd-ink);
  font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.mtbd-hero-aside-card p { margin: 0; font-size: 13px; color: var(--mtbd-muted); }

/* Suggest bar (optional) */
.mtbd-suggest-bar {
  margin-bottom: 14px; padding: 14px 16px;
  border-radius: var(--mtbd-r); border: 1px solid var(--mtbd-line);
  background: var(--mtbd-surface);
}
.mtbd-suggest-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 10px;
}
.mtbd-suggest-head strong { font-size: 14px; }
.mtbd-suggest-hint { font-size: 12px; color: var(--mtbd-muted); }
.mtbd-suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mtbd-chip {
  appearance: none; border: 1px solid var(--mtbd-line2); background: var(--mtbd-elev);
  color: var(--mtbd-text); border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 650; cursor: pointer; min-height: 40px;
  transition: border-color .15s, background .15s, color .15s;
}
.mtbd-chip:hover { border-color: var(--mtbd-accent); }
.mtbd-chip.is-on {
  background: rgba(212,224,0,.14); border-color: var(--mtbd-accent); color: var(--mtbd-accent);
}
.mtbd-suggest-presets {
  display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.mtbd-suggest-presets[hidden] { display: none !important; }
.mtbd-preset-mini {
  flex: 0 0 min(260px, 78vw); scroll-snap-align: start;
  text-align: left; padding: 12px; border-radius: 14px;
  border: 1px solid var(--mtbd-line); background: var(--mtbd-elev);
  color: inherit; cursor: pointer; min-height: 44px;
}
.mtbd-preset-mini.is-on { border-color: var(--mtbd-accent); box-shadow: inset 0 0 0 1px var(--mtbd-accent); }
.mtbd-preset-mini .nm { font-weight: 750; font-size: 13px; margin-bottom: 4px; }
.mtbd-preset-mini .pr { font-family: var(--mtbd-mono); color: var(--mtbd-accent); font-weight: 700; font-size: 13px; }
.mtbd-preset-mini .tg { font-size: 11px; color: var(--mtbd-muted); margin-top: 4px; }

/* Build full-width (no slip / no right receipt) */
.mtbd-build--full,
.mtbd-grid--diy {
  display: block;
  width: 100%;
  max-width: 100%;
}
.mtbd-main--full,
.mtbd-main { min-width: 0; width: 100%; }
.mtbd-side,
.mtbd-receipt,
.mtbd-receipt--sticky,
.mtbd-slip,
[class*="mtbd-slip"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
}

.mtbd-panel {
  background: var(--mtbd-surface); border: 1px solid var(--mtbd-line);
  border-radius: var(--mtbd-r); padding: 18px 18px 14px; margin-bottom: 14px;
}
.mtbd-panel--slots {
  background:
    linear-gradient(180deg, rgba(212,224,0,.03), transparent 120px),
    var(--mtbd-surface);
}
.mtbd-panel-head { margin-bottom: 14px; }
.mtbd-step-kicker {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mtbd-accent); margin-bottom: 6px;
}
.mtbd-h2 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 850; letter-spacing: -.02em; }
.mtbd-sub { margin: 0; font-size: 13.5px; color: var(--mtbd-muted); max-width: 72ch; }

/* Slot rows — wide cards */
.mtbd-slot-list { display: flex; flex-direction: column; gap: 12px; }
.mtbd-slot-row {
  display: grid;
  grid-template-columns: minmax(148px, 200px) minmax(0,1fr);
  gap: 14px 18px; align-items: center;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--mtbd-line); background: var(--mtbd-elev);
  transition: border-color .2s, opacity .2s, box-shadow .2s, background .2s;
}
.mtbd-slot-row:hover { border-color: var(--mtbd-line2); }
.mtbd-slot-row.is-locked { opacity: .52; }
.mtbd-slot-row.has-item {
  border-color: rgba(212,224,0,.38);
  background: linear-gradient(135deg, #161610 0%, #141412 100%);
  box-shadow: 0 0 0 1px rgba(212,224,0,.08);
}
.mtbd-slot-row.hq-slot-just-updated { animation: mtbdFlash .45s ease; }
@keyframes mtbdFlash {
  from { box-shadow: 0 0 0 0 rgba(212,224,0,.5); }
  to { box-shadow: 0 0 0 10px rgba(212,224,0,0); }
}
.mtbd-slot-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mtbd-slot-ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(212,224,0,.1); border: 1px solid rgba(212,224,0,.28);
  color: var(--mtbd-accent); font-size: 10px; font-weight: 800; letter-spacing: .02em;
}
.mtbd-slot-title { font-weight: 780; font-size: 14.5px; letter-spacing: -.01em; }
.slot-status-text { display: block; font-size: 12px; color: var(--mtbd-muted); margin-top: 2px; }
.mtbd-slot-body { min-width: 0; width: 100%; }
.mtbd-btn {
  appearance: none; border: 1px solid transparent; border-radius: 12px;
  padding: 10px 16px; font-weight: 750; font-size: 14px; cursor: pointer;
  font-family: inherit; min-height: 44px; transition: background .15s, border-color .15s, color .15s, filter .15s;
}
.mtbd-btn:disabled { opacity: .45; cursor: not-allowed; }
.mtbd-btn-primary {
  background: var(--mtbd-accent); color: var(--mtbd-ink); border-color: var(--mtbd-accent);
}
.mtbd-btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.mtbd-btn-ghost {
  background: transparent; color: var(--mtbd-text); border-color: var(--mtbd-line2);
}
.mtbd-btn-ghost:hover:not(:disabled) { border-color: var(--mtbd-accent); color: var(--mtbd-accent); }
.mtbd-btn-pick {
  background: transparent; color: var(--mtbd-accent);
  border: 1px dashed rgba(212,224,0,.55); min-width: 120px;
}
.mtbd-btn-pick:hover:not(:disabled) { background: rgba(212,224,0,.08); }
.mtbd-btn-zalo { border-color: #2a6dff; color: #8cbcff; }
.mtbd-btn-zalo:hover:not(:disabled) { border-color: #5a95ff; color: #b5d4ff; }
.mtbd-btn-capture { border-color: rgba(212,224,0,.45); color: var(--mtbd-accent); }

/* Selected card — spacious */
.mtbd-sel {
  display: grid; grid-template-columns: 80px minmax(0,1fr) auto;
  gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.32);
  border: 1px solid var(--mtbd-line);
}
.mtbd-sel + .mtbd-sel { margin-top: 10px; }
.mtbd-sel img {
  width: 80px; height: 80px; object-fit: contain; border-radius: 12px;
  background: #0a0a0a; border: 1px solid var(--mtbd-line);
}
.mtbd-sel-name {
  font-size: 14.5px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mtbd-sel-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.mtbd-tag {
  font-size: 10px; font-weight: 750; padding: 2px 8px; border-radius: 999px;
  background: rgba(212,224,0,.12); color: var(--mtbd-accent); border: 1px solid rgba(212,224,0,.3);
}
.mtbd-tag-bh { background: rgba(111,219,154,.1); color: var(--mtbd-ok); border-color: rgba(111,219,154,.3); }
.mtbd-sel-price {
  font-family: var(--mtbd-mono); font-size: 16px; font-weight: 800;
  color: var(--mtbd-accent); margin-top: 6px; letter-spacing: -.01em;
}
.mtbd-sel-actions { display: flex; flex-direction: column; gap: 8px; }
.mtbd-mini {
  appearance: none; border: 1px solid var(--mtbd-line2); background: var(--mtbd-elev2);
  color: var(--mtbd-text); border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; cursor: pointer; min-height: 40px; font-family: inherit;
  white-space: nowrap;
}
.mtbd-mini-accent { border-color: rgba(212,224,0,.5); color: var(--mtbd-accent); }
.mtbd-mini:hover { border-color: var(--mtbd-accent); }
.mtbd-add-more {
  margin-top: 10px; width: 100%;
  border-style: dashed !important;
}

/* Compat banner (used in sticky bottom) */
.mtbd-compat {
  padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 650;
  background: rgba(255,255,255,.04); border: 1px solid var(--mtbd-line);
}
.mtbd-compat.is-ok { background: rgba(111,219,154,.1); border-color: rgba(111,219,154,.35); color: var(--mtbd-ok); }
.mtbd-compat.is-warn { background: rgba(232,197,106,.12); border-color: rgba(232,197,106,.4); color: var(--mtbd-warn); }
.mtbd-compat.is-bad { background: rgba(255,143,135,.12); border-color: rgba(255,143,135,.4); color: var(--mtbd-bad); }
.mtbd-compat--bar {
  flex: 1 1 220px; min-width: 0; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  align-self: center;
}
/* Form */
.mtbd-form { display: flex; flex-direction: column; gap: 12px; }
.mtbd-field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.mtbd-field input, .mtbd-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--mtbd-line2); background: var(--mtbd-elev); color: var(--mtbd-text);
  font-family: inherit; font-size: 14px; min-height: 44px;
}
.mtbd-field textarea { min-height: 88px; resize: vertical; }

/* Sticky bottom bar — always visible, desktop + mobile */
.mtbd-bottom,
.mtbd-bottom--diy,
.mtbd-bottom--fixed {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: block !important;
  padding: 0;
  background: rgba(10,10,10,.94);
  border-top: 1px solid rgba(212,224,0,.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -12px 40px rgba(0,0,0,.45);
}
.mtbd-bottom-shell {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.mtbd-bottom-totals {
  display: flex; flex-direction: column; gap: 2px;
  min-width: min(200px, 100%); flex: 0 1 auto;
}
.mtbd-bottom-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--mtbd-muted);
}
.mtbd-bottom-price-wrap strong,
#tk-bottom-price-val {
  display: block; font-family: var(--mtbd-mono);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem); font-weight: 850;
  color: var(--mtbd-accent); letter-spacing: -.02em; line-height: 1.15;
}
.mtbd-bottom-watt-wrap,
#tk-bottom-watt {
  font-size: 12.5px; color: var(--mtbd-muted); font-weight: 550;
}
.mtbd-bottom-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-left: auto;
}
.mtbd-bottom-actions .mtbd-btn { flex: 0 0 auto; }
.mtbd-bottom-mid { display: none; }

/* SEO */
.mtbd-seo {
  margin-top: 28px; padding: 20px; border-radius: var(--mtbd-r);
  border: 1px solid var(--mtbd-line); background: var(--mtbd-elev); color: var(--mtbd-muted); font-size: 14px;
}
.mtbd-seo h2 { color: var(--mtbd-text); font-size: 1.1rem; margin: 0 0 8px; }
.mtbd-seo details { margin-top: 10px; border-top: 1px solid var(--mtbd-line); padding-top: 10px; }
.mtbd-seo summary { cursor: pointer; font-weight: 700; color: var(--mtbd-text); min-height: 44px; display: flex; align-items: center; }

/* Toast */
.mtbd-toast {
  position: fixed; left: 50%; bottom: calc(var(--mtbd-bottom) + 16px); transform: translateX(-50%) translateY(20px);
  z-index: 30000; padding: 12px 18px; border-radius: 12px;
  background: #222; border: 1px solid var(--mtbd-accent); color: #fff;
  font-size: 13.5px; font-weight: 650; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: min(92vw, 420px); text-align: center;
}
.mtbd-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Picker modal — fullscreen light (trang ngoài vẫn tối) */
.hq-picker-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20040;
  opacity: 0; transition: opacity .18s; pointer-events: none;
}
.hq-picker-backdrop.show { opacity: 1; }
.hq-picker-modal {
  display: none; position: fixed; inset: 0; z-index: 20050;
  color: #0f172a;
}
.hq-picker-modal.show, .hq-picker-modal.is-open { display: flex !important; }
.hq-picker-modal .modal-dialog { width: 100%; height: 100%; margin: 0; max-width: none; }
.hq-picker-modal .modal-content {
  height: 100%; display: flex; flex-direction: column;
  background: #f8fafc; color: #0f172a; border: 0; border-radius: 0;
}
.mtbd-picker--light {
  --pk-bg: #f8fafc;
  --pk-surface: #ffffff;
  --pk-line: #e2e8f0;
  --pk-line2: #cbd5e1;
  --pk-text: #0f172a;
  --pk-muted: #64748b;
  --pk-accent: #d4e000;
  --pk-price: #c9141b;
  --pk-ink: #1a1a00;
}
.picker-header {
  display: grid;
  grid-template-columns: minmax(160px,auto) minmax(0,1fr) 48px;
  align-items: center; gap: 12px 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--pk-line);
  background: var(--pk-surface);
}
.picker-title {
  font-size: 1.2rem; font-weight: 850; margin: 0; color: var(--pk-text);
  letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-search {
  display: flex; justify-self: center; width: 100%; max-width: 520px; gap: 8px; min-width: 0;
}
.picker-search input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--pk-line2); background: #fff; color: var(--pk-text);
  font-family: inherit; font-size: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.picker-search input:focus {
  outline: none; border-color: rgba(212,224,0,.85);
  box-shadow: 0 0 0 3px rgba(212,224,0,.28);
}
.picker-search button {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--pk-line2); background: #fff; color: var(--pk-text);
  cursor: pointer; font-weight: 700; font-family: inherit;
}
.picker-close {
  justify-self: end; min-height: 44px; min-width: 44px; border-radius: 12px;
  border: 1px solid var(--pk-line2); background: #fff; color: #334155;
  cursor: pointer; font-size: 22px; line-height: 1; font-weight: 500;
}
.picker-close:hover { background: #f1f5f9; }
.picker-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 280px minmax(0,1fr); overflow: hidden;
  background: var(--pk-bg);
}
.picker-sidebar {
  overflow: auto; padding: 16px 14px 20px;
  border-right: 1px solid var(--pk-line); background: var(--pk-surface);
}
.picker-sidebar-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.picker-sidebar-head strong { font-size: 15px; color: var(--pk-text); }
.picker-clear-btn {
  appearance: none; border: 0; background: transparent; color: var(--pk-muted);
  font-size: 12px; font-weight: 650; cursor: pointer; padding: 4px 6px; font-family: inherit;
}
.picker-clear-btn:hover { color: var(--pk-price); }
.picker-filter-group { margin-bottom: 16px; }
.mtbd-filter-lab {
  font-size: 12px; font-weight: 750; color: #334155; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .04em;
}
.mtbd-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.picker-price-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--pk-muted); }
.picker-price-field input,
.mtbd-price-inputs input {
  width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--pk-line2); background: #fff; color: var(--pk-text); font-family: inherit;
}
.picker-apply-price {
  width: 100%; margin-top: 10px; min-height: 40px; border-radius: 10px;
  border: 1px solid rgba(212,224,0,.7); background: rgba(212,224,0,.18);
  color: var(--pk-ink); font-weight: 750; cursor: pointer; font-family: inherit;
}
.picker-apply-price:hover { background: rgba(212,224,0,.32); }
.picker-facet { margin-bottom: 16px; }
.picker-facet-title {
  font-size: 12px; font-weight: 750; color: #334155; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .04em;
}
.picker-facet-list { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; }
.picker-facet-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px;
  font-size: 13px; color: var(--pk-text); cursor: pointer; border-radius: 8px;
}
.picker-facet-item:hover { background: #f1f5f9; }
.picker-facet-item input { accent-color: #a8b400; width: 16px; height: 16px; flex: 0 0 auto; }
.picker-facet-count { margin-left: auto; color: var(--pk-muted); font-size: 11px; }
.picker-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--pk-bg); }
.picker-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--pk-line); background: var(--pk-surface);
}
.picker-sort-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.picker-sort {
  appearance: none; border: 1px solid var(--pk-line); background: #fff;
  color: var(--pk-muted); border-radius: 999px; padding: 7px 14px; font-size: 12.5px;
  font-weight: 650; cursor: pointer; min-height: 36px; font-family: inherit;
}
.picker-sort:hover { border-color: #94a3b8; color: var(--pk-text); }
.picker-sort.active {
  border-color: var(--pk-accent); color: var(--pk-ink);
  background: var(--pk-accent); font-weight: 800;
}
.picker-results-summary {
  margin-left: auto; font-size: 13px; color: var(--pk-muted); font-weight: 650;
}
.picker-compatibility {
  margin: 10px 16px 0; padding: 8px 12px; border-radius: 10px; font-size: 12.5px;
  background: rgba(212,224,0,.14); border: 1px solid rgba(212,224,0,.45); color: #4a5200;
}
.picker-results-scroll { flex: 1; overflow: auto; padding: 14px 16px 18px; }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
/* Product card — vertical */
.mtbd-pcard {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px; border-radius: 14px;
  border: 1px solid var(--pk-line); background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
  min-height: 100%;
}
.mtbd-pcard:hover {
  border-color: rgba(212,224,0,.75);
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
  transform: translateY(-1px);
}
.mtbd-pcard-media {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #f1f5f9; overflow: hidden;
}
.mtbd-pcard-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px;
}
.mtbd-pcard-brand {
  font-size: 11px; font-weight: 800; color: var(--pk-muted);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 2px;
}
.mtbd-pcard-name {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--pk-text);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.mtbd-pcard-model {
  font-size: 11px; color: #94a3b8; font-family: var(--mtbd-mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mtbd-pcard-price {
  font-family: var(--mtbd-mono); font-size: 15px; font-weight: 800;
  color: var(--pk-price); margin-top: 2px;
}
.mtbd-pcard-chips {
  display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px;
}
.mtbd-pcard-chip {
  font-size: 10px; font-weight: 750; padding: 2px 7px; border-radius: 999px;
  background: #f1f5f9; color: #475569; border: 1px solid var(--pk-line);
}
.mtbd-pcard-chip.is-ref {
  background: rgba(212,224,0,.16); border-color: rgba(212,224,0,.45); color: #5a6200;
}
.mtbd-pcard-pick {
  margin-top: auto; width: 100%; min-height: 40px;
  appearance: none; border-radius: 10px; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--pk-accent); background: #fff;
  color: #3d4400; font-weight: 800; font-size: 13px;
}
.mtbd-pcard-pick:hover { background: rgba(212,224,0,.22); }
/* legacy list item alias kept for safety */
.mtbd-picker-item { display: none; }
.mtbd-pick-btn { display: none; }
.picker-skeleton {
  height: 280px; border-radius: 14px;
  background: linear-gradient(90deg, #e2e8f0, #f8fafc, #e2e8f0);
  background-size: 200% 100%; animation: mtbdSk 1.1s linear infinite;
}
@keyframes mtbdSk { to { background-position: -200% 0; } }
.picker-footer {
  padding: 10px 16px 14px; border-top: 1px solid var(--pk-line); background: var(--pk-surface);
}
.picker-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.picker-pagination button {
  min-width: 40px; min-height: 40px; border-radius: 10px;
  border: 1px solid var(--pk-line); background: #fff; color: var(--pk-text);
  cursor: pointer; font-weight: 700; font-family: inherit;
}
.picker-pagination button:hover { border-color: #94a3b8; }
.picker-pagination button.is-on {
  border-color: var(--pk-accent); background: var(--pk-accent); color: var(--pk-ink);
}
.picker-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 16px;
  color: var(--pk-muted); font-size: 14px;
}

/* Mobile */
@media (max-width: 960px) {
  .mtbd-hero--diy { grid-template-columns: 1fr; }
  .mtbd-hero-aside { display: none; }
  .mtbd-build--full, .mtbd-grid--diy { display: block; }
  .mtbd-slot-row { grid-template-columns: 1fr; gap: 10px; }
  .mtbd-sel { grid-template-columns: 72px minmax(0,1fr) auto; gap: 10px; padding: 10px; }
  .mtbd-sel img { width: 72px; height: 72px; }
  .mtbd-bottom-shell { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px 10px; }
  .mtbd-compat--bar { flex: 1 1 100%; order: 3; -webkit-line-clamp: 3; }
  .mtbd-bottom-actions { margin-left: 0; width: 100%; order: 4; }
  .mtbd-bottom-actions .mtbd-btn { flex: 1 1 auto; min-width: calc(33% - 8px); }
  .picker-body { grid-template-columns: 1fr; }
  .picker-sidebar {
    max-height: 200px; border-right: 0; border-bottom: 1px solid var(--pk-line, #e2e8f0);
  }
  .picker-header { grid-template-columns: 1fr 48px; }
  .picker-title { grid-column: 1; }
  .picker-close { grid-column: 2; grid-row: 1; }
  .picker-search { grid-column: 1 / -1; max-width: none; justify-self: stretch; }
}
@media (max-width: 560px) {
  .mtbd-shell { padding: 12px 12px 20px; }
  .picker-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}


/* —— aliases / capture / fullwidth polish —— */
.mtbd-tk--diy { padding-bottom: calc(var(--mtbd-bottom) + 36px); }
.mtbd-hero { position: relative; }
.mtbd-grid { display: block; }
.mtbd-panel--slots, .mtbd-panel--done { margin-bottom: 14px; }
.hq-build-demo-mode #tk-btn-cart { display: none !important; }

/* Capture modal */
.mtbd-capture-modal {
  display: none; position: fixed; inset: 0; z-index: 21000;
  align-items: center; justify-content: center; padding: 16px;
}
.mtbd-capture-modal.is-open { display: flex; }
.mtbd-capture-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.72);
}
.mtbd-capture-dialog {
  position: relative; z-index: 1; width: min(920px, 100%);
  max-height: min(92vh, 900px); display: flex; flex-direction: column;
  background: #141414; border: 1px solid var(--mtbd-line); border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55); overflow: hidden; color: var(--mtbd-text);
}
.mtbd-capture-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--mtbd-line);
}
.mtbd-capture-head h2 { margin: 0; font-size: 1.1rem; font-weight: 850; }
.mtbd-capture-x {
  appearance: none; border: 1px solid var(--mtbd-line2); background: var(--mtbd-elev);
  color: var(--mtbd-text); width: 44px; height: 44px; border-radius: 12px;
  font-size: 22px; cursor: pointer; line-height: 1;
}
.mtbd-capture-body {
  flex: 1; overflow: auto; padding: 14px; background: #0c0c0c;
  display: flex; justify-content: center; align-items: flex-start;
}
.mtbd-capture-body canvas {
  max-width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--mtbd-line); background: #111;
}
.mtbd-capture-foot {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
  padding: 12px 16px; border-top: 1px solid var(--mtbd-line); background: #121212;
}

@media (max-width: 960px) {
  .mtbd-build--full { display: block; }
  :root { --mtbd-bottom: 168px; }
}
@media (max-width: 560px) {
  .mtbd-shell { padding: 12px 12px 20px; }
  .picker-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .mtbd-sel { grid-template-columns: 64px minmax(0,1fr); }
  .mtbd-sel img { width: 64px; height: 64px; }
  .mtbd-sel-actions {
    grid-column: 1 / -1; flex-direction: row; justify-content: flex-end;
  }
  .mtbd-bottom-actions .mtbd-btn { min-width: 0; font-size: 13px; padding: 10px 10px; }
  .mtbd-btn-capture { order: 1; }
}


/* ===== Light theme pass: nền sáng, card trắng, accent shop ===== */
.mtbd-tk {
  background:
    radial-gradient(1000px 420px at 12% -80px, rgba(212,224,0,.10), transparent 55%),
    var(--mtbd-bg);
  color: var(--mtbd-text);
}
.mtbd-tk a { color: #647000; }
.mtbd-hero--diy {
  background: linear-gradient(145deg, #ffffff 0%, #ffffff 58%, #f8fafc 100%);
  border-color: var(--mtbd-line);
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.mtbd-hero-glow { background: radial-gradient(circle, rgba(212,224,0,.18), transparent 68%); }
.mtbd-hero--diy h1 { color: #0f172a; }
.mtbd-lead, .mtbd-hero-aside-card p { color: #475569; }
.mtbd-brand-pill {
  background: rgba(212,224,0,.14);
  border-color: rgba(170,181,0,.55);
  color: #5a6200;
}
.mtbd-brand-dot { box-shadow: 0 0 10px rgba(170,181,0,.55); }
.mtbd-hero-stat {
  background: #fff;
  border-color: var(--mtbd-line);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.mtbd-hero-stat span { color: #64748b; }
.mtbd-hero-aside-card {
  background: #fff;
  border-color: rgba(170,181,0,.55);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.mtbd-hero-aside-card p { color: #334155; }
.mtbd-badge { color: #1a1a00; }
.mtbd-suggest-bar,
.mtbd-panel,
.mtbd-seo {
  background: #fff;
  border-color: var(--mtbd-line);
  box-shadow: 0 2px 8px rgba(15,23,42,.035);
}
.mtbd-panel--slots {
  background: linear-gradient(180deg, rgba(212,224,0,.06), transparent 140px), #fff;
}
.mtbd-chip, .mtbd-preset-mini {
  background: #fff;
  color: #0f172a;
  border-color: var(--mtbd-line2);
}
.mtbd-chip.is-on {
  background: rgba(212,224,0,.18);
  color: #4a5200;
}
.mtbd-preset-mini .tg, .mtbd-suggest-hint { color: #64748b; }
.mtbd-slot-row {
  background: #fff;
  border-color: var(--mtbd-line);
  box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.mtbd-slot-row:hover { border-color: #94a3b8; }
.mtbd-slot-row.has-item {
  background: linear-gradient(135deg, #ffffff 0%, #fbfdf0 100%);
  border-color: rgba(170,181,0,.65);
  box-shadow: 0 0 0 1px rgba(212,224,0,.18);
}
.mtbd-slot-row.is-locked { opacity: .62; }
.mtbd-slot-ico {
  background: rgba(212,224,0,.14);
  border-color: rgba(170,181,0,.55);
  color: #687300;
}
.slot-status-text, .mtbd-sub { color: #64748b; }
.mtbd-btn-ghost {
  background: #fff;
  color: #334155;
  border-color: var(--mtbd-line2);
}
.mtbd-btn-ghost:hover:not(:disabled) { color: #4a5200; }
.mtbd-btn-pick {
  background: #fff;
  color: #687300;
  border-color: rgba(170,181,0,.75);
}
.mtbd-btn-pick:hover:not(:disabled) { background: rgba(212,224,0,.16); }
/* Keep Zalo action neutral/yellow; no blue palette on this page. */
.mtbd-btn-zalo {
  border-color: rgba(170,181,0,.75);
  color: #4a5200;
}
.mtbd-btn-zalo:hover:not(:disabled) {
  border-color: #aab500;
  color: #1a1a00;
  background: rgba(212,224,0,.14);
}
.mtbd-btn-capture { border-color: rgba(170,181,0,.65); color: #4a5200; }
.mtbd-sel {
  background: #fff;
  border-color: var(--mtbd-line);
  box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.mtbd-sel img { background: #f8fafc; border-color: var(--mtbd-line); }
.mtbd-tag {
  background: rgba(212,224,0,.16);
  color: #5a6200;
  border-color: rgba(170,181,0,.55);
}
.mtbd-tag-bh {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}
.mtbd-sel-price { color: #c9141b; }
.mtbd-mini {
  background: #fff;
  color: #334155;
  border-color: var(--mtbd-line2);
}
.mtbd-mini-accent { border-color: rgba(170,181,0,.7); color: #5a6200; }
.mtbd-compat {
  background: #f8fafc;
  border-color: var(--mtbd-line);
  color: #334155;
}
.mtbd-compat.is-ok { background: #f0fdf4; border-color: #86efac; color: #166534; }
.mtbd-compat.is-warn { background: #fffbeb; border-color: #fbbf24; color: #92400e; }
.mtbd-compat.is-bad { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.mtbd-field input, .mtbd-field textarea {
  background: #fff;
  color: #0f172a;
  border-color: var(--mtbd-line2);
}
.mtbd-field input::placeholder, .mtbd-field textarea::placeholder { color: #94a3b8; }
.mtbd-bottom,
.mtbd-bottom--diy,
.mtbd-bottom--fixed {
  background: rgba(255,255,255,.96);
  border-top-color: rgba(170,181,0,.55);
  box-shadow: 0 -10px 30px rgba(15,23,42,.10);
}
.mtbd-bottom-price-wrap strong, #tk-bottom-price-val { color: #c9141b; }
.mtbd-bottom-watt-wrap, #tk-bottom-watt, .mtbd-bottom-kicker { color: #64748b; }
.mtbd-seo { color: #475569; }
.mtbd-seo h2, .mtbd-seo summary { color: #0f172a; }
.mtbd-seo details { border-top-color: var(--mtbd-line); }
.mtbd-toast { background: #0f172a; color: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.18); }

/* Picker stays fullscreen, but shares the white page tokens. */
.hq-picker-backdrop { background: rgba(15,23,42,.42); }
.hq-picker-modal .modal-content { background: #f5f5f5; }
.mtbd-picker--light { --pk-bg: #f5f5f5; --pk-surface: #fff; }
.picker-header, .picker-sidebar, .picker-toolbar, .picker-footer { background: #fff; }
.picker-compatibility { color: #4a5200; }

/* Capture preview is part of this page too. */
.mtbd-capture-backdrop { background: rgba(15,23,42,.42); }
.mtbd-capture-dialog { background: #fff; border-color: var(--mtbd-line); color: #0f172a; box-shadow: 0 24px 80px rgba(15,23,42,.20); }
.mtbd-capture-head { border-bottom-color: var(--mtbd-line); }
.mtbd-capture-x { background: #fff; color: #334155; border-color: var(--mtbd-line2); }
.mtbd-capture-body { background: #f5f5f5; }
.mtbd-capture-body canvas { background: #fff; border-color: var(--mtbd-line); }
.mtbd-capture-foot { background: #fff; border-top-color: var(--mtbd-line); }

/* Capture visibility — above Haravan preview bar */
.mtbd-bottom,
.mtbd-bottom--diy,
.mtbd-bottom--fixed {
  z-index: 2147483000 !important;
  bottom: 48px !important; /* clear theme preview banner */
}
.mtbd-panel-head-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.mtbd-btn-capture-top,
.mtbd-bottom-actions .mtbd-btn-capture.mtbd-btn-primary {
  background: #d4e000 !important;
  color: #1a1a00 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(212,224,0,.45);
}
.mtbd-btn-capture-top:hover,
.mtbd-bottom-actions .mtbd-btn-capture.mtbd-btn-primary:hover {
  filter: brightness(.96);
}
@media (max-width: 640px) {
  .mtbd-btn-capture-top { width: 100%; }
  .mtbd-bottom { bottom: 56px !important; }
}


/* ========== PHASE 1 — mobile builder chrome (scoped .mtbd-tk) ========== */
:root {
  --mtbd-topbar: 56px;
  --mtbd-preview-bar: 48px;
  --mtbd-bottom: 118px;
}

.mtbd-tk--p1 {
  padding-bottom: calc(var(--mtbd-bottom) + var(--mtbd-preview-bar) + env(safe-area-inset-bottom, 0px) + 16px);
}

/* Sticky builder top — scrolls under theme header; does not replace ☰/cart */
.mtbd-builder-top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--mtbd-topbar);
  margin: 0 0 8px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--mtbd-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mtbd-builder-top-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
}
.mtbd-builder-brand {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 0 1 auto;
}
.mtbd-builder-logo {
  flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mtbd-accent); color: var(--mtbd-ink);
  font-size: 10px; font-weight: 900; letter-spacing: -.02em;
}
.mtbd-builder-brand-text {
  font-size: 12px; font-weight: 750; color: var(--mtbd-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 42vw;
}
.mtbd-builder-progress {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mtbd-builder-progress-label {
  font-size: 11px; font-weight: 700; color: var(--mtbd-muted);
  text-align: right;
}
.mtbd-builder-progress-track {
  height: 3px; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.mtbd-builder-progress-fill {
  height: 100%; width: 0;
  background: var(--mtbd-accent);
  border-radius: 999px;
  transition: width .2s ease;
}
.mtbd-builder-search {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--mtbd-line2); background: #fff;
  font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mtbd-builder-search:hover { border-color: var(--mtbd-accent); background: rgba(212,224,0,.12); }

/* Compact hero */
.mtbd-hero--compact {
  display: block !important;
  padding: 14px 14px 12px !important;
  margin-bottom: 12px;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.mtbd-hero--compact .mtbd-hero-glow,
.mtbd-hero--compact .mtbd-hero-aside,
.mtbd-hero--compact .mtbd-hero-stats { display: none !important; }
.mtbd-hero--compact h1 {
  margin: 0 0 4px !important;
  font-size: 1.45rem !important;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #0f172a !important;
}
.mtbd-hero--compact .mtbd-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
}
.mtbd-hero-chips-block { margin-bottom: 10px; }
.mtbd-chip-row-label {
  font-size: 11px; font-weight: 750; letter-spacing: .04em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 6px;
}
.mtbd-hero--compact .mtbd-suggest-chips { gap: 6px; }
.mtbd-hero--compact .mtbd-chip {
  min-height: 36px; padding: 6px 12px; font-size: 12.5px;
}
.mtbd-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.mtbd-hero-ctas .mtbd-btn { flex: 1 1 auto; min-height: 44px; min-width: 140px; }
.mtbd-hero-hint {
  margin: 10px 0 0; font-size: 12px; color: #94a3b8;
}

/* Slot list — tighter mobile 1-col, touch ≥44px */
.mtbd-tk--p1 .mtbd-slot-row {
  padding: 12px;
  gap: 10px;
  min-height: 72px;
}
.mtbd-tk--p1 .mtbd-btn-pick,
.mtbd-tk--p1 .mtbd-mini {
  min-height: 44px;
  min-width: 44px;
}
.mtbd-tk--p1 .mtbd-slot-ico {
  width: 40px; height: 40px; font-size: 11px;
}
.mtbd-tk--p1 .mtbd-panel-head { margin-bottom: 8px; }
.mtbd-tk--p1 .mtbd-panel-head .mtbd-h2 { font-size: 1.15rem; }

/* Collapsed bottom summary */
.mtbd-bottom--collapsible {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid rgba(170,181,0,.55) !important;
  box-shadow: 0 -8px 24px rgba(15,23,42,.10) !important;
  bottom: calc(var(--mtbd-preview-bar) + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 2147483000 !important;
}
.mtbd-bottom-collapsed {
  appearance: none; width: 100%; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px 6px;
  cursor: pointer; text-align: left; color: inherit;
  min-height: 44px;
}
.mtbd-bottom-line {
  font-size: 14px; font-weight: 800; color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.mtbd-bottom-line .mtbd-bottom-price {
  color: #c9141b; margin-left: 4px;
}
.mtbd-bottom-chevron {
  font-size: 12px; color: #64748b;
  transition: transform .15s ease;
}
.mtbd-bottom--collapsible.is-open .mtbd-bottom-chevron {
  transform: rotate(180deg);
}
.mtbd-bottom-expand {
  padding: 0 14px 8px;
  border-top: 1px solid var(--mtbd-line);
}
.mtbd-bottom-expand[hidden] { display: none !important; }
.mtbd-bottom-mini-list {
  list-style: none; margin: 8px 0 0; padding: 0;
  max-height: 160px; overflow: auto;
}
.mtbd-bottom-mini-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
}
.mtbd-bottom-mini-list li:last-child { border-bottom: 0; }
.mtbd-bottom-mini-list .lab {
  flex: 0 0 72px; color: #64748b; font-weight: 700; font-size: 11px;
  text-transform: uppercase;
}
.mtbd-bottom-mini-list .nm {
  flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #0f172a;
}
.mtbd-bottom-mini-list .chg {
  flex: 0 0 auto;
  appearance: none; border: 1px solid var(--mtbd-line2);
  background: #fff; border-radius: 8px;
  padding: 6px 10px; min-height: 36px; font-size: 12px; font-weight: 700;
  color: #4a5200; cursor: pointer;
}
.mtbd-bottom-actions--p1 {
  display: flex !important; flex-wrap: nowrap; gap: 8px;
  padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  margin: 0 !important; width: 100%;
}
.mtbd-bottom-actions--p1 #tk-btn-primary-cta {
  flex: 1 1 auto;
  background: var(--mtbd-accent) !important;
  color: var(--mtbd-ink) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(212,224,0,.4);
}
.mtbd-bottom-actions--p1 .mtbd-btn-zalo--sm {
  flex: 0 0 auto;
  min-width: 72px;
  font-size: 13px;
}
.mtbd-bottom--collapsible #tk-compat-banner {
  margin: 6px 0 0; font-size: 12px; padding: 8px 10px;
}
.mtbd-bottom--collapsible #tk-bottom-watt {
  font-size: 12px; color: #64748b; margin-top: 8px;
}

/* Floating consult — above bottom, clear CTA */
.mtbd-float-consult {
  position: fixed;
  right: 12px;
  bottom: calc(var(--mtbd-preview-bar) + var(--mtbd-bottom) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 2147482500;
  appearance: none;
  border: 1px solid rgba(170,181,0,.7);
  background: #fff;
  color: #4a5200;
  font-weight: 750; font-size: 13px;
  padding: 10px 14px; min-height: 44px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15,23,42,.12);
  cursor: pointer;
}
.mtbd-float-consult:hover { background: rgba(212,224,0,.16); }

/* Push common theme floats up on this page only (CSS-only, no theme JS) */
body:has(.mtbd-tk--p1) .social-button,
body:has(.mtbd-tk--p1) .phone-zalo,
body:has(.mtbd-tk--p1) .hotline-phone,
body:has(.mtbd-tk--p1) .box-zalo,
body:has(.mtbd-tk--p1) .contact-bar,
body:has(.mtbd-tk--p1) #zb-root,
body:has(.mtbd-tk--p1) .zalo-chat-widget,
body:has(.mtbd-tk--p1) [class*="float-"] {
  bottom: calc(var(--mtbd-preview-bar) + var(--mtbd-bottom) + 64px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Consult sheet + search overlay */
.mtbd-sheet,
.mtbd-search-overlay {
  position: fixed; inset: 0; z-index: 2147483600;
  display: flex; align-items: flex-end; justify-content: center;
}
.mtbd-sheet[aria-hidden="true"],
.mtbd-search-overlay[aria-hidden="true"] { display: none !important; }
.mtbd-sheet-backdrop,
.mtbd-search-backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,.42);
}
.mtbd-sheet-panel,
.mtbd-search-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px;
  max-height: min(78vh, 640px);
  background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(15,23,42,.18);
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mtbd-sheet-head,
.mtbd-search-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--mtbd-line);
}
.mtbd-sheet-head h2,
.mtbd-search-head h2 { margin: 0; font-size: 1.05rem; }
.mtbd-sheet-x,
.mtbd-search-x {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--mtbd-line2); background: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.mtbd-sheet-body {
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.mtbd-sheet-body .mtbd-btn { width: 100%; min-height: 44px; text-align: center; text-decoration: none; }
.mtbd-search-body { padding: 12px 16px 16px; overflow: auto; }
.mtbd-search-body input[type="search"] {
  width: 100%; min-height: 48px; border-radius: 12px;
  border: 1px solid var(--mtbd-line2); padding: 10px 14px;
  font-size: 15px; font-family: inherit;
}
.mtbd-search-hint { margin: 8px 0 10px; font-size: 12px; color: #94a3b8; }
.mtbd-search-results { display: flex; flex-direction: column; gap: 8px; }
.mtbd-search-hit {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border: 1px solid var(--mtbd-line); border-radius: 12px;
  background: #fff; cursor: pointer; text-align: left; width: 100%;
  min-height: 56px;
}
.mtbd-search-hit img {
  width: 48px; height: 48px; object-fit: contain; border-radius: 8px;
  background: #f8fafc; border: 1px solid var(--mtbd-line);
}
.mtbd-search-hit .meta { flex: 1 1 auto; min-width: 0; }
.mtbd-search-hit .code {
  font-size: 10px; font-weight: 750; color: #94a3b8; text-transform: uppercase;
}
.mtbd-search-hit .name {
  font-size: 13px; font-weight: 650; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mtbd-search-hit .price { font-size: 13px; font-weight: 800; color: #c9141b; }
.mtbd-search-empty { padding: 20px 8px; text-align: center; color: #64748b; font-size: 13px; }

@media (min-width: 961px) {
  .mtbd-builder-brand-text { max-width: 220px; }
  .mtbd-hero--compact { padding: 18px 20px 16px !important; }
  .mtbd-hero--compact h1 { font-size: 1.75rem !important; }
  .mtbd-float-consult { right: 20px; }
}

@media (max-width: 560px) {
  .mtbd-builder-brand-text { max-width: 28vw; }
  :root { --mtbd-bottom: 112px; --mtbd-preview-bar: 56px; }
}


/* =========================================================
   PHASE 2 — Build timeline numbered cards
   Accent #d4e000 · white/light gray · touch ≥44px · 1-col
   ========================================================= */
.mtbd-tk--p2 .mtbd-panel--timeline {
  background: linear-gradient(180deg, rgba(212,224,0,.07), transparent 160px), #fff;
}
.mtbd-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.mtbd-tl-card {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  gap: 0 12px !important;
  align-items: stretch !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 0 10px;
  min-height: 72px;
  opacity: 1 !important;
}
.mtbd-tl-card.is-locked {
  opacity: 1 !important;
}
.mtbd-tl-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}
.mtbd-tl-num {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 850;
  font-variant-numeric: tabular-nums;
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #cbd5e1;
  z-index: 1;
}
.mtbd-tl-num--dot {
  font-size: 10px;
  background: #fff;
  border-color: #e2e8f0;
  color: #94a3b8;
}
.mtbd-tl-line {
  flex: 1 1 auto;
  width: 2px;
  margin-top: 6px;
  background: linear-gradient(180deg, #e2e8f0, transparent);
  min-height: 24px;
}
.mtbd-tl-card:last-of-type .mtbd-tl-line,
.mtbd-tl-card--acc:last-child .mtbd-tl-line { display: none; }

.mtbd-tl-main {
  background: #fff;
  border: 1.5px solid var(--mtbd-line, #e2e8f0);
  border-radius: 16px;
  padding: 12px 14px 14px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
  transition: border-color .18s, box-shadow .18s, background .18s;
  min-width: 0;
}
.mtbd-tl-card:hover .mtbd-tl-main {
  border-color: #94a3b8;
}
.mtbd-tl-card.has-item .mtbd-tl-main {
  background: linear-gradient(135deg, #ffffff 0%, #fbfdf0 100%);
  border-color: rgba(170,181,0,.7);
  box-shadow: 0 0 0 1px rgba(212,224,0,.2);
}
.mtbd-tl-card.has-item .mtbd-tl-num,
.mtbd-tl-card.has-item .mtbd-tl-mark {
  background: var(--mtbd-accent, #d4e000);
  border-color: #aab500;
  color: #1a1a00;
}
.mtbd-tl-card.is-locked .mtbd-tl-main {
  background: #f8fafc;
  border-style: dashed;
  border-color: #cbd5e1;
}
.mtbd-tl-card.is-locked .mtbd-tl-num {
  background: #e2e8f0;
  color: #64748b;
}
.mtbd-tl-card.is-locked .mtbd-tl-hint,
.mtbd-tl-card.is-locked .mtbd-slot-title {
  color: #64748b;
}
.mtbd-tl-card.is-active .mtbd-tl-main {
  border-color: #c9a227 !important;
  box-shadow: 0 0 0 2px rgba(201,162,39,.35), 0 4px 14px rgba(201,162,39,.12) !important;
}
.mtbd-tl-card.is-active .mtbd-tl-num {
  background: #c9a227;
  border-color: #a8841a;
  color: #fff;
}

.mtbd-tl-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.mtbd-tl-mark {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 850;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.mtbd-tl-card.is-locked .mtbd-tl-mark {
  background: #f1f5f9;
  font-size: 14px;
}
.mtbd-tl-titles { min-width: 0; flex: 1 1 auto; }
.mtbd-tk--p2 .mtbd-slot-title {
  font-weight: 850;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f172a;
}
.mtbd-tl-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
.mtbd-tk--p2 .slot-status-text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: #94a3b8;
}
.mtbd-tl-card.is-locked .slot-status-text {
  color: #b45309;
}
.mtbd-tl-card.has-item .slot-status-text[hidden],
.mtbd-tl-card.has-item .slot-status-text:empty {
  display: none !important;
}

.mtbd-tk--p2 .mtbd-slot-body { width: 100%; }
.mtbd-tl-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mtbd-tk--p2 .mtbd-btn-pick {
  width: 100%;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: .02em;
  justify-content: center;
}
.mtbd-tk--p2 .mtbd-sel.mtbd-tl-sel {
  grid-template-columns: 64px minmax(0,1fr);
  grid-template-rows: auto auto;
  gap: 10px 12px;
  padding: 10px;
  background: #fff;
}
.mtbd-tk--p2 .mtbd-sel.mtbd-tl-sel img,
.mtbd-tl-thumb-ph {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--mtbd-line, #e2e8f0);
  grid-row: 1 / span 2;
}
.mtbd-tl-thumb-ph {
  display: grid; place-items: center;
  font-size: 20px; color: #aab500;
  background: rgba(212,224,0,.16);
}
.mtbd-tl-sel-info { min-width: 0; grid-column: 2; }
.mtbd-tk--p2 .mtbd-sel-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.mtbd-tk--p2 .mtbd-sel-actions .mtbd-mini {
  min-height: 44px;
  min-width: 72px;
  padding: 8px 14px;
  font-weight: 750;
}
.mtbd-tl-meta {
  font-size: 12px;
  font-weight: 650;
  color: #687300;
  margin-top: 3px;
}

/* Accessories group */
.mtbd-tl-acc-head {
  margin: 8px 0 6px 44px;
}
.mtbd-tl-acc-toggle {
  appearance: none;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
}
.mtbd-tl-acc-toggle:hover {
  border-color: rgba(170,181,0,.75);
  background: rgba(212,224,0,.1);
}
.mtbd-tl-acc-chev {
  font-size: 14px;
  color: #94a3b8;
  transition: transform .15s;
}
.mtbd-tl-acc-toggle[aria-expanded="true"] .mtbd-tl-acc-chev {
  transform: rotate(180deg);
}
.mtbd-tl-acc-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mtbd-tl-card--acc .mtbd-tl-main {
  padding: 10px 12px 12px;
}
.mtbd-tl-card--acc .mtbd-slot-title { font-size: 13px; }
.mtbd-tl-card--sub .mtbd-tl-main {
  border-style: solid;
}

/* Hide legacy ico if any leftover */
.mtbd-tk--p2 .mtbd-slot-ico { display: none; }

@media (min-width: 961px) {
  /* Phase 9 sẽ 3-col; tạm 1 cột đẹp rộng hơn */
  .mtbd-tk--p2 .mtbd-timeline {
    max-width: 720px;
  }
  .mtbd-tk--p2 .mtbd-sel.mtbd-tl-sel {
    grid-template-columns: 72px minmax(0,1fr) auto;
    grid-template-rows: auto;
  }
  .mtbd-tk--p2 .mtbd-sel.mtbd-tl-sel img,
  .mtbd-tl-thumb-ph {
    width: 72px; height: 72px;
    grid-row: auto;
  }
  .mtbd-tk--p2 .mtbd-sel-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
}


/* ===== P3: Mainboard chipset selector ===== */
.mtbd-tk--p3 .picker-chipset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.mtbd-chipset-back {
  min-height: 44px;
  padding: 8px 14px;
  margin: 4px 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.mtbd-chipset-back:hover { border-color: #d4e000; background: #fcffe6; }
.mtbd-chipset-stage {
  padding: 4px 2px 16px;
  overflow: auto;
  max-height: min(70vh, 640px);
}
.mtbd-chipset-head { margin: 0 0 14px; }
.mtbd-chipset-lead {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.mtbd-chipset-sub {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}
.mtbd-chipset-sec { margin-bottom: 18px; }
.mtbd-chipset-sec-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #475569;
}
.mtbd-chipset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.mtbd-chipset-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 108px;
  padding: 14px 14px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.mtbd-chipset-card:hover,
.mtbd-chipset-card:focus-visible {
  border-color: #d4e000;
  box-shadow: 0 4px 14px rgba(212, 224, 0, .22);
  outline: none;
  transform: translateY(-1px);
}
.mtbd-chipset-code {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0f172a;
  line-height: 1.1;
}
.mtbd-chipset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #475569;
}
.mtbd-chipset-meta span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  font-weight: 600;
}
.mtbd-chipset-seg {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.mtbd-chipset-count {
  margin-top: auto;
  font-size: 12px;
  color: #334155;
}
.mtbd-chipset-count strong {
  color: #0f172a;
  font-size: 14px;
}
.picker-sidebar.is-chipset-mode {
  opacity: .45;
  pointer-events: none;
}
@media (max-width: 720px) {
  .mtbd-chipset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .picker-sidebar.is-chipset-mode {
    display: none;
  }
}

/* ===== P4–P5: Selector restyle + compat badges ===== */
.picker-header {
  grid-template-columns: 44px minmax(0,auto) minmax(0,1fr) 48px;
  gap: 8px 10px;
  padding: 10px 12px;
}
.picker-back {
  appearance: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--pk-line2, #cbd5e1); background: #fff;
  color: #0f172a; font-size: 20px; line-height: 1; cursor: pointer;
  font-family: inherit; font-weight: 700;
}
.picker-back:hover { background: #f1f5f9; border-color: #d4e000; }
.picker-head-text { min-width: 0; }
.picker-title { font-size: 1.05rem; }
.picker-sub {
  margin: 2px 0 0; font-size: 12px; font-weight: 650;
  color: #5a6200; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-sub[hidden] { display: none !important; }

.picker-chips-bar {
  display: flex; flex-wrap: nowrap; gap: 8px;
  padding: 10px 12px 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; background: var(--pk-surface, #fff);
  border-bottom: 1px solid var(--pk-line, #e2e8f0);
}
.picker-chips-bar::-webkit-scrollbar { display: none; }
.picker-chip {
  flex: 0 0 auto; appearance: none; cursor: pointer; font-family: inherit;
  min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--pk-line2, #cbd5e1); background: #fff;
  color: #334155; font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
}
.picker-chip:hover { border-color: #94a3b8; }
.picker-chip.is-on {
  border-color: #d4e000; background: #d4e000; color: #1a1a00; font-weight: 800;
}
.picker-chip-group-lab {
  flex: 0 0 auto; align-self: center;
  font-size: 11px; font-weight: 800; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .04em; padding: 0 2px;
}

/* Product card P4 */
.mtbd-pcard {
  position: relative;
  gap: 5px;
  padding: 10px;
}
.mtbd-pcard-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 800; padding: 3px 8px;
  border-radius: 999px; border: 1px solid transparent;
  max-width: calc(100% - 20px);
  background: #f0fdf4; color: #166534; border-color: #86efac;
}
.mtbd-pcard-badge.is-warn {
  background: #fffbeb; color: #92400e; border-color: #fbbf24;
  cursor: pointer;
}
.mtbd-pcard-badge.is-ok { pointer-events: none; }
.mtbd-pcard-meta {
  font-size: 11.5px; color: #64748b; font-weight: 650;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 1.35em;
}
.mtbd-pcard-price {
  font-size: 16px; letter-spacing: -.01em;
}
.mtbd-pcard-actions {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 6px;
  margin-top: auto;
}
.mtbd-pcard-detail {
  appearance: none; min-height: 40px; border-radius: 10px;
  border: 1px solid var(--pk-line2, #cbd5e1); background: #fff;
  color: #334155; font-weight: 750; font-size: 12.5px;
  cursor: pointer; font-family: inherit;
}
.mtbd-pcard-detail:hover { background: #f8fafc; border-color: #94a3b8; }
.mtbd-pcard-pick {
  margin-top: 0; min-height: 40px;
  background: #d4e000; border-color: #d4e000; color: #1a1a00;
}
.mtbd-pcard-pick:hover { filter: brightness(.96); background: #d4e000; }

/* Detail sheet */
.mtbd-detail-panel { max-height: min(88vh, 720px); }
.mtbd-detail-body { overflow: auto; padding: 12px 16px 8px; gap: 12px; }
.mtbd-detail-media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1.15; border-radius: 14px; background: #f1f5f9;
  border: 1px solid #e2e8f0; overflow: hidden;
}
.mtbd-detail-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px;
}
.mtbd-detail-brand {
  font-size: 11px; font-weight: 800; color: #64748b;
  text-transform: uppercase; letter-spacing: .04em;
}
.mtbd-detail-name {
  margin: 0; font-size: 1.05rem; font-weight: 850; color: #0f172a; line-height: 1.35;
}
.mtbd-detail-price {
  font-size: 1.25rem; font-weight: 850; color: #c9141b;
  font-family: var(--mtbd-mono, ui-monospace, monospace);
}
.mtbd-detail-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mtbd-detail-chip {
  font-size: 11px; font-weight: 750; padding: 4px 9px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid #e2e8f0; color: #334155;
}
.mtbd-detail-explain {
  font-size: 13.5px; color: #334155; line-height: 1.5;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(212,224,0,.12); border: 1px solid rgba(212,224,0,.35);
}
.mtbd-detail-compat {
  font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 12px;
}
.mtbd-detail-compat.is-ok { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.mtbd-detail-compat.is-warn { background: #fffbeb; border: 1px solid #fbbf24; color: #92400e; }
.mtbd-detail-foot {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f0; background: #fff;
}

/* Compat explain sheet */
#tk-compat-explain-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #0f172a; }
#tk-compat-explain-body .mtbd-btn { width: 100%; }

/* Mobile: bottom-sheet feel for picker */
@media (max-width: 960px) {
  .hq-picker-modal .modal-content {
    border-radius: 16px 16px 0 0;
    margin-top: 8vh;
    height: 92vh;
    max-height: 92vh;
    box-shadow: 0 -8px 40px rgba(15,23,42,.2);
  }
  .hq-picker-modal {
    align-items: flex-end !important;
  }
  .picker-header {
    grid-template-columns: 44px minmax(0,1fr) 44px;
  }
  .picker-head-text { grid-column: 2; grid-row: 1; }
  .picker-back { grid-column: 1; grid-row: 1; }
  .picker-close { grid-column: 3; grid-row: 1; }
  .picker-search { grid-column: 1 / -1; max-width: none; }
  .picker-sidebar {
    display: none; /* chips bar replaces sidebar on mobile */
  }
  .picker-body { grid-template-columns: 1fr; }
  .picker-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mtbd-pcard {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    grid-template-areas:
      "media badge"
      "media brand"
      "media name"
      "media meta"
      "media price"
      "actions actions";
    gap: 4px 10px;
    align-items: start;
  }
  .mtbd-pcard-media { grid-area: media; aspect-ratio: 1; }
  .mtbd-pcard-badge { position: static; grid-area: badge; justify-self: start; }
  .mtbd-pcard-brand { grid-area: brand; margin: 0; }
  .mtbd-pcard-name { grid-area: name; min-height: 0; -webkit-line-clamp: 2; }
  .mtbd-pcard-meta { grid-area: meta; }
  .mtbd-pcard-model { display: none; }
  .mtbd-pcard-chips { display: none; }
  .mtbd-pcard-price { grid-area: price; font-size: 17px; margin: 2px 0 0; }
  .mtbd-pcard-actions { grid-area: actions; }
}
@media (min-width: 961px) {
  .picker-header {
    grid-template-columns: 44px minmax(140px,220px) minmax(0,1fr) 48px;
  }
  .picker-chips-bar { display: none; } /* desktop uses sidebar */
  .mtbd-pcard-meta { min-height: 2.5em; }
}

/* ===== P6–P8: view overlay · final check · capture unlock ===== */
.mtbd-btn-view-build {
  border-color: rgba(212, 224, 0, 0.55) !important;
  color: #4a5200 !important;
  font-weight: 800 !important;
}
.mtbd-bottom-unlock {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}
.mtbd-bottom-unlock[hidden] { display: none !important; }
.mtbd-bottom-unlock .mtbd-btn { flex: 1 1 auto; min-width: 0; }
.mtbd-bottom-actions--p68 {
  flex-wrap: wrap;
  align-items: stretch;
}
.mtbd-bottom-actions--p68 #tk-btn-primary-cta { flex: 1 1 100%; }
.mtbd-bottom-actions--p68 #tk-btn-zalo { flex: 0 0 auto; }
body.mtbd-final-ok #tk-btn-primary-cta {
  background: linear-gradient(135deg, #d4e000, #a5b103) !important;
  color: #101010 !important;
  border: 0 !important;
}

/* Build overlay */
.mtbd-sheet--build .mtbd-sheet-panel,
.mtbd-sheet--final .mtbd-sheet-panel {
  max-width: 560px;
  max-height: min(88vh, 720px);
}
.mtbd-build-overlay-body,
.mtbd-final-body {
  overflow: auto;
  flex: 1 1 auto;
  gap: 8px;
}
.mtbd-build-slot {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--mtbd-line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.mtbd-build-slot.is-empty { background: #f8fafc; }
.mtbd-build-slot .dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #cbd5e1; color: #94a3b8;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.mtbd-build-slot.has-item .dot {
  background: #d4e000; border-color: #a5b103; color: #101010;
}
.mtbd-build-slot .meta { min-width: 0; }
.mtbd-build-slot .lab {
  font-size: 11px; font-weight: 800; color: #64748b;
  text-transform: uppercase; letter-spacing: .02em;
}
.mtbd-build-slot .nm {
  font-size: 13px; font-weight: 650; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mtbd-build-slot .nm.is-empty-txt { color: #94a3b8; font-weight: 550; }
.mtbd-build-slot .pr {
  font-size: 12px; font-weight: 800; color: #c9141b; margin-top: 2px;
}
.mtbd-build-slot .acts {
  display: flex; flex-direction: column; gap: 4px;
}
.mtbd-build-slot .acts .mtbd-mini,
.mtbd-build-slot .acts button {
  min-height: 32px; padding: 4px 10px; border-radius: 8px;
  border: 1px solid #e2e8f0; background: #fff;
  font-size: 12px; font-weight: 750; cursor: pointer; font-family: inherit;
}
.mtbd-build-slot .acts .chg { color: #3d4500; border-color: rgba(212,224,0,.55); }
.mtbd-build-slot .acts .rm { color: #b91c1c; }
.mtbd-build-overlay-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--mtbd-line, #e2e8f0);
  display: flex; flex-direction: column; gap: 10px;
}
.mtbd-build-overlay-total {
  font-size: 1.15rem; font-weight: 900; color: #c9141b; text-align: center;
}

/* Final checklist */
.mtbd-final-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--mtbd-line, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.mtbd-final-row.is-ok { border-color: rgba(34,197,94,.35); background: #f0fdf4; }
.mtbd-final-row.is-warn { border-color: rgba(234,179,8,.4); background: #fffbeb; }
.mtbd-final-row.is-bad { border-color: rgba(239,68,68,.4); background: #fef2f2; }
.mtbd-final-row.is-skip { opacity: .72; }
.mtbd-final-ico {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; background: #f1f5f9; color: #334155;
}
.mtbd-final-row.is-ok .mtbd-final-ico { background: #dcfce7; color: #166534; }
.mtbd-final-row.is-warn .mtbd-final-ico { background: #fef9c3; color: #854d0e; }
.mtbd-final-row.is-bad .mtbd-final-ico { background: #fee2e2; color: #b91c1c; }
.mtbd-final-row .pair {
  font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase;
}
.mtbd-final-row .msg {
  font-size: 13px; font-weight: 600; color: #0f172a; margin-top: 2px; line-height: 1.35;
}
.mtbd-final-row .fix-cta {
  margin-top: 6px; display: inline-flex; min-height: 32px; padding: 4px 10px;
  border-radius: 8px; border: 1px solid rgba(212,224,0,.55);
  background: #fff; font-size: 12px; font-weight: 750; cursor: pointer;
  font-family: inherit; color: #3d4500;
}
.mtbd-final-status {
  margin: 0 0 8px; text-align: center; font-weight: 850; font-size: 14px;
}
.mtbd-final-status.is-ok { color: #166534; }
.mtbd-final-status.is-bad { color: #b91c1c; }
.mtbd-final-status.is-warn { color: #854d0e; }
.mtbd-final-foot { padding: 12px 16px 16px; border-top: 1px solid var(--mtbd-line, #e2e8f0); }
.mtbd-final-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.mtbd-final-actions[hidden] { display: none !important; }
.mtbd-final-banner-ok {
  text-align: center; font-weight: 900; font-size: 15px;
  padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, #d4e000, #a5b103); color: #101010;
  margin-bottom: 8px;
}

@media (max-width: 960px) {
  .mtbd-bottom-actions--p68 #tk-btn-primary-cta { flex: 1 1 100%; }
  .mtbd-bottom-unlock { width: 100%; order: 3; }
}


/* ===== P9–P10: desktop 3-col + tablet 2-col + performance ===== */
.mtbd-desk-nav,
.mtbd-desk-summary,
.mtbd-desk-picker-host { display: none; }

.mtbd-desk-nav-title {
  font-size: 11px; font-weight: 850; letter-spacing: .06em;
  text-transform: uppercase; color: #64748b; margin: 0 0 10px; padding: 0 4px;
}
.mtbd-desk-nav-list {
  display: flex; flex-direction: column; gap: 4px;
}
.mtbd-desk-nav-btn {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center;
  width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  font: inherit; font-size: 13px; font-weight: 650; color: #334155;
  cursor: pointer; min-height: 40px;
}
.mtbd-desk-nav-btn:hover { background: #f1f5f9; border-color: #e2e8f0; }
.mtbd-desk-nav-btn.is-active {
  background: rgba(212,224,0,.18); border-color: rgba(165,177,3,.55); color: #1a1a00;
}
.mtbd-desk-nav-btn.is-locked { opacity: .55; }
.mtbd-desk-nav-btn.is-filled .mtbd-desk-nav-mark {
  background: #d4e000; border-color: #a5b103; color: #101010;
}
.mtbd-desk-nav-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #cbd5e1; color: #94a3b8;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.mtbd-desk-nav-lab { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtbd-desk-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.mtbd-desk-nav-btn.is-filled .mtbd-desk-nav-dot { background: #16a34a; }

.mtbd-desk-summary {
  flex-direction: column; gap: 10px;
  padding: 14px 14px 16px;
  background: var(--mtbd-surface, #fff);
  border: 1px solid var(--mtbd-line, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.mtbd-desk-sum-head { display: flex; flex-direction: column; gap: 8px; }
.mtbd-desk-sum-prog { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 750; color: #334155; }
.mtbd-desk-sum-price {
  font-size: 1.35rem; font-weight: 900; color: #c9141b; line-height: 1.2;
}
.mtbd-desk-sum-price small {
  display: block; margin-top: 4px; font-size: 11px; font-weight: 650; color: #94a3b8;
}
.mtbd-desk-sum-watt { font-size: 12.5px; color: #64748b; }
.mtbd-desk-sum-meta { display: flex; flex-direction: column; gap: 4px; }
.mtbd-desk-sum-items {
  list-style: none; margin: 0; padding: 0;
  max-height: min(42vh, 360px); overflow: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.mtbd-desk-sum-items .mtbd-sum-item,
.mtbd-desk-sum-items li.mtbd-sum-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 8px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid #eef2f7;
  font-size: 12.5px;
}
.mtbd-desk-sum-items .lab { font-size: 10px; font-weight: 800; color: #64748b; text-transform: uppercase; }
.mtbd-desk-sum-items .nm { font-weight: 650; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.mtbd-desk-sum-items .pr { font-weight: 800; color: #c9141b; white-space: nowrap; }
.mtbd-desk-sum-items .mtbd-sum-empty { color: #94a3b8; font-size: 13px; padding: 8px 2px; }
.mtbd-desk-sum-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mtbd-desk-unlock { display: flex; gap: 8px; flex-wrap: wrap; }
.mtbd-desk-unlock[hidden] { display: none !important; }
.mtbd-desk-unlock .mtbd-btn { flex: 1 1 auto; }

/* Docked picker (desktop) */
.mtbd-desk-picker-host {
  min-height: 0;
  border: 1px solid var(--mtbd-line, #e2e8f0);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.hq-picker-modal.mtbd-picker.is-desk-docked {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: min(72vh, 780px);
  opacity: 1 !important;
  pointer-events: auto !important;
  background: transparent !important;
}
.hq-picker-modal.mtbd-picker.is-desk-docked .modal-dialog,
.hq-picker-modal.mtbd-picker.is-desk-docked .modal-content {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border-radius: 0; border: 0;
}
body.mtbd-desk-picking .hq-picker-backdrop { display: none !important; }
body.mtbd-desk-picking #tk-timeline-panel { display: none; }
body.mtbd-desk-picking #tk-desk-picker-host { display: block; }
body.mtbd-desk-picking { overflow: auto; }

/* Tablet 768–1023: 2 columns (center + summary) */
@media (min-width: 768px) and (max-width: 1023px) {
  .mtbd-tk--p910 .mtbd-shell { max-width: 1100px; }
  .mtbd-build--p910 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
    align-items: start;
  }
  .mtbd-desk-nav { display: none; }
  .mtbd-desk-summary {
    display: flex;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 88px);
    overflow: auto;
  }
  .mtbd-tk--p910 .mtbd-bottom--fixed {
    /* keep bottom as secondary on tablet; summary is primary */
    opacity: .97;
  }
}

/* Desktop ≥1024: 3 columns */
@media (min-width: 1024px) {
  .mtbd-tk--p910 .mtbd-shell { max-width: 1440px; padding-left: 20px; padding-right: 20px; }
  .mtbd-build--p910 {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
  }
  .mtbd-desk-nav {
    display: block;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 88px);
    overflow: auto;
    padding: 10px 8px 12px;
    background: var(--mtbd-surface, #fff);
    border: 1px solid var(--mtbd-line, #e2e8f0);
    border-radius: 16px;
  }
  .mtbd-desk-summary {
    display: flex;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 88px);
    overflow: auto;
  }
  .mtbd-tk--p910 .mtbd-bottom--fixed {
    display: none !important;
  }
  .mtbd-tk--p910 {
    padding-bottom: 28px;
    --mtbd-bottom: 0px;
  }
  .mtbd-tk--p910 .mtbd-float-consult {
    bottom: 24px;
  }
  /* Inline docked picker uses sidebar chips on desk too */
  body.mtbd-desk-picking .picker-chips-bar { display: flex; flex-wrap: wrap; }
}

/* Perf: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .mtbd-tk, .mtbd-tk *, .hq-picker-modal, .hq-picker-modal *,
  .mtbd-sheet, .mtbd-sheet *, .mtbd-bottom, .mtbd-bottom * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Perf: content-visibility for long timeline when idle on desk */
@media (min-width: 1024px) {
  .mtbd-tl-card { content-visibility: auto; contain-intrinsic-size: 120px; }
}


/* =====================================================================
   LAYOUT-FIX 2026-09-25 — chỉ bố cục trang Build PC tham khảo
   Scope: html.mtbd-tk-page (gắn inline trong template page.buildpcthamkhao)
   Không đụng logic build. Theme dùng chung không bị sửa.
   ===================================================================== */
html.mtbd-tk-page {
  --tk-header-h: 0px;
  --tk-shell-max: 1280px;
  --tk-gap: 16px;
}

/* 1) Sticky hỏng vì <main> bị overflow-x:hidden (tạo scroll container) → dùng clip */
html.mtbd-tk-page .mtbd-tk {
  overflow: visible !important;
  overflow-x: clip !important;
}

/* 2) Banner dọc 2 bên của theme (#vht-sticky-banners-container .vht-home-side-rail)
      Canh theo khung builder 1280px; chỉ hiện khi đủ chỗ nằm hẳn ngoài khung */
html.mtbd-tk-page #vht-sticky-banners-container {
  width: var(--tk-shell-max) !important;
  max-width: none !important;
}
@media (max-width: 1519px) {
  html.mtbd-tk-page #vht-sticky-banners-container,
  html.mtbd-tk-page #vht-sticky-banners-container .vht-home-side-rail { display: none !important; }
}
@media (min-width: 1520px) and (max-width: 1639px) {
  html.mtbd-tk-page #vht-sticky-banners-container .vht-home-slider-layout .vht-home-side-rail { width: 100px !important; }
}

/* 3) Nút nổi theme (Gọi đỏ / Messenger / Zalo / TikTok), back-to-top, thanh nav mobile theme
      → ẩn trên trang builder; gom về 1 nút «💬 Tư vấn» nằm trong thanh tổng / cột summary */
html.mtbd-tk-page .fixed-action-btn,
html.mtbd-tk-page .back-to-top,
html.mtbd-tk-page .navigation-mobile,
html.mtbd-tk-page .zalo-chat-widget,
html.mtbd-tk-page .mtbd-float-consult { display: none !important; }

html.mtbd-tk-page .mtbd-btn-consult {
  border-color: rgba(165,177,3,.7) !important;
  color: #3f4600 !important;
  font-weight: 800 !important;
  background: #fff !important;
  white-space: nowrap;
}
html.mtbd-tk-page .mtbd-btn-consult:hover { background: rgba(212,224,0,.16) !important; }
html.mtbd-tk-page .mtbd-sheet-body .mtbd-btn-msgr { color: #0a66c2 !important; border-color: #bfd7f5 !important; }
html.mtbd-tk-page .mtbd-sheet-body .mtbd-btn-call { color: #b91c1c !important; border-color: #f5c2c2 !important; }
html.mtbd-tk-page .mtbd-sheet-body .mtbd-btn-primary { color: #1a1a00 !important; }

/* 4) Thanh builder (MTB · tiến độ · tìm) — dính NGAY DƯỚI header theme, không bị che */
html.mtbd-tk-page .mtbd-builder-top {
  top: var(--tk-header-h, 0px);
  z-index: 1030; /* dưới header theme (1041), trên nội dung */
}

/* ---------- Mobile < 768: 1 cột, không sidebar, không nút nổi ---------- */
@media (max-width: 767px) {
  html.mtbd-tk-page { --mtbd-bottom: 104px; }
  html.mtbd-tk-page .mtbd-builder-top { height: 48px; margin-bottom: 6px; }
  html.mtbd-tk-page .mtbd-builder-brand-text { display: none; }
  html.mtbd-tk-page .mtbd-builder-search { width: 40px; height: 40px; }
  html.mtbd-tk-page .mtbd-shell { padding: 8px 12px 20px; }
  /* chip nhu cầu/ngân sách: 1 hàng cuộn ngang → hero gọn */
  html.mtbd-tk-page .mtbd-hero--compact .mtbd-suggest-chips {
    flex-wrap: nowrap !important; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 -14px; padding: 2px 14px 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent);
  }
  html.mtbd-tk-page .mtbd-hero--compact .mtbd-suggest-chips::-webkit-scrollbar { display: none; }
  html.mtbd-tk-page .mtbd-hero--compact .mtbd-chip { flex: 0 0 auto; }
  html.mtbd-tk-page .mtbd-hero-ctas .mtbd-btn { min-width: 0; flex: 1 1 0; }
  html.mtbd-tk-page .mtbd-desk-nav,
  html.mtbd-tk-page .mtbd-desk-summary { display: none !important; }

  /* thanh tổng dưới: ngay trên thanh preview (nếu có) + safe-area; 1 hàng CTA | Zalo | Tư vấn */
  html.mtbd-tk-page .mtbd-tk .mtbd-bottom,
  html.mtbd-tk-page .mtbd-tk .mtbd-bottom--collapsible {
    bottom: var(--mtbd-preview-bar, 0px) !important;
  }
  html.mtbd-tk-page .mtbd-bottom-collapsed { min-height: 40px; }
  html.mtbd-tk-page .mtbd-bottom-actions--p68 {
    flex-wrap: wrap; align-items: stretch;
    padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 8px;
  }
  html.mtbd-tk-page .mtbd-bottom-actions--p68 #tk-btn-primary-cta { flex: 1 1 0 !important; min-width: 0; min-height: 44px !important; }
  html.mtbd-tk-page .mtbd-bottom-actions--p68 #tk-btn-zalo { flex: 0 0 auto; min-width: 60px; min-height: 44px !important; padding: 8px 10px; }
  html.mtbd-tk-page .mtbd-bottom-actions--p68 #tk-bottom-consult { flex: 0 0 auto; min-height: 44px !important; padding: 8px 12px; font-size: 13px; }
  html.mtbd-tk-page .mtbd-bottom-unlock { flex: 1 1 100%; order: 5; }
  html.mtbd-tk-page .mtbd-tk--p1 {
    padding-bottom: calc(var(--mtbd-bottom) + var(--mtbd-preview-bar, 0px) + env(safe-area-inset-bottom, 0px) + 16px) !important;
  }
}
@media (max-width: 360px) {
  html.mtbd-tk-page .mtbd-bottom-actions--p68 #tk-bottom-consult { font-size: 0; padding: 8px 11px; }
  html.mtbd-tk-page .mtbd-bottom-actions--p68 #tk-bottom-consult::before { content: "💬"; font-size: 16px; }
}

/* ---------- Tablet 768–1023: 2 cột (timeline | build sticky), bỏ thanh dưới ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  html.mtbd-tk-page .mtbd-builder-top { height: 50px; }
  html.mtbd-tk-page .mtbd-tk--p910 .mtbd-shell { max-width: 1000px; padding-left: 16px; padding-right: 16px; }
  html.mtbd-tk-page .mtbd-build--p910 { grid-template-columns: minmax(0, 1fr) 272px; gap: 14px; }
  html.mtbd-tk-page .mtbd-desk-summary {
    top: calc(var(--tk-header-h, 0px) + 50px + 12px);
    max-height: calc(100vh - var(--tk-header-h, 0px) - 50px - 24px - var(--mtbd-preview-bar, 0px));
  }
  html.mtbd-tk-page .mtbd-tk--p910 .mtbd-bottom--fixed { display: none !important; }
  html.mtbd-tk-page .mtbd-tk--p910,
  html.mtbd-tk-page .mtbd-tk--p1 {
    --mtbd-bottom: 0px;
    padding-bottom: calc(28px + var(--mtbd-preview-bar, 0px)) !important;
  }
}

/* ---------- Desktop ≥1024: 3 cột, khung 1280 căn giữa ---------- */
@media (min-width: 1024px) {
  /* thanh builder không dính trên desktop (cột Build đã có tiến độ) → không trùng 2 thanh */
  html.mtbd-tk-page .mtbd-builder-top {
    position: relative; top: auto; z-index: 2;
    background: transparent; border-bottom: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    height: auto; margin: 12px 0 0;
  }
  html.mtbd-tk-page .mtbd-builder-top-inner {
    width: calc(100% - 40px);
    max-width: calc(var(--tk-shell-max) - 40px);
    height: 52px; padding: 0 14px;
    background: #fff; border: 1px solid var(--mtbd-line); border-radius: 14px;
  }
  html.mtbd-tk-page .mtbd-tk--p910 .mtbd-shell {
    max-width: var(--tk-shell-max);
    padding-left: 20px; padding-right: 20px;
  }
  html.mtbd-tk-page .mtbd-desk-nav,
  html.mtbd-tk-page .mtbd-desk-summary {
    top: calc(var(--tk-header-h, 0px) + 16px);
    max-height: calc(100vh - var(--tk-header-h, 0px) - 32px - var(--mtbd-preview-bar, 0px));
  }
  html.mtbd-tk-page .mtbd-tk--p910 { padding-bottom: calc(28px + var(--mtbd-preview-bar, 0px)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  html.mtbd-tk-page .mtbd-build--p910 { grid-template-columns: 168px minmax(0, 1fr) 272px; gap: 14px; }
}

/* Zalo + Tư vấn cùng hàng trong cột Build (tablet + desktop) */
html.mtbd-tk-page .mtbd-desk-duo { display: flex; gap: 8px; }
html.mtbd-tk-page .mtbd-desk-duo .mtbd-btn { flex: 1 1 0; min-width: 0; }

/* Cột Build (summary): khung tương thích không bị kéo cao 220px; dòng Hiệu năng/Nâng cấp gọn */
html.mtbd-tk-page .mtbd-desk-summary .mtbd-compat { flex: 0 0 auto !important; min-height: 0; }
html.mtbd-tk-page .mtbd-desk-sum-meta .mtbd-sum-row { display: block; font-size: 12.5px; line-height: 1.45; color: #475569; }
html.mtbd-tk-page .mtbd-desk-sum-meta .mtbd-sum-row .k {
  display: inline-block; margin-right: 6px; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; color: #64748b;
}
html.mtbd-tk-page .mtbd-desk-sum-meta .mtbd-sum-row:nth-child(-n+2) .k { display: none; }

/* Sheet / picker / capture không bị thanh preview Haravan (nếu có) che đáy — biến = 0 khi không preview */
html.mtbd-tk-page .mtbd-sheet,
html.mtbd-tk-page .mtbd-search-overlay { padding-bottom: var(--mtbd-preview-bar, 0px); }
html.mtbd-tk-page .hq-picker-modal:not(.is-desk-docked) { bottom: var(--mtbd-preview-bar, 0px) !important; }
html.mtbd-tk-page .mtbd-capture-modal { bottom: var(--mtbd-preview-bar, 0px); }
@media (max-width: 767px) {
  /* Picker (mobile) kết thúc ngay trên thanh tổng → không bị thanh tổng che lưới/phân trang */
  html.mtbd-tk-page .hq-picker-modal:not(.is-desk-docked) {
    bottom: calc(var(--mtbd-preview-bar, 0px) + var(--mtbd-bottom)) !important;
  }
}
@media (max-width: 767px) {
  /* nút 📷 Chụp gọn cạnh tiêu đề timeline thay vì full-width */
  html.mtbd-tk-page .mtbd-panel-head-row { flex-wrap: nowrap; align-items: center; }
  html.mtbd-tk-page .mtbd-panel-head-row > div { min-width: 0; }
  html.mtbd-tk-page .mtbd-btn-capture-top { width: auto !important; flex: 0 0 auto; padding: 8px 12px; min-height: 40px !important; font-size: 13px; }
}
