.traffic-filter-panel { padding: 20px; }
.traffic-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.traffic-controls label { display: flex; flex-direction: column; gap: 8px; color: #516078; font-size: 12px; min-width: 0; }
.traffic-controls select { width: 100%; min-width: 0; background: #fff; }
.traffic-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; color: #64748b; font-size: 12px; }
.traffic-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.traffic-kpi { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 10px; border: 1px solid #dbe5f5; border-top: 4px solid #3975ef; background: #f0f5ff; min-width: 0; }
.traffic-kpi > span { font-size: 13px; font-weight: 600; color: #405775; }
.traffic-kpi strong { font-size: clamp(21px,2.1vw,32px); font-weight: 700; color: #2458c6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.traffic-kpi small { font-size: 11px; line-height: 1.6; color: #586c88; font-weight: 400; }
.traffic-kpi strong small { font-size: 17px; }
.traffic-kpi.cyan { border-color: #c8e8eb; border-top-color: #0d9ba6; background: #effafb; }
.traffic-kpi.cyan strong { color: #087780; }
.traffic-kpi.violet { border-color: #e2dcf6; border-top-color: #8960e2; background: #f6f3ff; }
.traffic-kpi.violet strong { color: #7145c7; }
.traffic-kpi.green { border-color: #cce8da; border-top-color: #269e70; background: #effaf4; }
.traffic-kpi.green strong { color: #207b57; }
.traffic-trend .panel-header { align-items: flex-start; gap: 16px; }
.traffic-peak { flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; font-size: 11px; padding: 10px 15px; background: #fff6e5; border-radius: 8px; color: #865b0c; }
.traffic-peak strong { font-size: 14px; }
.traffic-peak small { font-size: 11px; }
.traffic-chart { display: block; width: 100%; height: auto; min-height: 180px; padding: 0 15px 6px; --traffic-color: #3975ef; }
.traffic-chart.metric-rx { --traffic-color: #10959f; }
.traffic-chart.metric-tx { --traffic-color: #8652d6; }
.traffic-chart text { fill: #748094; font: 11px Inter,"Microsoft YaHei",sans-serif; }
.traffic-gridline { stroke: #e8edf4; stroke-dasharray: 4 4; }
.traffic-line { fill: none; stroke: var(--traffic-color); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.traffic-dot { fill: var(--traffic-color); }
.traffic-dot:hover { r: 5; stroke: #fff; stroke-width: 2; }
.traffic-unfinished { opacity: .5; }
.traffic-series-details { border-top: 1px solid var(--line); padding: 14px 20px; color: #52637a; }
.traffic-series-details summary { cursor: pointer; font-size: 12px; }
.traffic-series-details .table-wrap { max-height: 320px; margin-top: 10px; overflow: auto; }
.traffic-table { min-width: 980px; }
.traffic-table td { vertical-align: top; }
.traffic-table td:nth-child(3), .traffic-table td:nth-child(4), .traffic-table td:nth-child(5) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.traffic-machine-cell { min-width: 180px; max-width: 260px; }
.traffic-machine-cell .subline { overflow-wrap: anywhere; }
.traffic-focus { margin-top: 5px; font-size: 11px; }
.traffic-number { font-weight: 650; color: #315dc1; }
.traffic-share { height: 5px; width: 82px; margin-top: 8px; border-radius: 4px; background: #e6edfa; overflow: hidden; }
.traffic-share { display: block; }
.traffic-share-track { fill: #e6edfa; }
.traffic-share-fill { fill: #3975ef; }
.traffic-empty { min-height: 230px; }
.traffic-empty p { max-width: 530px; line-height: 1.8; margin: 10px auto; }
@media (max-width: 1100px) { .traffic-controls { grid-template-columns: repeat(3,minmax(0,1fr)); } .traffic-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .traffic-controls { grid-template-columns: repeat(2,minmax(0,1fr)); } .traffic-kpis { gap: 10px; } .traffic-kpi { padding: 15px; } .traffic-trend .panel-header { flex-direction: column; } .traffic-peak { width: 100%; } .traffic-chart { padding: 0; min-height: 140px; } }
.aws-budget-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 0 20px 20px; }
.aws-budget-overall { margin: 0 20px 20px; padding: 20px; background: #eff5ff; border: 1px solid #d4e2fb; border-radius: 10px; }
.aws-budget-card { border: 1px solid #dfe7f4; border-radius: 10px; padding: 18px; min-width: 0; background: #fbfdff; }
.aws-budget-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.aws-budget-card h3 { margin: 0 0 5px; font-size: 15px; color: #233b66; }
.aws-budget-card header span:not(.badge) { color: #64748b; font-size: 11px; overflow-wrap: anywhere; }
.aws-budget-bundle { color: #7b879b; font: 11px ui-monospace,monospace; margin: 12px 0; }
.aws-budget-numbers { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.aws-budget-numbers > div { display: flex; flex-direction: column; gap: 6px; }
.aws-budget-numbers span { font-size: 11px; color: #697c97; }
.aws-budget-numbers strong { font-size: 21px; color: #2957c2; font-variant-numeric: tabular-nums; }
.aws-budget-numbers b { margin-left: auto; font-size: 20px; color: #315fc9; }
.aws-progress { display: block; width: 100%; height: 9px; border-radius: 8px; overflow: hidden; background: #e4ecfa; margin: 12px 0 8px; min-width: 110px; }
.aws-progress-track { fill: #e4ecfa; }
.aws-progress-fill { fill: #3975ef; }
.aws-progress.warning .aws-progress-fill { fill: #edaa26; }
.aws-progress.danger .aws-progress-fill { fill: #df5359; }
.aws-progress.unknown .aws-progress-track { fill: #e6ebf2; }
.aws-progress.unknown { background: repeating-linear-gradient(120deg,#edf1f6,#edf1f6 6px,#e3e8ef 6px,#e3e8ef 12px); }
.aws-budget-direction { font-size: 11px; color: #61718a; margin: 8px 0; }
.aws-budget-notice { color: #946915; font-size: 11px; line-height: 1.6; }
.aws-budget-card details { margin-top: 12px; border-top: 1px solid #e4eaf3; padding-top: 12px; }
.aws-budget-card summary { cursor: pointer; color: #335ca8; font-size: 12px; }
.aws-budget-member { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf0f5; font-size: 12px; }
.aws-budget-member:last-child { border-bottom: 0; padding-bottom: 0; }
.aws-budget-member > div { min-width: 0; overflow-wrap: anywhere; }
.aws-budget-member > div:last-child { text-align: right; flex-shrink: 0; }
.aws-budget-member.historical { color: #7c8798; }
.aws-machine-usage { min-width: 175px; }
.aws-machine-usage > strong { color: #285cc8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aws-machine-usage > strong .muted { font-weight: 400; }
.aws-machine-usage .aws-progress { height: 6px; margin: 8px 0; }
.aws-machine-usage .subline { line-height: 1.5; }
@media (max-width: 1000px) { .aws-budget-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) { .aws-budget-grid { padding: 0 12px 12px; } .aws-budget-card { padding: 14px; } .aws-budget-numbers { gap: 12px; } .aws-budget-numbers strong { font-size: 18px; } .aws-budget-numbers b { font-size: 17px; } .aws-budget-panel > .panel-header { flex-direction: column; align-items: flex-start; gap: 10px; } }
@media (max-width: 600px) { .aws-budget-overall { margin: 0 12px 12px; padding: 14px; } }

/* A quiet plot surface; the line and selected value carry the visual emphasis. */
.traffic-trend { border-color: #e2e9f2; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px #1e3d6b05; }
.traffic-trend > .panel-header { padding: 24px 26px 15px; border-bottom: 0; align-items: center; }
.traffic-trend .panel-title { font-size: 17px; color: #23344d; letter-spacing: -.3px; }
.traffic-trend .caption { margin-top: 7px; color: #8793a5; }
.traffic-peak { padding: 10px 14px; border-radius: 10px; background: #f5f8fc; color: #7b899c; gap: 6px; border: 1px solid #edf1f7; }
.traffic-peak strong { color: #365579; font-size: 13px; font-variant-numeric: tabular-nums; }
.traffic-peak small { color: #8b97a9; font-size: 10px; }
.traffic-chart-shell { --traffic-color: #4b76ee; }
.traffic-chart-shell.metric-rx { --traffic-color: #0a9d9a; }
.traffic-chart-shell.metric-tx { --traffic-color: #8a64d9; }
.traffic-chart-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 0 26px 12px; }
.traffic-chart-key { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #485c78; }
.traffic-chart-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--traffic-color); box-shadow: 0 0 0 4px color-mix(in srgb,var(--traffic-color) 10%,transparent); margin: 0 4px; }
.traffic-chart-key .traffic-chart-unit { border-left: 1px solid #e5ebf3; padding-left: 10px; margin-left: 4px; font-weight: 400; color: #98a3b2; font-size: 11px; }
.traffic-chart-tabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 10px; background: #f3f6fa; }
.traffic-chart-tab { appearance: none; border: 0; padding: 7px 13px; border-radius: 7px; color: #8592a5; background: transparent; font: inherit; font-size: 11px; line-height: 1.3; cursor: pointer; transition: color .15s,background .15s; }
.traffic-chart-tab:hover { color: #405d89; background: #e9eef6; }
.traffic-chart-tab.active { color: #3b65d4; background: #fff; box-shadow: 0 1px 4px #27416d12; font-weight: 600; }
.traffic-chart-tab.metric-rx.active { color: #058e8a; }
.traffic-chart-tab.metric-tx.active { color: #8054ce; }
.traffic-chart-tab:focus-visible { outline: 2px solid #99b3fa; outline-offset: 2px; }
.traffic-chart-shell .traffic-chart { display: block; width: 100%; min-height: 0; height: auto; padding: 0 14px; overflow: visible; --traffic-color: inherit; outline-offset: -2px; }
.traffic-chart-shell .traffic-chart:focus-visible { outline: 2px solid #adc3f5; border-radius: 12px; }
.traffic-chart-shell .traffic-chart:focus:not(:focus-visible) { outline: none; }
.traffic-chart-shell .traffic-chart text { font: 11px Inter,"Microsoft YaHei",sans-serif; fill: #96a2b3; font-variant-numeric: tabular-nums; }
.traffic-chart-shell .traffic-axis-hour { fill: #afbac7; }
.traffic-chart-shell .traffic-gridline { stroke: #e9eef5; stroke-width: 1; stroke-dasharray: 3 6; }
.traffic-chart-shell .traffic-line { stroke: var(--traffic-color); stroke-width: 2.6; vector-effect: non-scaling-stroke; }
.traffic-gradient-start { stop-color: var(--traffic-color); stop-opacity: .19; }
.traffic-gradient-end { stop-color: var(--traffic-color); stop-opacity: .015; }
.traffic-area { stroke: none; pointer-events: none; }
.traffic-isolated,.traffic-peak-dot,.traffic-cursor-dot { fill: var(--traffic-color); stroke: #fff; stroke-width: 2; }
.traffic-peak-halo { fill: var(--traffic-color); opacity: .12; }
.traffic-hit { fill: transparent; cursor: crosshair; }
.traffic-cursor,.traffic-tooltip { opacity: 0; pointer-events: none; }
.traffic-cursor.visible,.traffic-tooltip.visible { opacity: 1; }
.traffic-crosshair { stroke: var(--traffic-color); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 4 4; }
.traffic-cursor-ring { fill: #fff; stroke: var(--traffic-color); stroke-opacity: .25; stroke-width: 7; }
.traffic-cursor circle.missing { display: none; }
.traffic-tooltip-box { fill: #fff; stroke: #e0e7f2; stroke-width: 1; filter: drop-shadow(0 4px 10px #203f6d16); }
.traffic-chart-shell .traffic-chart .traffic-tooltip-time { fill: #7e8a9d; font-size: 11px; }
.traffic-chart-shell .traffic-chart .traffic-tooltip-value { fill: #253d60; font-size: 16px; font-weight: 650; }
.traffic-tooltip-rule { stroke: #edf1f6; stroke-width: 1; }
.traffic-chart-shell .traffic-chart .traffic-tooltip-rx { fill: #0b9692; font-size: 11px; }
.traffic-chart-shell .traffic-chart .traffic-tooltip-tx { fill: #8960ce; font-size: 11px; }
.traffic-chart-shell .traffic-chart .traffic-tooltip-coverage { fill: #97a3b3; font-size: 10px; }
.traffic-chart-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 26px; padding: 2px 0 20px; font-size: 10px; color: #98a3b3; }
.traffic-chart-footer > span { display: flex; gap: 6px; align-items: center; }
.traffic-chart-footer i { display: inline-block; width: 13px; border-top: 2px dashed #bac5d4; }
.traffic-series-details { background: #fbfcfe; border-color: #edf1f6; padding: 14px 26px; }
.traffic-series-details summary { color: #7d8b9f; font-size: 11px; }
.traffic-empty-symbol { display: block; margin-bottom: 12px; color: #9eb7ed; font-size: 32px; }
@media (max-width:600px) {
  .traffic-trend > .panel-header { padding: 20px 18px 15px; align-items: stretch; gap: 14px; }
  .traffic-peak { width: auto; padding: 10px 12px; }
  .traffic-chart-toolbar { padding: 0 18px 8px; gap: 15px; }
  .traffic-chart-tabs { margin-left: auto; }
  .traffic-chart-shell .traffic-chart { padding: 0 3px; }
  .traffic-chart-shell .traffic-chart text { font-size: 13px; }
  .traffic-chart-shell .traffic-chart .traffic-tooltip-time,.traffic-chart-shell .traffic-chart .traffic-tooltip-rx,.traffic-chart-shell .traffic-chart .traffic-tooltip-tx { font-size: 12px; }
  .traffic-chart-shell .traffic-chart .traffic-tooltip-value { font-size: 17px; }
  .traffic-chart-shell .traffic-chart .traffic-tooltip-coverage { font-size: 11px; }
  .traffic-chart-footer { margin: 0 18px; padding-bottom: 18px; font-size: 10px; }
  .traffic-series-details { padding: 14px 18px; }
}
@media (prefers-reduced-motion:reduce) { .traffic-chart-tab { transition: none; } }
