/* Layout: a ledger of claims on the left, the certificate of the selected claim on the right; one column on phones. */
:root {
  /* One light look on white: the page must read as a sober public-interest tool, in any viewer theme. */
  color-scheme: light;
  --paper: #ffffff; --sheet: #ffffff; --ink: #161a22; --muted: #575e6b; --rule: #d9dce1; --tint: #f4f5f7;
  --accent: #17357a;
  --ok: #18753c; --ok-bg: #e4f2e9; --warn: #8a5a00; --warn-bg: #fbf1dc; --no: #575e6b; --no-bg: #eef0f3;
  --bad: #c0191f; --bad-bg: #fbe6e6; --na: #5b4a9c; --na-bg: #eeebf8;
  --f-proc: #c2571a; --f-addr: #257de0; --f-art: #8a6fc9; --f-fond: #8a96a6;
  --ci: #161a22;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box }
body { background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); margin: 0 }
.wrap { max-width: 1180px; margin: 0 auto; padding-block: 28px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
h1, h2, h3 { text-wrap: balance; margin: 0 }
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em }
h2 { font-size: 1.25rem; font-weight: 700 }
h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
p { margin: 0 }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums }
.ph { display: grid; gap: 12px; margin-bottom: 20px }
.lede { color: var(--muted) }
.bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--sheet) }
.seg button { font: 600 .85rem var(--sans); color: var(--muted); background: none; border: 0; padding: 7px 12px; cursor: pointer }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--sheet) }
.seg button:focus-visible, select:focus-visible, .row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.banner { border-left: 3px solid var(--warn); background: var(--warn-bg); color: var(--ink); padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: .9rem; max-width: 80ch }
.banner.plain { border-color: var(--accent); background: var(--tint) }
.composer { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 22px }
.composer .sentence { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 1.02rem }
select { font: 500 .95rem var(--sans); color: var(--ink); background: var(--tint); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 8px; max-width: 100% }
.grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: start }
@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr) } }
.ledger { display: grid; gap: 6px }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; color: inherit }
.row[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) }
.row .t { font-weight: 600; font-size: .92rem; line-height: 1.35 }
.row .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: .8rem }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; align-self: start }
.v-ok { color: var(--ok); background: var(--ok-bg) } .v-warn { color: var(--warn); background: var(--warn-bg) }
.v-no { color: var(--no); background: var(--no-bg) } .v-bad { color: var(--bad); background: var(--bad-bg) } .v-na { color: var(--na); background: var(--na-bg) }
.cert { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; display: grid; gap: 22px; min-width: 0 }
.cert-head { display: grid; gap: 10px }
.stamp { display: inline-flex; align-items: center; gap: 10px; font: 800 1rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border-radius: 8px; border: 2px solid currentColor; justify-self: start }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem }
.facts b { color: var(--ink); font-weight: 600 }
.why { max-width: 72ch }
.tests { display: grid; gap: 0; border-top: 1px solid var(--rule) }
.test { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); align-items: baseline }
.test .mark { font-weight: 800; text-align: center }
.test .name { font-weight: 600 } .test .desc { color: var(--muted); font-size: .84rem }
.test .val { font-family: var(--mono); font-size: .84rem; text-align: right; white-space: nowrap }
.pass { color: var(--ok) } .fail { color: var(--bad) } .skip { color: var(--muted) } .info { color: var(--accent) }
.section { display: grid; gap: 10px; min-width: 0 }
.forest { display: grid; gap: 2px }
.frow { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 128px; gap: 10px; align-items: center; font-size: .84rem; min-height: 26px }
.frow .lab { color: var(--muted); overflow-wrap: anywhere } .frow.main .lab { color: var(--ink); font-weight: 600 }
.track { position: relative; height: 22px }
.track .zero { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted) }
.track .band { position: absolute; top: 0; bottom: 0; background: var(--tint) }
.track .ci { position: absolute; top: 10px; height: 2px; background: var(--ci) }
.track .pt { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ci); border: 2px solid var(--sheet) }
.frow.ref .pt { background: var(--sheet); border: 2px solid var(--ci) }
.frow .v { font-family: var(--mono); font-size: .78rem; text-align: right; white-space: nowrap }
.axis { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 128px; gap: 10px; font: .72rem var(--mono); color: var(--muted) }
.axis .ticks { position: relative; height: 16px } .axis .ticks span { position: absolute; transform: translateX(-50%) }
@media (max-width: 520px) { .frow, .axis { grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 84px } .frow .v { font-size: .7rem } }
.stab { display: flex; align-items: stretch; gap: 2px; height: 90px; padding: 0 2px; border-bottom: 1px solid var(--rule) }
.stab .col { flex: 1; position: relative; min-width: 3px }
.stab .col i { position: absolute; left: 0; right: 0; background: var(--accent); border-radius: 1px }
.stab .col i.neg { background: var(--bad) }
.stab .mid { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule) }
.stab { position: relative }
.stab-lab { display: flex; justify-content: space-between; font: .72rem var(--mono); color: var(--muted) }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) } }
.ws { display: grid; gap: 3px }
.wsrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; font-size: .82rem; min-height: 20px }
.wsrow .l { display: flex; justify-content: flex-end; align-items: center; gap: 6px; border-right: 1px solid var(--muted); padding-right: 0 }
.wsrow .r { display: flex; justify-content: flex-start; align-items: center; gap: 6px; padding-left: 0 }
.wsrow b { display: block; height: 14px; border-radius: 2px }
.wsrow .w { font-family: var(--mono); font-size: .78rem; white-space: nowrap; flex-shrink: 0 }
.wsrow b { flex-shrink: 1 }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted) }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--c); vertical-align: -1px }
.fam-procédure { --c: var(--f-proc) } .fam-adresse { --c: var(--f-addr) } .fam-artefact { --c: var(--f-art) } .fam-fond { --c: var(--f-fond) }
.cmp { display: grid; gap: 4px }
.cmprow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 70px; gap: 8px; align-items: center; font-size: .84rem }
.cmprow .lab { color: var(--muted) }
.cmprow .v { font-family: var(--mono); font-size: .78rem; text-align: right }
.small { font-size: .82rem; color: var(--muted) }
.method { margin-top: 34px; display: grid; gap: 14px; max-width: 80ch }
.method ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px }
code { font-family: var(--mono); font-size: .82rem; background: var(--tint); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere }
pre { background: var(--tint); border-radius: 8px; padding: 12px; overflow-x: auto; font: .8rem/1.5 var(--mono); margin: 0 }
.empty { color: var(--muted); padding: 30px 0 }
@media (prefers-reduced-motion: no-preference) { .row { transition: border-color .15s } }
/* --- multipage chrome --- */
#top { background: var(--sheet); border-bottom: 1px solid var(--rule) }
.nav-in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-block: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 4px 0; border-bottom: 2px solid transparent }
nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent) }
nav a:hover { color: var(--ink) }
nav a:focus-visible, .brand:focus-visible, a.card:focus-visible, .cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
a { color: var(--accent) }
.page-head { display: grid; gap: 10px; margin-bottom: 20px }
#modelbar { display: grid; gap: 10px; margin-bottom: 20px }
.hero { display: grid; gap: 14px; padding-block: 18px 8px; max-width: 78ch }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15 }
.hero .q { font-size: 1.1rem; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 14px }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px }
a.card { display: grid; gap: 8px; align-content: start; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; color: inherit; text-decoration: none }
a.card:hover { border-color: var(--accent) }
.card .t { font-weight: 700; line-height: 1.3 }
.card p { font-size: .88rem; color: var(--muted) }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; counter-reset: s }
.step { background: var(--tint); border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px }
.step b { font-size: .95rem }
.step p { font-size: .88rem; color: var(--muted) }
.block { display: grid; gap: 12px; margin-top: 34px }
.prose { display: grid; gap: 10px }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px }
.tbl { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet) }
.tbl table { border-collapse: collapse; width: 100%; font-size: .87rem }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--tint) }
.tbl tr:last-child td { border-bottom: 0 }
.matrix { display: grid; gap: 4px; min-width: 620px }
[hidden] { display: none !important }
.matrix .hd, .strip .hd { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; align-self: end; padding: 4px }
.matrix .rh, .strip .rh { font-size: .84rem; font-weight: 600; align-self: center; padding-right: 6px }
.cell { display: grid; gap: 2px; place-content: center; text-align: center; border-radius: 8px; padding: 8px 4px; min-height: 54px; text-decoration: none; font-size: .78rem; border: 1px solid transparent }
.cell b { font: 700 .68rem var(--sans); text-transform: uppercase; letter-spacing: .05em }
.cell span { font-family: var(--mono); font-size: .74rem }
.cell.empty { background: var(--paper); border: 1px dashed var(--rule); color: var(--muted) }
a.cell:hover { border-color: var(--ink) }
.strip { display: grid; grid-template-columns: minmax(0, 210px) repeat(var(--n), minmax(74px, 1fr)); gap: 4px; min-width: 720px; align-items: stretch }
.scroll { overflow-x: auto; padding-bottom: 4px }
.legend-v { display: flex; flex-wrap: wrap; gap: 6px }
.custom { display: grid; gap: 8px; border-top: 1px dashed var(--rule); padding-top: 10px }
.custom .row2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.custom input { font: 500 .95rem var(--mono); width: 6.5em; color: var(--ink); background: var(--tint); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 8px }
.copy { font: 600 .82rem var(--sans); background: var(--accent); color: var(--sheet); border: 0; border-radius: 6px; padding: 6px 10px; cursor: pointer; justify-self: start }
footer.site { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .82rem; display: grid; gap: 4px }
.heat th, .heat td.num { white-space: nowrap }
.heat th { font-size: .68rem }
.heat td a { font-weight: 600; color: var(--ink) }
/* ---- Platform: analyse a speech ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule) }
.tabs button { font: 600 .9rem var(--sans); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; cursor: pointer; margin-bottom: -1px }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent) }
.composer textarea { width: 100%; font: 400 .95rem/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; resize: vertical }
.composer textarea:focus, .composer select:focus { outline: 2px solid var(--accent); outline-offset: 1px }
.examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px }
.chipbtn { font: 500 .8rem var(--sans); color: var(--ink); background: var(--tint); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; cursor: pointer }
.chipbtn:hover { border-color: var(--accent) }
.opts { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center }
.opts select { font: 500 .9rem var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 8px; max-width: 100% }
.opts .copy { font-size: .95rem; padding: 8px 16px; margin-left: auto }
.grid.an { grid-template-columns: minmax(0, 1fr) minmax(0, 340px) }
@media (max-width: 900px) { .grid.an { grid-template-columns: minmax(0, 1fr) } }
.side { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 18px }
.prompts { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: .92rem }
.gauge { display: grid; gap: 6px }
.gh { display: flex; gap: 10px; align-items: center } .gh b { font-size: 1.05rem }
.gt { position: relative; height: 22px; background: var(--tint); border-radius: 999px; border: 1px solid var(--rule) }
.gt .band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--muted) 16%, transparent) }
.gt .nz { position: absolute; top: 5px; height: 10px; background: color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px }
.gt .mk { position: absolute; top: -4px; width: 4px; height: 28px; margin-left: -2px; background: var(--ink); border-radius: 2px }
.ge { display: flex; justify-content: space-between; gap: 8px }
.pchart { width: 100%; height: auto; display: block; max-width: 900px }
.pchart text { font: 500 10px var(--mono); fill: var(--muted) }
.pchart .grid { stroke: var(--rule); stroke-width: 1 } .pchart .mid { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3 }
.pchart rect.up { fill: var(--accent) } .pchart rect.dn { fill: var(--f-proc) }
.pchart .pbar { cursor: pointer } .pchart .pbar:hover rect.up, .pchart .pbar:hover rect.dn, .pchart .pbar:focus rect.up, .pchart .pbar:focus rect.dn { opacity: .75 }
.pchart .pbar:focus { outline: none }
.drivers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px }
.drivers h4 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted) }
.drow { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 10px; align-items: center; font-size: .9rem; min-height: 24px }
.drow .w { overflow-wrap: anywhere }
.db { height: 10px } .db b { display: block; height: 10px; border-radius: 3px } .db b.up { background: var(--accent) } .db b.dn { background: var(--f-proc) }
.annot { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 8px 18px; max-height: 640px; overflow: auto }
.passage { line-height: 1.75; margin: 10px 0; padding: 6px 8px; border-radius: 8px; transition: background .4s }
.passage.flash { background: var(--tint) }
.pnum { font: 600 .74rem var(--mono); color: var(--muted); margin-right: 6px }
mark { color: inherit; border-radius: 3px; padding: 0 1px }
/* Same colours as the subtitles: warm for words that raise the temperature, blue for those that lower it. */
mark.up { background: color-mix(in srgb, #e5484d var(--a), transparent) }
mark.dn { background: color-mix(in srgb, #4b7bec var(--a), transparent) }
@media (max-width: 600px) {
  .test { grid-template-columns: 26px minmax(0, 1fr) }
  .test .val { grid-column: 2; text-align: left; white-space: normal; overflow-wrap: anywhere }
  .ge span:nth-child(2) { display: none }
  .opts .copy { margin-left: 0 }
}
/* ---- Debate mode ---- */
.files { display: flex; flex-wrap: wrap; gap: 14px }
.files label { display: grid; gap: 4px }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 20px; align-items: start; margin-top: 8px }
@media (max-width: 900px) { .stage { grid-template-columns: minmax(0, 1fr) } }
.screen { display: grid; gap: 10px; min-width: 0 }
.screen video { width: 100%; border-radius: 12px; background: #000; max-height: 420px }
.sim { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 22px; display: grid; gap: 14px; min-height: 180px; align-content: center }
.sim .small, .sim label { color: color-mix(in srgb, var(--paper) 75%, transparent) }
.simclock { font: 600 2rem var(--mono); letter-spacing: .02em }
.simline { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 20%, transparent); position: relative; overflow: hidden }
.simline::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--paper) }
.sim select { font: 500 .85rem var(--sans); border-radius: 6px; padding: 4px 6px }
.caption { min-height: 3.2em; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; font-size: 1.02rem }
.caption b { margin-right: 6px }
.thermo { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; display: grid; gap: 8px; position: sticky; top: 12px }
.thermo h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
.big { display: flex; align-items: baseline; gap: 10px }
#tnum { font: 800 3rem/1 var(--sans); font-variant-numeric: tabular-nums; transition: color .3s }
#tnum.hot { color: var(--bad) }
.gt .thr { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bad); opacity: .7 }
.gt .mk { transition: left .3s }
.feed { display: grid; gap: 8px; max-height: 420px; overflow: auto }
.alert { border: 1px solid var(--rule); border-left: 4px solid var(--muted); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px; background: var(--paper) }
.alert.al-hot { border-left-color: var(--bad) } .alert.al-cold { border-left-color: var(--na) } .alert.al-rapid { border-left-color: var(--warn) }
.alert p { margin: 0 }
.ah { display: flex; justify-content: space-between; gap: 8px; align-items: baseline }
.tlink { font: 600 .78rem var(--mono); color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0 }
.sugg { background: var(--tint); border-radius: 6px; padding: 6px 8px; font-size: .9rem }
.rel { color: var(--muted) }
@media (prefers-reduced-motion: no-preference) { .alert.fresh { animation: pop .6s ease-out } @keyframes pop { from { transform: translateY(-6px); opacity: 0 } to { transform: none; opacity: 1 } } }
.tl { width: 100%; height: auto; display: block }
.tl text { font: 500 10px var(--mono); fill: var(--muted) }
.tl .grid { stroke: var(--rule) } .tl .thr { stroke: var(--bad); stroke-dasharray: 4 3; opacity: .8 } .tl .thrl { fill: var(--bad) }
.tl .turn { fill: var(--c); opacity: .55 } .tl .turn.short { opacity: .25 }
.tl .tline { fill: none; stroke: var(--ink); stroke-width: 2 } .tl .vline { fill: none; stroke: var(--na); stroke-width: 1.5 }
.tl .cursor { stroke: var(--ink); stroke-width: 1.5 }
.tl .al-hot { fill: color-mix(in srgb, var(--bad) 12%, transparent) } .tl .al-cold { fill: color-mix(in srgb, var(--na) 12%, transparent) } .tl .al-rapid { fill: color-mix(in srgb, var(--warn) 16%, transparent) }
#hit { cursor: pointer }
#tlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; margin-bottom: 6px }
#tlegend span { display: inline-flex; align-items: center; gap: 6px }
#tlegend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block }
#tlegend i.lg-hot { background: color-mix(in srgb, var(--bad) 25%, transparent) } #tlegend i.lg-cold { background: color-mix(in srgb, var(--na) 25%, transparent) } #tlegend i.lg-rapid { background: color-mix(in srgb, var(--warn) 30%, transparent) }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px }
.turnp { cursor: pointer } .turnp.now { background: var(--tint); box-shadow: inset 3px 0 0 var(--accent) }
.tl .alb-hot { fill: var(--bad) } .tl .alb-cold { fill: var(--na) } .tl .alb-rapid { fill: var(--warn) }
/* ---- Moderator and citizen views ---- */
.settings { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; margin-bottom: 22px; display: grid; gap: 12px }
.settings summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline }
.settings[open] summary { margin-bottom: 4px }
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 22px }
.sgrid label { display: grid; gap: 6px; align-content: start }
.sl { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: .9rem }
.sl output { font-family: var(--mono); color: var(--accent) }
input[type="range"] { width: 100%; accent-color: var(--accent) }
.spkcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px }
.spk { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--c); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; align-content: start; min-width: 0 }
.spk.alerte { box-shadow: 0 0 0 2px var(--bad); border-color: var(--bad) }
.spk.silence, .spk.moderation { opacity: .72 }
.snum { font: 800 2.2rem/1 var(--sans); font-variant-numeric: tabular-nums }
.spk.alerte .snum, .spk.seuil .snum { color: var(--bad) }
.spk.insuffisant .snum { color: var(--na) }
.gt.sm { height: 12px } .gt.sm .mk { top: -3px; height: 16px } .gt.sm .thr { top: -2px; bottom: -2px }
.prog { height: 8px; border-radius: 999px; background: var(--tint); border: 1px solid var(--rule); overflow: hidden }
.prog b { display: block; height: 100%; background: var(--warn); transition: width .3s }
.spk.alerte .prog b { background: var(--bad) }
#tnum.lowrel { color: var(--na) }
.alert.al-spk { border-left-color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent) }
.alert.al-low { border-left-color: var(--na); border-style: dashed; opacity: .85 }
.alert.done { opacity: .55 }
.ackb { justify-self: start; font-size: .76rem }
.tl .al-low { fill: color-mix(in srgb, var(--na) 8%, transparent) }
.tl .alb-low { fill: var(--na); opacity: .6 }
.tl .tline.low { stroke-dasharray: 3 3; stroke-width: 1.5; opacity: .6 }
#tlegend i.lg-spk { background: none; color: var(--bad); font-style: normal; font-size: .9rem; line-height: 12px; text-align: center }
#tlegend i.lg-low { background: color-mix(in srgb, var(--na) 18%, transparent); outline: 1px dashed var(--na) }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px }
.kpi { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px }
.kpi b { font: 800 1.5rem/1.1 var(--sans); font-variant-numeric: tabular-nums }
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px }
.moment { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--muted); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; align-content: start }
.moment.al-spk { border-left-color: var(--c) } .moment.al-hot { border-left-color: var(--bad) } .moment.al-cold { border-left-color: var(--na) }

