/* Bảng điều khiển → Product Dashboard */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome){
  --dx-primary:#6052e6; --dx-primary-2:#4f40d6; --dx-soft:#efedff; --dx-soft-2:#f6f5ff;
  --dx-tile:#7d6ff2; --dx-tile-hover:#6a5be8; --dx-tile-on:#4c3dd0;
  --dx-pink:#d6336c; --dx-red:#e5484d; --dx-red-soft:#fde8e8; --dx-line:#ff6b6b;
  --dx-card:var(--panel); --dx-strip:var(--panel-2); --dx-text:var(--fg); --dx-muted:var(--muted); --dx-faint:var(--faint); --dx-border:var(--line);
  color:var(--dx-text); font-size:13px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) :is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome){--dx-soft:#221f3d;--dx-soft-2:#1b1930;--dx-red-soft:#3a1c1f;--dx-tile:#6b5de0;--dx-tile-hover:#5a4cd6;--dx-tile-on:#4436c2}}
:root[data-theme=dark] :is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome){--dx-soft:#221f3d;--dx-soft-2:#1b1930;--dx-red-soft:#3a1c1f;--dx-tile:#6b5de0;--dx-tile-hover:#5a4cd6;--dx-tile-on:#4436c2}

:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-card{background:var(--dx-card);border-radius:12px;padding:18px 20px;margin-bottom:16px;box-shadow:var(--sh)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-h{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:17px;font-weight:700;line-height:1.3;flex-wrap:wrap}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-h .dx-hl{color:var(--dx-primary)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-h .dx-sp{flex:1}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) button{font:inherit;color:inherit}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--dx-primary);color:var(--dx-primary);background:transparent;border-radius:8px;padding:6px 14px;font-weight:600;cursor:pointer;font-size:13px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-btn:hover{background:var(--dx-soft)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-muted{color:var(--dx-muted)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-empty{padding:40px 16px;text-align:center;color:var(--dx-muted);line-height:1.7}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-note{font-size:12px;color:var(--dx-faint);margin-top:10px;line-height:1.6}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-warn{font-size:12px;color:var(--warn);background:var(--warn-soft);border-radius:8px;padding:6px 10px;margin-top:10px}

/* ---- thanh kỳ ---- */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-period{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:var(--dx-strip);border-radius:10px;padding:4px;width:max-content;max-width:100%}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tab{border:0;background:transparent;padding:7px 14px;border-radius:8px;cursor:pointer;color:var(--dx-muted);font-weight:500}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tab.on{background:var(--dx-card);color:var(--dx-primary);font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.06)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-sep{width:1px;height:18px;background:var(--dx-border);margin:0 4px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-arrow{border:0;background:transparent;width:28px;height:28px;border-radius:6px;cursor:pointer;color:var(--dx-muted);font-size:16px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-arrow:disabled{opacity:.3;cursor:default}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-arrow:not(:disabled):hover{background:var(--dx-card)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-date{position:relative}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-date>button{border:0;background:transparent;font-weight:700;font-size:14px;cursor:pointer;padding:6px 8px;border-radius:6px;display:inline-flex;align-items:center;gap:6px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-date>button:hover{background:var(--dx-card)}


/* ---- popover chung ---- */
.dx-pop{position:fixed;z-index:1000;background:var(--panel);color:var(--fg);border-radius:10px;box-shadow:0 8px 28px rgba(15,23,42,.18);border:1px solid var(--line);font-size:13px}
.dx-pop .dx-opt{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 14px;border-radius:7px;cursor:pointer;color:var(--fg)}
.dx-pop .dx-opt:hover{background:var(--panel-2)}
.dx-pop .dx-opt.on{background:#efedff;color:#6052e6;font-weight:600}
:root[data-theme=dark] .dx-pop .dx-opt.on{background:#221f3d;color:#9d93ff}
.dx-pop .dx-range{display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid var(--line)}
.dx-pop .dx-range input{width:96px;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--fg)}
.dx-pop .dx-actions{display:flex;justify-content:space-between;align-items:center;padding:4px 12px 12px}
.dx-pop .dx-actions button{border:0;background:transparent;cursor:pointer;color:var(--muted);padding:6px 4px}
.dx-pop .dx-actions .dx-ok{background:#6052e6;color:#fff;border-radius:7px;padding:6px 16px;font-weight:600}
.dx-pop.dx-list{max-height:320px;overflow:auto;padding:6px;min-width:200px}
.dx-pop.dx-tip{padding:9px 12px;pointer-events:none;line-height:1.7;box-shadow:0 4px 16px rgba(15,23,42,.16);max-width:320px}
.dx-pop.dx-tip .dx-tt{color:var(--muted);font-size:12px}
.dx-pop.dx-tip .dx-row{display:flex;justify-content:space-between;gap:24px}
.dx-pop.dx-tip .dx-row b{font-weight:700}
.dx-pop.dx-menu{padding:6px;min-width:210px}
.dx-pop.dx-menu .dx-opt[disabled]{color:var(--faint);cursor:default}
.dx-pop.dx-menu .dx-opt small{color:var(--faint);margin-left:6px}

/* cascader chọn danh mục */
.dx-pop.dx-cas{padding:10px;width:min(720px,94vw)}
.dx-cas input{width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:8px;margin-bottom:8px;background:var(--panel-2);color:var(--fg)}
.dx-cas .dx-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;height:300px}
.dx-cas .dx-col{overflow:auto;border-right:1px solid var(--line-2);padding-right:4px}
.dx-cas .dx-col:last-child{border-right:0}
.dx-cas .dx-opt{display:flex;justify-content:space-between;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dx-cas .dx-opt.hover{background:var(--panel-2)}
.dx-cas .dx-opt i{font-style:normal;color:var(--faint)}

/* ---- treemap ---- */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tree{position:relative;height:340px;border-radius:6px;overflow:hidden;user-select:none}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tile{position:absolute;background:var(--dx-tile);color:#fff;border:1.5px solid var(--dx-card);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden;cursor:pointer;padding:2px 4px;font-size:11.5px;font-weight:600;line-height:1.35;transition:background .12s}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tile:hover{background:var(--dx-tile-hover)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tile.on{background:var(--dx-tile-on)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tile .dx-tn{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tile .dx-tv{font-size:10.5px;font-weight:500;opacity:.95;white-space:nowrap}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tile.big{font-size:12.5px}

/* ---- dải chỉ số ---- */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:0}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpi{text-align:center;padding:6px 10px;border-right:1px solid var(--dx-border);min-width:0}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpi:last-child{border-right:0}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpi .dx-v{font-size:22px;font-weight:800;letter-spacing:-.2px;line-height:1.35}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpi .dx-c{font-size:11.5px;color:var(--dx-faint);min-height:16px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpi .dx-l{font-size:12px;color:var(--dx-muted);margin-top:4px;line-height:1.4}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-i{display:inline-grid;place-items:center;width:14px;height:14px;border:1px solid var(--dx-faint);border-radius:50%;font-size:9px;color:var(--dx-faint);margin-left:3px;cursor:help;vertical-align:1px}

/* ---- nút chuyển ---- */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-toggles{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:18px 0 6px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-seg{display:inline-flex;gap:6px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-seg button{border:1px solid var(--dx-border);background:var(--dx-card);border-radius:7px;padding:5px 12px;cursor:pointer;font-size:12.5px;color:var(--dx-muted)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-seg button.on{border-color:var(--dx-text);color:var(--dx-text);font-weight:600}

/* ---- biểu đồ ---- */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart{width:100%;overflow:hidden}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart svg{display:block;width:100%}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart text{fill:var(--dx-muted);font-size:11px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart .dx-grid{stroke:var(--dx-border);stroke-dasharray:3 3}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart .dx-axis{stroke:var(--dx-border)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart .dx-bar{fill:var(--dx-primary);cursor:pointer}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart .dx-bar:hover{fill:var(--dx-primary-2)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart .dx-hbar{fill:var(--dx-primary)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chart .dx-val{fill:var(--dx-text);font-size:11.5px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-legend{display:flex;justify-content:center;gap:18px;font-size:12px;color:var(--dx-muted);margin-top:6px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-legend i{display:inline-block;width:12px;height:8px;border-radius:2px;margin-right:6px;vertical-align:0}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-prices{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-prices h4{margin:0 0 4px;font-size:13px;font-weight:500;color:var(--dx-text)}

/* ---- bộ lọc ---- */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-filters{display:grid;grid-template-columns:78px 1fr;gap:8px 4px;align-items:start;margin:4px 0 14px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-filters>span{color:var(--dx-muted);padding:6px 0;text-align:right;padding-right:12px;white-space:nowrap}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-frow{display:flex;flex-wrap:wrap;gap:4px 14px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-f{border:0;background:transparent;cursor:pointer;padding:6px 4px;color:var(--dx-text);display:inline-flex;align-items:center;gap:4px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-f::after{content:'⌄';color:var(--dx-faint);font-size:12px;position:relative;top:-2px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-f.on{color:var(--dx-primary);font-weight:600}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-f.open::after{content:'⌃';top:2px}

/* ---- bảng ---- */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-twrap{overflow-x:auto;border-radius:10px;border:1px solid var(--dx-border)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) table.dx-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1180px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th{background:var(--dx-strip);color:var(--dx-muted);font-weight:600;text-align:center;padding:12px 10px;white-space:nowrap;font-size:13px;position:sticky;top:0;z-index:1}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th:first-child{text-align:left;padding-left:24px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th.sort{cursor:pointer}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th.sort::after{content:'⇅';margin-left:4px;color:var(--dx-faint);font-size:11px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th.sort.asc::after{content:'▲';color:var(--dx-primary);font-size:9px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th.sort.desc::after{content:'▼';color:var(--dx-primary);font-size:9px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th.sort.asc,:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th.sort.desc{color:var(--dx-primary)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table td{padding:14px 10px;border-top:1px solid var(--dx-border);text-align:center;vertical-align:middle}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table tbody tr:hover td{background:var(--dx-soft-2)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table .dx-act{position:sticky;right:0;background:var(--dx-card);box-shadow:-6px 0 8px -6px rgba(0,0,0,.08)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-table th.dx-act{background:var(--dx-strip)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-prod{display:flex;gap:14px;align-items:flex-start;text-align:left;min-width:330px;max-width:420px;padding-left:14px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-prod img{width:80px;height:80px;border-radius:8px;object-fit:cover;flex:none;background:var(--dx-strip);cursor:pointer}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pinfo{min-width:0;flex:1}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-hot{display:inline-block;background:linear-gradient(90deg,#ff5b3a,#ff2f6d);color:#fff;font-size:10px;font-weight:800;padding:1px 6px;border-radius:4px;margin-bottom:3px;letter-spacing:.3px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pname{display:flex;gap:6px;align-items:flex-start}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pname a{font-weight:700;color:var(--dx-text);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45;cursor:pointer;font-size:13.5px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pname a:hover{color:var(--dx-primary)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-copy{border:0;background:transparent;color:var(--dx-faint);cursor:pointer;padding:0 2px;font-size:13px;flex:none}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-copy:hover{color:var(--dx-primary)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pprice{display:flex;align-items:center;gap:8px;margin:6px 0}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pink{color:var(--dx-pink);font-weight:700}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-spec{border:1px solid var(--dx-border);background:var(--dx-strip);border-radius:5px;padding:1px 7px;font-size:11.5px;color:var(--dx-muted);cursor:pointer}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-spec:hover{color:var(--dx-primary);border-color:var(--dx-primary)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chips{display:flex;flex-wrap:wrap;gap:6px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chip{background:var(--dx-soft);color:var(--dx-primary);border-radius:5px;padding:2px 8px;font-size:11.5px;font-weight:600;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chip.comm{background:#fff0f6;color:var(--dx-pink)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-chip.new{background:var(--dx-red-soft);color:var(--dx-red)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-cny{display:block;color:var(--dx-faint);font-size:11.5px;font-weight:400}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-strong{font-weight:700}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-star{border:1px solid var(--dx-border);background:var(--dx-card);border-radius:8px;width:32px;height:32px;cursor:pointer;font-size:16px;color:var(--dx-muted)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-star.on{color:var(--dx-primary);border-color:var(--dx-primary)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-spark{display:block;margin:0 auto}

/* phân trang */
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pager{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:16px;flex-wrap:wrap}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pager select,:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pager input{border:1px solid var(--dx-border);border-radius:7px;padding:5px 8px;background:var(--dx-card);color:var(--dx-text)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pager input{width:56px}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pager button{min-width:32px;height:32px;border:1px solid transparent;background:transparent;border-radius:7px;cursor:pointer;color:var(--dx-text)}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pager button.on{border-color:var(--dx-primary);color:var(--dx-primary);font-weight:700}
:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-pager button:disabled{opacity:.35;cursor:default}

/* menu trên cùng */
#mods button[data-v=dashboard]::after{content:' ▾';font-size:10px;color:var(--faint)}

/* ngăn kéo chi tiết sản phẩm & hộp thoại */
.dx-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:900;display:flex;justify-content:flex-end}
.dx-drawer{position:relative;width:min(620px,100vw);height:100%;background:var(--panel);color:var(--fg);overflow:auto;padding:22px 24px;box-shadow:-8px 0 24px rgba(0,0,0,.15)}
.dx-modal{margin:auto;width:min(640px,94vw);max-height:84vh;overflow:auto;background:var(--panel);color:var(--fg);border-radius:12px;padding:20px 22px}
.dx-overlay.center{justify-content:center;align-items:center}
.dx-drawer h3,.dx-modal h3{margin:0 0 12px;font-size:17px;line-height:1.4}
.dx-close{float:right;border:0;background:transparent;font-size:22px;cursor:pointer;color:var(--muted);line-height:1}
.dx-dhead{display:flex;gap:16px;margin-bottom:16px;padding-right:28px}
.dx-drawer>.dx-close{position:absolute;top:14px;right:16px}
.dx-dhead img{width:120px;height:120px;border-radius:10px;object-fit:cover;background:var(--panel-2);flex:none}
.dx-dgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.dx-dgrid div{background:var(--panel-2);border-radius:9px;padding:10px 12px}
.dx-dgrid b{display:block;font-size:16px;margin-top:2px}
.dx-dgrid span{font-size:12px;color:var(--muted)}
.dx-skus{width:100%;border-collapse:collapse;font-size:12.5px}
.dx-skus th,.dx-skus td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left}
.dx-skus th{color:var(--muted);font-weight:600}
.dx-links{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.dx-links a,.dx-links button{border:1px solid var(--line);background:var(--panel);color:var(--fg);border-radius:8px;padding:7px 12px;text-decoration:none;cursor:pointer;font-size:13px}
.dx-links a:hover,.dx-links button:hover{border-color:#6052e6;color:#6052e6}
.dx-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#1d2433;color:#fff;padding:9px 16px;border-radius:8px;z-index:1100;font-size:13px}

@media (max-width:1100px){:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpis{grid-template-columns:repeat(3,1fr);row-gap:14px}:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpi:nth-child(3n){border-right:0}:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-prices{grid-template-columns:1fr}}
@media (max-width:640px){:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpis{grid-template-columns:repeat(2,1fr)}:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-kpi{border-right:0}:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-tree{height:260px}:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-card{padding:14px}}

:is(#v-dashboard,#v-library,#v-shops,#v-creators,#v-lives,#v-videos,#v-trends,#v-welcome) .dx-desc,.dx-drawer .dx-desc{font-size:13px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
.dx-drawer .dx-desc p{margin:0 0 8px}
.dx-drawer .dx-desc ul,.dx-drawer .dx-desc ol{margin:0 0 8px;padding-left:20px}
.dx-drawer .dx-desc img{display:block;max-width:100%;height:auto;border-radius:8px;margin:8px 0}
.dx-links .dx-primary{background:#6052e6;border-color:#6052e6;color:#fff;font-weight:600}
.dx-links .dx-primary:hover{background:#4f40d6;border-color:#4f40d6;color:#fff}
#v-dashboard .dx-link{border:0;background:transparent;color:var(--dx-primary);cursor:pointer;font-size:12.5px;padding:0 0 0 6px;white-space:nowrap}
#v-dashboard .dx-link:hover{text-decoration:underline}
