#topTraffic { margin: 20px 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; min-width: 0; }
#topTraffic[hidden] { display: none; }
#topTraffic [hidden] { display: none !important; }
#topTraffic .tt-toggle { min-height: 36px; padding: 8px 12px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
#topTraffic .tt-group-heading { flex-wrap: wrap; }
#topTraffic .tt-group-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
#topTraffic .tt-group-actions > span { font-size: 12px; color: var(--muted); }
#topTraffic [data-hide-group] { min-height: 36px; padding: 7px 10px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
#topTraffic .tt-panel-options input[type="checkbox"] { min-width: 18px !important; max-width: 18px; flex: 0 0 18px; }
body.tt-hide-summary .summary, body.tt-hide-cards #cards { display: none !important; }
#topTraffic .tt-settings { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; }
#topTraffic .tt-settings summary { cursor: pointer; padding: 12px 0; font-size: 13px; font-weight: 600; }
#topTraffic .tt-settings summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#topTraffic .tt-panel-options, #topTraffic .tt-presets { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
#topTraffic .tt-panel-options label { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-size: 13px; }
#topTraffic .tt-panel-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--nav-active); }
#topTraffic .tt-presets button { min-height: 40px; padding: 8px 12px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 5px; }
#topTraffic .tt-group[data-kind="most"], #topTraffic .tt-group:only-child { grid-column: 1 / -1; }
#topTraffic .tt-heading, #topTraffic .tt-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#topTraffic h2 { font-size: 19px; line-height: 1.3; margin: 0 0 4px; letter-spacing: 0; }
#topTraffic h3 { font-size: 15px; line-height: 1.4; margin: 0; letter-spacing: 0; }
#topTraffic .tt-caption, #topTraffic .tt-group-heading > span { font-size: 12px; color: var(--muted); }
#topTraffic .tt-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#topTraffic .tt-metric { display: flex; }
#topTraffic .tt-metric button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 0; padding: 0 12px; height: 34px; min-width: 45px; font-size: 12px; font-weight: 600; }
#topTraffic .tt-metric button:first-child { border-radius: 5px 0 0 5px; }
#topTraffic .tt-metric button:last-child { border-radius: 0 5px 5px 0; }
#topTraffic .tt-metric button + button { margin-left: -1px; }
#topTraffic .tt-metric button[aria-pressed="true"] { background: var(--nav-active); color: #fff; border-color: var(--nav-active); position: relative; }
#topTraffic select { height: 34px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 0 9px; font-size: 12px; }
#topTraffic .tt-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
#topTraffic .tt-group { min-width: 0; padding: 0; }
#topTraffic .tt-group-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#topTraffic .tt-breakdown { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 12px; }
#topTraffic .tt-donut { width: 172px; height: 172px; position: relative; }
#topTraffic canvas { display: block; width: 172px; height: 172px; }
#topTraffic .tt-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; pointer-events: none; }
#topTraffic .tt-center span { color: var(--muted); font-size: 10px; }
#topTraffic .tt-center strong { color: var(--text); font-size: 16px; line-height: 1.25; max-width: 118px; overflow-wrap: anywhere; text-align: center; font-variant-numeric: tabular-nums; }
#topTraffic .tt-ranking { min-width: 0; }
#topTraffic table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; font-size: 12px; background: transparent; }
#topTraffic th { color: var(--muted); font-size: 10px; font-weight: 600; text-align: left; text-transform: uppercase; padding: 0 4px 8px; background: transparent; }
#topTraffic th:first-child { width: 48%; }
#topTraffic th:nth-child(2) { width: 31%; }
#topTraffic th:last-child { width: 21%; text-align: right; }
#topTraffic td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#topTraffic .tt-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
#topTraffic .tt-swatch { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; background: #85939e; }
#topTraffic .tt-interface { display: block; height: 24px; padding: 2px 0; border: 0; border-radius: 0; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
#topTraffic .tt-interface:hover { color: var(--accent); text-decoration: underline; }
#topTraffic button:focus-visible, #topTraffic select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#topTraffic .tt-type { color: var(--muted); margin: 3px 0 0 15px; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#topTraffic .tt-rates { font-variant-numeric: tabular-nums; font-size: 11px; overflow-wrap: anywhere; }
#topTraffic .tt-rates span { display: block; margin: 2px 0; }
#topTraffic .tt-rates span:first-child { color: var(--up); }
#topTraffic .tt-rates span:last-child { color: var(--accent); }
#topTraffic .tt-share { text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
#topTraffic meter { display: block; width: 100%; height: 5px; margin-top: 5px; }
#topTraffic meter::-webkit-meter-bar { height: 5px; border: 0; border-radius: 0; background: var(--line); }
#topTraffic meter::-webkit-meter-optimum-value { background: var(--accent); }
#topTraffic meter::-moz-meter-bar { background: var(--accent); }
#topTraffic .tt-rest { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 10px 4px 0; color: var(--muted); font-size: 10px; }
#topTraffic .tt-rest span { display: flex; align-items: center; gap: 7px; }
#topTraffic .tt-rest strong { font-weight: 500; }
#topTraffic .tt-empty { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 14px 0; }
@media (max-width: 1250px) { #topTraffic .tt-breakdown { grid-template-columns: 1fr; } #topTraffic .tt-donut { margin: 0 auto 8px; } }
@media (max-width: 650px) {
  #topTraffic .tt-heading { align-items: flex-start; flex-direction: column; }
  #topTraffic .tt-groups { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
