:root {
  --black: #000000;
  --white: #FFFFFF;
  --offwhite: #F1F1F3;
  --light: #D5D5D5;
  --mid: #848484;
  --review: #E76C8E;
  --unclear: #F7BE20;
  --none: #97BE27;
  --library: #44AAE1;
  --gutter: 48px;
  --page: 1680px;
}

* { box-sizing: border-box; border-radius: 0; box-shadow: none; }

html, body { margin: 0; background: var(--white); color: var(--black); }
body, input, select, textarea, button {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; }
b, strong { font-weight: 500; }

/* Anything in all caps is Bold. */
.caps, h1, .section-label, .btn, .eyebrow, .badge, .stat-label, .mode {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.eyebrow { font-weight: 700; }

.reliability { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--black); }
.rel-meta { color: var(--mid); font-size: 13px; max-width: 900px; margin: 8px 0 32px; line-height: 1.6; }
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.rel-group-name { font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.rel-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--light); }
.rel-name { font-size: 13px; }
.rel-note { display: block; font-size: 11px; color: var(--mid); margin-top: 4px; line-height: 1.4; }
.rel-num { text-align: right; white-space: nowrap; }
.rel-num b { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.rel-num b.below::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--unclear); margin-right: 8px; vertical-align: middle; }
.rel-num span { font-size: 11px; color: var(--mid); }
.rel-detect { margin-top: 40px; }
.rel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 16px 0; border-top: 1px solid var(--light); }
.rel-stats b { display: block; font-size: 32px; font-weight: 700; line-height: 1; }
.rel-stats span { display: block; font-size: 12px; color: var(--mid); margin-top: 6px; }
@media (max-width: 1100px) { .rel-grid, .rel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rel-grid, .rel-stats { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.stat-of { font-size: .45em; font-weight: 500; color: var(--mid); margin-left: 4px; }
.peer-form { max-width: 640px; margin-top: 24px; }
.score-block { margin-bottom: 72px; }
.score-head { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end; margin: 8px 0 24px; }
.score-head p { margin: 0; max-width: 640px; }
.score-pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.score-pillar { border-top: 1px solid var(--mid); padding-top: 12px; }
.score-pillar-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.score-pillar-head b { font-size: 22px; }
.score-bar { display: block; height: 4px; background: var(--mid); margin: 8px 0 12px; }
.score-bar i { display: block; height: 100%; background: var(--white); }
.score-value { font-size: 13px; margin-bottom: 6px; }
.score-table td.best { font-weight: 700; }
.freq-note { margin: -8px 0 32px; }
.dna-block { margin-bottom: 48px; }
.beta-tag { margin-left: 6px; padding: 1px 5px; border: 1px solid currentColor; font-size: 9px; letter-spacing: .08em; }
.dna-summary { font-size: 16px; line-height: 1.6; max-width: 900px; margin: 12px 0 24px; }
.dna-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.dna-item { padding: 10px 0; border-top: 1px solid var(--mid); break-inside: avoid; }
.dna-item p { margin: 6px 0 0; line-height: 1.55; }
.dna-head { display: flex; justify-content: space-between; gap: 12px; }
.dna-share { font-size: 11px; color: var(--mid); white-space: nowrap; }
.dna-tags span { display: inline-block; border: 1px solid var(--mid); padding: 3px 8px; margin: 0 6px 6px 0; font-size: 12px; }
.dna-block p.muted.small { margin: 6px 0 14px; }
.dna-block p.dna-note { margin-top: 28px; }
.dna-block .rank-title { margin-bottom: 8px; }
@media (max-width: 900px) { .dna-cols { grid-template-columns: minmax(0, 1fr); } }
.exp-facts { list-style: none; padding: 0; margin: 8px 0 16px; }
.exp-facts li { padding: 3px 0; }
.summary .exec-exposure .small { margin: 10px 0 0; }
.summary .rights-block .small { margin: 8px 0 0; }
.exp-method { margin-top: 16px; }
.rights-block { margin: 8px 0 48px; break-inside: avoid; }
.acc-lead { max-width: 900px; line-height: 1.6; margin: 12px 0; }
.acc-chart { width: 100%; max-width: 900px; height: auto; display: block; }
.acc-chart .acc-new, .acc-legend i.acc-new { fill: var(--mid); background: var(--mid); }
.acc-chart .acc-known, .acc-legend i.acc-known { fill: var(--offwhite); background: var(--offwhite); }
.acc-chart .partial rect { opacity: .45; }
.acc-chart .acc-cum { fill: none; stroke: var(--review); stroke-width: 2; }
.acc-chart .acc-dot { fill: var(--review); }
.acc-chart .acc-axis { stroke: var(--mid); stroke-width: 1; }
.acc-chart .acc-tick { fill: var(--mid); font-size: 10px; text-anchor: middle; font-family: inherit; }
.acc-chart .acc-tick.end { text-anchor: end; } .acc-chart .acc-tick.start { text-anchor: start; }
.acc-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; margin: 6px 0; }
.acc-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.acc-legend i.acc-cum { height: 2px; background: var(--review); vertical-align: 3px; }
.sales-only { display: none; }
.toc-sales-only { display: none; }
html.sales-mode .toc-sales-only { display: list-item; }
.terms { margin-top: 40px; font-size: 12px; color: var(--mid); }
html.pdf-mode .app-only { display: none; }
@media print { .app-only { display: none !important; } }
html.sales-mode .sales-only { display: block; }
@media print { html:not(.sales-pdf) .sales-only { display: none !important; } }
.sales-box { margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed var(--mid); }
.sales-tag { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--mid); margin-bottom: 6px; }
.sales-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 4px 0; font-size: 13px; line-height: 1.5; }
.sales-row b { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.opp-block { margin: 8px 0 48px; padding: 16px; border: 1px dashed var(--mid); }
.opp { padding: 14px 0; border-top: 1px solid var(--mid); break-inside: avoid; }
.opp-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.opp-sig { font-size: 11px; color: var(--mid); white-space: nowrap; }
.opp-findings { margin: 6px 0 10px 18px; padding: 0; line-height: 1.5; }
.opp-q { margin: 0; padding-left: 16px; }
@media (max-width: 700px) { .sales-row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.rank-table { margin-top: 20px; }
.rank-table table { table-layout: fixed; width: 100%; }
.rank-table th:nth-child(1) { width: 28px; }
.rank-table th:nth-child(2) { width: 160px; }
.rank-table th:nth-child(3) { width: 64px; }
.rank-table td:nth-child(4), .rank-table th:nth-child(4) { padding-left: 24px; }
.rank-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; margin-bottom: 4px; }
.peer-comparison { margin: 8px 0 12px; line-height: 1.6; }
.score-table tr.client td { font-weight: 500; }
@media (max-width: 1100px) { .score-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .score-pillars, .score-head { grid-template-columns: minmax(0, 1fr); } }
.am-row { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 40px; margin-top: 16px; }
.am-row-peers { grid-template-columns: repeat(5, minmax(0, 150px)); gap: 24px; margin-bottom: 28px; }
.am-row-peers .am-x { font-size: 8px; }
.am-sub { display: block; min-height: 2.8em; margin-top: 2px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.am-row-peers .am-cell { font-size: 10px; }
.spaced-top { margin-top: 24px; }
.am-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.am-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; position: relative; }
.am-y { display: none; }
.am-cell { aspect-ratio: 1.6; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 1px solid var(--mid); }
.am-x { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 10px; color: var(--mid); margin-top: 4px; text-align: center; }
@media (max-width: 900px) { .am-row { grid-template-columns: minmax(0, 1fr); } .am-row-peers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report-version { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--mid); font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--mid); }
.app-footer { max-width: var(--page); margin: 0 auto; padding: 32px var(--gutter) 40px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--mid); }
html.pdf-mode .app-footer { display: none; }
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px var(--gutter) 0; max-width: var(--page); margin: 0 auto;
}
.logo { height: 56px; display: block; }
.mode { font-size: 11px; color: var(--mid); }
.mode.warn { color: var(--black); }

