:root {
  --background: #fafafa;
  --surface: #fff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-light: #e9effd;
  --primary-hover: #1d4ed8;
  --chart-1: #2563eb;
  --chart-2: #1e40af;
  --chart-3: #60a5fa;
  --chart-4: #bfdbfe;
  --hover: #f9fafb;
  --radius: 12px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--background); line-height: 1.5; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, a, input, select, summary, [tabindex="0"] { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--primary); }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 2.4vw, 2.35rem); line-height: 1.18; letter-spacing: -.045em; font-weight: 750; }
h2 { font-size: 1.06rem; line-height: 1.4; letter-spacing: -.018em; font-weight: 700; }
.sidebar { width: 196px; position: fixed; inset: 0 auto 0 0; z-index: 30; background: white; border-right: 1px solid var(--line); padding: 30px 12px; display: flex; flex-direction: column; }
.sidebar-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 1.4rem; }
.sidebar-close:hover { background: var(--primary-light); color: var(--primary); }
.menu-toolbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; margin: -10px 0 18px; background: var(--background); border-bottom: 1px solid var(--line); }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
.brand { display: grid; padding: 0 16px 37px; color: var(--ink); text-decoration: none; line-height: 1; width: fit-content; }
.brand strong { font-size: 1.75rem; letter-spacing: -.07em; font-weight: 850; }
.brand span { font-size: .78rem; letter-spacing: .16em; font-weight: 650; margin-top: 7px; }
.sidebar nav { display: grid; gap: 8px; }
.nav-link { text-decoration: none; padding: 11px 15px; border-radius: 8px; color: #4b5563; font-size: .9rem; }
.nav-link:hover { background: var(--hover); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 650; box-shadow: 0 1px 3px #11182712; }
.sidebar-note { margin: auto 16px 0; padding-top: 32px; font-size: .76rem; color: var(--muted); line-height: 1.8; }
.sidebar-note strong { font-weight: 550; }
main { margin-left: 0; padding: 33px 32px 0; max-width: 2100px; }
.sidebar-open main { margin-left: 196px; }
.page-header { margin-bottom: 27px; display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.subtitle { margin-top: 8px; color: var(--muted); font-size: .97rem; }
.header-actions { text-align: right; flex-shrink: 0; }
.actions-row { display: flex; gap: 12px; align-items: center; justify-content: end; }
.period { display: grid; gap: 3px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 18px; white-space: nowrap; text-align: left; }
.period-caption { color: #4b658d; font-size: .69rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.period strong { color: #1d4ed8; font-size: 1.35rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.3; }
.button { background: white; border: 1px solid #e5e7eb; border-radius: 7px; padding: 10px 15px; color: var(--ink); font-size: .88rem; font-weight: 550; min-height: 42px; }
.button:hover { background: #eff6ff; border-color: #bfdbfe; }
.button.primary { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 10px #2563eb1f; }
.button.primary:hover { background: var(--primary-hover); }
.button.compact { padding: 6px 13px; min-height: 34px; font-size: .82rem; }
.button:disabled { opacity: .38; cursor: default; background: white; border-color: var(--line); }
.metadata { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.notice { padding: 15px 18px; background: #fff6e5; border: 1px solid #efd7a6; border-radius: 8px; margin: 18px 0; color: #6e4a0a; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 23px 0; margin-bottom: 23px; }
.metric { padding: 0 23px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric h2 { font-size: .9rem; letter-spacing: 0; font-weight: 600; }
.metric strong { display: block; font-size: 2.35rem; font-weight: 650; line-height: 1.2; letter-spacing: -.055em; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.metric p { font-size: .77rem; color: var(--muted); }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px #11182706; }
.chart-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 22px; margin-bottom: 24px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px 16px; }
.panel-heading p { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.small-label { font-size: .76rem; color: var(--muted); }
.ranking-chart { padding: 4px 22px 8px; display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(155px,195px) minmax(50px,1fr) 35px; gap: 10px; border: none; background: transparent; padding: 0; align-items: center; width: 100%; color: var(--ink); text-align: left; }
.bar-label { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 19px; background: #eff6ff; border-radius: 3px; overflow: hidden; }
.bar-fill { display: block; width: var(--width); height: 100%; background: #60a5fa; border-radius: 3px; transition: width .25s ease; }
.bar-row:first-child .bar-fill { background: var(--primary); }
.bar-row:hover .bar-label { color: var(--primary); text-decoration: underline; }
.bar-number { font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.chart-footnote { padding: 9px 22px 18px; color: var(--muted); font-size: .74rem; }
.composition-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 4px 20px 24px; }
.donut { width: 150px; height: 150px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--line); }
.donut > div { display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: white; width: 108px; height: 108px; }
.donut strong { font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.donut span { font-size: .75rem; color: var(--muted); margin-top: 5px; }
.legend { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 14px; padding: 0; margin: 0; width: 100%; max-width: 340px; }
.legend li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 6px; font-size: .8rem; }
.legend .swatch { width: 9px; height: 9px; border-radius: 2px; }
.legend strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.performance-panel { scroll-margin-top: 20px; }
.table-toolbar { align-items: start; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.sort-control { display: flex; align-items: center; gap: 9px; border-left: 1px solid var(--line); margin-left: 3px; padding-left: 13px; max-width: 100%; }
.sort-control label { color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
input[type=search], select { background-color: white; border: 1px solid #e5e7eb; color: var(--ink); border-radius: 6px; padding: 8px 11px; font-size: .82rem; min-height: 38px; max-width: 100%; }
input[type=search] { width: 220px; }
input::placeholder { color: #9ca3af; }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg,transparent 50%,#6b7280 50%),linear-gradient(135deg,#6b7280 50%,transparent 50%); background-position: calc(100% - 13px) 50%,calc(100% - 9px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; border-bottom: 1px solid #f1f3f5; text-align: left; white-space: nowrap; }
th { font-size: .75rem; font-weight: 650; background: #f9fafb; color: #6b7280; }
th:first-child, td:first-child { padding-left: 22px; }
.performance-table td:not(:first-child), .performance-table th:not(:first-child) { text-align: right; }
.performance-table th { white-space: normal; }
tbody tr:hover { background: #f8faff; }
tbody tr:last-child td { border-bottom: 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #eff6ff; color: var(--primary); display: grid; place-items: center; font-size: .68rem; font-weight: 650; flex-shrink: 0; }
.numeric-highlight { color: var(--primary); font-weight: 650; }
.money-cell { font-weight: 600; }
.zero { color: #9ca3af; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.pagination > div { display: flex; gap: 7px; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 17px; }
.section-heading h2 { font-size: 1.6rem; letter-spacing: -.04em; }
.section-heading p { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.raw-section { margin-top: 22px; }
.tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 20px; overflow-x: auto; }
.tab { border: 0; border-bottom: 2px solid transparent; padding: 16px 11px 13px; background: transparent; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.tab span { display: inline-block; font-size: .73rem; margin-left: 5px; color: var(--muted); }
.tab.active { border-bottom-color: var(--primary); color: var(--primary); font-weight: 650; }
.raw-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 22px 10px; }
.raw-toolbar input { width: 260px; }
.page-size { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--muted); font-size: .78rem; }
.account-filter { display: flex; align-items: center; gap: 7px; border-radius: 5px; padding: 4px 8px; color: var(--primary); background: #eff6ff; font-size: .78rem; max-width: 100%; overflow-wrap: anywhere; }
.account-filter button { color: var(--primary); border: 0; background: transparent; padding: 0 3px; font-size: 1.15rem; }
.raw-explanation { padding: 0 22px 16px; color: var(--muted); font-size: .77rem; max-width: 1000px; }
.raw-scroll { max-height: 540px; overflow-y: auto; }
.raw-scroll th { position: sticky; top: 0; z-index: 1; }
.raw-scroll td { font-size: .8rem; }
.total-row { background: #eff6ff; font-weight: 650; }
.null { color: #9ca3af; font-style: italic; }
.empty-cell { text-align: center !important; color: var(--muted); padding: 35px 22px !important; white-space: normal; }
.empty-chart { padding: 50px 10px; color: var(--muted); text-align: center; font-size: .87rem; }
.definitions { margin-top: 26px; }
details { border-top: 1px solid var(--line); }
summary { padding: 18px 0; font-size: .88rem; font-weight: 600; }
.definition-content { padding-bottom: 20px; max-width: 1050px; display: grid; gap: 11px; color: var(--muted); font-size: .85rem; line-height: 1.75; }
.definition-content strong { color: #4b5563; }
.sql-toolbar { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; font-size: .78rem; margin: 0 0 15px; }
.sql-toolbar span { color: var(--muted); overflow-wrap: anywhere; }
pre { font: .78rem/1.7 "SFMono-Regular", Consolas, monospace; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; max-height: 440px; overflow: auto; }
footer { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 18px; border-radius: 8px; box-shadow: 0 6px 25px #11182726; background: var(--ink); color: white; z-index: 10; max-width: calc(100vw - 48px); font-size: .85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -70px; background: white; padding: 12px; z-index: 20; }
.skip-link:focus { top: 15px; }
@media (min-width: 1600px) { main { padding: 35px 42px 0; } .metric strong { font-size: 2.6rem; } }
@media (max-width: 1150px) {
  .sidebar { width: 174px; }
  main { padding: 26px 22px 0; }
  .sidebar-open main { margin-left: 174px; }
  .page-header { flex-direction: column; gap: 18px; }
  .header-actions { display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; justify-content: space-between; }
  .metadata { margin: 0; }
  .chart-grid { grid-template-columns: 1.35fr 1fr; gap: 16px; }
  .composition-content { gap: 20px; }
  .donut { width: 145px; height: 145px; }
  .donut > div { width: 102px; height: 102px; }
  .metric { padding: 0 17px; }
  .metric h2 { min-height: 38px; }
  .metric strong { font-size: 2rem; margin-top: 8px; }
}
@media (max-width: 800px) {
  .sidebar { width: 196px; box-shadow: 8px 0 24px #1118271a; }
  .sidebar-open main { margin-left: 0; }
  .nav-link { white-space: nowrap; padding: 8px 10px; font-size: .82rem; }
  .sidebar-note { display: none; }
  main { margin-left: 0; padding: 25px 20px 0; }
  .chart-grid { grid-template-columns: 1fr; }
  .composition-content { min-height: 230px; flex-direction: row; gap: 36px; }
  .legend { max-width: 400px; }
  .header-actions { display: block; }
  .actions-row { justify-content: start; flex-wrap: wrap; }
  .metadata { margin-top: 10px; font-size: .76rem; overflow-wrap: anywhere; }
  .snapshot-line { align-items: start; font-size: .74rem; }
}
@media (max-width: 520px) {
  main { padding: 22px 14px 0; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  .metric { padding: 19px 16px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric h2 { font-size: .8rem; min-height: auto; }
  .metric strong { font-size: 2rem; margin: 10px 0 6px; }
  .metric p { font-size: .7rem; }
  .panel-heading { padding: 18px 16px 14px; }
  .ranking-chart { padding-left: 16px; padding-right: 16px; }
  .bar-row { grid-template-columns: 150px minmax(25px,1fr) 28px; }
  .bar-label { font-size: .72rem; }
  .composition-content { padding: 6px 16px 22px; gap: 22px; flex-direction: column; }
  .legend { max-width: 340px; }
  .legend li { font-size: .74rem; gap: 6px; }
  .donut { width: 128px; height: 128px; }
  .donut > div { width: 92px; height: 92px; }
  .donut strong { font-size: 1.55rem; }
  .filters { width: 100%; }
  .sort-control { flex-direction: column; align-items: stretch; width: 100%; gap: 6px; border-left: 0; margin-left: 0; padding-left: 0; }
  input[type=search], .filters select { width: 100%; }
  .section-heading { align-items: start; flex-direction: column; }
  .raw-toolbar { padding: 16px; flex-wrap: wrap; }
  .raw-toolbar input { width: 100%; }
  .tabs { padding: 0 8px; gap: 4px; }
  .tab { font-size: .8rem; padding-left: 8px; padding-right: 8px; }
  .raw-explanation { padding: 0 16px 14px; }
  .pagination { padding: 13px 16px; font-size: .72rem; gap: 8px; }
  .button.compact { padding: 5px 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bar-fill { transition: none; } }
.participation { display: grid; grid-template-columns: 220px minmax(120px, 1fr) auto; align-items: center; gap: 28px; padding: 3px 3px 26px; }
.participation-title { display: flex; align-items: center; gap: 13px; font-size: .85rem; color: var(--muted); }
.participation-title strong { font-size: 1.1rem; letter-spacing: -.02em; color: var(--primary); }
.participation-detail { max-width: 420px; }
.participation-detail p { margin-top: 6px; color: var(--muted); font-size: .76rem; }
.participation-track { height: 6px; border-radius: 4px; background: #dbeafe; overflow: hidden; }
.participation-track span { display: block; height: 100%; background: var(--primary); border-radius: inherit; width: 0; }
.text-button { background: transparent; border: 0; color: var(--primary); font-size: .8rem; padding: 7px 0; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.account-person { display: flex; align-items: center; gap: 10px; }
.account-identity { display: grid; gap: 2px; line-height: 1.4; }
.account-name { font-size: .88rem; font-weight: 600; }
.account-email { font-size: .73rem; color: var(--muted); }
.footer-actions { display: flex; align-items: center; gap: 24px; }
.review-launcher { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .74rem; text-decoration: underline; text-underline-offset: 4px; }
.review-launcher:hover { color: var(--primary); }
#review-dialog { width: min(1250px, calc(100vw - 48px)); max-height: calc(100dvh - 56px); padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--background); box-shadow: 0 20px 90px #11182733; }
#review-dialog::backdrop { background: #11182766; backdrop-filter: blur(3px); }
body:has(#review-dialog[open]) { overflow: hidden; }
.review-header { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 23px 28px; position: sticky; top: 0; background: white; z-index: 3; border-bottom: 1px solid var(--line); }
.review-header h2 { font-size: 1.3rem; }
.review-header .metadata { margin-top: 4px; text-align: left; font-size: .76rem; }
.review-content { padding: 20px 28px 25px; }
.review-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: .84rem; color: var(--muted); }
.review-content .section-heading h2 { font-size: 1.2rem; }
.review-content .raw-toolbar .filters { flex: 1; }
.review-content .raw-toolbar input { width: 225px; }
.review-content .raw-scroll { max-height: 430px; }
@media (max-width: 1150px) {
  .participation { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .participation .text-button { grid-column: 1 / -1; padding: 0; }
}
@media (max-width: 800px) {
  .participation { grid-template-columns: 1fr; gap: 11px; }
  .participation-detail { max-width: none; }
  .participation-title { justify-content: space-between; }
  .legend { grid-template-columns: 1fr; max-width: 210px; }
}
@media (max-width: 520px) {
  .page-header { margin-bottom: 22px; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 340px; }
  #review-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); border-radius: 9px; }
  .review-header { padding: 16px; gap: 10px; }
  .review-header .metadata { overflow-wrap: anywhere; }
  .review-header > div { min-width: 0; }
  .review-content { padding: 16px 10px; }
  .review-actions { flex-direction: column; align-items: start; }
  .review-content .raw-toolbar input { width: 100%; }
  .footer-actions { gap: 16px; flex-wrap: wrap; }
}


.column-heading { display: inline-flex; align-items: center; gap: 7px; }
.column-help { width: 18px; height: 18px; padding: 0; border: 1px solid #cbd5e1; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: white; color: #64748b; font-size: .68rem; font-weight: 650; line-height: 1; }
.column-help:hover, .column-help[aria-expanded="true"] { color: var(--primary); border-color: var(--primary); background: #eff6ff; }
.column-help-popover { position: fixed; inset: auto; margin: 0; width: min(350px, calc(100vw - 32px)); padding: 20px; border: 1px solid #dbe4f3; border-radius: 12px; background: white; color: var(--ink); box-shadow: 0 8px 32px #172b4d26; }
.column-help-popover h3 { font-size: .96rem; margin: 0 0 9px; line-height: 1.4; }
.column-help-popover > p { color: #4b5563; font-size: .85rem; line-height: 1.7; }
.column-help-example { margin-top: 14px; padding: 12px; background: #eff6ff; border-radius: 7px; font-size: .8rem; line-height: 1.65; }
.column-help-example > span { display: block; font-weight: 650; color: var(--primary); margin-bottom: 3px; }
.methodology { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.methodology > summary { padding: 20px 23px; display: flex; align-items: center; gap: 14px; list-style: none; }
.methodology > summary::-webkit-details-marker { display: none; }
.methodology-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: #eff6ff; color: var(--primary); border-radius: 8px; font-size: 1rem; font-weight: 650; }
.methodology-heading { display: grid; gap: 4px; }
.methodology-heading strong { font-size: .96rem; font-weight: 650; }
.methodology-heading > span { font-size: .8rem; color: var(--muted); font-weight: 400; }
.methodology-toggle { width: 8px; height: 8px; border-right: 1.5px solid #6b7280; border-bottom: 1.5px solid #6b7280; transform: rotate(45deg); margin: 0 4px 4px auto; flex-shrink: 0; }
.methodology[open] .methodology-toggle { transform: rotate(225deg); margin-bottom: -4px; }
.methodology-content { border-top: 1px solid var(--line); padding: 23px; }
.methodology-scope { border-left: 3px solid var(--primary); padding: 2px 0 2px 15px; margin-bottom: 24px; }
.methodology-scope strong { font-size: .86rem; font-weight: 650; }
.methodology-scope p { font-size: .83rem; color: #4b5563; line-height: 1.75; margin-top: 5px; max-width: 1000px; }
.methodology-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 34px; }
.methodology-grid article { border-top: 1px solid #edf0f5; padding: 19px 0; }
.methodology-grid h3 { margin: 0 0 9px; font-size: .9rem; font-weight: 650; color: var(--ink); }
.methodology-grid p { font-size: .83rem; line-height: 1.8; color: #4b5563; }
.methodology-grid p + p { margin-top: 8px; }
.methodology-grid .methodology-example { color: #46628f; background: #f4f8ff; border-radius: 6px; padding: 9px 12px; font-size: .8rem; }
.methodology-note { background: #f9fafb; border-radius: 8px; padding: 15px 17px; margin-top: 4px; }
.methodology-note strong { font-size: .82rem; }
.methodology-note p { color: #6b7280; font-size: .8rem; line-height: 1.75; margin-top: 4px; }
@media (max-width: 650px) {
  .methodology > summary { padding: 18px 16px; gap: 11px; }
  .methodology-content { padding: 18px 16px; }
  .methodology-grid { grid-template-columns: 1fr; }
  .methodology-heading > span { font-size: .76rem; }
  .column-help { width: 22px; height: 22px; font-size: .75rem; }
}


.composition { display: flex; flex-direction: column; }
.composition-content { flex: 1; }

.legend { grid-template-columns: 1fr; max-width: 290px; row-gap: 13px; }
.legend-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.legend .chart-help { width: 20px; height: 20px; font-size: .7rem; }


.print-only { display: none; }
@page { size: A4 landscape; margin: 12mm; }
@media print {
  html { font-size: 11pt; scroll-padding-top: 0; }
  body { background: white; line-height: 1.4; }
  body:has(#review-dialog[open]) { overflow: visible; }
  .sidebar, .menu-toggle, .skip-link, .filters, .pagination, .chart-footnote,
  .definitions, .review-launcher, #review-dialog, .toast, .text-button,
  .column-help, #column-help-popover, .avatar { display: none !important; }
  .print-only { display: block; }
  main, .sidebar-open main { margin: 0; padding: 0; max-width: none; }
  .menu-toolbar { position: static; margin: 0 0 4mm; padding: 0 0 3mm; background: white; border-bottom: 2px solid var(--primary); }
  .print-brand { color: var(--primary); font-size: 11pt; font-weight: 750; letter-spacing: -.02em; }
  .period { background: none; border: 0; padding: 0; gap: 1mm; text-align: right; }
  .period-caption { font-size: 7pt; }
  .period strong { font-size: 14pt; }
  .page-header { flex-direction: row; align-items: end; gap: 8mm; margin-bottom: 5mm; }
  h1 { font-size: 21pt; line-height: 1.15; }
  h2 { font-size: 11pt; }
  .subtitle { font-size: 9pt; margin-top: 2mm; }
  .header-actions { display: block; width: auto; text-align: right; }
  .metadata { margin: 0; font-size: 8pt; }
  .metrics { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 4mm; padding: 4mm 0; break-inside: avoid; border-radius: 2mm; }
  .metric { padding: 0 5mm; }
  .metric h2 { font-size: 9pt; min-height: 0; }
  .metric strong { font-size: 25pt; margin: 2mm 0 1mm; }
  .metric p { font-size: 8pt; }
  .participation { display: grid; grid-template-columns: 63mm 1fr; align-items: center; gap: 6mm; padding: 0 0 5mm; break-inside: avoid; }
  .participation-title { font-size: 9pt; gap: 3mm; }
  .participation-title strong { font-size: 12pt; }
  .participation-detail { max-width: none; }
  .participation-detail p { font-size: 8pt; margin-top: 1.5mm; }
  .participation-track { height: 1.5mm; }
  .panel { box-shadow: none; border-radius: 2mm; overflow: visible; }
  .chart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 5mm; margin: 0; break-inside: avoid; }
  .panel-heading { padding: 4mm 5mm 3mm; gap: 4mm; }
  .panel-heading p { font-size: 8pt; margin-top: 1mm; }
  .small-label { font-size: 8pt; }
  .ranking-chart { padding: 0 5mm 4mm; gap: 1.8mm; }
  .bar-row { grid-template-columns: 28mm minmax(20mm,1fr) 9mm; gap: 3mm; break-inside: avoid; }
  .bar-label, .bar-number { font-size: 9pt; }
  .bar-label { overflow: visible; text-overflow: clip; }
  .bar-track { height: 4mm; }
  .bar-fill { transition: none; }
  .composition-content { flex-direction: row; min-height: 0; gap: 5mm; padding: 4mm; }
  .donut { width: 30mm; height: 30mm; }
  .donut > div { width: 22mm; height: 22mm; }
  .donut strong { font-size: 19pt; }
  .donut span { font-size: 7pt; }
  .legend { flex: 1; grid-template-columns: 1fr; max-width: none; gap: 3mm; }
  .legend li { font-size: 8pt; gap: 2mm; }
  .legend-label { gap: 0; }
  .legend .swatch { width: 2mm; height: 2mm; }
  .performance-panel { break-before: page; break-inside: auto; margin: 0; scroll-margin-top: 0; }
  .performance-panel .panel-heading { align-items: center; flex-wrap: nowrap; border-bottom: 1px solid var(--line); padding: 4mm 4mm 3mm; }
  .print-table-period { color: var(--primary); font-size: 11pt; font-weight: 650; white-space: nowrap; }
  #print-filter-summary { color: var(--ink); font-size: 8pt; margin-top: 2mm; }
  .table-scroll { overflow: visible; }
  .performance-table { table-layout: fixed; font-size: 9pt; }
  .performance-table th, .performance-table td { white-space: normal; padding: 2.5mm 2mm; line-height: 1.4; }
  .performance-table th { font-size: 8pt; color: #374151; background: #f3f6fb; }
  .performance-table th:first-child { width: 15%; }
  .performance-table th:nth-last-child(-n+2) { width: 12%; }
  .performance-table td:first-child, .performance-table th:first-child { padding-left: 4mm; }
  .column-heading { display: inline; }
  .account-name { font-size: 9pt; overflow-wrap: anywhere; }
  .account-person { display: block; }
  .zero { color: #6b7280; }
  .money-cell { white-space: nowrap !important; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  .print-notes { margin: 5mm 0; padding: 3mm 4mm; border-left: 2px solid #93b4ed; background: #f8faff; font-size: 8pt; color: #4b5563; break-inside: avoid; }
  .print-notes p + p { margin-top: 1.5mm; }
  footer { margin-top: 5mm; padding: 3mm 0 0; font-size: 8pt; break-inside: avoid; }
  .bar-fill, .donut, .swatch, .participation-track, .participation-track span, .metrics, th, .print-notes { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
