:root {
  --ink: #18201e;
  --ink-soft: #303936;
  --muted: #6e7773;
  --paper: #f1eee6;
  --raised: #fffdf7;
  --line: #d7d1c5;
  --line-strong: #b7b0a4;
  --green: #11624b;
  --green-bright: #20a377;
  --green-soft: #dcece4;
  --navy: #243d57;
  --blue: #3979a7;
  --blue-soft: #deebf2;
  --coral: #c95c40;
  --coral-soft: #f5ded7;
  --amber: #9d6a16;
  --amber-soft: #f3e6c9;
  --violet: #6d6197;
  --shadow: 0 24px 68px rgba(24, 32, 30, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.traffic-body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.traffic-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 238, 230, 0.94);
  backdrop-filter: blur(14px);
}

.traffic-brand {
  color: #0b1526;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.traffic-nav > span {
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.traffic-shell {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 78px) 0 78px;
}

.traffic-lock {
  min-height: 64vh;
  display: grid;
  place-items: center;
}

.traffic-lock-card {
  width: min(560px, 100%);
  padding: clamp(28px, 6vw, 54px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--raised);
  box-shadow: var(--shadow);
}

.traffic-lock-mark {
  width: 74px;
  height: 74px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid #b7d4c8;
  border-radius: 50%;
  background: var(--green-soft);
}

.traffic-lock-mark::before,
.traffic-lock-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(17, 98, 75, 0.35);
  border-radius: 50%;
}

.traffic-lock-mark::before { inset: 12px; }
.traffic-lock-mark::after { inset: 24px; background: var(--green); }
.traffic-lock-mark span { position: absolute; left: 36px; width: 23px; height: 1px; transform-origin: left center; background: var(--green); }
.traffic-lock-mark span:nth-child(1) { transform: rotate(-34deg); }
.traffic-lock-mark span:nth-child(2) { transform: rotate(5deg); }
.traffic-lock-mark span:nth-child(3) { transform: rotate(43deg); }

.traffic-lock-card h1,
.traffic-heading h1,
.traffic-section-head h2,
.traffic-notes h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.traffic-lock-card h1 { font-size: clamp(38px, 7vw, 58px); line-height: 0.98; }
.traffic-lock-card > p { margin: 20px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.6; }

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.025em;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #c5beb2;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(17, 98, 75, 0.13); }
.traffic-inline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }

.traffic-button,
.traffic-inline-field button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 17px;
  border: 1px solid var(--green);
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 750;
}

.traffic-button.secondary { color: var(--ink); border-color: var(--line-strong); background: var(--raised); }
.traffic-button:hover, .traffic-inline-field button:hover { filter: brightness(0.94); }
.traffic-button:focus-visible, .traffic-inline-field button:focus-visible, .traffic-tabs button:focus-visible, .traffic-window-control button:focus-visible { outline: 3px solid rgba(17, 98, 75, 0.22); outline-offset: 2px; }
.traffic-button[disabled] { cursor: wait; opacity: 0.62; }
.traffic-window-control button[disabled] { cursor: not-allowed; opacity: 0.38; }
.traffic-refresh-icon { display: inline-block; font-size: 19px; line-height: 1; }
.traffic-button.loading .traffic-refresh-icon { animation: traffic-spin 0.8s linear infinite; }

@keyframes traffic-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .traffic-button.loading .traffic-refresh-icon { animation: none; }
}