main { padding: 0 var(--gutter) 96px; max-width: var(--page); margin: 0 auto; }
html { overflow-x: clip; }

.page-head { padding: 56px 0 40px; max-width: 900px; }
.eyebrow { font-size: 11px; color: var(--mid); margin-bottom: 8px; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--black); }
h1 { font-size: 44px; line-height: 1.1; margin: 0; }
.lede { margin: 16px 0 0; color: var(--mid); max-width: 620px; font-size: 15px; }
.meta { margin: 12px 0 0; color: var(--mid); }

.section-label {
  font-size: 12px; padding-bottom: 12px; margin-bottom: 24px;
  border-bottom: 1px solid var(--black);
}

/* ---------- home ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 96px; align-items: start; }

.field { display: block; margin-bottom: 20px; }
.field-label { display: block; font-weight: 500; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-row .field { margin-bottom: 8px; }
input[type=text], input:not([type]), textarea, select {
  width: 100%; padding: 10px 12px; background: var(--white);
  border: 1px solid var(--black); color: var(--black); outline: none;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-position: right 14px center; background-repeat: no-repeat; padding-right: 36px;
}
textarea { resize: vertical; font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--black); outline-offset: -2px; }
.hint { display: block; color: var(--mid); font-size: 12px; margin: 6px 0 0; }
.hint b { color: var(--black); }

.finder .field-label em { font-style: normal; font-weight: 400; }
.finder-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.finder-row .btn { padding: 10px 20px; }
#finder-results { margin-top: 12px; border-top: 1px solid var(--black); }
.finder-entry { padding: 12px 0; border-bottom: 1px solid var(--light); }
.finder-name { font-weight: 700; }
.finder-name em { font-style: normal; font-weight: 400; color: var(--mid); font-size: 12px; margin-left: 6px; }
.finder-site { display: inline-block; font-size: 12px; color: var(--mid); margin: 2px 0 6px; }
.finder-acct { display: grid; grid-template-columns: 16px 24px minmax(0, 180px) 1fr; gap: 8px; align-items: baseline; font-size: 13px; padding: 2px 0; cursor: pointer; }
.finder-acct input { margin: 0; width: 14px; height: 14px; accent-color: var(--black); align-self: center; }
.finder-acct .p { font-weight: 700; font-size: 10px; letter-spacing: .04em; }
.finder-acct .h { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-acct .m { color: var(--mid); font-size: 12px; }
.finder-note { color: var(--mid); font-size: 12px; margin: 10px 0; }
.finder-note.bad { color: var(--black); border-left: 3px solid var(--review); padding-left: 8px; }
.finder-actions { padding: 12px 0 4px; }
.finder-actions .hint { margin-top: 8px; }

.handle-preview { list-style: none; margin: -8px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.handle-preview li { font-size: 12px; border: 1px solid var(--light); padding: 2px 8px; }
.handle-preview li .p { font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: .04em; margin-right: 6px; }
.handle-preview li.bad { border-color: var(--review); }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; cursor: pointer; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--black); }
.check em { color: var(--mid); font-style: normal; }
.check + .check { margin-top: -12px; }
.check input:disabled + span { color: var(--mid); }

.btn {
  display: inline-block; border: 1px solid var(--black); background: var(--black); color: var(--white);
  padding: 12px 24px; font-size: 12px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn[disabled] { opacity: .4; cursor: default; }
.btn-outline { background: var(--white); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.form-error { border-left: 4px solid var(--review); padding: 8px 12px; margin: 0 0 20px; }

.saved-list { list-style: none; margin: 0; padding: 0; }
.saved-list li { border-bottom: 1px solid var(--light); }
.saved-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 16px 0; text-decoration: none; }
.saved-list a:hover .s-title { text-decoration: underline; }
.s-title { font-weight: 500; }
.s-sub { color: var(--mid); font-size: 12px; grid-column: 1; }
.s-counts { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; gap: 16px; font-size: 12px; }
.empty { color: var(--mid); padding: 16px 0; }

/* ---------- flags ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.badge::before { content: ""; width: 10px; height: 10px; background: var(--light); flex: none; }
.badge.review::before { background: var(--review); }
.badge.unclear::before { background: var(--unclear); }
.badge.none::before, .badge.no-audio::before { background: var(--none); }
.badge.library::before { background: var(--library); }
/* Library music: softer than Review; outlined blue = "production-library track, confirm the licence covers it" */
.badge.third-party::before { background: var(--mid); }
.badge.commercial-library::before { background: var(--library); }
.badge.library-music::before { background: transparent; border: 2px solid var(--library); width: 10px; height: 10px; box-sizing: border-box; }
.badge.potential-commission-or-library::before { background: transparent; border: 2px solid var(--unclear); width: 10px; height: 10px; box-sizing: border-box; }
.badge.campaign-music::before { background: transparent; border: 2px dashed var(--none); width: 10px; height: 10px; box-sizing: border-box; }
.badge.licensed::before { background: transparent; border: 2px solid var(--none); width: 10px; height: 10px; box-sizing: border-box; }
.badge.ai-music::before { background: transparent; border: 2px dotted var(--review); width: 10px; height: 10px; box-sizing: border-box; }
.badge.own-music::before { background: transparent; border: 2px solid var(--none); width: 10px; height: 10px; box-sizing: border-box; }
.badge.error::before { background: var(--black); }