/* ---- Control room (régie) and full-screen set layout for filming ---- */
.regie { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px }
.rtop { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center }
.rclock { font: 700 1.8rem/1 var(--mono); letter-spacing: .02em }
.rbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center }
.rbtns .copy { font-size: .95rem; padding: 8px 16px }
kbd { font: 600 .72rem var(--mono); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--paper); color: var(--muted) }
.rnow { font-size: 1.05rem; line-height: 1.5; min-height: 3em; border-left: 3px solid var(--accent); padding-left: 10px }
.rnow b { margin-right: 6px }
.rnext { border-left: 3px solid var(--rule); padding-left: 10px }
.rimpro { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.rspk { display: contents }
.rimpro input { flex: 1 1 260px; min-width: 0; font: 400 .95rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--accent); border-radius: 8px; padding: 7px 10px }
.rexport { display: grid; gap: 8px; border-top: 1px solid var(--rule); padding-top: 10px }
.rexport textarea { width: 100%; font: .78rem/1.4 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 8px }
.rexport input[type="number"] { font: 500 .9rem var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 3px 6px }
body.plateau { font-size: 17px }
body.plateau #top, body.plateau .ph, body.plateau .banner, body.plateau #loader, body.plateau #settings, body.plateau .noplateau,
body.plateau footer.site, body.plateau .rhelp, body.plateau .rexport { display: none !important }
body.plateau .wrap { max-width: none; padding-block: 14px }
body.plateau .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); margin-top: 0 }
body.plateau .caption { font-size: 1.55rem; line-height: 1.4; min-height: 6.5em; padding: 18px 22px }
body.plateau .thermo { position: static }
body.plateau #tnum { font-size: 5rem }
body.plateau .feed { max-height: 52vh }
body.plateau .alert .sugg { font-size: 1.05rem }
body.plateau .block { margin-top: 14px }
body.plateau .block h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
body.plateau .snum { font-size: 3rem }
body.plateau .regie { padding: 10px 14px; gap: 6px }
body.plateau .rnow { font-size: .9rem; min-height: 0 }
@media (max-width: 900px) { body.plateau .stage { grid-template-columns: minmax(0, 1fr) } }
.alert.past { padding: 5px 10px; background: none; opacity: .7; font-size: .84rem; border-left-width: 3px; box-shadow: none }
.pasth { margin-top: 6px }
body.plateau #stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; height: calc(100vh - 28px) }
body.plateau .stage { min-height: 0; height: 100%; align-items: stretch }
body.plateau .screen { min-height: 0; grid-template-rows: auto minmax(0, 1fr); align-content: stretch }
body.plateau .caption { display: flex; align-items: center; min-height: 0; overflow: hidden }
body.plateau .thermo { min-height: 0; display: flex; flex-direction: column }
body.plateau .thermo .feed { flex: 1 1 auto; min-height: 0; max-height: none }
body.plateau #stage > .block { margin-top: 0 }
body.plateau #stage > .block > h2 { display: none }
body.plateau .spk { padding: 10px 12px; gap: 6px }
body.plateau .spk .sugg { display: none }
body.plateau .rnow { display: none }

