/* The overview owns its layout; the query explorer keeps its own styles. */
.overview-page { color-scheme: light; --ink: #172a30; --accent: #087762; --line: #e0e7e7; --card: #fff; --paper: #f5f7f8; padding: 0; font: 14px/1.5 system-ui, -apple-system, sans-serif; background: var(--paper); color: var(--ink); }
.overview-page main { max-width: none; }
.overview-page a { text-underline-offset: 3px; }
.overview-shell { min-height: 100vh; }
.workspace-rail { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 20px; letter-spacing: -.8px; }
.brand-mark { width: 34px; height: 37px; display: grid; place-content: center; background: #087762; color: #fff; border-radius: 11px 11px 11px 3px; font: italic 32px Georgia, serif; }
.brand-sub { display: block; letter-spacing: 2.5px; font-size: 8px; color: #5b727a; font-weight: 600; margin-top: -2px; }
.rail-label { display: none; }
.workspace-choice { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; }
.product-icon { width: 26px; height: 26px; display: grid; place-content: center; border-radius: 7px; background: #e7f2ed; color: #086854; font-weight: 750; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #168874; }
.workspace-rail nav { display: flex; gap: 10px; flex: 1 0 100%; font-size: 12px; }
.workspace-rail nav a { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 7px; text-decoration: none; color: #687a80; }
.workspace-rail nav .rail-active { background: #eaf4f1; color: #087762; font-weight: 700; }
.rail-footer { display: flex; gap: 9px; align-items: center; font-size: 11px; }
.owner-avatar { display: none; }
.rail-footer strong { display: none; }
.overview-page .text-button { min-height: 36px; background: transparent; border: 0; color: #53686e; padding: 0 4px; font-size: 12px; }
.overview-main { min-width: 0; padding: 22px 16px; max-width: 1720px; }
.overview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.overview-header .eyebrow { font-size: 9px; letter-spacing: 1.7px; color: #657c81; margin: 0 0 10px; }
.overview-page h1 { font-size: clamp(23px, 2.3vw, 32px); letter-spacing: -1px; font-weight: 650; margin: 0; }
.header-note { margin: 8px 0 0; color: #5b727a; font-size: 12px; }
.workspace-badge { display: none; }
.overview-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.period-tabs { display: flex; border: 1px solid #dce4e4; padding: 3px; border-radius: 8px; background: #edf1f2; }
.period-tabs a { text-decoration: none; padding: 8px 12px; min-height: 38px; color: #62767c; font-size: 12px; font-weight: 600; border-radius: 5px; }
.period-tabs .selected { background: #fff; color: #183b34; box-shadow: 0 1px 4px #13342b12; }
.date-range { font-size: 12px; color: #53696f; }
.filter-popover { margin-left: auto; font-size: 12px; }
.filter-popover summary { cursor: pointer; display: flex; gap: 14px; align-items: center; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; list-style: none; }
.filter-popover[open] { flex-basis: 100%; }
.filter-popover form { background: #fff; padding: 16px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.filter-fields { display: grid; gap: 12px; }
.filter-fields label { margin-top: 0; }
.overview-page select { width: 100%; font: inherit; padding: 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); }
.filter-fields small { display: block; color: #667980; margin-top: 5px; }
.overview-page input[type=submit] { width: auto; color: #fff; background: #087762; font-size: 12px; }
.filter-error { padding: 12px; color: #8b392d; background: #fff4ee; border-radius: 8px; }
.overview-context { font-size: 10px; color: #5b727a; margin: 12px 0 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 17px 14px; min-width: 0; min-height: 142px; }
.metric-label { display: block; color: #5b727a; font-size: 11px; margin-bottom: 12px; }
.metric-card > strong { display: block; font-size: clamp(25px, 2.3vw, 34px); font-weight: 650; letter-spacing: -1px; line-height: 1.12; font-variant-numeric: tabular-nums; margin-bottom: 12px; overflow-wrap: anywhere; }
.metric-card > .money-value { font-size: clamp(18px, 1.8vw, 27px); margin-bottom: 6px; }
.money-value small { font-size: 10px; letter-spacing: .4px; display: block; margin-bottom: 4px; opacity: .7; }
.metric-featured { background: #0a6959; border-color: #0a6959; color: #fff; }
.metric-featured .metric-label, .metric-featured .comparison { color: #d1e8e1; }
.comparison { display: block; font-size: 10px; line-height: 1.6; }
.comparison.up { color: #07715b; }
.comparison.down { color: #a5533b; }
.comparison.neutral { color: #5b727a; }
.freshness { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; font-size: 10px; color: #668077; margin: 12px 0 20px; }
.freshness > span:last-child { color: #5b727a; margin-left: 6px; }
.overview-grid { display: grid; gap: 16px; }
.overview-panel { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 20px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.panel-heading .eyebrow { font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: #5b727a; margin: 0 0 6px; }
.overview-page h2 { font-size: 16px; letter-spacing: -.4px; font-weight: 650; margin: 0; }
.panel-index { font-size: 10px; color: #5b727a; padding-top: 2px; font-variant-numeric: tabular-nums; }
.overview-page h3 { font-size: 12px; font-weight: 650; margin: 0 0 12px; }
.trend-chart { margin: 0 0 8px; }
.trend-chart svg { width: 100%; height: auto; min-height: 155px; overflow: visible; }
.chart-gridline { stroke: #edf1f2; stroke-dasharray: 3 4; }
.axis-label { fill: #5b727a; font: 18px system-ui, sans-serif; }
.chart-area { fill: #168d74; opacity: .07; }
.chart-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-dot { fill: currentColor; stroke: white; stroke-width: 1.3; }
.series-0 { stroke: #148a73; color: #148a73; }
.series-1 { stroke: #7181bd; color: #7181bd; }
.series-2 { stroke: #b47437; color: #b47437; }
.series-3 { stroke: #b2567c; color: #b2567c; }
.trend-chart figcaption { display: flex; flex-wrap: wrap; gap: 14px; font-size: 10px; color: #5b727a; padding-left: 8px; }
.trend-chart figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: currentColor; }
.chart-data, .definition { font-size: 11px; color: #5b727a; margin-top: 15px; }
.chart-data summary, .definition summary { cursor: pointer; padding: 8px 0; min-height: 36px; }
.chart-data .table-scroll { max-height: 250px; }
.definition { border-top: 1px solid #eff2f3; padding-top: 7px; line-height: 1.7; }
.panel-subheading { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eff2f3; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.panel-subheading span { font-size: 9px; color: #5b727a; }
.ranked-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ranked-list li > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; margin-bottom: 5px; }
.ranked-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90%; color: #50686e; }
.ranked-list strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.rank-track { height: 4px; border-radius: 10px; background: #f0f4f3; overflow: hidden; }
.rank-track > span { display: block; height: 100%; background: #77b8a7; border-radius: 10px; }
.finance-summary { margin: 24px 0 0; }
.finance-summary > div { display: flex; align-items: start; gap: 20px; border-top: 1px solid #eff2f3; padding-top: 16px; margin-top: 12px; }
.currency-tag { font-size: 10px; letter-spacing: .6px; background: #edf5f1; color: #347666; border-radius: 4px; padding: 4px 6px; }
.finance-summary dl { margin: 0; width: 100%; display: grid; gap: 12px; }
.finance-summary dt { font-size: 10px; color: #5b727a; }
.finance-summary dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -.4px; }
.panel-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.panel-hero strong { font-size: 42px; font-weight: 600; letter-spacing: -2px; color: #106d5b; line-height: 1; }
.panel-hero span { font-size: 11px; color: #5b727a; max-width: 150px; }
.conversion-track { height: 10px; background: #f2e8e2; border-radius: 8px; overflow: hidden; }
.conversion-track span { display: block; height: 100%; background: #3e9f86; border-radius: 8px; }
.checkout-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.checkout-counts strong { display: block; font-size: 23px; font-weight: 600; }
.checkout-counts span { font-size: 10px; color: #5b727a; }
.checkout-counts > div:last-child strong { color: #a46646; }
.checkout-footnote { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 22px; color: #5b727a; font-size: 10px; }
.recovery-measure + .recovery-measure { margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf1f2; }
.recovery-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.recovery-email { padding: 14px; border-radius: 8px; background: #f6f9f8; }
.recovery-email:nth-child(2) { background: #f7f7fb; }
.email-label { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 650; }
.email-dot { height: 6px; width: 6px; background: #239c82; border-radius: 50%; }
.email-dot.step-2 { background: #8685b8; }
.recovery-email > strong { display: block; font-size: 27px; font-weight: 600; line-height: 1.1; margin-top: 13px; }
.recovery-email small { font-size: 10px; font-weight: 400; margin-left: 6px; color: #5b727a; }
.recovery-email p { font-size: 10px; color: #5b727a; margin: 7px 0 10px; }
.rate-pill { display: inline-block; font-size: 9px; border-radius: 4px; background: #e4eeeb; padding: 3px 5px; color: #4f7168; }
.recovery-email:nth-child(2) .rate-pill { background: #eaeaf3; color: #6b6c8f; }
.table-scroll { overflow-x: auto; }
.overview-page table { border-collapse: collapse; width: 100%; font-size: 11px; text-align: left; }
.overview-page th { color: #5b727a; font-weight: 500; font-size: 10px; border-bottom: 1px solid #e9eff0; padding: 0 10px 12px; white-space: nowrap; }
.overview-page td { padding: 16px 10px; border-bottom: 1px solid #eff3f3; font-variant-numeric: tabular-nums; }
.overview-page th:first-child, .overview-page td:first-child { padding-left: 0; }
.overview-page tr:last-child td { border-bottom: 0; }
.overview-page td:not(:first-child) { white-space: nowrap; }
.event-name { display: block; min-width: 110px; max-width: 300px; font-weight: 600; }
.panel-caption { color: #5b727a; font-size: 10px; margin: 12px 0 0; }
.organizer-list { list-style: none; padding: 0; margin: 0; }
.organizer-list li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #eff3f3; }
.organizer-list li:last-child { border: 0; }
.rank-number { width: 25px; height: 25px; display: grid; place-content: center; background: #f0f5f3; color: #6e8b82; border-radius: 6px; font-size: 10px; }
.organizer-list li > div { flex: 1; min-width: 0; }
.organizer-list strong { font-size: 11px; display: block; font-weight: 600; }
.organizer-list li > div > span { font-size: 10px; color: #5b727a; display: block; margin-top: 4px; }
.organizer-total { font-size: 11px; font-weight: 600; text-align: right; }
.growth-grid { display: grid; gap: 25px; }
.growth-counts { display: flex; gap: 24px; margin: 18px 0 0; }
.growth-counts dt { font-size: 10px; color: #5b727a; }
.growth-counts dd { margin: 6px 0 0; font-size: 26px; font-weight: 600; }
.retention-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 12px; }
.retention-row span { color: #6e8389; }
.overview-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; color: #5b727a; margin: 22px 0 0; }
.overview-footer a { font-size: 11px; }
.quiet-empty { font-size: 11px; color: #5b727a; margin: 12px 0; }
.panel-empty { min-height: 160px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #647e84; padding: 16px; }
.panel-empty strong { font-size: 13px; font-weight: 550; }
.panel-empty p { font-size: 11px; }
.panel-error { background: #fff9f4; border-radius: 8px; color: #8e654c; }
.retry-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
.chart-empty { height: 195px; display: grid; place-content: center; text-align: center; background: repeating-linear-gradient(to bottom, transparent, transparent 48px, #f0f4f4 49px, transparent 50px); color: #8ba09f; }
.chart-empty > span { font-size: 40px; line-height: 1; color: #9cb8ae; }
.chart-empty p { font-size: 11px; }
.panel-loading { min-height: 310px; color: #5b727a; font-size: 12px; }
.skeleton span { display: block; }
.skeleton strong { display: block; width: 65%; height: 35px; border-radius: 5px; background: #edf3f1; margin-top: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.overview-page :focus-visible { outline: 3px solid #299581; outline-offset: 4px; }
@media (min-width: 680px) {
  .overview-main { padding: 28px; }
  .workspace-badge { display: inline-block; font-size: 10px; background: #edf3f1; color: #55786d; border: 1px solid #dbe8e2; padding: 5px 9px; border-radius: 5px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-summary dl { grid-template-columns: 1fr 1fr; }
  .growth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .growth-counts { gap: 16px; }
}
@media (min-width: 1000px) {
  .overview-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .panel-traffic, .panel-events { grid-column: span 7; }
  .panel-sales, .panel-organizers { grid-column: span 5; }
  .panel-checkout, .panel-recovery { grid-column: span 6; }
  .panel-audience { grid-column: span 12; }
}
@media (min-width: 1200px) {
  .overview-shell { display: grid; grid-template-columns: 196px minmax(0, 1fr); }
  .workspace-rail { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); border-bottom: 0; padding: 30px 16px 18px; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .brand { padding-left: 6px; }
  .rail-label { display: block; font-size: 8px; letter-spacing: 1.6px; color: #5b727a; margin: 44px 8px 12px; }
  .workspace-choice { background: #f8faf9; border: 1px solid #e8eeee; padding: 11px 8px; border-radius: 7px; margin: 0 0 25px; }
  .workspace-choice .status-dot { margin-left: auto; }
  .workspace-rail nav { flex: 0 0 auto; flex-direction: column; gap: 5px; }
  .rail-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #e9eff0; }
  .rail-footer strong { display: block; font-weight: 550; }
  .owner-avatar { display: grid; place-content: center; width: 29px; height: 29px; border-radius: 50%; background: #eef2f2; font-size: 9px; color: #687f84; }
  .overview-main { padding: 32px; }
  .metric-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .metric-card { padding: 17px 14px; }
  .filter-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) { .rank-track > span, .conversion-track > span { transition: width .3s ease; } }

.currency-chart + .currency-chart { border-top: 1px solid #edf1f2; padding-top: 12px; margin-top: 8px; }
.currency-chart .trend-chart svg { min-height: 110px; max-height: 135px; }
.currency-chart .chart-data { margin-top: 0; }
.recovery-orders { display: block; margin-top: 6px; font-size: 10px; color: #60747b; }
.recovered-sales { margin-top: 18px; }
.recovered-sales p { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }

.checkout-coverage { margin-bottom: 14px; }
@media (max-width: 679px) {
  .workspace-rail nav { flex: 1 0 calc(100% - 70px); }
  .period-tabs a { padding-inline: 10px; font-size: 11px; }
  .date-range { order: 3; flex-basis: 100%; }
  .filter-popover { order: 2; }
  .axis-label { font-size: 22px; }
}
