#trafficPanel{min-width:0}#trafficPanel [hidden]{display:none!important}.tf-controls{display:flex;align-items:center;margin-bottom:18px;justify-content:space-between;gap:16px;flex-wrap:wrap}.tf-controls p{color:#64748b;font-size:13px;margin:6px 0 0}.tf-actions{display:flex;gap:8px;flex-wrap:wrap}.tf-state{display:flex;gap:16px;align-items:center;flex-wrap:wrap;background:#eff6ff;border:1px solid #dbeafe;padding:14px 16px;border-radius:12px;margin:16px 0}.tf-state progress{width:100%;height:6px;accent-color:#2563eb}#tfIssue{padding:14px 16px;background:#fff3ed;color:#9a3412;border:1px solid #fed7aa;border-radius:12px;margin:12px 0}#tfNotice,#tfScope{color:#64748b;font-size:13px;line-height:1.7}#tfContent .csa-tw{padding:0;border:0;border-radius:0;background:transparent}#tfContent .tw-scroll{position:relative}#tfContent button,#tfContent input,#tfContent select{transition:color var(--wb-motion-fast) var(--wb-motion-ease),background-color var(--wb-motion-fast) var(--wb-motion-ease),border-color var(--wb-motion-fast) var(--wb-motion-ease),transform var(--wb-motion-fast) var(--wb-motion-ease)}#tfContent button:not(.tw-day):active{transform:scale(.98)}#tfContent button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}#tfConfirm{max-width:480px;border:1px solid #dbe3ee;border-radius:16px;padding:24px}#tfConfirm::backdrop{background:#0f172a66}@media(max-width:768px){.tf-controls>div,.tf-actions{width:100%}.tf-state{gap:8px}.tf-actions button,#tfContent .tw-tabs button,#tfContent .tw-groups button,#tfContent .tw-btn{min-height:44px}}@media(prefers-reduced-motion:reduce){#tfContent *,#tfContent *::before,#tfContent *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The original plugin owns each table's first-column width; metrics share the remaining space. */
#tfContent .tw-table th:not(:first-child){width:auto}
#tfContent .tw-table td{overflow-wrap:anywhere}
#tfContent .tw-value.primary{background:transparent;border:0;padding:0}
#trafficPanel .cache-bar{gap:12px}#trafficPanel .cache-bar label{min-width:0}#tfCache{min-width:0;width:min(480px,100%)}

