.volume-workspace main{max-width:1420px}.volume-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.volume-controls{display:grid;grid-template-columns:1fr 1fr 1.4fr 1fr;gap:18px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.volume-rule{background:#eaf5f2;border-radius:10px;padding:14px;color:#146c65;line-height:1.7}.volume-rule strong,.volume-rule small{display:block}.volume-rule small{font-size:11px}.volume-summary{display:grid;grid-template-columns:1.7fr repeat(4,1fr);gap:18px;background:#fff;border:1px solid var(--line);padding:22px;border-radius:14px;margin-top:22px;align-items:center}.volume-summary strong{display:block;font-size:21px;margin-top:5px}.volume-summary h2{font-size:23px}.mode-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.mode-badges span{font-size:12px;padding:4px 9px;background:#e8f4f1;border-radius:5px}.chart-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;margin:22px 0}.chart-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.chart-heading h2{font-size:21px}.chart-heading h2 small{font-size:13px;font-weight:400}.chart-heading .help{margin:8px 0 14px}.toggle{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}.toggle input,.chart-legend input{width:17px;min-height:17px;margin:0;accent-color:#146c65}.chart-scroll{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;border-radius:8px}.chart-scroll:focus-visible{outline:2px solid #146c65;outline-offset:2px}.chart-scroll svg{display:block;min-width:640px;width:100%;height:auto;touch-action:pan-x}.chart-scroll text{font:12px system-ui,'Microsoft JhengHei',sans-serif;fill:#617382}.chart-scroll .price-tag{font-weight:700;fill:#fff}.chart-scroll .zone-tag{font-size:11px}.chart-scroll .volume-point{cursor:pointer;stroke:#fff;stroke-width:1.5}.chart-scroll .volume-point:focus{stroke:#172f3c;stroke-width:3;outline:none}.chart-scroll .cursor{stroke:#172f3c;stroke-width:1;stroke-dasharray:4 4;pointer-events:none}.chart-legend{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin:5px 0 16px;font-size:13px}.chart-legend label,.chart-legend span{display:flex;align-items:center;gap:7px;font-size:13px}.chart-legend i{height:3px;width:20px;background:var(--color);display:inline-block}.chart-legend i.bar{height:10px;width:10px}.selection-controls{display:flex;gap:20px;align-items:center;margin:15px 0}.selection-controls label{min-width:280px}.selection-controls p{margin:0}.date-detail{background:#f1f6f7;border-radius:10px;padding:15px;display:flex;gap:12px 24px;flex-wrap:wrap;font-size:13px;line-height:1.8}.date-detail strong{color:#172f3c}.region-panel{margin-top:18px}.region-panel summary{cursor:pointer;font-weight:600;font-size:14px}.region-panel summary span{font-size:12px;color:var(--muted);margin-left:8px}.region-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.region-item{border-left:4px solid var(--region-color);background:var(--region-bg);border-radius:5px;padding:9px 12px;min-width:155px;font-size:12px;line-height:1.7}.region-item strong{display:block;font-size:14px}.region-item small{display:block}.flow-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.flow-group{background:#f4f7f8;border-radius:9px;padding:14px;line-height:1.8;font-size:12px;border-top:3px solid var(--group-color)}.flow-group h3{margin:0 0 8px;font-size:14px}.flow-group strong{font-size:14px}.flow-stat{display:flex;justify-content:space-between;gap:10px}.margin-summary{background:#f4f7f8;border-radius:10px;display:flex;flex-wrap:wrap;gap:12px 28px;padding:15px;font-size:13px;line-height:1.8;margin-top:15px}.coverage-pill{font-size:12px;padding:8px 12px;background:#e9f1fd;color:#285e9e;border-radius:20px;white-space:nowrap}.volume-warning,.volume-error{padding:14px;border-radius:10px;background:#fff0da;color:#795616;font-size:13px;line-height:1.8}.volume-error{background:#fbe9e8;color:#9f3636}.volume-method{padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:13px;line-height:1.9}.volume-method summary{cursor:pointer;font-weight:650}.volume-method a{text-decoration:underline;color:#146c65}.volume-workspace [hidden]{display:none!important}.chart-empty{padding:45px 16px;text-align:center;color:var(--muted);background:#f6f8fa;border-radius:8px}.volume-workspace .help{line-height:1.8}.volume-workspace #scopeStatus{margin:10px 0}.volume-workspace .function-nav{gap:18px}.volume-workspace button:disabled{opacity:.5;cursor:default}@media(max-width:1000px){.volume-controls{grid-template-columns:1fr 1fr}.volume-summary{grid-template-columns:repeat(4,1fr)}.volume-summary>div:first-child{grid-column:1/-1}.chart-heading{align-items:flex-start}}@media(max-width:600px){.volume-workspace main{padding:22px 14px}.volume-heading{align-items:flex-start;flex-direction:column}.volume-heading h1{font-size:29px}.volume-controls{padding:14px;gap:12px}.volume-controls>label:nth-child(3),.volume-rule{grid-column:1/-1}.volume-summary{grid-template-columns:1fr 1fr;padding:16px;gap:14px}.volume-summary strong{font-size:18px}.chart-panel{padding:15px;margin:16px 0}.chart-heading{flex-direction:column;gap:8px}.chart-heading h2{font-size:19px}.chart-legend{gap:12px;margin-top:14px}.selection-controls{flex-direction:column;align-items:stretch;gap:8px}.selection-controls label{min-width:0}.flow-summary{grid-template-columns:1fr}.volume-workspace .function-nav{gap:8px}.volume-workspace .function-nav a{font-size:12px}.region-item{min-width:130px;flex:1}.coverage-pill{white-space:normal}.date-detail{gap:8px 16px}.chart-scroll::after{content:'可左右滑動圖表';display:block;text-align:right;color:#617382;font-size:11px;padding:4px 0}}

.stock-detail-link{display:inline-flex;align-items:center;min-height:44px;margin:8px 0;padding:8px 12px;border:1px solid #146c65;border-radius:9px;color:#146c65;font-size:14px;background:#eef8f5}

.mobile-chart-open{display:none}
#mobileChartViewer{padding:0}
@media(max-width:600px),(max-width:1000px) and (pointer:coarse),(max-width:1000px) and (max-height:500px){
 .volume-workspace .app-header{position:static}
 .volume-workspace .function-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;width:100%}
 .volume-workspace .function-nav a{font-size:13px;padding:10px 5px;text-align:center;line-height:1.5}
 .volume-workspace .help,.volume-workspace small,.volume-workspace label{font-size:14px}
 .volume-workspace .volume-summary strong{font-size:24px}
 .volume-workspace .chart-heading h2{font-size:22px}
 .volume-workspace .chart-panel{padding:16px;border-radius:20px;box-shadow:0 4px 18px #172f3c06}
 .volume-workspace .date-detail,.volume-workspace .margin-summary{font-size:15px}
 .volume-workspace .chart-scroll text{font-size:14px}
 .mobile-chart-open{display:flex;align-items:center;justify-content:center;width:100%;margin:12px 0 16px;min-height:48px;background:#146c65;color:#fff;font-size:16px;font-weight:650;border-radius:12px}
 #mobileChartViewer{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:16px;background:#f7fafb;overflow-y:auto;overscroll-behavior:contain;color:#172f3c}
 .mobile-chart-viewing{overflow:hidden}
 .mobile-viewer-head{display:flex;justify-content:space-between;align-items:center;gap:8px;position:sticky;top:-16px;background:#f7fafb;z-index:3;padding:6px 0}
 .mobile-viewer-head h2{font-size:21px;margin-top:5px}
 .mobile-viewer-head small{font-size:13px}
 #mobileViewerClose{background:#e4efed;color:#146c65;white-space:nowrap;min-height:44px;padding:8px 12px;font-size:14px}
 .mobile-rotate-hint{font-size:14px;color:#146c65;background:#e4f3ee;border-radius:9px;padding:10px;margin:12px 0}
 .mobile-viewer-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;margin:10px 0}
 #mobileViewerChart{background:#fff;border:1px solid #dce5e8;border-radius:14px;padding:6px}
 #mobileViewerChart .chart-scroll svg{touch-action:pan-x}
 #mobileViewerChart .chart-scroll::after{content:'直向可滑動；轉橫看完整圖表'}
 .mobile-viewer-date{display:flex;justify-content:space-between;align-items:center;margin:12px 0 0}
 .mobile-viewer-date label{font-size:15px;color:#172f3c;text-align:center}
 .mobile-viewer-date strong{margin-left:8px}
 .mobile-viewer-date button{background:#e4efed;color:#146c65;font-size:24px;min-width:44px;padding:4px}
 #mobileDateSlider{margin:0;padding:0;border:0;accent-color:#146c65;width:100%;min-height:40px;background:transparent}
 #mobileViewerDetail{font-size:15px;line-height:1.9;background:#eaf2f5;border-radius:10px;padding:12px;margin:6px 0;overflow-wrap:anywhere}
 @media(orientation:landscape){
  #mobileChartViewer{padding:10px 16px}
  .mobile-viewer-head{top:-10px}
  .mobile-viewer-head h2{font-size:19px;margin:0}
  .mobile-viewer-head>div{display:flex;gap:16px;align-items:center}
  .mobile-rotate-hint{display:none}
  .mobile-viewer-legend{margin:4px 0;font-size:12px}
  #mobileViewerChart .chart-scroll::after{display:none}
  .mobile-viewer-date{margin-top:4px}
  #mobileViewerDetail{font-size:14px;padding:8px;line-height:1.6}
 }
}

.volume-workspace .chart-panel{margin:8px 0;padding:14px 18px}.chart-heading .help{margin:4px 0 6px}.chart-legend{margin:4px 0 6px}.chart-details{margin-top:6px}.chart-details>summary{cursor:pointer;font-size:14px;font-weight:600;padding:6px 0}.cursor-node{stroke:#fff;stroke-width:2;pointer-events:none}.volume-workspace .margin-summary{margin-top:6px;padding:8px 12px}

.volume-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.volume-controls>*{min-width:0}.volume-controls select{width:100%;max-width:100%}#clearQuery{min-height:44px;background:white;color:#146c65;border:1px solid #146c65;border-radius:9px}@media(max-width:600px){.volume-controls{grid-template-columns:1fr 1fr}.volume-controls .pocket-control,.volume-controls>label:nth-child(3){grid-column:1/-1}}

.chart-reading-note{font-size:16px;line-height:1.9;color:#263f50;background:#eef6f5;border-left:3px solid #167b71;border-radius:6px;padding:12px 14px;margin:12px 0;white-space:normal;overflow-wrap:anywhere;text-wrap:wrap}

.low-volume-controls{margin:16px 0;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:14px;align-items:end}.low-volume-controls label{min-width:0}.low-volume-controls input[type=number]{width:100%;font-size:16px;min-height:44px}.low-volume-controls .help{grid-column:1/-1;margin:0}.low-volume-toggle{display:flex;align-items:center;gap:8px;font-size:17px;min-height:44px}.low-volume-toggle input{width:20px;height:20px}@media(max-width:600px){.low-volume-controls{grid-template-columns:1fr}.low-volume-controls label{font-size:16px}}