/* ---------- progress ---------- */
.progress { margin-bottom: 56px; max-width: 900px; }
.progress-table { width: 100%; border-collapse: collapse; }
.progress-table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--light); vertical-align: top; }
.progress-table td:first-child { font-weight: 500; width: 34%; }
.progress-table .plat { color: var(--mid); font-weight: 400; margin-left: 6px; }
.progress-table .step { color: var(--mid); }
.progress-table .err { color: var(--black); }
.bar { height: 4px; background: var(--light); margin-top: 6px; position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--black); }
.bar.indet i { width: 30%; animation: indet 1.4s linear infinite; }
@keyframes indet { from { left: -30%; } to { left: 100%; } }

/* ---------- summary (black block) ---------- */
.summary { background: var(--black); color: var(--white); padding: 48px 0; margin: 0 calc(50% - 50vw) 64px;
  padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.summary .section-label { border-color: var(--offwhite); color: var(--white); }
.summary .muted { color: var(--mid); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); row-gap: 40px; gap: 32px; margin-bottom: 48px; }
.stat-num { font-weight: 700; font-size: 40px; line-height: 1; color: var(--white); }
.stat-label { font-size: 11px; color: var(--offwhite); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.stat-label.badge::before { width: 8px; height: 8px; }
.summary-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.summary table { width: 100%; border-collapse: collapse; color: var(--offwhite); }
.summary th { text-align: left; font-weight: 500; color: var(--mid); padding: 0 12px 10px 0; font-size: 12px; }
.summary td { padding: 9px 12px 9px 0; border-top: 1px solid var(--mid); vertical-align: top; }
.summary td.num, .summary th.num { text-align: right; font-weight: 700; }
.summary td.rank { color: var(--mid); width: 28px; }
.summary .handle-err { color: var(--mid); font-size: 12px; display: block; }

/* ---------- results table ---------- */
.results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.results-head .section-label { flex: 1; }
.exports { display: flex; gap: 12px; margin-top: -12px; }
.filters { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; margin-bottom: 20px; }
.filters label { display: block; }
.filters .field-label { font-size: 12px; margin-bottom: 4px; }
.filters input, .filters select { padding: 7px 10px; font-size: 13px; }
.filters input { width: 260px; }
.filters select { width: auto; min-width: 140px; }
.filters .reset { font-size: 12px; background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; color: var(--mid); }
.table-meta { color: var(--mid); font-size: 12px; margin-bottom: 8px; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--black); }
table.data { border-collapse: collapse; width: max-content; min-width: 100%; }
table.data th {
  font-weight: 500; text-align: left; font-size: 12px; padding: 12px 14px 10px 0;
  border-bottom: 1px solid var(--black); white-space: nowrap; cursor: pointer; user-select: none;
  position: sticky; top: 0; background: var(--white);
}
table.data th:hover { text-decoration: underline; }
table.data th .dir { display: inline-block; width: 10px; font-size: 10px; margin-left: 4px; }
table.data td { padding: 9px 14px 9px 0; vertical-align: top; font-size: 13px; }
table.data tbody tr:nth-child(even) td { background: var(--light); }
table.data tbody tr { border-bottom: 1px solid var(--light); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.cap { max-width: 280px; }
table.data td.cap div { max-height: 3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
table.data td.reason { min-width: 300px; max-width: 340px; color: var(--black); }
table.data td.dim { color: var(--mid); }
table.data td.nowrap { white-space: nowrap; }
table.data tr.error-row td { background: var(--offwhite); }
table.data a { text-decoration: underline; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 12px; }
.pager button { border: 1px solid var(--black); background: var(--white); padding: 6px 12px; cursor: pointer; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pager button[disabled] { opacity: .3; cursor: default; }
.pager span { color: var(--mid); margin: 0 8px; }

.notice { border-left: 4px solid var(--black); padding: 8px 12px; margin-bottom: 32px; max-width: 900px; }

@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .home-grid, .summary-cols { grid-template-columns: 1fr; gap: 56px; }
  .stats { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

.text-btn { background: none; border: 0; padding: 0; margin-top: 12px; color: var(--mid); text-decoration: underline; cursor: pointer; font-size: 12px; }
.text-btn:hover { color: var(--black); }
.summary .small { font-size: 12px; margin: -12px 0 12px; }
.summary .section-label.spaced { margin-top: 48px; }
/* Label names in the record-label table keep their own spelling (not all caps). */
.summary td .badge.library { text-transform: none; font-weight: 500; letter-spacing: 0; font-size: 13px; }

/* ---------- costs ---------- */
.costs { max-width: 620px; margin: -16px 0 48px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cost-table td { padding: 7px 16px 7px 0; border-bottom: 1px solid var(--light); }
.cost-table td.num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.cost-table tr.sub td { color: var(--mid); font-size: 12px; padding-left: 16px; }
.cost-table tr.total td { font-weight: 700; border-bottom: 1px solid var(--black); }
.cost-table .muted { color: var(--mid); }
.summary .sound-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 16px; }
.summary .sound-handle { margin-bottom: 28px; }
.summary .sound-head { font-size: 13px; padding-bottom: 8px; }
.summary .sound-head .muted { font-size: 12px; margin-left: 8px; }
.consistency-brands { margin-bottom: 32px; }
.consistency-tag { margin-left: 8px; padding: 2px 6px; border: 1px solid var(--offwhite); font-size: 10px; font-weight: 600; letter-spacing: .04em; }

/* ---------- sound map ---------- */
.map-handle { margin: 8px 0 40px; }
.map-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 12px; }
.map-wrap { display: grid; grid-template-columns: 18px 34px 1fr; grid-template-rows: auto auto auto; column-gap: 6px; row-gap: 6px; }
.map-y { grid-row: 1; grid-column: 1; }
.map-rows { grid-row: 1; grid-column: 2; display: grid; grid-template-rows: repeat(3, 1fr); align-items: center; }
.map-rows span, .map-cols span { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--offwhite); }
.map-grid { grid-row: 1; grid-column: 3; }
.map-cols { grid-row: 2; grid-column: 3; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.map-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--mid); }
.map-x { grid-row: 3; grid-column: 3; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--mid); }
.map-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; aspect-ratio: 16 / 10; }
.map-cell { position: relative; border: 0; padding: 0; cursor: pointer; color: var(--black); font-family: inherit;
  background: color-mix(in srgb, var(--cell) calc(var(--a) * 100%), var(--black)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.map-cell.empty { cursor: default; color: var(--mid) !important; }
.summary td.nowrap { white-space: nowrap; }
.map-cell:not(.empty):hover { outline: 2px solid var(--white); outline-offset: -2px; }
.map-n { position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 700; }
.map-share { font-size: 26px; font-weight: 700; line-height: 1; }
.map-posts { font-size: 11px; margin-top: 4px; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.summary tr.click { cursor: pointer; }
.summary tr.click:hover td { color: var(--white); }

/* ---------- summary segments ---------- */
.summary .segment-title { font-size: 28px; font-weight: 700; letter-spacing: .04em; margin: 72px 0 24px; padding-top: 24px; border-top: 2px solid var(--offwhite); color: var(--white); }
.summary .summary-cols + .summary-cols { margin-top: 8px; }

/* ---------- executive summary ---------- */
.summary .segment-title.first { margin-top: 0; padding-top: 0; border-top: 0; }
.exec-headline { font-size: 18px; font-weight: 500; color: var(--white); max-width: 900px; margin: 0 0 32px; }
.exec-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; margin-bottom: 72px; }
.exec-item { padding: 16px 0; border-top: 1px solid var(--mid); }
.exec-item p { margin: 8px 0 0; color: var(--offwhite); line-height: 1.6; }
.exec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.exec-title { font-weight: 700; letter-spacing: .04em; color: var(--white); }
.exec-status { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; color: var(--black); white-space: nowrap; }
.exec-status.works { background: var(--none); }
.exec-status.watch { background: var(--unclear); }
.exec-status.improve { background: var(--review); }
.exec-exposure { padding: 16px 0 24px; border-top: 1px solid var(--mid); margin-bottom: 24px; }
.exec-exposure .stat-num { color: var(--white); }
.exp-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 12px; color: var(--offwhite); }
.exp-table th { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--light); text-align: left; padding: 4px 0; }
.exp-table td { padding: 6px 0; border-top: 1px solid var(--mid); vertical-align: top; }
.exp-table td.num, .exp-table th.num { text-align: right; padding-left: 12px; white-space: nowrap; }
.exp-table .exp-part td { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--light); padding-top: 14px; }
.exec-actions { list-style: none; margin: 0; padding: 0; }
.exec-actions li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--mid); }
.exec-actions b { display: block; font-weight: 500; color: var(--white); }
.exec-actions span { display: block; font-size: 12px; color: var(--light); margin-top: 4px; line-height: 1.5; }
.exec-rank { font-size: 22px; font-weight: 700; line-height: 1; color: var(--white); }
@media (max-width: 1100px) { .exec-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- collapsed costs ---------- */
.costs { margin: -24px 0 40px; }
.cost-details summary { list-style: none; cursor: pointer; display: inline-flex; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--light); }
.cost-details summary::-webkit-details-marker { display: none; }
.cost-title { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--mid); }
.cost-total { font-weight: 500; font-variant-numeric: tabular-nums; }
.cost-toggle::after { content: "+"; font-weight: 700; font-size: 16px; line-height: 1; }
.cost-details[open] .cost-toggle::after { content: "−"; }
.cost-details[open] .cost-table { margin-top: 12px; }

