body.seo-metrics-mode { min-width: 320px; margin: 0;
  padding: 0;
  color: var(--n14);
  background:
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--sky-strong) 10%, transparent), transparent 31%),
    radial-gradient(circle at 12% 84%, color-mix(in srgb, var(--sky-tint) 8%, transparent), transparent 36%),
    linear-gradient(125deg, var(--n1) 0%, var(--n1) 48%, var(--n1) 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.seo-metrics-mode .dashboard { width: 100%; max-width: none; margin: 0;
  gap: 0;
}
body.seo-metrics-mode .topbar,
body.seo-metrics-mode #filterPanel,
body.seo-metrics-mode #cardsRow,
body.seo-metrics-mode #products,
body.seo-metrics-mode #sellerboardDashboard,
body.seo-metrics-mode #adsDashboard,
body.seo-metrics-mode #searchDashboard,
body.seo-metrics-mode #goalsDashboard,
body.seo-metrics-mode #seoDashboard,
body.seo-metrics-mode #tvModeActions {
  display: none !important;
}
#seoMetricsShell,
#seoMetricsDashboard[hidden],
#seoMetricsDashboard [hidden] {
  display: none !important;
}
.seo-reference-shell {
  position: relative;
  z-index: 70;
  display: grid;
  grid-template-columns: 187px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  height: 54px;
  padding: 0 21px 0 26px;
  border-bottom: 1px solid var(--n4);
  background: color-mix(in srgb, var(--n1) 96%, transparent);
  box-shadow: 0 4px 22px color-mix(in srgb, var(--shadow) 10%, transparent);
}
.app-header.global-shell { position: relative; z-index: 70; display: none; grid-template-columns: 187px minmax(0,1fr) auto auto; align-items: center; gap: 0; width: 100vw; min-width: 0; height: 54px; margin-right: calc((100% - 100vw)/2); margin-left: calc((100% - 100vw)/2); padding: 0 21px 0 26px; border: 0; border-bottom: 1px solid var(--n4); border-radius: 0; background: color-mix(in srgb, var(--n1) 96%, transparent); box-shadow: 0 4px 22px color-mix(in srgb, var(--shadow) 10%, transparent); }
.app-header.global-shell.on { display: grid; }
.global-shell .module-nav { border: 0; border-radius: 0; padding: 0; background: transparent; scrollbar-width: none; }
.global-shell .module-tab.on { border-color: transparent; color: var(--sky); background: transparent; }
.global-shell .module-tab:hover { color: var(--n14); background: transparent; }
.global-shell .user-chip { display: none; align-items: center; gap: 8px; min-width: 0; border: 0; border-radius: 0; padding: 3px 0 3px 6px; color: var(--n13); background: transparent; font-size: 13px; }
.global-shell .user-chip.on { display: flex; }
.global-shell .user-chip .user-avatar { flex: 0 0 auto; }
.global-shell .user-chip .seo-reference-profile-copy { min-width: 62px; }
.global-shell .user-chip .uname { max-width: 112px; overflow: hidden; color: var(--n13); text-overflow: ellipsis; white-space: nowrap; }
.global-shell .admin-btn { min-height: 29px; margin-left: 4px; border: 1px solid var(--n7); border-radius: 6px; padding: 4px 9px; color: var(--n13); background: var(--n4); font-size: 11px; white-space: nowrap; }
.global-shell .admin-btn:hover { border-color: var(--n8); color: var(--n14); background: var(--n5); }
.global-shell .logout-btn { min-width: max-content; color: var(--blue); font-size: 11px; white-space: nowrap; }
.global-shell .tv-mode-enter { min-width: max-content; margin: 0 10px 0 5px; border-color: var(--sky-strong); background: var(--n3); color: var(--teal); padding: 6px 9px; font-size: 11px; }
.seo-reference-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--n14);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .055em;
  text-decoration: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.seo-reference-brand img { width: 27px; height: 30px; }