/* ---- Plateau: on-air picture and moderator side panel ---- */
.pl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 16px; align-items: stretch }
.pl.solo { grid-template-columns: minmax(0, 1fr) } .pl.solo .pl-mod { display: none }
@media (max-width: 900px) { .pl { grid-template-columns: minmax(0, 1fr) } }
.pl-air { display: grid; gap: 10px; min-width: 0; align-content: start }
.pl-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #0b1220; border-radius: 12px; overflow: hidden; color: #f2f5fa; container-type: inline-size; outline: 3px solid transparent; transition: outline-color .4s }
.pl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000 }
.pl-set { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3cqw; padding: 9cqw 4cqw 14cqw;
  background: radial-gradient(120% 90% at 50% 0%, #22345c 0%, #0f1a33 55%, #070c18 100%) }
.pl-tile { flex: 1 1 0; max-width: 22cqw; display: grid; justify-items: center; gap: 1.2cqw; opacity: .55; transition: opacity .3s, transform .3s }
.pl-tile.on { opacity: 1; transform: scale(1.08) }
.pl-av { position: relative; width: 11cqw; height: 11cqw; border-radius: 50%; display: grid; place-items: center; font: 800 3.6cqw var(--sans); color: #fff;
  background: color-mix(in srgb, var(--c) 70%, #0b1220); border: .5cqw solid color-mix(in srgb, var(--c) 60%, #fff) }
.pl-tile.mod .pl-av { width: 8.5cqw; height: 8.5cqw; font-size: 2.8cqw }
.pl-av i { position: absolute; bottom: -1.6cqw; width: .7cqw; height: .8cqw; border-radius: 1cqw; background: #fff; opacity: 0 }
.pl-av i:nth-child(1) { left: 42% } .pl-av i:nth-child(2) { left: 50% } .pl-av i:nth-child(3) { left: 58% }
.pl-tile.on .pl-av i { opacity: .9 }
@media (prefers-reduced-motion: no-preference) { .pl-tile.on .pl-av i { animation: plbar .7s ease-in-out infinite alternate } .pl-tile.on .pl-av i:nth-child(2) { animation-delay: .2s } .pl-tile.on .pl-av i:nth-child(3) { animation-delay: .4s }
  @keyframes plbar { from { transform: scaleY(1) } to { transform: scaleY(2.6) } } }
.pl-tn { font: 600 1.7cqw var(--sans); text-align: center; color: #d9e1ee }
.pl-top { position: absolute; top: 2.2cqw; left: 2.4cqw; right: 2.4cqw; display: flex; align-items: center; gap: 1.4cqw; font: 600 1.6cqw var(--sans) }
.pl-live { background: #d7263d; color: #fff; padding: .3cqw 1cqw; border-radius: .5cqw; font-weight: 800; letter-spacing: .08em }
.pl-title { background: rgba(8, 13, 26, .72); padding: .3cqw 1.1cqw; border-radius: .5cqw }
.pl-clock { margin-left: auto; background: rgba(8, 13, 26, .72); padding: .3cqw 1cqw; border-radius: .5cqw }
.pl-lower { position: absolute; left: 2.4cqw; right: 2.4cqw; bottom: 2.4cqw; display: grid; justify-items: start; gap: 0 }
.pl-name { font: 800 1.7cqw var(--sans); color: #fff; padding: .4cqw 1.2cqw; border-radius: .6cqw .6cqw 0 0; letter-spacing: .02em }
.pl-sub { background: rgba(8, 13, 26, .86); color: #fff; font: 500 2.25cqw/1.35 var(--sans); padding: .9cqw 1.4cqw; border-radius: 0 .8cqw .8cqw .8cqw; max-width: 100%; text-wrap: pretty }
.pl-ctl { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center }
.pl-ctl input[type="range"] { flex: 1 1 160px; min-width: 0 }
.pl-mod { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0 }
.pl-modh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px }
.pl-temp { display: grid; gap: 6px }
.pl-temp .snum.hot { color: var(--bad) } .pl-temp .snum.lowrel { color: var(--na) }
.pl-mod .feed { max-height: none; flex: 1 1 auto; min-height: 60px; overflow: auto; align-content: start }
.pl-quiet { padding: 6px 0 }
.pl-cards { display: grid; gap: 8px }
.pl-card { border: 1px solid var(--rule); border-left: 4px solid var(--c); border-radius: 8px; padding: 8px 10px; display: grid; gap: 4px }
.pl-card.alerte { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) }
.pl-card.silence { opacity: .7 }
.pl-card .snum { font-size: 1.5rem; min-width: 2.2ch } .pl-card.alerte .snum, .pl-card.seuil .snum { color: var(--bad) } .pl-card.insuffisant .snum { color: var(--na) }
.pl-row { display: flex; align-items: center; gap: 10px } .pl-bars { flex: 1; display: grid; gap: 5px }
.pl-card.alerte .prog b { background: var(--bad) }
.pl:not(.solo) .pl-air.alarm .pl-frame { outline-color: var(--bad) }
body.onair .pl { height: calc(100vh - 28px) }
body.onair .pl-air { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; height: 100% }
body.onair .pl-frame { height: 100%; width: auto; max-height: 100%; aspect-ratio: 16 / 9; justify-self: center }
body.onair .pl-mod { font-size: .95rem }
.pl-tn { margin-top: 1.4cqw }

/* ---- Identity: white page, serif headlines, navy and red accents, square corners ---- */
h1, h2, .brand, .card .t, .hero .q b { font-family: var(--serif) }
h1 { font-weight: 700; letter-spacing: -0.005em } h2 { font-size: 1.35rem }
#top { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--rule) }
.brand { font-size: 1.2rem; font-weight: 700 }
.brand::after { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--bad); border-radius: 50%; margin-left: 5px }
nav a { font-weight: 500 } nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--bad) }
.hero { border-bottom: 1px solid var(--rule); padding-bottom: 22px }
.hero h3, .block > h2 { position: relative }
.block > h2 { padding-top: 12px; border-top: 2px solid var(--ink); justify-self: stretch }
.composer, .cert, .thermo, .spk, a.card, .step, .alert, .regie, .settings, .kpi, .moment, .annot, .side, .tbl, .pl-mod, .pl-card, .caption, .sim, .banner, .sugg, pre,
.composer textarea, .screen video, .pl-frame { border-radius: 4px }
.copy, .chipbtn, select, .seg { border-radius: 4px }
.copy { background: var(--accent); color: #fff; font-weight: 600 } .copy:hover { background: #0f2557 }
.chipbtn { background: #fff } .chip { border-radius: 3px; letter-spacing: .04em }
.step { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--accent) }
a.card { border-top: 3px solid var(--accent) } a.card:hover { background: var(--tint) }
.banner { background: var(--tint); border-left-color: var(--accent) }
.sim { background: var(--accent) }
footer.site { border-top: 2px solid var(--ink) }

/* Plateau, simplified: few things, large enough to be read from the room. */
.pl { grid-template-columns: minmax(0, 1fr) minmax(0, 400px) }
.pl-mod { gap: 16px; padding: 18px 20px; border-top: 3px solid var(--accent) }
.pl-lab { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
.pl-temp .snum { font-size: 3.6rem } .pl-lvl { font-size: 1.15rem; font-weight: 600 }
.pl-temp .gt { height: 14px } .pl-temp .gt .mk { height: 22px; top: -5px }
.pl-alert { min-height: 9.5em; display: grid; align-content: start }
.pl-alert .alert { background: var(--bad-bg); border: 0; border-left: 5px solid var(--bad); padding: 14px 16px; gap: 8px; box-shadow: none }
.pl-alert .alert.al-spk { border-left-color: var(--c) }
.pl-alert .alert b { font: 700 1.25rem/1.25 var(--serif) }
.pl-alert .sugg { background: none; padding: 0; font-size: 1.05rem; line-height: 1.4 }
.pl-quiet { color: var(--muted); font-size: 1.05rem; border-left: 5px solid var(--rule); padding: 14px 16px }
@media (prefers-reduced-motion: no-preference) { .pl-alert .alert { animation: pop .5s ease-out } }
.pl-cards { gap: 10px }
.pl-card { padding: 12px 14px; gap: 8px; border-left-width: 5px }
.pl-card b { font-size: 1.05rem }
.pl-card .snum { font-size: 2rem; min-width: 2.4ch }
.pl-row .prog { flex: 1; height: 10px }
.pl-glance { display: grid; gap: 4px }
.pl-gh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px }
.tl.pg text { font-size: 11px } .tl.pg .gz { fill: color-mix(in srgb, var(--bad) 8%, transparent) } .tl.pg .hit { cursor: pointer }
body.onair .pl-air { grid-template-rows: minmax(0, 1fr) auto auto }

.rspk .chipbtn.sel, .rimpro .chipbtn.sel { background: var(--accent); color: #fff; border-color: var(--accent) }
#pmoments tr.now { background: var(--tint); box-shadow: inset 3px 0 0 var(--accent) }
details.block > summary { cursor: pointer; font-weight: 600; color: var(--accent) }
#psrc { margin: 0 0 8px }

/* ---------------------------------------------------------------- analysis page (structure after the Debate Heat prototype) */
.an-hero { padding-bottom: 14px }
.an-bar { gap: 8px }
.an-bar input[type="file"] { font-size: .85rem; max-width: 100% }
.an-chk { display: inline-flex; gap: 6px; align-items: center }
.an-alt { color: var(--muted) }
#pprog { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center } #pprog progress { width: min(100%, 320px) }
.an { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start }
@media (max-width: 960px) { .an { grid-template-columns: minmax(0, 1fr) } }
.an-col { display: grid; gap: 16px; min-width: 0 }
.an-card { background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; min-width: 0 }
.an-player { border-top-color: var(--rule) }
.an-player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000 }
.an-sim { gap: 10px }
.an-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px }
.an-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px }
@media (max-width: 520px) { .an-stats { grid-template-columns: 1fr 1fr } }
.an-stat { display: grid; gap: 2px; align-content: start; border-left: 1px solid var(--rule); padding-left: 10px }
.an-stat:first-child { border-left: 0; padding-left: 0 }
.an-stat .k { font: 700 .7rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
.an-stat .v { font: 800 1.6rem/1.1 var(--sans); font-variant-numeric: tabular-nums }
.an-stat.an-main .v { font-size: 2.6rem; font-family: var(--serif) }
.an-stat .v.hot { color: var(--bad) } .an-stat .v.low { color: var(--na) }
.an-note { margin-top: -2px }
.an-now { font-size: 1.02rem; line-height: 1.8; min-height: 3.6em; max-height: 14em; overflow: auto }
mark.hot { background: color-mix(in srgb, var(--bad) var(--a), transparent); cursor: help }
mark.cool { background: color-mix(in srgb, var(--accent) var(--a), transparent); cursor: help }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center }
.an-legend span { display: inline-flex; align-items: center; gap: 6px }
.an-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block }
.an-legend i.lg-flag { background: color-mix(in srgb, var(--bad) 22%, transparent) }
.an-legend i.lg-dash { height: 0; border-top: 2px dashed var(--muted); border-radius: 0 }
.ramp { width: 110px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, transparent), var(--tint), color-mix(in srgb, var(--bad) 70%, transparent)) }
.an-spk { display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--rule); padding-top: 8px }
.an-sp { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem }
.an-sp i { width: 10px; height: 10px; border-radius: 50%; background: var(--c) }
.an-chart { min-width: 0 }
.tl .an-flag { fill: color-mix(in srgb, var(--bad) 14%, transparent) } .tl .an-low { fill: color-mix(in srgb, var(--na) 9%, transparent) }
.tl .an-a { fill: none; stroke: var(--ink); stroke-width: 1.8 } .tl .an-v { fill: none; stroke: var(--na); stroke-width: 1.5; stroke-dasharray: 5 3 }
.tl .an-a-l { fill: var(--ink) } .tl .an-v-l { fill: var(--na) }
.an-chart svg { cursor: pointer }
.an-m { border-left: 3px solid var(--bad); padding: 6px 10px; margin: 6px 0; border-radius: 0 6px 6px 0; background: var(--sheet) }
.an-m.speaker { border-left-color: var(--c) } .an-m.rapid { border-left-color: var(--warn) } .an-m.low { border-left-color: var(--na); opacity: .8 }
.an-m.now { background: var(--bad-bg) }
.an-m p { margin-top: 2px }
.an-quiet { padding: 6px 0 }
.an-more summary, details.block > summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: .9rem }
.an-more { display: grid; gap: 8px }
.an-more[open] > summary { margin-bottom: 8px }
.an-scroll { max-height: 360px; overflow: auto }
.edrow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline } .edrow select { font-size: .85rem; padding: 2px 6px }
.edtxt { flex: 1 1 320px; min-width: 0; border-bottom: 1px dashed transparent } .edtxt:hover, .edtxt:focus { border-bottom-color: var(--rule); outline: none }
.edrow.now { background: var(--tint); box-shadow: inset 3px 0 0 var(--accent) }
#ped input[type="text"] { font: 400 .9rem var(--sans); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 8px; min-width: min(36ch, 100%) }
#settings input { font: 500 .9rem var(--mono); border: 1px solid var(--rule); border-radius: 6px; padding: 3px 6px }