/* ---------- brand music system ---------- */
.map-cat { position: absolute; bottom: 5px; left: 8px; right: 6px; font-size: 9px; font-weight: 500; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.map-cat i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; vertical-align: 0; }
.map-n { top: 5px; }
.system-block { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; margin-top: 36px; }
.aud-table tr.top td { color: var(--white); }
.aud-table tr.top td.rank { font-weight: 700; }
.system-table td.small-cell { font-size: 11px; white-space: nowrap; }
.system-table td { vertical-align: middle; }
.system-table td.bar-cell { width: 34%; }
.bar-h { display: block; height: 8px; background: rgba(132, 132, 132, .3); }
.bar-h i { display: block; height: 100%; }
.aud-tag { display: block; font-size: 11px; font-weight: 400; }
@media (max-width: 1100px) { .system-block { grid-template-columns: 1fr; } }

/* ---------- flag legend ---------- */
.flag-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px; margin: -16px 0 48px; padding: 16px 0 0; border-top: 1px solid var(--mid); }
.flag-legend dt { margin-bottom: 6px; }
.flag-legend dd { margin: 0; font-size: 12px; color: var(--offwhite); line-height: 1.45; }
@media (max-width: 1100px) { .flag-legend { grid-template-columns: 1fr 1fr; } }