.traffic-form-message { min-height: 1.45em; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.traffic-form-message.error { color: #9c3021; }

.traffic-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.traffic-heading h1 { max-width: 820px; font-size: clamp(43px, 6.5vw, 76px); line-height: 0.96; }
.traffic-heading p { max-width: 730px; margin: 17px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.traffic-heading-actions { display: flex; flex: 0 0 auto; gap: 9px; }

.traffic-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.7);
}

.traffic-tabs, .traffic-window-control { display: flex; align-items: center; gap: 5px; }
.traffic-tabs button, .traffic-window-control button {
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.traffic-tabs button[aria-selected="true"] { color: #fff; background: var(--ink); }
.traffic-window-control { padding-left: 10px; border-left: 1px solid var(--line); }
.traffic-window-control button { min-width: 50px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.traffic-window-control button.active { color: var(--green); background: var(--green-soft); }

.traffic-load-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.traffic-load-row p { margin: 0; color: var(--muted); font-size: 12px; }
#traffic-page-message.error { color: #9c3021; }

.traffic-panel { outline: none; }
.traffic-now, .traffic-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
}

.traffic-now { padding: clamp(22px, 3vw, 32px); color: #f9faf6; border-color: var(--ink); background: var(--ink); }
.traffic-now .traffic-section-head p { color: #aeb8b4; }
.traffic-now .traffic-section-head h2 { color: #fff; }
.traffic-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.traffic-section-head h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.05; }
.traffic-section-head p { max-width: 690px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.traffic-live-state { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; color: #b9c5c0; font-size: 12px; font-weight: 750; }
.traffic-live-state i { width: 10px; height: 10px; border: 2px solid #99aaa3; border-radius: 50%; }
.traffic-live-state.active i { border-color: #77d9b7; background: #2bb787; box-shadow: 0 0 0 5px rgba(43, 183, 135, 0.15); }

.traffic-now-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 25px; }
.traffic-now-item { min-width: 0; padding: 17px; border: 1px solid #3d4845; border-radius: 13px; background: #202a27; }
.traffic-now-item strong { display: block; overflow: hidden; color: #fff; font: 500 clamp(28px, 4vw, 42px)/1 Georgia, serif; text-overflow: ellipsis; }
.traffic-now-item span { display: block; margin-top: 12px; color: #aeb8b4; font-size: 11px; font-weight: 700; line-height: 1.35; }

.traffic-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.traffic-api-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.traffic-metric { min-width: 0; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 253, 247, 0.78); }
.traffic-metric strong { display: block; overflow: hidden; font: 500 clamp(29px, 4vw, 40px)/1 Georgia, serif; text-overflow: ellipsis; }
.traffic-metric > span { color: var(--muted); font-size: 12px; font-weight: 750; line-height: 1.3; }
.traffic-metric small { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.traffic-metric.good { border-color: #a9cfbf; background: var(--green-soft); }
.traffic-metric.warn { border-color: #dfc485; background: var(--amber-soft); }
.traffic-metric.bad { border-color: #deb0a4; background: var(--coral-soft); }

.traffic-card { margin-top: 14px; padding: clamp(20px, 3vw, 28px); overflow: hidden; }
.traffic-card-wide { width: 100%; }
.traffic-two-up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.traffic-three-up { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.traffic-two-up-tall > .traffic-card { min-height: 430px; }
.traffic-chart { width: 100%; min-height: 210px; margin-top: 22px; }
.traffic-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.traffic-chart text { fill: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; }
.traffic-chart .chart-grid { stroke: #e5e0d7; stroke-width: 1; }
.traffic-chart .chart-axis { stroke: #c8c1b5; stroke-width: 1; }
.traffic-chart .chart-point { stroke: var(--raised); stroke-width: 2; }
.traffic-chart .chart-bar-track { fill: #ece8df; }
.traffic-chart .chart-bar { fill: var(--green); }
.traffic-chart .chart-bar.secondary { fill: var(--blue); }
.traffic-chart .chart-bar.attention { fill: var(--coral); }
.traffic-chart .chart-funnel { fill: var(--navy); }
.traffic-chart .chart-funnel:nth-of-type(2n) { fill: var(--green); }

.traffic-endpoint-list { display: grid; gap: 11px; margin-top: 22px; }
.traffic-endpoint-item { min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fffefb; }
.traffic-endpoint-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.traffic-endpoint-rank { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.traffic-endpoint-heading code { min-width: 0; display: flex; align-items: baseline; gap: 8px; color: var(--ink); font: 700 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.traffic-endpoint-heading code b { flex: 0 0 auto; padding: 3px 6px; border: 1px solid #b9cec5; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 9px; letter-spacing: 0.04em; }
.traffic-endpoint-heading code span { min-width: 0; overflow-wrap: anywhere; }
.traffic-endpoint-heading > strong { font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.traffic-endpoint-track { width: calc(100% - 39px); height: 10px; display: block; margin: 11px 0 9px 39px; overflow: hidden; border-radius: 999px; }
.traffic-track-background { fill: #ebe6dc; }
.traffic-endpoint-fill { fill: var(--green); }
.traffic-endpoint-detail { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-left: 39px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.traffic-endpoint-detail span { white-space: nowrap; }
.traffic-endpoint-detail .healthy { color: var(--green); }
.traffic-endpoint-detail .expected { color: var(--amber); }
.traffic-endpoint-detail .client-error, .traffic-endpoint-detail .server-error { color: #9c3021; }

.traffic-health-stack { width: 100%; height: 28px; display: block; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.traffic-health-segment.success { fill: var(--green); }
.traffic-health-segment.redirect { fill: var(--blue); }
.traffic-health-segment.expected { fill: var(--amber); }
.traffic-health-segment.client-error { fill: var(--coral); }
.traffic-health-segment.server-error { fill: #8f3025; }
.traffic-health-segment.unknown { fill: #8c9691; }
.traffic-health-row i.success { background: var(--green); }
.traffic-health-row i.redirect { background: var(--blue); }
.traffic-health-row i.expected { background: var(--amber); }
.traffic-health-row i.client-error { background: var(--coral); }
.traffic-health-row i.server-error { background: #8f3025; }
.traffic-health-row i.unknown { background: #8c9691; }
.traffic-health-list { display: grid; gap: 10px; margin-top: 18px; }
.traffic-health-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; }
.traffic-health-row i { width: 10px; height: 10px; border-radius: 3px; }
.traffic-health-row strong { font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.traffic-api-mix-chart { min-height: 0; }
.traffic-api-mix-stack { width: 100%; height: 20px; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.traffic-api-mix-chart .traffic-api-mix-stack { height: 20px; }
.traffic-api-mix-list { display: grid; gap: 11px; margin-top: 18px; }
.traffic-api-mix-row { display: grid; grid-template-columns: minmax(88px, 0.8fr) minmax(70px, 1fr) auto; align-items: center; gap: 9px; }
.traffic-api-mix-label { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.traffic-api-mix-label i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 3px; }
.traffic-api-mix-label span { min-width: 0; overflow-wrap: anywhere; }
.traffic-api-mix-track { width: 100%; height: 7px; display: block; overflow: hidden; border-radius: 999px; }
.traffic-api-mix-chart .traffic-api-mix-track { height: 7px; }
.traffic-api-mix-row strong { color: var(--muted); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.traffic-api-hour-chart { min-height: 230px; }
.traffic-api-surface-vercel-api { background: #3979a7; }
.traffic-api-surface-cloudflare-write { background: #11624b; }
.traffic-api-surface-cloudflare-relay { background: #9d6a16; }
.traffic-api-tone-0 { background: #11624b; fill: #11624b; }
.traffic-api-tone-1 { background: #3979a7; fill: #3979a7; }
.traffic-api-tone-2 { background: #9d6a16; fill: #9d6a16; }
.traffic-api-tone-3 { background: #c95c40; fill: #c95c40; }
.traffic-api-tone-4 { background: #6d6197; fill: #6d6197; }
.traffic-api-tone-5 { background: #7b8580; fill: #7b8580; }

.traffic-origin-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 12px; margin-top: 22px; }
.traffic-subcard { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fffefb; }
.traffic-subcard h3, .traffic-network-section h3 { margin: 0; font: 500 21px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -0.025em; }
.traffic-subcard > p, .traffic-network-section > div:first-child > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.traffic-origin-chart { min-height: 190px; margin-top: 17px; }
.traffic-origin-bars { display: grid; gap: 14px; }
.traffic-origin-bar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.traffic-origin-bar-head strong { display: block; overflow: hidden; font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.traffic-origin-bar-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.traffic-origin-bar-value { flex: 0 0 auto; color: var(--ink-soft); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.traffic-origin-bar-track { width: 100%; height: 9px; display: block; margin-top: 7px; overflow: hidden; border-radius: 999px; }
.traffic-origin-chart .traffic-origin-bar-track { height: 9px; }
.traffic-origin-bar-fill { fill: var(--green); }
.traffic-origin-bar-fill.challenge { fill: var(--blue); }
.traffic-origin-bar-fill.block, .traffic-origin-bar-fill.deny { fill: var(--coral); }
.traffic-network-section { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fffefb; }
.traffic-network-section .traffic-table-wrap { margin-top: 17px; }
.traffic-origin-note { margin: 14px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.traffic-legend { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-bottom: 16px; }
.traffic-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.traffic-legend i { width: 20px; height: 3px; border-radius: 999px; }
.traffic-series-crawler { background: #3979a7; }
.traffic-series-interactive { background: #11624b; }
.traffic-series-programmatic { background: #c95c40; }
.traffic-series-ai-referral { background: #6d6197; }
.traffic-series-suspicious { background: #9d6a16; }

.traffic-breakdown { display: grid; gap: 13px; margin-top: 22px; }
.traffic-breakdown-row { display: grid; grid-template-columns: minmax(90px, 0.9fr) minmax(110px, 2fr) auto; align-items: center; gap: 12px; }
.traffic-breakdown-label { min-width: 0; overflow: hidden; color: var(--ink-soft); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.traffic-breakdown-track { height: 9px; overflow: hidden; border-radius: 999px; background: #ebe6dc; }
.traffic-breakdown-fill { height: 100%; min-width: 2px; border-radius: inherit; background: var(--green); }
.traffic-breakdown-fill.blue { background: var(--blue); }
.traffic-breakdown-fill.coral { background: var(--coral); }
.traffic-breakdown-value { color: var(--muted); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.traffic-empty { min-height: 170px; display: grid; place-items: center; padding: 30px 18px; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.traffic-chart .traffic-empty { min-height: 210px; }

.traffic-table-wrap { width: 100%; margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.traffic-table-wrap table { width: 100%; min-width: 810px; border-collapse: collapse; background: #fffefb; }
.traffic-table-wrap th, .traffic-table-wrap td { padding: 13px 14px; border-bottom: 1px solid #e8e3da; text-align: left; vertical-align: middle; }
.traffic-table-wrap tbody tr:last-child td { border-bottom: 0; }
.traffic-table-wrap th { color: var(--muted); background: #f5f2eb; font-size: 10px; letter-spacing: 0.055em; text-transform: uppercase; }
.traffic-table-wrap td { color: var(--ink-soft); font-size: 12px; }
.traffic-table-wrap td:first-child { color: var(--ink); font-weight: 750; }
.traffic-table-wrap .numeric { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.traffic-table-wrap .muted { color: var(--muted); }

.traffic-pill { display: inline-flex; align-items: center; max-width: 190px; padding: 5px 8px; border-radius: 999px; color: var(--muted); background: #ebe8e1; font-size: 10px; font-weight: 800; line-height: 1.2; }
.traffic-pill.verified, .traffic-pill.good { color: var(--green); background: var(--green-soft); }
.traffic-pill.failed, .traffic-pill.bad { color: #993a2b; background: var(--coral-soft); }
.traffic-pill.partial, .traffic-pill.warn { color: #7f5717; background: var(--amber-soft); }
.traffic-pill.zero { margin-left: 6px; color: #993a2b; background: var(--coral-soft); }

.traffic-alerts { display: grid; gap: 10px; margin-top: 21px; }
.traffic-alert { display: grid; grid-template-columns: 10px minmax(0, 1fr) minmax(150px, 0.48fr); gap: 15px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fffefb; }
.traffic-alert-mark { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--blue); }
.traffic-alert.high .traffic-alert-mark, .traffic-alert.critical .traffic-alert-mark { background: var(--coral); }
.traffic-alert.medium .traffic-alert-mark, .traffic-alert.warn .traffic-alert-mark { background: var(--amber); }
.traffic-alert.low .traffic-alert-mark, .traffic-alert.good .traffic-alert-mark { background: var(--green-bright); }
.traffic-alert h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.traffic-alert p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.traffic-alert-action { padding-left: 15px; border-left: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; font-weight: 700; line-height: 1.5; }

.traffic-ranked-list { display: grid; gap: 10px; margin-top: 21px; }
.traffic-ranked-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffefb; }
.traffic-rank { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.traffic-ranked-item strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.traffic-ranked-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.traffic-ranked-value { color: var(--ink); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }

.traffic-quality-list { display: grid; gap: 10px; margin-top: 21px; }
.traffic-quality-item { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fffefb; }
.traffic-quality-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.traffic-quality-head strong { font-size: 13px; }
.traffic-quality-item p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.traffic-notes { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px; margin-top: 14px; }
.traffic-notes > div { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 247, 0.58); }
.traffic-notes h2 { font-size: 24px; }
.traffic-notes dl { display: grid; grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1.5fr); gap: 9px 18px; margin: 18px 0 0; }
.traffic-notes dt { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.traffic-notes dd { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.traffic-notes ul { margin: 17px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.traffic-notes li + li { margin-top: 7px; }
.traffic-notes > div > p { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1020px) {
  .traffic-now-grid, .traffic-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .traffic-three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-three-up > .traffic-card:last-child { grid-column: 1 / -1; }
  .traffic-now-item:nth-child(n + 4) { grid-column: span 1; }
  .traffic-alert { grid-template-columns: 10px minmax(0, 1fr); }
  .traffic-alert-action { grid-column: 2; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 760px) {
  .traffic-nav { min-height: 60px; }
  .traffic-shell { width: min(100% - 24px, 1280px); padding-top: 32px; }
  .traffic-heading { display: grid; gap: 22px; }
  .traffic-heading-actions { width: 100%; }
  .traffic-heading-actions .traffic-button { flex: 1; min-height: 46px; }
  .traffic-control-bar { display: grid; padding: 7px; }
  .traffic-tabs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-tabs button { min-width: 0; min-height: 44px; padding-inline: 6px; font-size: clamp(10px, 2.8vw, 12px); letter-spacing: -0.02em; white-space: normal; }
  .traffic-window-control { width: 100%; justify-content: stretch; padding: 7px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .traffic-window-control button { flex: 1; min-height: 44px; }
  .traffic-load-row { align-items: flex-start; padding: 10px 2px; }
  .traffic-load-row p:last-child { text-align: right; }
  .traffic-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-now-item:last-child { grid-column: 1 / -1; }
  .traffic-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .traffic-two-up, .traffic-three-up, .traffic-notes, .traffic-origin-grid { grid-template-columns: 1fr; }
  .traffic-three-up > .traffic-card:last-child { grid-column: auto; }
  .traffic-two-up-tall > .traffic-card { min-height: 0; }
  .traffic-chart { overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  .traffic-chart svg { width: 680px; max-width: none; }
  .traffic-api-mix-chart { overflow-x: visible; }
  .traffic-api-mix-chart svg { width: 100%; max-width: 100%; }
  .traffic-breakdown-row { grid-template-columns: minmax(82px, 0.8fr) minmax(80px, 1.6fr) auto; gap: 8px; }
  .traffic-notes dl { grid-template-columns: 1fr; gap: 4px; }
  .traffic-notes dd + dt { margin-top: 8px; }
  .traffic-endpoint-heading code { display: block; }
  .traffic-endpoint-heading code b { display: inline-block; margin-right: 5px; }
  .traffic-endpoint-detail span:first-child { flex-basis: 100%; }
}

@media (max-width: 430px) {
  .traffic-lock-card { padding-inline: 22px; border-radius: 22px; }
  .traffic-inline-field { grid-template-columns: 1fr; }
  .traffic-inline-field button { min-height: 48px; }
  .traffic-heading h1 { font-size: 43px; }
  .traffic-now { padding: 20px 16px; }
  .traffic-section-head { display: grid; gap: 12px; }
  .traffic-now-grid { gap: 8px; }
  .traffic-now-item { padding: 14px 12px; }
  .traffic-metrics { gap: 8px; }
  .traffic-api-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-metric { min-height: 118px; padding: 15px; }
  .traffic-card { padding: 19px 16px; }
  .traffic-chart { margin-top: 18px; }
  .traffic-ranked-item { grid-template-columns: 30px minmax(0, 1fr); }
  .traffic-ranked-value { grid-column: 2; }
  .traffic-rank { width: 30px; height: 30px; }
  .traffic-endpoint-item { padding-inline: 13px; }
  .traffic-endpoint-heading { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; }
  .traffic-endpoint-rank { width: 26px; height: 26px; }
  .traffic-endpoint-track, .traffic-endpoint-detail { margin-left: 34px; }
  .traffic-endpoint-detail span { white-space: normal; }
}
