#etf-volume-panel { margin:24px 0; min-width:0; }
.etf-volume-active .intro .refresh-area,.etf-volume-active #notice { display:none; }
#etf-volume-panel .etf-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0; }
#etf-volume-panel select { max-width:100%; padding:8px; border:1px solid #d7e2db; border-radius:8px; background:#fff; color:#183d33; }
#etf-volume-panel .etf-note { color:#586e64; font-size:13px; line-height:1.7; }
#etf-volume-panel .etf-comparison { padding:12px 16px; border-left:3px solid #2c786b; background:#f0f6f2; color:#244c3e; }
#etf-volume-cards, #etf-daily-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }
#etf-volume-cards.etf-single, #etf-daily-cards.etf-single { grid-template-columns:minmax(0,1fr); }
#etf-daily-cards [data-etf-day] { cursor:pointer; }
#etf-daily-cards [data-etf-day]:focus { outline:2px solid #476ba0; }
#etf-daily-cards [data-etf-day]:hover { opacity:.65; }
#etf-volume-panel [hidden] { display:none !important; }
#etf-volume-panel .etf-period-switch { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;width:100%;max-width:440px;box-sizing:border-box; }
#etf-volume-panel .etf-period-switch button { width:100%;min-height:46px;margin:0;padding:10px 6px;font-size:14px;white-space:nowrap; }
#etf-volume-panel .etf-alert-panel { padding:12px 16px;margin:16px 0;border:1px solid #dde5df;border-radius:10px;background:#f7f9f5; }
#etf-volume-panel .etf-alert-panel.has-events { border-color:#d99595;background:#fff5f4; }
#etf-volume-panel .etf-alert-summary { margin:0;font-size:14px;line-height:1.7; }
#etf-volume-panel .has-events .etf-alert-summary { color:#a12626;font-weight:600; }
#etf-volume-panel .etf-alert-panel summary { min-height:44px;line-height:1.7;padding-top:10px;cursor:pointer; }
#etf-volume-panel .etf-event-red { border-color:#d9a1a1;border-left:4px solid #b63232;background:#fff; }
#etf-volume-panel .etf-event-red strong,#etf-volume-panel .etf-event-red > p:not(.etf-meta) { color:#a12626; }
#etf-volume-panel .etf-event-red .etf-tag { color:#9f2e2e;background:#fff0ee; }
#etf-volume-panel .etf-event-current { box-shadow:0 0 0 2px #e8b8b8; }
#etf-volume-panel .etf-event button { min-height:44px;text-align:left; }
#etf-volume-panel .etf-single .etf-chart svg { max-height:330px; }
#etf-volume-panel .etf-card { min-width:0; padding:18px; border:1px solid #dce5df; border-radius:12px; background:#fff; }
#etf-volume-panel .etf-card-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:8px; }
#etf-volume-panel .etf-card h3 { font-size:17px; margin:5px 0; }
#etf-volume-panel .etf-card-head strong { color:#287267; font-size:13px; letter-spacing:1px; }
#etf-volume-panel .etf-tag { display:inline-block; border-radius:6px; background:#eef4ef; color:#385e4b; font-size:11px; padding:5px 8px; }
#etf-volume-panel .etf-tag.etf-warn { background:#fff2de; color:#8a571c; }
#etf-volume-panel .etf-meta { font-size:12px; color:#63766d; line-height:1.7; overflow-wrap:anywhere; }
#etf-volume-panel .etf-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0 8px; }
#etf-volume-panel .etf-metrics span { display:block; font-size:12px; color:#63766d; }
#etf-volume-panel .etf-metrics b { display:block; font-size:23px; color:#183d33; margin-top:5px; }
#etf-volume-panel .etf-metrics small { font-size:12px; font-weight:400; }
#etf-volume-panel .etf-chart svg { display:block; width:100%; height:auto; }
#etf-volume-panel .etf-chart svg text { fill:#687d72; font-size:12px; }
#etf-volume-panel .etf-chart-title { margin:16px 0 6px; font-size:13px; font-weight:500; color:#4b6659; }
#etf-volume-panel .etf-window-control { padding:12px 16px; background:#f5f8f4; border-radius:8px; margin:12px 0; }
#etf-volume-panel .etf-window-control label { display:block; font-size:13px; color:#385e4b; }
#etf-volume-panel .etf-window-control input { width:100%; min-height:32px; accent-color:#2c786b; }
#etf-volume-panel .etf-window-control .etf-meta { margin:2px 0; }
#etf-volume-panel .etf-window-control .text-button { margin-right:12px; min-height:36px; }
#settings-view > .panel { margin-bottom:24px; }
#etf-volume-panel .etf-empty { min-height:140px; display:grid; place-items:center; text-align:center; color:#63766d; font-size:13px; }
#etf-volume-panel .etf-error { color:#a44c2e; overflow-wrap:anywhere; }
#etf-volume-panel .etf-legend { display:flex; flex-wrap:wrap; gap:16px; font-size:12px; color:#63766d; }
#etf-volume-panel .etf-legend span:nth-child(1) { color:#2c786b; }
#etf-volume-panel .etf-legend span:nth-child(2) { color:#aa8734; }
#etf-volume-panel .etf-legend span:nth-child(3) { color:#c66b37; }
#etf-volume-panel .etf-event-list { display:grid; gap:10px; }
#etf-volume-panel .etf-event-list { max-height:520px; overflow:auto; }
#etf-volume-panel .etf-asset-picker { padding:12px 16px; }
#etf-volume-panel .etf-asset-picker select { max-width:100%; }
#etf-volume-panel .etf-event { padding:12px 14px; border:1px solid #dce5df; border-radius:8px; }
#etf-volume-panel .etf-event > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
#etf-volume-panel .etf-event p { margin:6px 0 0; font-size:13px; overflow-wrap:anywhere; }
@media(max-width:850px) { #etf-volume-cards, #etf-daily-cards { grid-template-columns:minmax(0,1fr); } }
@media(max-width:400px) { #etf-volume-panel .etf-card { padding:12px; } #etf-volume-panel .etf-toolbar { align-items:stretch; flex-direction:column; } }
@media(min-width:651px) and (max-width:1250px) { .has-etf-volume .topbar nav { gap:12px; } }
@media(max-width:650px) {
  #etf-volume-panel .etf-chart svg text { font-size:20px; }
  .has-etf-volume .topbar nav { display:flex; flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; overscroll-behavior-x:contain; }
  .has-etf-volume .topbar .nav { flex:0 0 72px; min-width:72px; }
  .etf-volume-active .intro { margin:0; }
}