.head-pdf { margin: 16px 16px 0 0; padding: 8px 16px; font-size: 11px; }

/* ---------- PDF export (print) ---------- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: var(--white); }
  main { padding: 0; max-width: none; }
  .masthead { padding: 0 0 8px; }
  .mode, .head-pdf, #delete-search, #progress, .results, .notice, .text-btn { display: none !important; }
  .page-head { padding: 12px 0 16px; }
  h1 { font-size: 28px; }
  .costs { margin: 0 0 16px; }
  .cost-details summary { border: 0; }
  .cost-toggle { display: none; }
  .summary { margin: 0; padding: 20px 24px; }
  .summary .segment-title { break-before: page; margin-top: 0; padding-top: 16px; }
  .summary .segment-title.first { break-before: auto; }
  .exec-grid { grid-template-columns: 1.6fr 1fr !important; gap: 32px; margin-bottom: 0; }
  .exec-item, .exec-actions li, .exec-exposure { break-inside: avoid; }
  .summary-start { break-before: page; }
  .map-wrap, .flag-legend, .stats, .sound-head { break-inside: avoid; }
  .sound-head { break-after: avoid; }
  .section-label { break-after: avoid; }
  .summary tr { break-inside: avoid; }
  .map-cell { cursor: default; }
  .summary-cols { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  .map-row { grid-template-columns: 320px 1fr !important; gap: 28px; }
  .system-block { grid-template-columns: 1.25fr 1fr !important; gap: 28px; }
  .stats { grid-template-columns: repeat(6, 1fr) !important; }
  .flag-legend { grid-template-columns: repeat(5, 1fr) !important; }
  .print-note { display: block !important; }
  .review-appendix { display: block !important; }
  .map-wrap { max-width: 125mm; }
  .summary .segment-title, .summary .segment-title + p.small, .summary .segment-title + .muted.small, .boost-toggle { break-after: avoid; }
  /* keep tables whole on one page; only the long Review list may run on, row by row */
  .summary table, .summary .table-scroll, .summary-cols > div, .perf-cols > div { break-inside: avoid; overflow: visible !important; }
  .summary .section-label + p.small { break-after: avoid; }
  .review-appendix table { break-inside: auto; }
  .review-appendix thead { display: table-header-group; }
}
.print-note { display: none; font-size: 11px; color: var(--mid); margin-top: 16px; }
.review-appendix { display: none; }
.review-appendix td.link-cell { font-size: 10px; word-break: break-all; }
.review-appendix td.link-cell a { color: var(--light); }

/* ---------- sonic performance ---------- */
.perf-handle { margin: 8px 0 48px; }
.perf-top { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: start; margin: 12px 0 8px; }
.perf-verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.perf-chips { list-style: none; margin: 0; padding: 0; }
.perf-chips li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--mid); font-size: 13px; color: var(--offwhite); }
.perf-chips li b { font-weight: 500; }
.perf-chips.up li span::before { content: "▲ "; }
.perf-chips.down li span::before { content: "▼ "; color: var(--mid); }
.perf-chips li span { font-weight: 700; white-space: nowrap; }
.perf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.perf-table td { vertical-align: middle; }
.perf-table tr.thin td { color: var(--mid); }
.perf-table td.bar-cell { width: 28%; }
.idx-bar { position: relative; display: block; height: 8px; background: rgba(132, 132, 132, .3); }
.idx-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--mid); }
.idx-bar i.up { background: var(--offwhite); }
.idx-bar b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--white); }
.v-up { color: var(--white); font-weight: 500; }
.v-down { color: var(--mid); font-weight: 500; }
@media (max-width: 1100px) { .perf-top, .perf-cols, .perf-verdicts { grid-template-columns: 1fr; } }
@media print { .perf-top { grid-template-columns: 320px 1fr !important; } .perf-cols { grid-template-columns: 1fr 1fr !important; } .perf-handle { break-inside: auto; } }
.perf-verdicts.spaced-top { margin-top: 28px; }
.summary .boost-toggle { margin: -8px 0 24px; color: var(--offwhite); }
.summary .boost-toggle input { accent-color: var(--white); }
@media print { .boost-toggle { display: none; } }

/* ---------- clean PDF (rendered by the app with headless Chrome: ?pdf=1) ---------- */
@media print {
  .costs { display: none !important; }
  html.pdf-mode, html.pdf-mode body { margin: 0; }
}
html.pdf-mode .costs, html.pdf-mode .head-pdf, html.pdf-mode .mode, html.pdf-mode #delete-search,
html.pdf-mode #progress, html.pdf-mode .results, html.pdf-mode .boost-toggle { display: none !important; }
@media print {
  :root { --gutter: 14mm; }
  main { padding: 0 var(--gutter) !important; }
  .masthead { padding: 12mm var(--gutter) 0 !important; }
  .summary { margin: 0 calc(-1 * var(--gutter)) !important; padding: 12mm var(--gutter) !important; }
}
@page { size: A4 landscape; margin: 0; }