.seo-reference-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 25px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.seo-reference-nav::-webkit-scrollbar { display: none; }
.seo-reference-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  min-width: max-content;
  border: 0;
  padding: 1px 0 0;
  color: var(--n11);
  text-decoration: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.seo-reference-nav-item::after {
  content: "";
  position: absolute;
  right: -11px;
  bottom: 0;
  left: -11px;
  height: 3px;
  background: transparent;
}
.seo-reference-nav-item:hover,
.seo-reference-nav-item:focus-visible { color: var(--n14); }
.seo-reference-nav-item.is-active { color: var(--sky); font-weight: 700; }
.seo-reference-nav-item.is-active::after { background: var(--sky-fill); box-shadow: 0 0 10px color-mix(in srgb, var(--sky) 28%, transparent); }
.seo-reference-nav-item:focus-visible,
.seo-reference-profile-button:focus-visible,
.seo-reference-main button:focus-visible,
.seo-reference-row:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
[data-seo-programmatic-focus]:focus { outline: none; }
.seo-reference-control input:focus-visible,
.seo-reference-control select:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: -2px;
  border-radius: 5px;
}
.seo-reference-profile { position: relative; }
.seo-reference-profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 3px 0 3px 6px;
  color: var(--n13);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.seo-reference-profile-button > svg {
  width: 13px;
  fill: none;
  stroke: var(--n11);
  stroke-width: 1.6;
}
.seo-reference-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--n12);
  background: var(--n5);
  font-size: 10px;
  font-weight: 750;
}
.seo-reference-profile-copy {
  display: grid;
  min-width: 70px;
  text-align: left;
}
.seo-reference-profile-copy strong { font-size: 11px; font-weight: 650; }
.seo-reference-profile-copy small { color: var(--n10); font-size: 8px; letter-spacing: .04em; }
.seo-reference-profile-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 142px;
  border: 1px solid var(--n5);
  border-radius: 7px;
  padding: 5px;
  background: var(--n2);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--shadow) 50%, transparent);
}
.seo-reference-profile-menu button {
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--n13);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.seo-reference-profile-menu button:hover { background: var(--n4); }
.seo-reference-main {
  width: 100%;
  min-height: calc(100vh - 54px);
  color: var(--n14);
}
.seo-reference-overview { padding: 24px 26px 32px; }
.seo-reference-overview-top {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) auto auto;
  align-items: start;
  gap: 16px;
}
.seo-reference-heading-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
}
.seo-reference-heading-row h1 {
  margin: 0;
  color: var(--n14);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 820;
  letter-spacing: -.025em;
}
.seo-reference-title-block > p {
  margin: 1px 0 0;
  color: var(--n10);
  font-size: 15px;
  line-height: 1.4;
}
.seo-reference-periods {
  display: flex;
  height: 42px;
  overflow: hidden;
  scrollbar-width: none;
  border: 1px solid var(--n5);
  border-radius: 6px;
  background: var(--n2);
}
.seo-reference-periods::-webkit-scrollbar { display: none; }
.seo-reference-periods button {
  min-width: 94px;
  border: 0;
  border-right: 1px solid var(--n5);
  padding: 0 13px;
  color: var(--n11);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.seo-reference-periods button:last-child { min-width: 128px; border-right: 0; }
.seo-reference-periods button.is-on {
  color: var(--on-fill);
  background: linear-gradient(180deg, var(--teal-fill), var(--sky-fill));
  font-weight: 760;
  box-shadow: 0 0 22px color-mix(in srgb, var(--sky) 16%, transparent);
}
.seo-reference-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 113px;
  height: 42px;
  border: 1px solid var(--n5);
  border-radius: 6px;
  color: var(--n13);
  background: var(--n3);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.seo-reference-export:disabled { opacity: .55; cursor: wait; }
.seo-reference-custom-period {
  grid-column: 2 / 4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: -8px;
}
.seo-reference-custom-period input,
.seo-reference-custom-period button {
  height: 35px;
  border: 1px solid var(--n6);
  border-radius: 5px;
  padding: 0 10px;
  color: var(--n13);
  background: var(--n2);
  font: inherit;
  font-size: 11px;
}
.seo-reference-filters {
  display: grid;
  grid-template-columns: 1.24fr 1fr 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 18px;
}
.seo-reference-control {
  position: relative;
  display: flex;
  align-items: center;
  height: 43px;
  border: 1px solid var(--n5);
  border-radius: 6px;
  color: var(--n11);
  background: var(--n2);
  color-scheme: var(--color-scheme);
}
.seo-reference-control svg {
  flex: 0 0 auto;
  width: 18px;
  margin-left: 13px;
  fill: none;
  stroke: var(--n12);
  stroke-width: 1.7;
}
.seo-reference-control input,
.seo-reference-control select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 13px;
  color: var(--n13);
  background: transparent;
  font: inherit;
  font-size: 12px;
}
.seo-reference-control select { appearance: none; padding-left: 84px; }
.seo-reference-control select option { color: var(--n13); background: var(--n2); }
.seo-reference-control > span {
  position: absolute;
  left: 13px;
  color: var(--n10);
  font-size: 12px;
  pointer-events: none;
}
.seo-reference-control::after {
  content: "⌄";
  position: absolute;
  right: 13px;
  color: var(--n12);
  pointer-events: none;
}
.seo-reference-control.is-search::after { content: none; }
.seo-reference-status-line {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--n10);
  font-size: 11px;
}
.seo-reference-status-line:empty { visibility: hidden; }
.seo-reference-status-line.is-error { color: var(--red); }
.seo-reference-overview > .seo-reference-status-line:empty { min-height: 10px; }
.seo-reference-list-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 6px 0 10px;
}
.seo-reference-list-heading h2 {
  margin: 0;
  color: var(--n14);
  font-size: 22px;
  line-height: 1.2;
}
.seo-reference-list-heading p {
  margin: 0;
  color: var(--n10);
  font-size: 11px;
}
.seo-reference-list-heading p span {
  display: inline-block;
  height: 15px;
  margin: 0 13px;
  border-left: 1px solid var(--n6);
  vertical-align: middle;
}
.seo-reference-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 32px);
  border: 1px solid var(--n5);
  border-radius: 5px;
  background: color-mix(in srgb, var(--n1) 72%, transparent);
}
.seo-reference-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 12px;
}
.seo-reference-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  border-right: 1px solid var(--n5);
  border-bottom: 1px solid var(--n5);
  padding: 0 10px;
  color: var(--n11);
  background: var(--n3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.seo-reference-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: center;
  text-transform: inherit;
  cursor: pointer;
}
.seo-reference-sort:hover { color: var(--n14); }
.seo-reference-sort:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.seo-reference-sort-indicator { flex: none; color: var(--n11); font-size: 9px; }
/* The product column hugs its content; metric columns share the remaining width. */
.seo-reference-table th:first-child,
.seo-reference-table td:first-child { width: 1%; }
.seo-reference-table th:not(:first-child),
.seo-reference-table td:not(:first-child) { text-align: center; white-space: nowrap; }
.seo-reference-table th:first-child .seo-reference-sort { justify-content: flex-start; text-align: left; }
.seo-reference-table td {
  height: 77px;
  border-right: 1px solid color-mix(in srgb, var(--n4) 68%, transparent);
  border-bottom: 1px solid var(--n5);
  padding: 6px 10px;
  color: var(--n13);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.seo-reference-table tr:last-child td { border-bottom: 0; }
.seo-reference-table th:last-child,
.seo-reference-table td:last-child { border-right: 0; }
.seo-reference-row { cursor: pointer; transition: background-color .12s ease; }
.seo-reference-row:hover { background: color-mix(in srgb, var(--sky-fill) 4.5%, transparent); }
.seo-reference-table td > strong,
.seo-reference-table td > small,
.seo-reference-table td > span { display: block; }
.seo-reference-table td > strong { color: var(--n14); font-size: 13px; font-weight: 520; }
.seo-reference-table td > small { margin-top: 3px; color: var(--n11); font-size: 10px; }
.seo-reference-product {
  display: grid;
  width: max-content;
  min-width: 230px;
  max-width: 320px;
  grid-template-columns: 59px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.seo-reference-product > span:last-child { display: grid; gap: 2px; min-width: 0; }
.seo-reference-product strong { color: var(--n14); font-size: 13px; font-weight: 650; }
.seo-reference-product small {
  overflow: hidden;
  color: var(--n11);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seo-reference-country {
  display: inline-block;
  margin-left: 6px;
  border: 1px solid var(--n6);
  border-radius: 3px;
  padding: 0 4px;
  color: var(--sky);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: 1px;
}
.seo-reference-product-image {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  border-radius: 4px;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--n14) 72%, transparent);
  background: radial-gradient(circle at 45% 34%, var(--paper) 0, var(--paper) 62%, var(--paper) 100%);
}
.seo-reference-product-image svg {
  width: 49px;
  height: 49px;
  fill: none;
  stroke: var(--n6);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}
.seo-reference-delta {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.seo-reference-delta.is-positive { color: var(--teal); }
.seo-reference-delta.is-negative { color: var(--red); }
.seo-reference-delta.is-muted { color: var(--n10); }
.seo-reference-previous { margin-top: 3px; color: var(--n11); font-size: 10px; font-weight: 400; }
.seo-reference-business { color: var(--n11); font-size: 10px; white-space: normal; }
.seo-reference-rank { margin: 4px 0; }
.seo-reference-rank strong { color: var(--n14); font-size: 13px; font-weight: 520; }
.seo-reference-rank-label { display: block; max-width: 160px; margin-top: 2px; color: var(--n11); font-size: 10px; font-weight: 400; white-space: normal; }
.seo-reference-star { color: var(--amber); }
.seo-reference-buybox,
.seo-reference-offer-presence {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 61px;
  min-height: 31px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
}
.seo-reference-buybox.is-yes { color: var(--teal); background: var(--teal-tint); }
.seo-reference-buybox.is-no { color: var(--orange); background: var(--orange-tint); }
.seo-reference-buybox.is-unknown { color: var(--n11); background: var(--n4); }
.seo-reference-offer-presence { min-width: 36px; min-height: 27px; }
.seo-reference-offer-presence.is-yes { color: var(--teal); background: var(--teal-tint); }
.seo-reference-offer-presence.is-no { color: var(--orange); background: var(--n5); }
.seo-reference-offer-presence.is-unknown { color: var(--n11); background: var(--n4); }
.seo-reference-abc {
  display: inline-grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 15px;
}
.seo-reference-abc.is-a { border-color: var(--teal); color: var(--teal); box-shadow: inset 0 0 12px color-mix(in srgb, var(--teal) 18%, transparent); }
.seo-reference-abc.is-b { border-color: var(--green); color: var(--green); box-shadow: inset 0 0 12px color-mix(in srgb, var(--green) 13%, transparent); }
.seo-reference-abc.is-c { border-color: var(--orange); color: var(--orange); box-shadow: inset 0 0 12px color-mix(in srgb, var(--orange) 15%, transparent); }
.seo-reference-abc.is-unknown { border-color: var(--n7); color: var(--n11); }
.seo-reference-external { display: inline-block !important; margin-left: 10px; color: var(--n11); vertical-align: middle; }
.seo-reference-external svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.seo-reference-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  min-height: 18px;
  color: var(--n10);
  font-size: 10px;
}
.seo-reference-pagination:empty { display: none; }
.seo-reference-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  gap: 6px;
  padding: 24px;
  color: var(--n10);
  text-align: center;
}
.seo-reference-state strong { color: var(--n13); }
.seo-reference-state button {
  border: 1px solid var(--sky);
  border-radius: 5px;
  padding: 8px 14px;
  color: var(--sky);
  background: var(--n3);
  font: inherit;
  cursor: pointer;
}
.seo-reference-loading::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid var(--n6);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: seo-reference-spin .75s linear infinite;
}
@keyframes seo-reference-spin { to { transform: rotate(360deg); } }
body.seo-metrics-detail-mode .seo-reference-shell { height: 43px; padding-left: 22px; }
body.seo-metrics-detail-mode .seo-reference-main { min-height: calc(100vh - 43px); }
body.seo-metrics-detail-mode .seo-reference-brand { font-size: 16px; }
body.seo-metrics-detail-mode .seo-reference-brand img { width: 28px; height: 31px; }
.seo-reference-detail { padding: 10px 18px 32px; }
.seo-reference-detail > .seo-reference-status-line:empty { display: none; }
.seo-reference-detail-top {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 27px;
}
.seo-reference-back {
  border: 0;
  padding: 0 4px;
  color: var(--sky);
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.seo-reference-breadcrumb { color: var(--n10); font-size: 9px; text-transform: uppercase; }
.seo-reference-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 119px;
  padding: 0 2px 8px;
}
.seo-reference-detail-product {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.seo-reference-product-image.is-large { width: 102px; height: 102px; border-radius: 5px; }
.seo-reference-product-image.is-large svg { width: 82px; height: 82px; }
.seo-reference-detail-product h1 { margin: 0 0 3px; color: var(--n14); font-size: 28px; line-height: 1.1; }
.seo-reference-detail-product h2 { margin: 0 0 4px; color: var(--n14); font-size: 15px; font-weight: 600; }
.seo-reference-detail-product p { margin: 0 0 7px; color: var(--n11); font-size: 11px; }
.seo-reference-detail-badges { display: flex; align-items: center; gap: 8px; }
.seo-reference-detail-badges > span { min-height: 26px; }
.seo-reference-active {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 0 9px;
  color: var(--green);
  background: var(--green-tint);
  font-size: 10px;
  font-weight: 650;
}
.seo-reference-active.is-inactive { color: var(--orange); background: var(--orange-tint); }
.seo-reference-active.is-unknown { color: var(--n11); background: var(--n4); }
.seo-reference-detail-badges small { margin-left: 13px; color: var(--n10); font-size: 9px; }
.seo-reference-detail-period { display: grid; justify-items: start; gap: 7px; min-width: 510px; }
.seo-reference-detail-period > span { color: var(--n10); font-size: 9px; }
.seo-reference-detail-period > small { color: var(--n10); font-size: 9px; }
.seo-reference-detail-period .seo-reference-periods { height: 36px; }
.seo-reference-detail-period .seo-reference-periods button { min-width: 110px; font-size: 11px; }
.seo-reference-detail-period .seo-reference-periods button:last-child { min-width: 163px; }
.seo-reference-kpis {
  display: grid;
  grid-template-columns: repeat(9, minmax(140px, 1fr));
  min-height: 104px;
  overflow-x: auto;
  border: 1px solid var(--n5);
  border-radius: 4px;
  background: var(--n2);
}
.seo-reference-kpi {
  display: grid;
  align-content: center;
  min-width: 0;
  border-right: 1px solid var(--n5);
  padding: 0 18px;
}
.seo-reference-kpi:last-child { border-right: 0; }
.seo-reference-kpi > span { margin-bottom: 4px; color: var(--n11); font-size: 9px; text-transform: uppercase; }
.seo-reference-kpi > div { display: flex; align-items: baseline; gap: 12px; }
.seo-reference-kpi strong { color: var(--n14); font-size: 21px; font-weight: 680; white-space: nowrap; }
.seo-reference-kpi small { font-size: 10px; font-weight: 650; white-space: nowrap; }
.seo-reference-kpi small.is-positive { color: var(--teal); }
.seo-reference-kpi small.is-negative { color: var(--red); }
.seo-reference-kpi small.is-warn { color: var(--orange); }
.seo-reference-kpi small.is-muted { color: var(--n10); }
.seo-reference-kpi > .seo-reference-previous,
.seo-reference-kpi > .seo-reference-business,
.seo-reference-kpi > .seo-reference-rank-label { font-weight: 400; white-space: normal; }
.seo-reference-detail-tabs {
  display: flex;
  height: 44px;
  gap: 29px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--n5);
}
.seo-reference-detail-tabs::-webkit-scrollbar { display: none; }
.seo-reference-detail-tabs button {
  flex: none;
  white-space: nowrap;
  position: relative;
  border: 0;
  padding: 2px 4px 0;
  color: var(--n10);
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.seo-reference-detail-tabs button.is-active { color: var(--sky); }
.seo-reference-detail-tabs button:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.seo-reference-detail-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--sky-fill);
}
@media (max-width: 1080px) {
  .seo-reference-shell { grid-template-columns: 135px minmax(0, 1fr) auto; padding-right: 12px; padding-left: 16px; }
  .app-header.global-shell { grid-template-columns: 135px minmax(0,1fr) auto auto; padding-right: 12px; padding-left: 16px; }
  .seo-reference-nav { gap: 18px; }
  .seo-reference-profile-copy { display: none; }
  .seo-reference-overview-top { grid-template-columns: 1fr; }
  .seo-reference-periods { width: max-content; max-width: 100%; }
  .seo-reference-export { position: absolute; top: 68px; right: 26px; }
  .seo-reference-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-reference-detail-hero { grid-template-columns: 1fr; gap: 14px; }
  .seo-reference-detail-period { min-width: 0; }
  .seo-reference-kpis { grid-template-columns: repeat(4, minmax(130px, 1fr)); height: auto; overflow-x: auto; }
  .seo-reference-kpi { min-height: 64px; }
}
@media (max-width: 700px) {
  .seo-reference-shell { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; height: 52px; padding: 0 10px; }
  .app-header.global-shell { grid-template-columns: auto minmax(0,1fr) auto; column-gap: 10px; height: 52px; padding: 0 10px; }
  .global-shell .tv-mode-enter { display: none !important; }
  .global-shell .user-chip { z-index: 2; padding-left: 0; background: var(--n1); }
  .global-shell .logout-btn { display: none; }
  .global-shell .admin-btn { width: 30px; overflow: hidden; padding: 4px 6px; color: transparent; }
  .global-shell .admin-btn::first-letter { color: var(--n13); }
  .seo-reference-brand span { display: none; }
  .seo-reference-nav { gap: 17px; order: 2; padding-right: 6px; scroll-snap-type: x proximity; }
  .seo-reference-nav-item { scroll-snap-align: start; }
  .seo-reference-profile { z-index: 2; order: 3; background: var(--n1); }
  .seo-reference-profile-button > svg { display: none; }
  .seo-reference-overview { padding: 18px 12px 24px; }
  .seo-reference-heading-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .seo-reference-heading-row h1 { font-size: 25px; }
  .seo-reference-title-block > p { font-size: 13px; }
  .seo-reference-export { position: static; width: 100%; margin-top: 10px; }
  .seo-reference-periods { overflow-x: auto; width: 100%; }
  .seo-reference-periods button { min-width: 92px; }
  .seo-reference-filters { grid-template-columns: 1fr; margin-top: 14px; }
  .seo-reference-list-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .seo-reference-list-heading p { line-height: 1.5; }
  body.seo-metrics-detail-mode .seo-reference-shell { height: 52px; }
  .seo-reference-detail { padding: 8px 10px 24px; }
  .seo-reference-breadcrumb { display: none; }
  .seo-reference-detail-product { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .seo-reference-product-image.is-large { width: 72px; height: 72px; }
  .seo-reference-detail-product h1 { font-size: 21px; }
  .seo-reference-detail-product h2 { font-size: 13px; }
  .seo-reference-detail-badges { align-items: flex-start; flex-wrap: wrap; }
  .seo-reference-detail-badges small { flex-basis: 100%; margin-left: 0; }
  .seo-reference-detail-period .seo-reference-periods { display: grid; grid-template-columns: repeat(2, 1fr); height: auto; }
  .seo-reference-detail-period .seo-reference-periods button,
  .seo-reference-detail-period .seo-reference-periods button:last-child { min-width: 0; height: 38px; }
  .seo-reference-kpis { grid-template-columns: repeat(2, minmax(145px, 1fr)); }
  .seo-reference-detail-tabs { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .seo-reference-row { transition: none; }
  .seo-reference-loading::before { animation: none; }
}
