#siteSummaryCard .site-summary-metrics { display: flex; flex-wrap: nowrap; gap: clamp(9px, 1.9vw, 35px); }
#siteSummaryCard .homepage-traffic-trigger { margin-left: auto; padding: 0; min-width: 0; min-height: 0; border: 0; background: none; color: var(--text); box-shadow: none; text-align: left; border-radius: 4px; }
#siteSummaryCard .homepage-traffic-trigger strong { color: var(--cyan-text); font-size: clamp(16px, 1.6vw, 23px); white-space: nowrap; letter-spacing: -.035em; }
#siteSummaryCard .homepage-traffic-trigger .metric-label { display: flex; gap: 5px; align-items: center; }
#siteSummaryCard .homepage-traffic-trigger .metric-label span { color: var(--cyan-text); font-size: inherit; line-height: inherit; }
#siteSummaryCard .homepage-traffic-trigger:hover strong { text-decoration: underline; text-underline-offset: 3px; }
#siteSummaryCard:has(.homepage-traffic-trigger:hover) .site-connection-tooltip,
#siteSummaryCard:has(.homepage-traffic-trigger:focus) .site-connection-tooltip { display: none; }
#homepageTrafficModal { z-index: 130; }
#homepageTrafficModal .homepage-traffic-panel { width: min(850px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow); }
#homepageTrafficModal .modal-head { margin-bottom: 16px; }
#homepageTrafficModal .window-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 23px; line-height: 1; }
.homepage-traffic-periods { display: flex; gap: 6px; margin-bottom: 16px; }
.homepage-traffic-periods button { flex: 1; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); }
.homepage-traffic-periods button[aria-pressed="true"] { color: var(--cyan-text); background: rgba(var(--cyan-rgb), .1); border-color: var(--line-strong); }
.homepage-traffic-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.homepage-traffic-metrics > div { display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.homepage-traffic-metrics span, .homepage-traffic-metrics small { color: var(--muted); font-size: 12px; }
.homepage-traffic-metrics strong { color: var(--text-strong); font-size: 21px; overflow-wrap: anywhere; }
.homepage-traffic-cache, .homepage-traffic-notes { color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.homepage-traffic-cache { margin: 16px 0 8px; }
.homepage-traffic-notes { margin: 12px 0 0; }
.homepage-traffic-empty { color: var(--muted); padding: 26px 0; font-size: 14px; }
.homepage-traffic-table-wrap { overflow-x: auto; margin-top: 8px; }
.homepage-traffic-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 12px; }
.homepage-traffic-table th, .homepage-traffic-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.homepage-traffic-table th { color: var(--muted); font-weight: 500; }
.homepage-traffic-table th:first-child, .homepage-traffic-table td:first-child { text-align: left; max-width: 240px; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  #siteSummaryCard .site-summary-metrics { gap: 10px; }
  #siteSummaryCard .site-summary-metrics .summary-stat-block { padding: 0; border: 0; }
  #siteSummaryCard .site-summary-metrics strong { font-size: 20px; }
  #siteSummaryCard .homepage-traffic-trigger strong { font-size: 17px; }
  #homepageTrafficModal .homepage-traffic-panel { padding: 16px; }
  .homepage-traffic-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homepage-traffic-metrics > div { padding: 10px; }
  .homepage-traffic-metrics strong { font-size: 19px; }
}