/* ---------- responsive ---------- */
.summary table, .perf-table, .system-table { min-width: 0; }
.table-scroll { overflow-x: auto; }
.summary .map-side, .summary .system-col, .summary-cols > div, .perf-cols > div { min-width: 0; overflow-x: auto; }
@media (max-width: 1100px) {
  .summary-cols, .map-row, .perf-top, .perf-cols, .system-block, .perf-verdicts, .home-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 40px; }
  .summary { padding-top: 32px; padding-bottom: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  h1 { font-size: 30px; }
  .page-head { padding: 32px 0 24px; }
  .summary .segment-title { font-size: 22px; margin-top: 48px; }
  .stat-num { font-size: 30px; }
  .results-head { flex-direction: column; }
  .exports { flex-wrap: wrap; margin-top: 0; }
  .filters input { width: 100%; }
  .map-share { font-size: 18px; }
  .map-cat { display: none; }
}
@media print {
  .summary-cols { grid-template-columns: 1fr 1fr !important; }
  .stats { grid-template-columns: repeat(6, 1fr) !important; }
}
.summary .community { margin-top: 40px; padding-top: 8px; }
.summary .compare-table { margin-top: 24px; }
.summary .compare-table td { font-size: 12px; vertical-align: top; }

/* ---------- portfolio report ---------- */
.saved-list li.pickable { display: grid; grid-template-columns: 28px 1fr; align-items: start; }
.saved-list .pf-pick { margin: 20px 0 0; width: 16px; height: 16px; accent-color: var(--black); }
.pf-form { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; margin: 8px 0 16px; }
.pf-findings { list-style: none; margin: 0; padding: 0; }
.pf-findings li { padding: 14px 0; border-top: 1px solid var(--mid); line-height: 1.6; color: var(--offwhite); }
.pf-findings li:first-child { border-top: 0; padding-top: 0; }
.pf-lead { max-width: 900px; line-height: 1.6; }
.summary .pf-table th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--light); padding: 8px 14px 8px 0; border-bottom: 1px solid var(--offwhite); vertical-align: bottom; }
.summary .pf-table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--mid); vertical-align: top; font-size: 13px; }
.summary .pf-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary .pf-table tfoot td { border-bottom: 0; border-top: 1px solid var(--offwhite); }
.summary .pf-table td a { color: var(--white); text-decoration: none; }
.summary .pf-table td a:hover { text-decoration: underline; }
.summary .pf-table.narrow { max-width: 760px; }
.pf-dna { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.pf-dna p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--light); }
.pf-gaps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.summary.pf .opp-block { margin-bottom: 48px; }
@media (max-width: 900px) { .pf-dna { grid-template-columns: minmax(0, 1fr); } .pf-form { grid-template-columns: minmax(0, 1fr); } }
.pf-acc { font-size: 11px; color: var(--mid); margin-top: 4px; line-height: 1.5; }
.summary.pf .rights-block { margin-top: 48px; }
.summary .pf-table td.num { font-weight: 400; }
.summary .pf-table td.num b { font-weight: 700; }
.pf-note { font-size: 12px; color: var(--mid); margin: 8px 0 20px; line-height: 1.6; max-width: 1100px; }

/* ---------- music & cultural activation (internal) ---------- */
.culture-block { margin: 8px 0 48px; padding: 16px; border: 1px dashed var(--mid); }
.cul-note { font-size: 12px; color: var(--mid); margin: 6px 0 16px; line-height: 1.6; max-width: 1100px; }
.cul-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 16px 0 8px; }
.cul-facts b { display: block; font-size: 28px; font-weight: 700; color: var(--white); }
.cul-facts span { display: block; font-size: 11px; color: var(--light); margin-top: 6px; line-height: 1.4; }
.summary .cul-table th { text-align: left; font-size: 11px; font-weight: 500; color: var(--light); padding: 8px 14px 8px 0; border-bottom: 1px solid var(--offwhite); vertical-align: bottom; }
.summary .cul-table td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--mid); border-top: 0; vertical-align: top; font-size: 12px; }
.summary .cul-table td.num { font-weight: 400; text-align: right; white-space: nowrap; }
.summary .cul-table td .muted, .summary .cul-table td div.muted { font-size: 11px; }
.summary .cul-table tr.cul-off td { color: var(--mid); }
.summary .cul-table .cul-unshared { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.cul-details { margin: 20px 0; }
.cul-details summary { cursor: pointer; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.cul-item { border-top: 1px solid var(--mid); padding: 12px 0; font-size: 12px; }
.cul-item-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.cul-item p { margin: 6px 0; color: var(--light); line-height: 1.5; }
.cul-kv { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 2px 0; line-height: 1.5; }
.cul-kv > span:first-child { color: var(--mid); }
.culture-block a { color: var(--white); }
.cul-accounts { font-size: 12px; line-height: 1.7; }
.culture-run { margin-top: 12px; }
@media print { .cul-details[open] summary, .cul-details summary { break-after: avoid; } .culture-run { display: none; } }
@media (max-width: 900px) { .cul-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tracker-toggle { display: inline-flex; margin: 0 16px 0 0; vertical-align: middle; font-size: 12px; }
.tracker-toggle em { color: var(--mid); font-style: normal; }

/* ---------- report chapters: alternating black / white sections with big headlines ---------- */
.summary { background: transparent; color: var(--black); padding: 0; margin: 0 0 64px; }
.rsec { background: var(--black); color: var(--white); margin: 0 calc(50% - 50vw); padding: 88px calc(50vw - 50%) 96px; }
/* White sections: the same rules with the palette inverted (ink = --white, paper = --black). */
.rsec.light { --black: #FFFFFF; --white: #000000; --offwhite: #1E1E1E; --light: #3D3D3D; --mid: #767676; }
.rsec.light .map-cell:not(.empty) { color: #000 !important; }
.rsec.light .map-cell:not(.empty):hover { outline-color: #000; }
.rsec-head { display: flex; align-items: baseline; gap: 28px; margin: 0 0 56px; padding-bottom: 24px; border-bottom: 3px solid var(--white); }
.rsec-num { font-size: 22px; font-weight: 700; color: var(--mid); letter-spacing: .04em; }
.rsec-title { margin: 0; font-size: 80px; line-height: .95; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; color: var(--white); }
.rsec-foot { padding: 24px 0 0; }
.rsec .section-label { margin-top: 0; }

.toc { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 80px; }
.toc li { break-inside: avoid; border-top: 1px solid var(--mid); }
.toc a { display: flex; align-items: baseline; gap: 20px; padding: 16px 0; font-size: 30px; font-weight: 700; text-transform: uppercase; text-decoration: none; letter-spacing: .01em; }
.toc a:hover { color: var(--mid); }
.toc-num { font-size: 14px; color: var(--mid); min-width: 28px; }
.toc-review-appendix { display: none; }

.chapter-summary { margin: 0 0 64px; max-width: 1150px; }
.chapter-item { padding: 18px 0 22px; border-top: 1px solid var(--mid); }
.chapter-item .exec-title { font-size: 22px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.chapter-item p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--offwhite); }

.big-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; margin: 0 0 72px; }
.big-stat { border-top: 3px solid var(--white); padding-top: 18px; cursor: pointer; }
.big-num { font-size: 68px; font-weight: 700; line-height: 1; color: var(--white); white-space: nowrap; }
.big-num .stat-of { font-size: 26px; }
.big-sub { font-size: 12px; color: var(--mid); margin-top: 8px; }

.pm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; margin-bottom: 72px; }
.pm-list { list-style: none; margin: 0; padding: 0; }
.pm-list li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--mid); cursor: pointer; }
.pm-list li.muted { display: block; cursor: default; }
.pm-list li:first-child, .toc li:first-child { border-top: 0; }
.pm-sign { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; line-height: 1; color: #000; background: var(--unclear); }
.pm-list li.works .pm-sign { background: var(--none); }
.pm-list li.improve .pm-sign { background: var(--review); }
.pm-list b { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--white); }
.pm-list li > div > span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); }
.pm-list li:hover b { text-decoration: underline; }