/* ------------------------------------------------------------------ analysis page: video-centred stage */
body:has(#an) .wrap, body:has(#an) .nav-in { max-width: none; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)) }
body:has(#an) .wrap { padding-block: 0 48px }
.tb { display: grid; gap: 4px; padding-block: 10px 8px; border-bottom: 1px solid var(--rule); margin-bottom: 14px }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0 }
.tb-row .copy { justify-self: auto }
.tb-sep { width: 1px; align-self: stretch; background: var(--rule) }
.tb-file { display: inline-flex; align-items: center; gap: 8px; font: 600 .85rem var(--sans); min-width: 0 }
.tb-file input { font-size: .82rem; max-width: 230px; min-width: 0 }
.tb-more { position: relative; font-size: .85rem }
.tb-more summary { cursor: pointer; color: var(--accent); font-weight: 600 }
.tb-more[open] > label { position: absolute; z-index: 5; top: 1.8em; left: 0; width: 320px; max-width: 80vw; background: var(--sheet); border: 1px solid var(--rule); padding: 10px 12px; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); display: grid; gap: 6px }
.tb-live { margin-left: auto }
.tb-status { gap: 4px 16px } .tb-status:not(:has(#pprog:not([hidden]))) { display: none }
.tb-row > #psrc { flex: 1 1 240px; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right } #pprog progress { width: 160px; vertical-align: middle }

/* The video takes all the width the narrow side box leaves, edge to edge (no white bands); the curve stays
   right below it. On a short screen the curve may sit below the fold: the video comes first. */
.st { --top: 150px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 23vw, 420px); gap: 14px; align-items: start }
.st-main { display: grid; grid-template-rows: auto auto; gap: 10px; min-width: 0; min-height: 0 }
.st-vid { min-width: 0; container-type: inline-size; display: grid }
.st-vid .pl-frame { width: 100%; aspect-ratio: 16 / 9; max-width: none; border-radius: 6px }
#cinema:fullscreen .st-vid { container-type: size; min-height: 0; place-items: center }
#cinema:fullscreen .st-vid .pl-frame { width: min(100cqw, calc(100cqh * 16 / 9)) }
.st-tl { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px 4px; display: grid; gap: 4px; min-width: 0 }
.st-tlh { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px 12px; min-width: 0; white-space: nowrap }
.st-tlh > * { flex: none }
/* The legend stays on one line whatever the number of speakers: it takes the room left and scrolls sideways
   if it needs more, instead of wrapping onto the chart. */
.st-tlh .an-legend { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; justify-content: safe flex-end; overflow-x: auto; scrollbar-width: none; gap: 4px 8px; font-size: .78rem }
.st-tlh .an-legend::-webkit-scrollbar { display: none }
.st-tlh .an-legend span { flex: none; gap: 5px }
.st-ctl { display: inline-flex; gap: 6px; align-items: center } .st-ctl[hidden] { display: none !important }
.st-clock { font: 500 .85rem var(--mono); color: var(--muted) }
.st-lab { font: 700 .74rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
#chartT svg { display: block; width: 100%; height: auto }

/* A column: every block keeps its natural height, only the flagged moments list shrinks and scrolls
   (a grid with a fixed number of rows broke when a block was added or hidden). */
.st-side { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 0; min-width: 0; align-self: stretch;
  background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 6px; padding: 16px 18px }
.sd-temp { display: grid; gap: 6px }
.sd-k { font: 700 .74rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
.sd-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap }
.sd-v { font: 700 clamp(3.4rem, 5.2vw, 5.6rem)/1 var(--serif); font-variant-numeric: tabular-nums; min-width: 2ch }
.sd-v.hot { color: var(--bad) } .sd-v.low { color: var(--na) }
/* "Analyzing…" shown during the first seconds of a video, before the first reading: three dots that pulse in turn. */
.st-side .sd-v.warming, .hud .hud-v.warming { font: 600 clamp(18px, 1.6vw, 28px)/1.2 var(--sans); color: var(--muted); padding-block: .45em; white-space: nowrap }
.hud .hud-v.warming { color: #c7cfdc }
.anz i { font-style: normal; display: inline-block; animation: anz-dot 1.2s infinite ease-in-out both }
.anz i:nth-child(2) { animation-delay: .2s } .anz i:nth-child(3) { animation-delay: .4s }
@keyframes anz-dot { 0%, 80%, 100% { opacity: .15; transform: translateY(0) } 40% { opacity: 1; transform: translateY(-.18em) } }
@media (prefers-reduced-motion: reduce) { .anz i { animation: none; opacity: .7 } }
.sd-row .chip { font-size: .9rem; padding: 3px 9px }
.sd-g { position: relative; height: 10px; border-radius: 999px; background: var(--tint); border: 1px solid var(--rule); overflow: visible }
.sd-g b { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ink); transition: width .4s } .sd-g b.hot { background: var(--bad) }
.sd-g .thr { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--bad); opacity: .7 }
.sd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--rule); padding-top: 12px }
.sd-stats .an-stat:first-child { border-left: 0; padding-left: 0 }
/* Narrow side box: smaller labels and figures so three columns fit ("RELIABILITY" included). */
.sd-stats { gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.25fr) } .sd-stats .an-stat { padding-left: 7px; min-width: 0 }
.sd-stats .an-stat .k { font-size: .6rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.sd-stats .an-stat .v { font-size: 1.35rem }
.st-side .sd-v { font-size: clamp(3rem, 4.2vw, 4.6rem) }
.sd-spk .an-sp { flex-wrap: wrap; gap: 2px 8px } .sd-spk .an-sp .chip { font-size: .62rem }
.sd-spk { display: grid; gap: 6px } .sd-spk:empty { display: none }
.sd-spk .an-sp { justify-content: space-between; border-left: 3px solid var(--c); padding: 4px 8px; background: var(--tint); border-radius: 0 4px 4px 0 }
.sd-spk .an-sp i { display: none } .sd-spk .an-sp b { margin-left: auto; font-size: 1.05rem }
.st-side > * { flex: none } .st-side > [hidden] { display: none }
.sd-meta { margin: 0 } .sd-meta:empty { display: none }
.sd-mom { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 90px; border-top: 1px solid var(--rule); padding-top: 12px }
.sd-mom #moments { flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 4px }

/* Overlays on the video. */
/* Our own video control bar (Chrome's does not let the page catch a click on its full-screen icon): play, time,
   position, sound, full screen = studio mode. Hidden while the video plays and the mouse rests, like Chrome's. */
.vc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; align-items: center; gap: 10px; padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); color: #fff; transition: opacity .25s }
.vc.novideo #vcMute { display: none }
.pl-frame.idle .vc { opacity: 0; pointer-events: none } .pl-frame.idle { cursor: none }
.vc-b { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer }
.vc-b:hover, .vc-b:focus-visible { background: rgba(255, 255, 255, .18); outline: none }
.vc-b svg { width: 22px; height: 22px; fill: currentColor }
#vcFs svg { fill: none }
.vc .i-pause, .vc.playing .i-play, .vc .i-mute, .vc.muted .i-vol, .vc .i-fsx, :fullscreen .vc .i-fs { display: none }
.vc.playing .i-pause, .vc.muted .i-mute, :fullscreen .vc .i-fsx { display: inline }
.vc-t { flex: none; font: 500 13px var(--mono); color: #e8ecf3 }
/* Position bar: what has been watched (and the cursor) in white, what is still to come in a dim dark blue.
   --p (0-100 %) is set by vcSync() in analysis.js. */
.vc-seek { --p: 0%; flex: 1 1 auto; min-width: 40px; height: 16px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none }
.vc-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--p), rgba(52, 72, 122, .55) var(--p)) }
.vc-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(52, 72, 122, .55) }
.vc-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff }
.vc-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18) }
.vc-seek::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0 }
.vc-seek:focus-visible { outline: none } .vc-seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 255, 255, .4) }
.cap { position: absolute; left: 6cqw; right: 6cqw; bottom: 8cqw; z-index: 2; display: grid; justify-items: center; gap: 0; pointer-events: none; text-align: center }
.cap-n { font: 800 max(11px, 1.35cqw) var(--sans); color: #fff; padding: .3cqw 1cqw; border-radius: .4cqw .4cqw 0 0; letter-spacing: .02em }
.cap-t { background: rgba(8, 13, 26, .84); color: #fff; font: 500 max(13px, 2.05cqw)/1.4 var(--sans); padding: .7cqw 1.4cqw; border-radius: .5cqw; max-width: 100%; text-wrap: balance }
.cap mark { color: #fff; border-radius: 2px; padding: 0 .1em }
.cap mark.hot { background: color-mix(in srgb, #e5484d var(--a), transparent) } .cap mark.cool { background: color-mix(in srgb, #4b7bec var(--a), transparent) }
/* Side panel of studio mode: the whole column right of the video, top to bottom (no black left there):
   temperature and its gauge, the six readings, then the speakers, spread over the video's height. */
.hud { display: none; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 0; overflow: hidden;
  background: #0e1320; color: #fff; padding: clamp(12px, 1.4vw, 24px); border-radius: 6px; border-left: 5px solid #9aa4b5 }
.hud.hot { border-left-color: #e5484d } .hud.hot .hud-v { color: #ff8a8d }
.hud-k { display: block; font: 700 clamp(10px, .72vw, 14px) var(--sans); text-transform: uppercase; letter-spacing: .07em; color: #9aa4b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.hud-top { display: grid; gap: 8px }
.hud-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap }
.hud-v { font: 700 clamp(48px, 5.4vw, 120px)/1 var(--serif) } .hud-tag { font: 600 clamp(13px, 1.1vw, 22px) var(--sans); color: #dfe5ee }
.hud-g { position: relative; height: 10px; border-radius: 999px; background: #1b2233; border: 1px solid #2b3346 }
.hud-g b { display: block; height: 100%; width: 0; border-radius: 999px; background: #e8ecf3; transition: width .4s } .hud.hot .hud-g b { background: #e5484d }
.hud-g i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #e5484d }
.hud-st { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.25fr); gap: 8px; border-top: 1px solid #2b3346; padding-top: clamp(10px, 1.2vh, 18px) }
.hud-st > div + div { border-left: 1px solid #2b3346; padding-left: 8px }
.hud-st b { display: block; font: 800 clamp(22px, 2.2vw, 44px)/1.1 var(--sans) }
.hud-st[hidden] { display: none }
.hud-sp { display: grid; gap: 8px; border-top: 1px solid #2b3346; padding-top: clamp(10px, 1.2vh, 18px); font: 500 clamp(13px, 1vw, 20px) var(--sans) } .hud-sp:empty { display: none }
.hud-sp span { display: flex; justify-content: space-between; gap: 12px; border-left: 4px solid var(--c); padding: 4px 0 4px 10px; background: #151c2b }

/* Studio mode (full screen): the video, the temperature box in the column on its right, a thin curve below. */
#cinema:fullscreen { --sheet: #121826; --rule: #2b3346; --ink: #e8ecf3; --muted: #9aa4b5; --tint: #1b2233;
  background: #070a10; color: var(--ink); padding: 10px 14px; gap: 8px 14px; height: 100vh; box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 15vw, 300px); grid-template-rows: minmax(0, 1fr) auto }
#cinema:fullscreen .st-vid { grid-column: 1; grid-row: 1 }
#cinema:fullscreen .hud { display: flex; grid-column: 2; grid-row: 1; align-self: stretch }
#cinema:fullscreen .st-tl { grid-column: 1 / -1; grid-row: 2; background: #0e1320; padding: 4px 12px 0 }
#cinema:fullscreen .copy { background: #2c4a9a }

.dt { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px }
.dt-intro { display: grid; gap: 8px; max-width: 80ch } .dt-intro h1 { margin: 0 }
/* Under the video: intensity/tone and the words stacked on the left, the hottest passages on the right. */
.dt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start }
.dt-col { display: grid; gap: 16px; min-width: 0 }
/* Group rows of the "hottest and coolest passages" table. */
.hc-g td { font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .07em; padding-top: 12px; border-bottom: 2px solid currentColor }
.hc-g.hot td { color: #c8343a } .hc-g.cool td { color: #3b67d0 }

@media (max-width: 1000px) {
  .st { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0 }
  .st-vid { container-type: inline-size } .st-vid .pl-frame { width: 100% }
  .sd-mom #moments { max-height: 50vh }
  .tb-live { margin-left: 0 }
}
@media (max-width: 600px) {
  body:has(#an) .wrap, body:has(#an) .nav-in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
  .tb-sep { display: none } .tb-file { flex-wrap: wrap } .tb-row label { min-width: 0; max-width: 100% } .tb-row select { max-width: 60vw }
  /* Phone: controls on the first line, the legend alone on the second, still one line. */
  .st-tlh { flex-wrap: wrap } .st-tlh .an-legend { flex: 1 1 100%; justify-content: flex-start }
}
.dt-grid .an-card { grid-template-columns: minmax(0, 1fr) } .dt .tbl { overflow-x: auto; max-width: 100% }
.tb select { font-size: .84rem; padding: 3px 6px; background: var(--sheet) } .tb .tb-file input { max-width: 200px } .tb-row { gap: 8px 12px }

/* ------------------------------------------------------------------ Analyze: entry screen */
.entry { display: grid; gap: 26px; justify-items: center; padding-block: 5vh 24px; text-align: center }
.en-head { display: grid; gap: 10px; justify-items: center; max-width: 68ch }
.en-head h1 { font: 700 clamp(2rem, 3.4vw, 3rem)/1.1 var(--serif); margin: 0 }
.en-head .lede { margin: 0 }
.en-box { width: min(100%, 760px); display: grid; gap: 14px; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 6px; padding: 26px clamp(16px, 4vw, 36px) 22px; box-shadow: 0 10px 30px rgba(22, 26, 34, .06) }
.en-drop { display: grid; justify-items: center; gap: 10px; padding: 34px 16px; border: 2px dashed var(--rule); border-radius: 6px; cursor: pointer; transition: border-color .2s, background .2s }
.en-drop:hover, .en-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent) }
.en-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none }
.en-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px }
.en-btn { font: 700 1.1rem var(--sans); color: #fff; background: var(--accent); padding: 14px 30px; border-radius: 4px; letter-spacing: .01em }
.en-drop:hover .en-btn { background: #0f2557 }
.en-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem }
.en-or::before, .en-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule) }
.en-link { display: flex; gap: 8px; min-width: 0 }
.en-link input { flex: 1 1 auto; min-width: 0; font: 500 .95rem var(--sans); padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink) }
.en-link input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent) }
.en-link .copy { padding: 10px 18px; font-size: .92rem }
.en-range { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; max-width: none }
.en-range input { font: 500 .9rem var(--sans); padding: 4px 6px; border: 1px solid var(--rule); border-radius: 4px }
.en-msg { margin: 0 auto; min-height: 1.2em }
.en-lang { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; border-top: 1px solid var(--rule); padding-top: 12px; font-size: .92rem }
.en-lang label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer }
.en-sugg { width: min(100%, 1100px); display: grid; gap: 12px; text-align: left }
.en-sugg h2 { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 }
.en-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px }
.en-card { display: grid; gap: 8px; align-content: start; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 4px; padding: 14px 16px; color: var(--ink); text-decoration: none; min-width: 0 }
.en-card b { font: 700 1.02rem var(--sans) } .en-card span { color: var(--muted); font-size: .9rem }
.en-card em { font-style: normal; font-weight: 600; color: var(--accent) } a.en-card:hover { border-color: var(--accent) }
.en-card a { font-weight: 600; font-size: .9rem; overflow-wrap: anywhere }
/* While a video is watched, every pixel of height goes to the video: tighter page top, title bar and curve box. */
body:has(#an:not([hidden])) .wrap { padding-top: 6px }
body:has(#an:not([hidden])) .tb { padding-block: 4px; margin-bottom: 8px }
.st-main { gap: 8px } .st-tl { padding: 6px 12px 2px; gap: 2px }
/* "How to read it" only on the Analyze entry screen, never while a video is being watched. */
body:not(:has(#entry:not([hidden]))) .howto { display: none }
/* Analyze page: the three test debates first, the user's own video second. */
.en-feat .en-card { padding: 0 0 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(22, 26, 34, .06) } .en-feat .en-card b { font: 700 1.15rem var(--serif) }
.en-feat .en-card > :not(.en-thumb) { margin-inline: 18px }
.en-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b1220; margin-bottom: 4px; overflow: hidden }
.en-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s }
button.en-card:hover .en-thumb img { transform: scale(1.03) }
.en-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(8, 13, 26, .72); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transition: background .2s }
.en-play::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff }
button.en-card:hover .en-play { background: var(--accent) }
.en-feat .en-card .en-dur { position: absolute; right: 8px; bottom: 8px; margin: 0; background: rgba(8, 13, 26, .82); color: #fff; font: 600 .78rem var(--mono); padding: 2px 6px; border-radius: 3px }
/* Your own video: one compact row (file | or | link), then the language. */
.en-own { width: min(100%, 1100px); display: grid; gap: 10px; text-align: left; margin-top: 10px }
.en-own h2 { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 }
.en-own .en-box { width: 100%; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); align-items: center; gap: 10px 16px; padding: 14px 18px; border-top-width: 1px; border-left: 4px solid var(--rule); box-shadow: none }
.en-own .en-drop { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 4px 12px; padding: 10px 12px; text-align: left }
.en-own .en-btn { font-size: .92rem; padding: 9px 16px; grid-row: span 2 }
.en-own .en-or { font-size: .8rem } .en-own .en-or::before, .en-own .en-or::after { display: none }
.en-own .en-range, .en-own .en-msg, .en-own .en-lang { grid-column: 1 / -1 }
.en-own .en-msg:empty { display: none }
.en-own .en-lang { justify-content: flex-start; padding-top: 10px; font-size: .88rem }
@media (max-width: 760px) { .en-own .en-box { grid-template-columns: minmax(0, 1fr) } .en-own .en-or { justify-self: center } }
button.en-card { font: inherit; text-align: left; cursor: pointer; width: 100% } button.en-card:hover { border-color: var(--accent) }
.tb-name { font-size: .95rem; min-width: 0; overflow-wrap: anywhere } .tb-row > #pprog { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap }
.tb-row > #pprog[hidden] { display: none }
body:has(#entry:not([hidden])) .wrap { max-width: 1180px }
body:has(#entry:not([hidden])) #details, body:has(#entry:not([hidden])) #settings { display: none }
.dm .tb-row > #psrc { white-space: normal; text-align: left }
