/* day8 patch (B2): 圓餅圖例色對齊、長條圖不超出外框、NEW 卡標籤對比 */
/* 圓餅：淺色用深金＋深紫（白底可見），深色維持原稿金＋淡紫；圖例色塊與百分比同色 */
html[data-rex-theme="light"] body.dv2 .pie{ background:conic-gradient(#E8A020 0% 85%, #6a45b0 85% 100%) !important; box-shadow:0 8px 24px rgba(10,35,52,.16) !important; }
html[data-rex-theme="dark"] body.dv2 .pie{ background:conic-gradient(#f5c97c 0% 85%, #b694ff 85% 100%) !important; }
html[data-rex-theme="light"] body.dv2 .legend-dot.gold{ background:#E8A020 !important; }
html[data-rex-theme="light"] body.dv2 .legend-dot.violet{ background:#6a45b0 !important; }
html[data-rex-theme="dark"] body.dv2 .legend-dot.gold{ background:#f5c97c !important; }
html[data-rex-theme="dark"] body.dv2 .legend-dot.violet{ background:#b694ff !important; }
html[data-rex-theme="light"] body.dv2 .legend-pct.gold{ color:#8a5500 !important; }
html[data-rex-theme="light"] body.dv2 .legend-pct.violet{ color:#6a45b0 !important; }
html[data-rex-theme="dark"] body.dv2 .legend-pct.gold{ color:#f5c97c !important; }
html[data-rex-theme="dark"] body.dv2 .legend-pct.violet{ color:#c7adff !important; }
/* 長條圖：原稿高 240 容不下 200px 長條＋標籤，5.6% 長條會頂出外框蓋到副標 */
body.dv2 .bar-chart{ height:auto !important; min-height:320px; padding-top:34px !important; }
body.dv2 .bar-sub{ font-size:12px !important; }
/* NEW 卡（棕金底）標籤：淺色改白底深字 */
html[data-rex-theme="light"] body.dv2 .vs-card.new .vs-tag{ background:rgba(255,255,255,.92) !important; color:#6b4300 !important; }
html[data-rex-theme="light"] body.dv2 .vs-card.old .vs-tag{ background:rgba(10,35,52,.1) !important; color:#0a2334 !important; }
/* V1: 深色 NEW 卡白字壓在亮棕金底（約 2.5:1）→ 改深棕金底 */
html[data-rex-theme="dark"] body.dv2 .vs-card.new{ background:linear-gradient(135deg,#6e4f1f 0%,#4b3512 100%) !important; border-color:rgba(232,160,32,.55) !important; }
html[data-rex-theme="dark"] body.dv2 .vs-card.new .vs-tag{ background:rgba(0,0,0,.32) !important; color:#ffe9b8 !important; }
html[data-rex-theme="dark"] body.dv2 .vs-card.new .en{ color:rgba(255,255,255,.82) !important; }