.audit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; }
.summary .kv-table td:first-child { width: 170px; white-space: nowrap; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; }
.usage-exposure { margin-top: 48px; }

.cr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 8px 0 24px; }
.cr-facts { list-style: none; margin: 8px 0 16px; padding: 0; }
.cr-facts li { padding: 6px 0; border-top: 1px solid var(--mid); color: var(--offwhite); }
.cr-facts b { color: var(--white); }

.mob-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; font-size: 9px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
table.data td .mob-tag { margin-left: 0; }
.legend-details > summary { cursor: pointer; list-style: none; }
.legend-details > summary::-webkit-details-marker { display: none; }

@media (max-width: 1100px) {
  .pm-grid, .audit-grid, .exp-grid, .cr-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rsec-title { font-size: 56px; }
  .toc { columns: 1; }
}
@media (max-width: 640px) {
  .rsec { padding-top: 48px; padding-bottom: 56px; }
  .rsec-title { font-size: 38px; }
  .rsec-head { gap: 14px; margin-bottom: 32px; }
  .toc a { font-size: 20px; }
  .big-num { font-size: 44px; }
}
@media print {
  .summary { margin: 0 !important; padding: 0 !important; }
  .rsec { margin: 0 calc(-1 * var(--gutter)) !important; padding: 14mm var(--gutter) !important; break-before: page; min-height: 210mm; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .rsec-toc { min-height: 0; break-before: auto !important; }
  .rsec-title { font-size: 46px; }
  .rsec-head { margin-bottom: 28px; padding-bottom: 14px; break-after: avoid; }
  .toc a { font-size: 22px; padding: 10px 0; }
  .toc-review-appendix { display: block !important; }
  .rsec.review-appendix { display: block !important; }
  .big-stats { grid-template-columns: repeat(5, 1fr) !important; gap: 24px; margin-bottom: 40px; }
  .big-num { font-size: 44px; }
  .pm-grid { grid-template-columns: 1fr 1fr !important; gap: 40px; margin-bottom: 32px; }
  .pm-list li, .chapter-item, .big-stat, .cr-col { break-inside: avoid; }
  .audit-grid, .exp-grid { grid-template-columns: 1.3fr 1fr !important; gap: 32px; }
  .cr-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 24px; }
  .chapter-summary { margin-bottom: 32px; }
  .chapter-item p { font-size: 13px; }
  .legend-details > summary { pointer-events: none; }
}
.rsec .culture-block { border: 0; padding: 0; margin: 0; }
.rsec .flag-legend { margin-top: 0; }
.cr-col .am { max-width: 300px; }
.summary .kv-table tr:first-child td { border-top: 0; }
@media print {
  .summary .kv-table td { padding-top: 5px; padding-bottom: 5px; }
  .rsec .stats { margin-bottom: 24px; row-gap: 20px; }
  .rsec .stat-num { font-size: 30px; }
}
.chapter-item:first-child { border-top: 0; padding-top: 0; }
@media print {
  .summary-cols.usage-cols { grid-template-columns: 1fr !important; gap: 28px; }
  .usage-cols > div { break-inside: auto !important; }
}
.review-appendix th:nth-child(6) { width: 19%; }
.review-appendix th:nth-child(1), .review-appendix th:nth-child(2) { width: 13%; }
@media print { .keep { break-inside: avoid; } }
.cost-overview { margin-top: 48px; }
.cost-overview .cost-table th { text-align: left; font-weight: 500; color: var(--mid); font-size: 12px; padding: 0 16px 8px 0; }
.cost-overview .cost-table th.num { text-align: right; }
.s-cost { margin-left: 10px; font-size: 12px; color: var(--mid); font-variant-numeric: tabular-nums; }

