:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1c2430; background: #f5f7fb; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f7fb; }
.app-shell { width: min(100%, 1280px); margin: 0 auto; padding: 24px 16px 44px; }
.app-header, .section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.app-header { margin-bottom: 32px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.625rem, calc(7vw - 2px), 2.225rem); letter-spacing: -0.045em; line-height: 1.1; }
h2 { font-size: 1.2rem; letter-spacing: -0.025em; }
h3 { min-width: 0; font-size: 1.1rem; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-icon-box, .website-icon { display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #e1e7f0; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(34, 52, 81, .06); }
.brand-icon-box { width: 34px; height: 34px; }
.brand-icon { display: block; width: 26px; height: 26px; object-fit: contain; }
.eyebrow { color: #657184; font-size: .7rem; font-weight: 750; letter-spacing: .09em; margin-bottom: 6px; }
.realtime-refresh { margin-top: 7px; color: #778294; font-size: .76rem; }
.header-status { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #86601a; font-size: .72rem; font-weight: 800; letter-spacing: .04em; background: #fff5dd; border: 1px solid #f2dfad; border-radius: 999px; padding: 8px 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d88728; }
.summary-section { margin-bottom: 34px; }
.section-heading { align-items: end; margin-bottom: 14px; }
.updated-at, .site-count { color: #657184; font-size: .8rem; white-space: nowrap; }
.updated-at { color: #86601a; font-weight: 700; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.metric-card { min-width: 0; padding: 14px 12px; border: 1px solid #e1e7f0; border-radius: 14px; background: #fff; }
.metric-card p { color: #697587; font-size: clamp(.71rem, 3.1vw, .84rem); line-height: 1.25; overflow-wrap: anywhere; }
.metric-card strong { display: block; margin-top: 7px; color: #17202d; font-size: clamp(1.28rem, 6.2vw, 1.95rem); line-height: 1; letter-spacing: -0.05em; }
.metric-card.is-live strong, .strip-metric.is-realtime strong { color: #147553; }
.metric-source { display: block; margin-top: 2px; color: #147553; font-size: .56rem; font-weight: 800; letter-spacing: .05em; }
.metric-card.is-unavailable strong, .strip-metric.is-unavailable strong { color: #657184; font-size: clamp(.76rem, 3.6vw, .98rem); line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.website-list { display: grid; gap: 12px; }
.website-card { min-width: 0; overflow: hidden; border: 1px solid #e0e6ef; border-left: 4px solid var(--site-color); border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(34, 52, 81, .04); }
.strip-primary { display: grid; grid-template-columns: minmax(205px, 1.45fr) repeat(4, minmax(92px, .66fr)); gap: 14px; align-items: center; padding: 15px 18px 13px; }
.strip-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.website-icon { width: 32px; height: 32px; border-radius: 9px; }
.website-icon img { display: block; width: 20px; height: 20px; object-fit: contain; }
.site-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.heartbeat-indicator { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; color: #1c2430; font-size: 1.1rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.heartbeat-icon { color: #8b95a3; font-size: 1.1rem; line-height: 1; }
.heartbeat-indicator strong { color: #147553; font-size: calc(1.1rem - 2px); font-weight: inherit; }
.heartbeat-indicator.is-active .heartbeat-icon { color: #147553; animation: heartbeat-pulse 1.55s ease-in-out infinite; }
@keyframes heartbeat-pulse { 0%, 100% { transform: scale(1); } 16% { transform: scale(1.1); } 32% { transform: scale(1); } 48% { transform: scale(1.06); } 64% { transform: scale(1); } }
.live-state { display: inline-flex; align-items: center; gap: 4px; color: #147553; font-size: .62rem; font-weight: 850; letter-spacing: .06em; white-space: nowrap; }
.live-state i { width: 7px; height: 7px; border-radius: 50%; background: #1ca66e; box-shadow: 0 0 0 3px #e5f5ee; }
.strip-metric { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.strip-metric > span, .strip-detail > span { color: #778294; font-size: .69rem; font-weight: 700; letter-spacing: .015em; line-height: 1.2; }
.strip-metric strong { color: #263141; font-size: 1.24rem; line-height: 1; letter-spacing: -.045em; }
.true-live-inline { color: #778294; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.true-live-inline strong { color: #147553; font-size: 1.24rem; }
.true-live-inline em { color: #147553; font-size: .61rem; font-style: normal; font-weight: 850; letter-spacing: .05em; }
.strip-metric.is-secondary strong { font-size: 1.12rem; }
.strip-secondary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 12px 18px 14px; border-top: 1px solid #edf0f5; background: #fcfdff; }
.strip-detail { min-width: 0; }
.strip-detail strong { display: block; margin-top: 4px; color: #4a5668; font-size: .83rem; font-weight: 650; overflow-wrap: anywhere; }
.strip-top-page strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error-message { grid-column: 1 / -1; color: #ae3030; font-size: .9rem; }
.strip-countries { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 15px 18px 17px; border-top: 1px solid #edf0f5; background: #f5f7fa; }
.countries-title { color: #778294; font-size: .69rem; font-weight: 800; letter-spacing: .04em; }
.countries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; min-width: 0; }
.country-item { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 54px; padding: 8px 9px; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; color: #4a5668; font-size: .78rem; font-weight: 650; }
.country-line { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.country-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.country-flag-image { display: block; width: 24px; height: 18px; flex: 0 0 auto; border-radius: 2px; object-fit: cover; }
.country-item strong { color: #263141; font-size: .82rem; }
.country-activity { width: 100%; height: 3px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #dce5f2; }
.country-activity i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: #3d78c4; }
.no-country-data { color: #778294; font-size: .78rem; font-style: italic; }

@media (max-width: 920px) {
  .strip-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .strip-identity { grid-column: 1 / -1; }
  .strip-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .strip-countries { grid-template-columns: 1fr; gap: 9px; }
}
@media (min-width: 560px) {
  .app-shell { padding: 34px 28px 52px; }
}
@media (max-width: 420px) {
  .app-header { flex-wrap: wrap; }
  .strip-primary { padding: 14px 14px 12px; gap: 10px; }
  .strip-secondary { padding: 11px 14px 13px; gap: 11px; }
  .strip-metric strong { font-size: 1.12rem; }
  .strip-metric.is-secondary strong { font-size: 1.04rem; }
}
@media (min-width: 921px) {
  .app-shell { padding-top: 48px; }
}
/* Row 1 final layout */
.strip-primary { grid-template-columns: minmax(250px, 1.55fr) repeat(3, minmax(145px, .75fr)); gap: 0; align-items: stretch; padding: 12px 18px; }
.strip-identity { padding-right: 18px; }
.heartbeat-indicator strong { color: #1c2430; font-size: 1.1rem; font-weight: inherit; }
.strip-metric { justify-content: center; gap: 5px; padding: 0 18px; border-left: 1px solid #e8edf3; }
.strip-metric strong { font-size: 1.3rem; }
.strip-metric.is-secondary strong { font-size: 1.22rem; }
@media (max-width: 920px) {
  .strip-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 12px 14px; }
  .strip-identity { grid-column: 1 / -1; padding: 0 0 10px; }
  .strip-metric { padding: 10px 8px 2px 0; border-top: 1px solid #edf0f5; border-left: 0; }
  .strip-primary > .strip-metric:nth-child(3) { padding-left: 10px; border-left: 1px solid #edf0f5; }
}
/* Row 1 compact single-line refinement */
.strip-primary { grid-template-columns: minmax(300px, 1.7fr) repeat(3, minmax(0, 1fr)); padding: 10px 18px; }
.strip-metric { flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-left-color: #e0e6ee; }
.strip-metric > span { font-size: .82rem; white-space: nowrap; }
@media (max-width: 920px) {
  .strip-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 14px; }
  .strip-metric { flex-direction: row; justify-content: flex-start; }
}
/* Row 1 stat alignment correction */
.strip-metric { justify-content: space-between; gap: 10px; padding: 0 18px; border-left: 0; border-right: 1px solid #e0e6ee; }
.strip-metric > span, .strip-metric strong { font-size: 1.3rem; white-space: nowrap; }
@media (max-width: 920px) {
  .strip-metric { justify-content: space-between; }
  .strip-metric > span, .strip-metric strong { font-size: 1rem; }
}
/* Row 1 shared stat typography */
.strip-primary > .strip-metric > span,
.strip-primary > .strip-metric > strong { font-size: 1.3rem; }
@media (max-width: 920px) {
  .strip-primary > .strip-metric > span,
  .strip-primary > .strip-metric > strong { font-size: 1rem; }
}
/* Row 1 stat size reduction */
.strip-primary > .strip-metric > span,
.strip-primary > .strip-metric > strong { font-size: 1rem; }
@media (max-width: 920px) {
  .strip-primary > .strip-metric > span,
  .strip-primary > .strip-metric > strong { font-size: 0.9rem; }
}
/* Live Calls label contrast */
.strip-primary > .strip-metric.is-realtime > span { color: #525d6e; }

/* Row 2 final design */
.strip-secondary { grid-template-columns: .85fr 1.5fr 1fr; gap: 0; padding: 10px 18px; }
.row-two-section { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 14px; padding: 0 18px; border-right: 1px solid #e0e6ee; }
.row-two-section:first-child { padding-left: 0; }
.row-two-section:last-child { padding-right: 0; border-right: 0; }
.row-two-section > span { color: #525d6e; font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.row-two-section > strong { color: #263141; font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.traffic-values, .performance-values { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px 7px; min-width: 0; color: #525d6e; font-size: 1rem; font-weight: 700; line-height: 1.2; }
.traffic-channel { white-space: nowrap; }
.traffic-channel strong { color: #263141; font: inherit; font-weight: 700; }
.traffic-separator { color: #a8b1bd; }
.performance-values { gap: 6px 10px; }
.performance-item { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.performance-item strong { font: inherit; font-weight: 700; }
.performance-item.is-up strong, .performance-item.is-new strong { color: #147553; }
.performance-item.is-down strong { color: #bf3b45; }
.performance-item.is-neutral strong, .performance-item.is-unavailable strong, .row-two-empty { color: #778294; }
@media (max-width: 920px) {
  .strip-secondary { grid-template-columns: 1fr; gap: 0; padding: 0 14px; }
  .row-two-section, .row-two-section:first-child, .row-two-section:last-child { min-height: 40px; padding: 10px 0; border-right: 0; }
  .row-two-section + .row-two-section { border-top: 1px solid #edf0f5; }
  .row-two-section > span, .row-two-section > strong, .traffic-values, .performance-values { font-size: .9rem; }
}
/* Row 2 visual clarity */
.strip-secondary { gap: 8px; padding: 10px 18px; }
.row-two-section, .row-two-section:first-child, .row-two-section:last-child { min-height: 50px; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; }
.row-two-conversion { background: #f1f8f5; border-color: #dceee5; }
.row-two-traffic { background: #f3f7fc; border-color: #dfe9f7; }
.row-two-performance { background: #fff8eb; border-color: #f5e5bd; }
.row-two-conversion > span { color: #147553; }
.row-two-traffic > span { color: #3567a8; }
.row-two-performance > span { color: #9a6700; }
.row-two-conversion > strong { color: #263141; font-weight: 700; }
.traffic-values { color: #465a73; }
.traffic-channel { font-weight: 700; }
.performance-values { color: #465a73; }
@media (max-width: 920px) {
  .strip-secondary { gap: 8px; padding: 10px 14px; }
  .row-two-section, .row-two-section:first-child, .row-two-section:last-child { min-height: 42px; padding: 10px 11px; border: 1px solid transparent; }
  .row-two-section + .row-two-section { border-top: 1px solid transparent; }
  .row-two-conversion { border-color: #dceee5; }
  .row-two-traffic { border-color: #dfe9f7; }
  .row-two-performance { border-color: #f5e5bd; }
}
/* Row 2 traffic channel colors */
.traffic-channel, .traffic-channel strong { font-weight: 600; }
.traffic-channel.is-organic, .traffic-channel.is-organic strong { color: #147553; }
.traffic-channel.is-unassigned, .traffic-channel.is-unassigned strong { color: #6f42c1; }
.traffic-channel.is-direct, .traffic-channel.is-direct strong { color: #3567a8; }
/* Reference-inspired website strip system */
.website-card.website-strip { border-radius: 18px; box-shadow: 0 8px 24px rgba(34, 52, 81, .06); }
.strip-header { display: flex; align-items: center; min-height: 64px; padding: 16px 18px 8px; }
.strip-header .strip-identity { padding: 0; }
.website-icon { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 8px rgba(34, 52, 81, .05); }
.website-icon img { width: 24px; height: 24px; }
.strip-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 6px 18px 16px; }
.strip-primary > .strip-metric { min-height: 38px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border: 0; border-right: 1px solid #e4e9f1; }
.strip-primary > .strip-metric:first-child { padding-left: 0; }
.strip-primary > .strip-metric:last-child { padding-right: 0; border-right: 0; }
.strip-primary > .strip-metric > span,
.strip-primary > .strip-metric > strong { font-size: 1rem; }
.strip-primary > .strip-metric > span { color: #525d6e; }
.strip-primary > .strip-metric > strong { font-weight: 750; letter-spacing: -.02em; }
.strip-secondary { grid-template-columns: .85fr 1.5fr 1fr; align-items: stretch; gap: 10px; padding: 0 18px 16px; border-top: 0; background: #fff; }
.row-two-section, .row-two-section:first-child, .row-two-section:last-child { min-height: 116px; align-items: flex-start; justify-content: center; gap: 7px; padding: 15px 16px; border: 1px solid transparent; border-radius: 12px; }
.row-two-section > span { font-size: 1rem; font-weight: 700; }
.row-two-conversion { background: #f1f8f5; border-color: #dceee5; }
.row-two-traffic { background: #f3f7fc; border-color: #dfe9f7; }
.row-two-performance { background: #fff8eb; border-color: #f5e5bd; }
.row-two-conversion > strong { color: #17202d; font-size: 1.3rem; line-height: 1; font-weight: 800; }
.row-two-section small { color: #718097; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.traffic-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; align-items: start; justify-content: stretch; font-size: .92rem; }
.traffic-separator { display: none; }
.traffic-channel { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-weight: 600; line-height: 1.1; }
.traffic-channel strong { font-size: 1.06rem; line-height: 1; font-weight: 600; }
.performance-values { justify-content: flex-start; font-size: 1rem; }
.performance-item { gap: 7px; color: #526176; }
.performance-item strong { font-size: 1.18rem; }
.strip-countries { padding: 15px 18px 17px; border-top-color: #e9edf3; background: #f6f8fb; }
@media (max-width: 920px) {
  .strip-header { min-height: 58px; padding: 14px 14px 7px; }
  .strip-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 14px 14px; }
  .strip-primary > .strip-metric { min-height: 36px; padding: 0 10px 0 0; border-right: 0; border-top: 1px solid #e9edf3; }
  .strip-primary > .strip-metric:nth-child(2) { padding-left: 10px; border-left: 1px solid #e9edf3; }
  .strip-primary > .strip-metric:nth-child(3) { grid-column: 1 / -1; padding: 10px 0 0; border-left: 0; }
  .strip-primary > .strip-metric > span,
  .strip-primary > .strip-metric > strong { font-size: .9rem; }
  .strip-secondary { grid-template-columns: 1fr; gap: 9px; padding: 0 14px 14px; }
  .row-two-section, .row-two-section:first-child, .row-two-section:last-child { min-height: 0; padding: 12px 13px; border-width: 1px; }
  .row-two-section + .row-two-section { border-top: 1px solid transparent; }
  .row-two-section > span, .row-two-section > strong, .performance-values { font-size: .9rem; }
  .traffic-values { font-size: .88rem; }
  .traffic-channel strong { font-size: .98rem; }
}
@media (max-width: 470px) {
  .strip-primary { grid-template-columns: 1fr; }
  .strip-primary > .strip-metric, .strip-primary > .strip-metric:nth-child(2), .strip-primary > .strip-metric:nth-child(3) { grid-column: auto; padding: 8px 0; border-left: 0; border-top: 1px solid #e9edf3; }
  .traffic-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Row 1 and Row 2 reference-alignment correction */
.analytics-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; }
.analytics-icon svg { width: 21px; height: 21px; fill: currentColor; }
.analytics-icon-calls { color: #147553; background: #e6f6ee; }
.analytics-icon-users { color: #2876d8; background: #e8f2ff; }
.analytics-icon-clicks { color: #6458dc; background: #eeeaff; }
.analytics-icon-conversion { color: #147553; background: #dff3e8; }
.analytics-icon-traffic { color: #2876d8; background: #e1efff; }
.analytics-icon-performance { color: #9a6700; background: #fff0cd; }
.strip-primary > .strip-metric { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; justify-content: start; gap: 11px; }
.strip-metric-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.strip-primary > .strip-metric .strip-metric-copy > span { color: #525d6e; font-size: .82rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.strip-primary > .strip-metric .strip-metric-copy > strong { color: #263141; font-size: 1.32rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.strip-primary > .strip-metric.is-realtime .strip-metric-copy > strong { color: #147553; }
.strip-secondary { gap: 9px; padding-bottom: 14px; }
.row-two-section, .row-two-section:first-child, .row-two-section:last-child { min-height: 104px; gap: 6px; padding: 12px 14px; }
.panel-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.panel-heading > span:last-child { font-size: 1rem; font-weight: 700; line-height: 1.15; }
.row-two-conversion .panel-heading > span:last-child { color: #147553; }
.row-two-traffic .panel-heading > span:last-child { color: #3567a8; }
.row-two-performance .panel-heading > span:last-child { color: #9a6700; }
.row-two-section .analytics-icon { width: 34px; height: 34px; }
.row-two-section .analytics-icon svg { width: 18px; height: 18px; }
.row-two-conversion > strong { margin-left: 43px; font-size: 1.45rem; }
.row-two-conversion > small { margin-left: 43px; }
.row-two-traffic .traffic-values { padding-left: 43px; gap: 0; }
.row-two-traffic .traffic-channel { min-height: 38px; padding: 0 9px; border-right: 1px solid #cbd9ed; }
.row-two-traffic .traffic-channel:first-child { padding-left: 0; }
.row-two-traffic .traffic-channel:last-child { padding-right: 0; border-right: 0; }
.row-two-traffic .traffic-channel strong { font-size: 1rem; }
.row-two-performance .performance-values { margin-left: 43px; }
.row-two-performance > small { margin-left: 43px; }
.performance-item strong { font-size: 1.2rem; }
@media (max-width: 920px) {
  .strip-primary > .strip-metric { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .strip-primary > .strip-metric .analytics-icon { width: 34px; height: 34px; }
  .strip-primary > .strip-metric .analytics-icon svg { width: 18px; height: 18px; }
  .strip-primary > .strip-metric .strip-metric-copy > span { font-size: .78rem; }
  .strip-primary > .strip-metric .strip-metric-copy > strong { font-size: 1.12rem; }
  .row-two-section, .row-two-section:first-child, .row-two-section:last-child { min-height: 92px; }
  .panel-heading > span:last-child { font-size: .9rem; }
}
@media (max-width: 470px) {
  .row-two-traffic .traffic-values { padding-left: 0; }
  .row-two-conversion > strong, .row-two-conversion > small, .row-two-performance .performance-values, .row-two-performance > small { margin-left: 0; }
}
/* Row 1 final single-line KPI correction */
.strip-primary > .strip-metric { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; }
.strip-primary > .strip-metric .strip-metric-copy { display: contents; }
.strip-primary > .strip-metric .strip-metric-copy > span { grid-column: 2; color: #525d6e; font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.strip-primary > .strip-metric .strip-metric-copy > strong { grid-column: 3; justify-self: end; color: #263141; font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.strip-primary > .strip-metric.is-realtime .strip-metric-copy > strong { color: #147553; }
@media (max-width: 920px) {
  .strip-primary > .strip-metric { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 14px; }
  .strip-primary > .strip-metric .strip-metric-copy > span,
  .strip-primary > .strip-metric .strip-metric-copy > strong { font-size: .9rem; }
}
/* Row 1 identity-line Last Updated */
.strip-header { justify-content: space-between; gap: 16px; }
.site-last-updated { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; }
.site-last-updated span { color: #778294; font-size: .72rem; font-weight: 600; line-height: 1.1; }
.site-last-updated strong { color: #263141; font-size: .92rem; font-weight: 700; line-height: 1.1; }
@media (max-width: 470px) {
  .strip-header { gap: 10px; }
  .site-last-updated span { font-size: .68rem; }
  .site-last-updated strong { font-size: .86rem; }
}
/* Row 1 New Users 48h KPI */
.analytics-icon-newUsers { color: #168a98; background: #e2f6f7; }
.strip-primary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px) {
  .strip-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-primary > .strip-metric:nth-child(3) { grid-column: auto; padding: 0 10px 0 0; border-left: 0; }
  .strip-primary > .strip-metric:nth-child(4) { padding: 0 0 0 10px; border-left: 1px solid #e9edf3; }
}
@media (max-width: 470px) {
  .strip-primary { grid-template-columns: 1fr; }
  .strip-primary > .strip-metric:nth-child(3), .strip-primary > .strip-metric:nth-child(4) { grid-column: auto; padding: 8px 0; border-left: 0; }
}
/* Row 1 four-KPI desktop width correction */
.strip-primary { width: 100%; min-width: 0; }
@media (min-width: 921px) {
  .strip-primary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip-primary > .strip-metric { min-width: 0; padding-right: 12px; padding-left: 12px; }
  .strip-primary > .strip-metric:first-child { padding-left: 0; }
  .strip-primary > .strip-metric:last-child { padding-right: 0; }
}
/* Row 1 typography: +1px only */
.strip-header h3 { font-size: calc(1.1rem + 1px); }
.strip-header .heartbeat-indicator, .strip-header .heartbeat-icon, .strip-header .heartbeat-indicator strong { font-size: calc(1.1rem + 1px); }
.site-last-updated span { font-size: calc(.72rem + 1px); }
.site-last-updated strong { font-size: calc(.92rem + 1px); }
.strip-primary > .strip-metric .strip-metric-copy > span,
.strip-primary > .strip-metric .strip-metric-copy > strong { font-size: calc(1rem + 1px); }
@media (max-width: 920px) {
  .strip-primary > .strip-metric .strip-metric-copy > span,
  .strip-primary > .strip-metric .strip-metric-copy > strong { font-size: calc(.9rem + 1px); }
}
@media (max-width: 470px) {
  .site-last-updated span { font-size: calc(.68rem + 1px); }
  .site-last-updated strong { font-size: calc(.86rem + 1px); }
}
/* Row 1 KPI icon shape */
.strip-primary .analytics-icon { border-radius: 10px; }
/* Row 1 heartbeat visual balance */
.strip-header .heartbeat-icon { font-size: calc(1.1rem + 3px); }
/* Row 1 heartbeat direction icon */
.heartbeat-separator { display: inline-grid; place-items: center; color: #778294; }
.heartbeat-separator svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Row 2 panel icon shape */
.row-two-section .analytics-icon { border-radius: 10px; }
/* Row 2 typography: +1px only */
.row-two-section .panel-heading > span:last-child { font-size: calc(1rem + 1px); }
.row-two-section > strong { font-size: calc(1.45rem + 1px); }
.row-two-section small { font-size: calc(.78rem + 1px); }
.row-two-section .traffic-values { font-size: calc(.92rem + 1px); }
.row-two-section .traffic-channel strong { font-size: calc(1rem + 1px); }
.row-two-section .performance-values { font-size: calc(1rem + 1px); }
.row-two-section .performance-item strong { font-size: calc(1.2rem + 1px); }
@media (max-width: 920px) {
  .row-two-section .panel-heading > span:last-child { font-size: calc(.9rem + 1px); }
  .row-two-section .traffic-values { font-size: calc(.88rem + 1px); }
  .row-two-section .traffic-channel strong { font-size: calc(.98rem + 1px); }
}
/* Row 2 conversion panel three-line hierarchy */
.row-two-conversion { align-items: flex-start; justify-content: center; gap: 5px; }
.row-two-conversion .panel-heading { margin-bottom: 2px; }
.row-two-conversion > strong { margin-top: 0; margin-bottom: 2px; }
.row-two-conversion > small { line-height: 1.2; }
/* Row 2 Call Conversion: vertical content stack */
.row-two-conversion { flex-direction: column; }
/* Row 2 Call Conversion value centering */
.row-two-conversion > strong { align-self: center; margin-left: 0; }
/* Row 2 Call Conversion: middle vertical line, not horizontal centering */
.row-two-conversion > strong { align-self: flex-start; margin-left: 43px; }
@media (max-width: 470px) {
  .row-two-conversion > strong { margin-left: 0; }
}
/* Row 2 Call Conversion percentage: +2px */
.row-two-conversion > strong { font-size: calc(1.45rem + 3px); }
/* Row 2 Traffic channel percentage hierarchy */
.row-two-traffic .traffic-values { margin-top: 2px; }
.row-two-traffic .traffic-channel { gap: 5px; }
.row-two-traffic .traffic-channel strong { font-size: calc(1.45rem + 3px); line-height: 1; }
/* Row 2 Traffic: heading above channel values */
.row-two-traffic { flex-direction: column; }
/* Row 2 Traffic percentages match Call Conversion result */
.row-two-traffic .traffic-channel strong { font-size: calc(1.45rem + 3px); font-weight: 800; line-height: 1; }
/* Row 2 Traffic channel name and percentage on one line */
.row-two-traffic .traffic-channel { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
/* Row 2 Traffic: percentage row above channel names */
.row-two-traffic .traffic-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.row-two-traffic .traffic-channel { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 5px; }
.row-two-traffic .traffic-channel strong { align-self: flex-start; }
.row-two-traffic .traffic-channel-name { color: inherit; font-size: inherit; font-weight: 600; line-height: 1.15; white-space: nowrap; }
@media (max-width: 470px) {
  .row-two-traffic .traffic-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Match Call Conversion support text to Traffic channel names */
.row-two-conversion > small { font-size: calc(.92rem + 1px); }
@media (max-width: 920px) {
  .row-two-conversion > small { font-size: calc(.88rem + 1px); }
}
/* Row 2 Performance: heading, result, then context */
.row-two-performance { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.row-two-performance .panel-heading { margin-bottom: 2px; }
.row-two-performance .performance-values { margin-top: 0; margin-bottom: 2px; margin-left: 43px; }
.performance-result { display: block; font-size: calc(1.45rem + 3px); font-weight: 800; line-height: 1; }
.performance-result.is-up, .performance-result.is-new { color: #147553; }
.performance-result.is-down { color: #bf3b45; }
.performance-result.is-neutral, .performance-result.is-unavailable { color: #778294; }
.row-two-performance > small { margin-left: 43px; font-size: calc(.92rem + 1px); line-height: 1.2; }
@media (max-width: 920px) {
  .row-two-performance > small { font-size: calc(.88rem + 1px); }
}
@media (max-width: 470px) {
  .row-two-performance .performance-values, .row-two-performance > small { margin-left: 0; }
}
/* Global historical date range selector */
.header-controls { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.date-range-selector { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #dbe2ec; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgba(34, 52, 81, .04); }
.date-range-option { min-height: 31px; margin: 0; padding: 0 10px; border: 0; border-right: 1px solid #e5eaf1; background: transparent; color: #657184; font: inherit; font-size: .75rem; font-weight: 700; line-height: 1; cursor: pointer; }
.date-range-option:last-child { border-right: 0; }
.date-range-option.is-selected { background: #d8031c; color: #fff; }
.date-range-option:focus-visible { position: relative; z-index: 1; outline: 2px solid #971d2c; outline-offset: -2px; }
.date-range-selector[data-loading='true'] { opacity: .65; }
.date-range-option:disabled { cursor: progress; }
@media (max-width: 620px) {
  .app-header { align-items: flex-start; }
  .header-controls { width: 100%; justify-content: space-between; }
  .date-range-option { min-height: 30px; padding: 0 9px; font-size: .72rem; }
}
/* Top-right realtime refresh status */
.realtime-refresh-button { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid #cfe9db; border-radius: 9px; background: #edf9f2; color: #147553; font-size: .82rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.realtime-refresh-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) {
  .realtime-refresh-button { min-height: 30px; padding: 0 8px; font-size: .76rem; }
}
/* Website brand accent border */
.website-card.website-strip { border-left-width: 6px; border-left-color: var(--site-color); }
/* GA4 / GSC top navigation */
.top-nav { display: inline-flex; gap: 3px; margin-bottom: 18px; padding: 3px; border: 1px solid #dfe5ee; border-radius: 9px; background: #fff; }
.top-nav a { padding: 7px 11px; border-radius: 6px; color: #657184; font-size: .78rem; font-weight: 800; text-decoration: none; }
.top-nav a.is-active { background: #d8031c; color: #fff; }
/* GA4 / GSC switch beside date controls */
.header-controls { gap: 12px; }
.top-nav { margin: 0; padding: 3px; }
.top-nav a { padding-right: 16px; padding-left: 16px; }
.top-nav a.ga4-tab { color: #228b22; }
.top-nav a.gsc-tab { color: #4285f4; }
.top-nav a.ga4-tab.is-active { background: #228b22; color: #fff; }
.top-nav a.gsc-tab.is-active { background: #4285f4; color: #fff; }
@media (max-width: 620px) { .header-controls { flex-wrap: wrap; } }
/* Match GA4 and GSC date-control button widths */
.date-range-option, .gsc-range { width: 112px; }
@media (max-width: 620px) { .date-range-selector { display: flex; width: 100%; }.date-range-option { flex: 1 1 0; width: auto; } }