/* Each surface owns its spacing; do not carry the plugin's edge-to-edge white canvas into cards. */
#trafficPanel .tf-controls{padding:20px 24px;margin-bottom:16px;background:var(--wb-surface);border:1px solid var(--wb-line);border-radius:12px}
.tf-controls p{line-height:1.7}
.tf-state{font-size:13px;color:#355c88;gap:12px 20px}
.tf-state[data-state=done]{background:#f0f8f4;border-color:#d4e7dc;color:#31654d}
.tf-state[data-state=error],.tf-state[data-state=paused]{background:#fff8ed;border-color:#ead9ba;color:#895b20}
#tfStatus{font-weight:600}#tfProgress{margin-left:auto;font-variant-numeric:tabular-nums}
#tfIssue p{color:inherit;line-height:1.7}
#tfNotice,#tfScope{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
#tfNotice{margin:12px 0 4px}#tfScope{margin:0 0 16px}#tfContent{min-width:0}
#tfContent .csa-tw{color:var(--wb-text);--tw-line:var(--wb-line);--tw-muted:#64748b;--tw-ink:var(--wb-text);--tw-blue:var(--wb-blue)}
#tfContent .tw-tabs{margin:0 0 20px;gap:28px}
#tfContent .tw-tabs button{border-radius:0;min-height:44px;padding:10px 2px;box-shadow:none}
#tfContent .tw-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:0;margin:0 0 20px;border:0}
#tfContent .tw-kpis article{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:20px 24px;border:1px solid var(--wb-line);border-radius:12px;background:var(--wb-surface)}
#tfContent .tw-kpis span{font-size:13px}
#tfContent .tw-kpis strong{font-size:30px;line-height:1.25;margin:10px 0 8px;overflow-wrap:anywhere}
#tfContent .tw-kpis small{margin-top:auto;font-size:12px;line-height:1.7}
#tfContent .tw-section,#tfContent .tw-detail{min-width:0;padding:24px;margin:0 0 20px;border:1px solid var(--wb-line);border-radius:12px;background:var(--wb-surface)}
#tfContent .tw-section h3{color:var(--wb-text);margin:0 0 18px;line-height:1.5;font-size:16px}
#tfContent .tw-section-head{align-items:center;flex-wrap:wrap;margin-bottom:18px}
#tfContent .tw-section-head h3{margin:0}
#tfContent .tw-priorities{gap:16px}
#tfContent .tw-priorities article{display:flex;flex-direction:column;align-items:flex-start;padding:16px;background:#f8fafc;border-radius:6px;border-top-width:3px}
#tfContent .tw-priorities h4{font-size:14px;line-height:1.6;margin:0 0 8px}
#tfContent .tw-priorities p{flex-grow:1;font-size:13px;line-height:1.8}
#tfContent .tw-priorities .tw-btn{margin-top:16px;font-size:12px;min-height:36px}
#tfContent .tw-trend{padding-top:4px}#tfContent .tw-chart{height:240px}
#tfContent .tw-legend{flex-wrap:wrap;gap:12px}
#tfContent .tw-day,#tfContent .tw-day:active{transform:none;box-shadow:none}
#tfContent .tw-day:hover,#tfContent .tw-day.active{background:#e9f2fd}
#tfContent .tw-trend-tooltip{left:0;right:auto;top:12px;width:236px;max-width:calc(100% - 8px);padding:14px 16px;pointer-events:none;box-shadow:0 6px 18px #14294218}
#tfContent .tw-chart-labels{margin-top:12px}
#tfContent .tw-chart-help{margin:10px 0 0;color:var(--tw-muted);font-size:11px;line-height:1.6}
#tfContent .tw-detail>.tw-section{padding:0;margin:0 0 24px;border:0;border-radius:0}
#tfContent .tw-groups{padding:0 0 16px;gap:10px}
#tfContent .tw-groups button{min-height:44px;text-align:left}
#tfContent .tw-advice{padding:10px 14px;margin:0 0 16px;background:#f5f8fc;border-radius:6px;line-height:1.8}
#tfContent .tw-list-summary{padding:0 0 16px;margin:0 0 4px}
#tfContent .tw-toolbar{flex-wrap:wrap;gap:12px;padding:12px 0 16px}
#tfContent .tw-toolbar input{flex:0 1 320px;width:320px;min-width:0;min-height:40px}
#tfContent .tw-result-count{margin-left:auto;line-height:1.7}
#tfContent .tw-scroll{max-width:100%;overflow:auto;background:var(--wb-surface);scrollbar-width:thin}
#tfContent .tw-table th.tw-company{width:210px}
#tfContent .tw-product-info{flex:1;min-width:0}#tfContent .tw-image{overflow:hidden}
#tfContent .tw-footer{padding:16px 0 0;flex-wrap:wrap}
#tfContent .tw-note:last-child{margin-bottom:0}
@media(max-width:1100px){#tfContent .tw-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#tfContent .tw-priorities{grid-template-columns:1fr}}
@media(max-width:800px){#tfContent .tw-product-table td:first-child{position:static}#tfContent .tw-chart{height:200px;gap:2px}}
@media(max-width:768px){
 #trafficPanel .tf-controls{padding:16px}#tfProgress{margin-left:0}
 #tfContent .tw-section,#tfContent .tw-detail{padding:16px;margin-bottom:16px}
 #tfContent .tw-detail>.tw-section{padding:0}
 #tfContent .tw-kpis{gap:12px;margin-bottom:16px}#tfContent .tw-kpis article{padding:16px}
 #tfContent .tw-kpis strong{font-size:26px}#tfContent .tw-tabs{gap:22px;margin-bottom:16px}
 #tfContent .tw-toolbar input{flex-basis:100%;width:100%}
 #tfContent .tw-result-count{text-align:left;margin-left:0}#tfContent .tw-trend-tooltip{width:212px}
 #tfContent .tw-priorities .tw-btn{min-height:44px}
}
@media(prefers-reduced-motion:reduce){#tfContent button:not(.tw-day):active{transform:none}}