/* ---------- 0.15: footnotes, reading guides, trend, performance grid, activation highlights ---------- */
sup.fn { font-size: 9px; font-weight: 700; color: var(--mid); margin-left: 3px; vertical-align: super; line-height: 0; letter-spacing: 0; }
.footnotes { margin: 56px 0 0; padding: 14px 0 0 18px; border-top: 1px solid var(--mid); font-size: 10px; line-height: 1.5; color: var(--mid); columns: 2; column-gap: 48px; }
.footnotes li { margin: 0 0 6px; break-inside: avoid; }
.footnotes li::marker { font-weight: 700; }
.read-guide { font-size: 13px; color: var(--offwhite); margin: 0 0 24px; max-width: 1000px; padding-left: 12px; border-left: 3px solid var(--unclear); }
.read-guide b { color: var(--white); font-weight: 700; }
.big-guide { font-size: 11px; color: var(--offwhite); margin-top: 10px; padding-top: 8px; border-top: 1px dotted var(--mid); line-height: 1.45; }
.trend-block { margin: 0 0 56px; }
.trend-lead { font-size: 16px; max-width: 1000px; color: var(--offwhite); }
.trend-lead b { color: var(--white); }
.perf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 8px; align-items: start; }
.perf-grid > div:empty { display: none; }
.cul-wins { margin: 32px 0 8px; }
.cul-win-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--mid); }
.cul-win-num { font-size: 40px; font-weight: 700; line-height: 1; color: var(--none); }
.cul-win-item p { margin: 6px 0 0; color: var(--offwhite); }
.win-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; background: var(--none); color: #000; font-size: 9px; font-weight: 700; letter-spacing: .06em; vertical-align: 2px; }
tr.cul-win td:first-child { box-shadow: inset 3px 0 0 var(--none); padding-left: 8px; }
@media print { .footnotes { columns: 2; } .cul-win-item, .trend-block { break-inside: avoid; } }
.cost-overview td { white-space: nowrap; }
.cost-overview .cost-table { max-width: 1100px; }

/* ---------- sign-in (hosted app only) ---------- */
.signed-in { display: flex; gap: 12px; align-items: center; font-size: 11px; color: var(--mid); }
.signed-in .text-btn { margin-top: 0; font-size: 11px; }
@media print { .signed-in { display: none !important; } }
html.pdf-mode .signed-in { display: none; }
.login { max-width: 420px; }
.login input { width: 100%; }
.login .code-input { font-size: 24px; letter-spacing: .3em; }
.login .form-note { color: var(--mid); font-size: 12px; margin: 16px 0 0; }

.exp-sub td { color: var(--mid); font-size: 12px; }

/* Results: music equity (assets against liabilities) */
.lead-finding { font-size: 22px; line-height: 1.35; font-weight: 500; margin: 0 0 12px; max-width: 900px; }
.liab-line { font-size: 15px; margin: 0 0 16px; padding: 8px 12px; border-left: 3px solid var(--mid); }
.new-tracks { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 20px; }
.new-tracks p { margin: 0; max-width: 420px; }
.month-bars { display: flex; gap: 4px; align-items: flex-end; height: 70px; }
.month-bars .mb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 26px; height: 100%; font-size: 9px; }
.month-bars .mb i { display: block; width: 14px; background: currentColor; opacity: .55; min-height: 1px; }
.month-bars .mb span { color: var(--mid); margin-top: 2px; }
.month-bars .mb b { font-weight: 500; }
.eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 20px; }
.eq-table td:first-child { width: 42%; }
@media (max-width: 800px) { .eq-grid { grid-template-columns: 1fr; } }

.badge.sound-effect { background: var(--offwhite); color: var(--black); }
html.pdf-mode #tracker-wrap { display: none !important; }

/* The client PDF points to no app feature; short summaries are compact (about two pages) */
@media print { .print-note { display: none !important; } }
html.brief-mode .page-head, html.brief-mode .costs, html.brief-mode .print-note, html.brief-mode #tracker-wrap { display: none !important; }
html.brief-mode .summary-start { break-before: auto !important; }
html.brief-mode .rsec { padding-top: 24px; padding-bottom: 24px; }
html.brief-mode .rsec-head { margin-bottom: 20px; padding-bottom: 10px; }
html.brief-mode .rsec-title { font-size: 30px; }
html.brief-mode .lead-finding { font-size: 17px; }
html.brief-mode .eq-grid { gap: 16px; margin: 4px 0 12px; }
html.brief-mode .eq-table td { padding-top: 3px; padding-bottom: 3px; font-size: 12px; }
html.brief-mode .pm-list li { padding-top: 4px; padding-bottom: 4px; }
html.brief-mode .rsec-foot { padding-top: 8px; }
@media print {
  .eq-grid { grid-template-columns: 1fr 1fr !important; }
  html.brief-mode .masthead { display: none !important; }
  html.brief-mode .rsec-foot { break-before: avoid; }
  html.brief-mode .rsec { break-before: auto !important; break-after: auto !important; }
  html.brief-mode .exec-exposure, html.brief-mode .pm-grid { break-inside: auto; }
  html.brief-mode .pm-list b { font-size: 12px; }
  html.brief-mode .exp-table td, html.brief-mode table td { padding-top: 2px; padding-bottom: 2px; }
}

/* Suggested audit price: internal, never printed */
.price-box { margin: 8px 0 16px; padding: 8px 12px; border-left: 3px solid var(--mid); max-width: 620px; }
.price-main { font-size: 15px; }
.price-note { font-size: 12px; color: var(--mid); margin-top: 2px; }
html.pdf-mode .internal-only { display: none !important; }
@media print { .internal-only { display: none !important; } }
