/* Cinematic presentation layer. Source records and existing behavior are unchanged. */
body.cinema-ui {
  --paper: #0b0e11;
  --surface: #171c21;
  --panel: #151a1f;
  --ink: #f1f4f5;
  --muted: #a2aeb6;
  --faint: #77868e;
  --line: #303a41;
  --green: #a9d8db;
  --soft: #1c3034;
  --blue: #8bbfcf;
  --plum: #b4a8c6;
  --ochre: #c6a778;
  --cinema-cyan: #b9e5e8;
  --cinema-brass: #c6a778;
  --cinema-hairline: rgb(188 216 221 / 13%);
  --cinema-glass: linear-gradient(135deg, rgb(43 52 59 / 53%), rgb(20 25 30 / 86%));
  --cinema-ease: cubic-bezier(.2, .75, .25, 1);
  color-scheme: dark;
  position: relative;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 95% 0%, rgb(94 140 149 / 13%), transparent 43%),
    radial-gradient(ellipse at 15% 65%, rgb(110 91 64 / 5%), transparent 50%),
    linear-gradient(145deg, #12171b, #0b0e11 68%);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

body.cinema-ui::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .064;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

body.cinema-ui::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(169 207 216 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(169 207 216 / 3%) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

body.cinema-ui ::selection { background: #43666d; color: #fff; }
body.cinema-ui [hidden] { display: none !important; }
body.cinema-ui :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--cinema-cyan);
  outline-offset: 4px;
}
body.cinema-ui .app { position: relative; z-index: 1; grid-template-columns: 222px minmax(0, 1fr); }
body.cinema-ui .main-shell { min-width: 0; }
body.cinema-ui .sidebar {
  background: linear-gradient(180deg, rgb(18 23 27 / 96%), rgb(11 15 18 / 97%));
  border-color: var(--cinema-hairline);
  padding: 36px 24px 26px;
}
body.cinema-ui .brand { margin-bottom: 58px; gap: 13px; }
body.cinema-ui .brand-mark { color: var(--cinema-cyan); width: 37px; height: 43px; }
body.cinema-ui .brand > span + span { color: #e6ebec; font-size: 12px; letter-spacing: 1.15px; }
body.cinema-ui .brand small { color: #84959e; letter-spacing: 2.8px; font-size: 8px; margin-top: 9px; }
body.cinema-ui .sidebar-label { color: #8d989c; font-size: 9px; letter-spacing: 2px; margin-bottom: 16px; }
body.cinema-ui .sidebar nav { gap: 9px; }
body.cinema-ui .nav-button {
  position: relative;
  border-radius: 5px;
  border: 1px solid transparent;
  min-height: 47px;
  padding: 13px 12px;
  color: #a7b4bd;
  font-size: 12px;
  transition: background .2s, color .2s, border-color .2s;
}
body.cinema-ui .nav-button .nav-icon { color: #859aa4; font-size: 17px; }
body.cinema-ui .nav-button:hover { background: rgb(145 197 211 / 5%); color: var(--ink); }
body.cinema-ui .nav-button.active {
  color: #e3f3f3;
  border-color: rgb(175 222 230 / 19%);
  background: linear-gradient(90deg, rgb(132 199 207 / 13%), rgb(132 199 207 / 3%));
  box-shadow: inset 2px 0 0 var(--cinema-cyan);
}
body.cinema-ui .nav-button.active .nav-icon { color: var(--cinema-cyan); }
body.cinema-ui .sidebar-rule { border-color: var(--cinema-hairline); }
body.cinema-ui .sidebar-bottom { color: #a1aeb6; padding-top: 40px; }
body.cinema-ui .sidebar-edition { color: #84949d; font-size: 9px; letter-spacing: 1.6px; line-height: 2; }
body.cinema-ui .sidebar-edition strong { color: #c0cbd0; font-weight: 400; letter-spacing: 1px; }
body.cinema-ui .sidebar-bottom :is(a, button) { font-size: 11px; }
body.cinema-ui .sidebar-bottom a { color: #becbd1; }
body.cinema-ui .sidebar-bottom a:hover { color: var(--cinema-cyan); }
body.cinema-ui .sidebar-bottom .nav-button { min-height: 36px; padding: 8px 10px; }
body.cinema-ui .sidebar-bottom .nav-icon { font-size: 14px; }
body.cinema-ui :is(.private-label, .private-dot) { color: #a7b7bf; }
body.cinema-ui :is(.private-label i, .private-dot::before) { background: var(--cinema-brass); box-shadow: none; }

body.cinema-ui .topbar {
  height: 77px;
  padding: 0 clamp(24px, 3.3vw, 58px);
  background: rgb(15 19 23 / 62%);
  border-color: var(--cinema-hairline);
}
body.cinema-ui .topbar-path { color: #9babb4; font-size: 9px; letter-spacing: 1.9px; }
body.cinema-ui .topbar-path span { color: #526771; padding: 0 11px; }
body.cinema-ui .topbar-actions { gap: 22px; }
body.cinema-ui .freshness { color: #a5b3ba; font-size: 10px; }
body.cinema-ui .freshness i { background: #94c1c5; box-shadow: 0 0 9px rgb(148 193 197 / 16%); }
body.cinema-ui .workspace { padding: 42px clamp(24px, 3.3vw, 58px) 34px; }
body.cinema-ui .page-heading { position: relative; isolation: isolate; margin-bottom: 33px; align-items: flex-end; }
body.cinema-ui .page-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 147px;
  top: 50%;
  width: 188px;
  height: 188px;
  border: 1px solid rgb(157 210 220 / 6%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 47%, rgb(157 210 220 / 10%) 47.3% 47.7%, transparent 48% 61%, rgb(157 210 220 / 6%) 61.3% 61.6%, transparent 62%),
    linear-gradient(transparent calc(50% - .5px), rgb(157 210 220 / 4%) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgb(157 210 220 / 4%) 50%, transparent calc(50% + .5px));
  transform: translateY(-50%);
  pointer-events: none;
}
body.cinema-ui .eyebrow { color: #adc1c8; font-size: 10px; letter-spacing: 2.1px; line-height: 1.7; }
body.cinema-ui .eyebrow-rule { background: rgb(198 167 120 / 55%); }
body.cinema-ui .page-heading h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 4.7vw, 74px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -.055em;
  color: #f5f7f7;
  margin: 15px 0 12px;
}
body.cinema-ui :is(.page-heading p, #sender-subtitle) { color: #a8b6bd; font-size: 14px; line-height: 1.7; }
body.cinema-ui .button {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 11px;
  border: 1px solid rgb(169 206 216 / 23%);
  border-radius: 5px;
  color: #d1e0e4;
  background: linear-gradient(135deg, #243139, #1a2329);
  box-shadow: inset 0 1px 0 rgb(223 248 255 / 3%);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
body.cinema-ui .button:hover { color: #f3ffff; border-color: rgb(181 230 233 / 47%); background: #283b44; }
body.cinema-ui .button:active { transform: translateY(1px); }
body.cinema-ui :is(.button.subtle, .button.focus-button) { background: rgb(169 206 216 / 3%); }
body.cinema-ui .button.dark { background: #334b52; border-color: #73949b; color: #fff; }
body.cinema-ui .button.compact { min-height: 35px; }
body.cinema-ui .text-button { color: var(--cinema-cyan); }

body.cinema-ui .sender-tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 4px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--cinema-hairline);
}
body.cinema-ui .sender-tab {
  border-radius: 4px 4px 0 0;
  color: #acbac2;
  font-size: 11px;
  min-height: 47px;
  padding: 14px 15px;
  background: transparent;
  border-color: transparent;
  transition: color .2s, background .2s;
}
body.cinema-ui .sender-tab:hover { background: rgb(167 210 221 / 4%); color: var(--ink); }
body.cinema-ui .sender-tab.active { background: rgb(160 204 210 / 7%); color: #e8f7f7; box-shadow: inset 0 -2px 0 var(--cinema-cyan); }
body.cinema-ui .sender-tab small { color: #aebbc2; font-size: 10px; font-variant-numeric: tabular-nums; }
body.cinema-ui .view-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 23px; min-height: 36px; }
body.cinema-ui .view-tools > :is(p, span) { color: var(--muted); font-size: 11px; margin: 0; }
body.cinema-ui .page-heading .view-tools { margin: 0 0 3px; flex-shrink: 0; }
body.cinema-ui .refine-button { margin-left: auto; background: rgb(167 210 221 / 4%); min-height: 35px; }
body.cinema-ui .refine-button[aria-expanded="true"] { border-color: #87bac2; background: #23383e; }
body.cinema-ui .clear-view { border-color: rgb(198 167 120 / 34%); background: rgb(198 167 120 / 5%); color: #ded0b9; }
body.cinema-ui .clear-view:hover { border-color: #a68d68; background: #393127; color: #f5e7cf; }
body.cinema-ui .filters {
  background: linear-gradient(135deg, #1b252b, #171e23);
  border: 1px solid #3b4a52;
  border-radius: 7px;
  padding: 17px 20px;
  gap: 20px;
  margin-bottom: 24px;
  animation: cinema-refine .25s var(--cinema-ease) both;
}
body.cinema-ui .search-label { color: var(--cinema-cyan); gap: 12px; }
body.cinema-ui .search-label input { font-size: 12px; color: var(--ink); }
body.cinema-ui input::placeholder { color: #9aaab2; opacity: 1; }
body.cinema-ui .filter-selects label > span { color: #a6b5bd; font-size: 9px; }
body.cinema-ui :is(.filter-selects select, .filter-selects input) { font-size: 11px; color: #e5edf0; }
body.cinema-ui .reset-filters { border: 1px solid #465c65; background: #22333b; color: #cae2e7; width: 34px; height: 34px; }
body.cinema-ui .active-filter-summary { color: #b5cbd0; font-size: 12px; }

body.cinema-ui .metrics-grid { gap: 17px; }
body.cinema-ui .metric-card {
  position: relative;
  background: var(--cinema-glass);
  border: 1px solid var(--cinema-hairline);
  border-radius: 9px;
  min-height: 163px;
  padding: 24px 23px 21px;
  box-shadow: 0 12px 35px rgb(0 0 0 / 13%), inset 0 1px 0 rgb(241 250 252 / 3%);
}
body.cinema-ui .metric-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 19px;
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, rgb(181 230 233 / 80%), transparent);
}
body.cinema-ui .metric-card:nth-child(4n)::before { background: linear-gradient(90deg, rgb(198 167 120 / 85%), transparent); }
body.cinema-ui .metric-label { color: #b4c4cc; font-size: 9px; letter-spacing: 1.65px; line-height: 1.5; }
body.cinema-ui .metric-label > span { color: #7e939e; font-size: 9px; }
body.cinema-ui .metric-value {
  color: #f4f7f7;
  font: 400 clamp(38px, 3.65vw, 58px)/1 var(--serif);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  margin: 22px 0 13px;
}
body.cinema-ui .metric-note { color: #a8b7bf; font-size: 11px; line-height: 1.65; }
body.cinema-ui .count-note { color: #99aeb8; font-size: 11px; line-height: 1.8; padding-top: 15px; margin-bottom: 26px; }
body.cinema-ui .scope-note { margin: 11px 0 22px; color: #a5b7c0; }
body.cinema-ui .scope-note > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 29px; color: #a4b9c2; font-size: 11px; cursor: pointer; list-style: none; }
body.cinema-ui .scope-note > summary::-webkit-details-marker { display: none; }
body.cinema-ui .scope-note > summary::before { content: "+"; color: #a2cbd5; font-size: 15px; width: 12px; text-align: center; line-height: 1; }
body.cinema-ui .scope-note[open] > summary::before { content: "−"; }
body.cinema-ui .scope-note > summary:hover { color: #d9eef3; }
body.cinema-ui .scope-note .count-note { max-width: 1000px; margin: 2px 0 7px; padding: 9px 0 4px 20px; border-left: 1px solid #46616c; }
body.cinema-ui .scope-note[open] .count-note { animation: cinema-view-in .25s var(--cinema-ease) both; }

body.cinema-ui .panel {
  position: relative;
  background: linear-gradient(145deg, rgb(31 39 45 / 85%), rgb(20 26 31 / 92%));
  border: 1px solid var(--cinema-hairline);
  border-radius: 10px;
  box-shadow: 0 16px 45px rgb(0 0 0 / 13%), inset 0 1px 0 rgb(241 250 252 / 2%);
  margin-bottom: 23px;
}
body.cinema-ui .timeline-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-left: 1px solid rgb(185 229 232 / 47%);
  border-top: 1px solid rgb(185 229 232 / 47%);
  border-radius: 10px 0 0;
  pointer-events: none;
}
body.cinema-ui .panel-heading { padding: 27px 29px 22px; }
body.cinema-ui .panel-heading h2 { color: #e6edef; font-weight: 400; font-size: 28px; letter-spacing: -.8px; margin-top: 7px; }
body.cinema-ui .panel-heading .eyebrow { color: #91aeb9; font-size: 9px; }
body.cinema-ui :is(.panel-actions select, .sort-label select) {
  background: #202b32;
  border: 1px solid #425660;
  border-radius: 4px;
  color: #d1e0e6;
  font-size: 11px;
  padding: 9px 12px;
}
body.cinema-ui .chart-slot { padding: 0 27px; min-height: 240px; }
body.cinema-ui .chart-slot.short { min-height: 165px; padding-bottom: 20px; }
body.cinema-ui .chart-slot svg text { fill: #a5b8c2; }
body.cinema-ui .chart-slot svg line { stroke: #35424b; }
body.cinema-ui .chart-slot svg .chart-grid { stroke: #303b43; }
body.cinema-ui .chart-slot svg [data-bucket]:hover rect:not([fill="transparent"]) { filter: brightness(1.2); }
body.cinema-ui .chart-caption { padding: 14px 29px 23px; color: #a3b3bc; font-size: 11px; line-height: 1.7; }
body.cinema-ui :is(.chart-scope-note, .chart-legend, .topic-note) { color: #a5b6bf; font-size: 11px; line-height: 1.8; }
body.cinema-ui .timezone-chip { background: #253139; color: #bbd0d9; border-color: #435762; }

body.cinema-ui .record-launcher { margin-top: 31px; padding-top: 4px; }
body.cinema-ui .launcher-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
body.cinema-ui .launcher-heading h2 { margin: 0; font: 400 23px/1.3 var(--serif); letter-spacing: -.6px; color: #d8e4e7; }
body.cinema-ui .launcher-heading :is(p, small) { font-size: 11px; color: var(--muted); margin: 0; }
body.cinema-ui .record-lenses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
body.cinema-ui .record-lenses button[data-panel] {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 9px;
  min-height: 119px;
  padding: 22px 24px;
  overflow: hidden;
  text-align: left;
  color: #e2ecef;
  background: linear-gradient(120deg, #202a31, #161d22);
  border: 1px solid rgb(167 210 221 / 19%);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgb(215 240 246 / 3%);
  transition: transform .25s var(--cinema-ease), border-color .25s, background .25s, box-shadow .25s;
}
body.cinema-ui .record-lenses button[data-panel]::before {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgb(169 216 219 / 47%);
  border-right: 1px solid rgb(169 216 219 / 47%);
  pointer-events: none;
}
body.cinema-ui .record-lenses button[data-panel]::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 29px;
  height: 1px;
  background: #89b5c0;
  transition: width .3s var(--cinema-ease);
}
body.cinema-ui .record-lenses button[data-panel]:last-child::after { background: var(--cinema-brass); }
body.cinema-ui .record-lenses button[data-panel] :is(strong, b, h3) { font: 500 18px/1.2 var(--serif); letter-spacing: -.4px; margin: 0; }
body.cinema-ui .record-lenses button[data-panel] :is(small, p) { color: #a7bac4; font-size: 11px; line-height: 1.5; font-weight: 400; margin: 0; }
body.cinema-ui .record-lenses .lens-mark { color: #91b5c2; font-size: 9px; letter-spacing: 1.8px; line-height: 1; margin-bottom: 3px; }
body.cinema-ui .record-lenses .lens-label { font: 400 18px/1.25 var(--serif); letter-spacing: -.3px; padding-right: 8px; }
body.cinema-ui .record-lenses .lens-label small { display: block; margin-top: 8px; font-family: var(--font); letter-spacing: 0; }
body.cinema-ui .record-lenses .lens-arrow { position: absolute; right: 17px; bottom: 15px; color: #94bec7; font-size: 16px; line-height: 1; }
body.cinema-ui .record-lenses button[data-panel]:hover {
  transform: translateY(-3px);
  border-color: rgb(185 229 232 / 51%);
  background: linear-gradient(120deg, #2b3b44, #1c292f);
  box-shadow: 0 10px 25px rgb(0 0 0 / 19%);
}
body.cinema-ui .record-lenses button[data-panel]:hover::after { width: 65px; }
body.cinema-ui .record-lenses button[data-panel]:active { transform: translateY(0); }

body.cinema-ui .record-panel-dialog {
  width: min(1160px, calc(100vw - 64px));
  max-width: none;
  height: min(840px, calc(100dvh - 76px));
  max-height: calc(100dvh - 76px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 100% 0%, rgb(82 128 138 / 16%), transparent 55%),
    linear-gradient(135deg, #20282e, #141a1f 68%);
  border: 1px solid rgb(171 213 221 / 32%);
  border-radius: 13px;
  box-shadow: 0 40px 110px rgb(0 0 0 / 65%), inset 0 1px 0 rgb(205 237 241 / 6%);
}
body.cinema-ui .record-panel-dialog[open] { display: flex; flex-direction: column; }
body.cinema-ui .record-panel-dialog::backdrop { background: rgb(4 8 11 / 78%); backdrop-filter: blur(13px); }
body.cinema-ui .record-panel-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
  padding: 25px 31px;
  background: rgb(14 20 25 / 56%);
  border-bottom: 1px solid rgb(167 210 221 / 17%);
  box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
  z-index: 1;
}
body.cinema-ui .record-panel-header::before { content: ""; position: absolute; top: 0; left: 31px; height: 1px; width: 77px; background: #9ccbd2; }
body.cinema-ui #record-panel-title { margin: 5px 0 0; font: 400 clamp(27px, 2.7vw, 39px)/1.1 var(--serif); letter-spacing: -.035em; }
body.cinema-ui .record-panel-header .eyebrow { font-size: 9px; color: #9fbec8; }
body.cinema-ui .record-panel-header button { flex-shrink: 0; }
body.cinema-ui .record-panel-header .dialog-close { position: static; align-self: flex-start; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; font-size: 25px; line-height: 1; border: 1px solid #48606b; }
body.cinema-ui #record-panel-scope { color: #abc0ca; font-size: 12px; line-height: 1.6; margin: 10px 0 0; max-width: 820px; }
body.cinema-ui #record-panel-content { padding: 28px 31px 35px; overflow: auto; overscroll-behavior: contain; min-height: 0; scrollbar-width: thin; scrollbar-color: #556d78 #182127; }
body.cinema-ui #record-panel-content > :last-child { margin-bottom: 0; }
body.cinema-ui #record-panel-content .record-patterns { margin-top: 0; padding-top: 0; border-top: 0; }
body.cinema-ui #record-panel-content .chart-pair { gap: 20px; }
body.cinema-ui #record-panel-content .topic-heading { display: none; }
body.cinema-ui #record-panel-content #record-comparisons > .section-heading { justify-content: flex-start; margin: 0 0 17px; }
body.cinema-ui #record-panel-content #record-comparisons > .section-heading > div { display: none; }
body.cinema-ui #record-panel-content #record-comparisons > .section-heading > .topic-note { display: inline-flex; padding: 5px 10px; color: #c9bcaa; background: rgb(198 167 120 / 7%); border: 1px solid rgb(198 167 120 / 18%); border-radius: 4px; font-size: 11px; }
body.cinema-ui .panel-opening { animation: cinema-panel-in .42s var(--cinema-ease) both; }
body.cinema-ui .record-panel-dialog.panel-opening::backdrop { animation: cinema-backdrop-in .32s ease both; }
body.cinema-ui .record-panel-dialog.panel-closing { animation: cinema-panel-out .2s ease-in both; pointer-events: none; }
body.cinema-ui .record-panel-dialog.panel-closing::backdrop { animation: cinema-backdrop-out .2s ease-in both; }
body.cinema-ui .view-enter { animation: cinema-view-in .44s var(--cinema-ease) both; }

body.cinema-ui :is(.section-heading h2, .historical-banner h2, .method-panel h2) { color: #eef3f4; letter-spacing: -.8px; }
body.cinema-ui :is(.historical-banner, .topic-card, .coverage-card, .reaction-reading, .reaction-quote, .exchange-card, .evidence-rule) {
  background: var(--cinema-glass);
  border-color: var(--cinema-hairline);
  box-shadow: inset 0 1px 0 rgb(221 242 246 / 3%);
}
body.cinema-ui .historical-banner { border-radius: 8px; padding: 27px; }
body.cinema-ui .historical-banner p { color: var(--muted); font-size: 12px; }
body.cinema-ui .historical-metrics .metric-value { color: #e0eaed; font-size: 42px; }
body.cinema-ui :is(.topic-card .topic-count, #historical-topics .topic-count) { color: #ddecef; }
body.cinema-ui :is(.topic-card h3, #historical-topics h3) { color: #d4e1e6; font-size: 13px; }
body.cinema-ui :is(.topic-card p, #historical-topics p) { color: #acbdc5; font-size: 11px; line-height: 1.75; }
body.cinema-ui .current-topic { border-color: #49636e; }
body.cinema-ui :is(.historical-section, .comparison-details, .evidence-details) { border-color: var(--cinema-hairline); }
body.cinema-ui :is(.method-card, .coverage-note) { background: #1e262b; color: #b9c6cb; border-color: #3b484e; font-size: 12px; }
body.cinema-ui .method-card h3 { color: #dee7e9; }
body.cinema-ui .coverage-warning { color: #d6bb91; background: #2e2a24; border-color: #514638; }
body.cinema-ui :is(.coverage-badge, .verification-chip) { background: #283b3d; color: #c7e3e4; border-color: #465e63; }
body.cinema-ui :is(.coverage-badge.partial, .verification-chip.legacy) { background: #363027; color: #e0c399; border-color: #655438; }
body.cinema-ui :is(.coverage-metrics dt, .method-panel dt) { color: #a9bdc6; font-size: 11px; }
body.cinema-ui :is(.coverage-metrics dd, .method-panel dd) { color: #cad4d9; font-size: 12px; }
body.cinema-ui :is(.coverage-metrics > div, .method-panel dl > div) { border-color: var(--cinema-hairline); }
body.cinema-ui :is(.section-heading p, .coverage-card p) { color: #b3c1c8; font-size: 12px; }

body.cinema-ui .reaction-intro h2 { color: #f2f6f7; font-size: clamp(43px, 4.7vw, 74px); font-weight: 400; letter-spacing: -.05em; }
body.cinema-ui .reaction-intro p { color: #abbac2; font-size: 14px; }
body.cinema-ui .reaction-phase { background: var(--cinema-glass); border-top-color: #8cbec5; border-radius: 0 0 7px 7px; }
body.cinema-ui .reaction-phase:nth-child(3) { border-top-color: var(--cinema-brass); }
body.cinema-ui .reaction-phase blockquote { color: #c3d6dd; }
body.cinema-ui :is(.reaction-source, .reaction-point-title, .reaction-source-button) { color: var(--cinema-cyan); }
body.cinema-ui .reaction-source:hover { color: #ecffff; }
body.cinema-ui :is(.reaction-coverage-line, .phase-source-date, .reaction-source-account, .sent-legend) { color: #a9bbc4; font-size: 11px; }
body.cinema-ui .reaction-topic { background: #1a2329; border-color: #384951; color: #c7d5db; min-height: 49px; transition: border-color .2s, background .2s; }
body.cinema-ui .reaction-topic:hover { border-color: #749daa; background: #24353e; }
body.cinema-ui .reaction-topic.active { background: #2a4147; border-color: #8bbfc7; color: #effcfc; }
body.cinema-ui .reaction-reading { border-radius: 10px; padding: 31px; border-color: #44616b; }
body.cinema-ui .reaction-quote { background: #151f25; border-radius: 7px; border-color: #364b55; padding: 27px; }
body.cinema-ui .reaction-quote blockquote { color: #e6edf0; font-size: 16px; line-height: 1.85; }
body.cinema-ui .reaction-quote-meta { color: #aabdc6; border-color: #3d515b; }
body.cinema-ui .exchange-card { border-color: rgb(198 167 120 / 24%); }
body.cinema-ui .reaction-related { color: #bdd5d9; border-color: #354b55; }
body.cinema-ui .reaction-related-source { background: #26383f; border-color: #49626a; color: #d3e7e9; }
body.cinema-ui .comparison-grid { border-color: #3b4c55; background: #3b4c55; border-radius: 9px; }
body.cinema-ui .comparison-quote { background: linear-gradient(135deg, #202a30, #171f25); }
body.cinema-ui .comparison-quote blockquote { color: #e1ebee; }
body.cinema-ui .evidence-rule { border-color: #435660; }
body.cinema-ui :is(.comparison-details summary, .acting-source-details summary, .evidence-details summary) { color: #b4c9d2; }
body.cinema-ui .acting-source-row { border-color: var(--cinema-hairline); }
body.cinema-ui .context-fold { margin: 24px 0; border: 1px solid #354650; border-radius: 8px; background: linear-gradient(135deg, #1e282f, #171f25); overflow: hidden; }
body.cinema-ui .context-fold > summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 25px; color: #d6e6eb; font: 400 19px/1.3 var(--serif); letter-spacing: -.3px; cursor: pointer; list-style: none; transition: color .2s, background .2s; }
body.cinema-ui .context-fold > summary::-webkit-details-marker { display: none; }
body.cinema-ui .context-fold > summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 27px; height: 27px; font: 300 21px/1 var(--font); color: #a4cdd7; border: 1px solid #47616d; border-radius: 50%; transition: transform .25s var(--cinema-ease); }
body.cinema-ui .context-fold > summary:hover { color: #f2fdff; background: rgb(167 210 221 / 4%); }
body.cinema-ui .context-fold[open] { border-color: #587681; }
body.cinema-ui .context-fold[open] > summary { border-bottom: 1px solid #3a505b; background: rgb(167 210 221 / 5%); }
body.cinema-ui .context-fold[open] > summary::after { transform: rotate(45deg); }
body.cinema-ui .context-fold > :not(summary) { margin: 24px; }
body.cinema-ui .context-fold[open] > :not(summary) { animation: cinema-view-in .3s var(--cinema-ease) both; }

body.cinema-ui .email-table-heading { color: #a1b4be; border-color: var(--cinema-hairline); font-size: 9px; letter-spacing: 1.2px; }
body.cinema-ui :is(.email-row, .reaction-mail) { background: rgb(28 38 45 / 53%); border-color: var(--cinema-hairline); }
body.cinema-ui :is(.email-row, .reaction-mail):hover { background: #26373f; border-color: #527584; }
body.cinema-ui .email-date { color: #cfdee5; }
body.cinema-ui :is(.email-date small, .email-excerpt, .reaction-mail-excerpt, .reaction-mail-audience) { color: #a5b8c2; }
body.cinema-ui :is(.email-subject, .reaction-mail-subject) { color: #e0eaee; font-size: 13px; }
body.cinema-ui .email-source { color: #aecbd4; }
body.cinema-ui .source-reference-link { color: #cce6ea; border-color: #42626c; background: #223740; font-size: 11px; }
body.cinema-ui .source-reference-link:hover { background: #35535d; border-color: #7bb5bf; }
body.cinema-ui .email-dialog {
  background: linear-gradient(140deg, #242e35, #151e25);
  border: 1px solid #698b98;
  color: #e1ecf0;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgb(0 0 0 / 60%);
}
body.cinema-ui .email-dialog::backdrop { background: rgb(4 8 11 / 79%); backdrop-filter: blur(12px); }
body.cinema-ui .dialog-close { color: #c9e1e6; background: rgb(145 194 207 / 7%); border-radius: 50%; }
body.cinema-ui .dialog-close:hover { background: #38535d; }
body.cinema-ui .message-content > h2 { color: #f0f5f7; }
body.cinema-ui .email-headers { border-color: #48606c; }
body.cinema-ui .email-headers dt { color: #adc7d1; }
body.cinema-ui .email-headers dd { color: #d6e1e6; }
body.cinema-ui .email-body { color: #dde8ed; background: #15242c; border-color: #3d5663; }
body.cinema-ui .source-header-details { border-color: #45606e; }
body.cinema-ui .source-header-details > summary { color: #b5ccd5; }
body.cinema-ui .email-text-note { color: #afc0c9; }
body.cinema-ui .toast { color: #e6f5f6; background: #253b43; border: 1px solid #7197a1; box-shadow: 0 12px 45px #0008; }
body.cinema-ui .workspace-footer { padding: 22px clamp(24px, 3.3vw, 58px); color: #9babb3; border-color: var(--cinema-hairline); font-size: 9px; letter-spacing: 1px; }
body.cinema-ui .workspace-footer i { color: var(--cinema-brass); }
body.cinema-ui .workspace-footer { gap: 20px; flex-wrap: wrap; }
body.cinema-ui .footer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; margin-left: auto; }
body.cinema-ui .footer-tools :is(a, button) { display: inline-flex; align-items: center; min-height: 31px; padding: 3px 0; color: #bccbd2; background: transparent; font: 400 11px/1.5 var(--font); letter-spacing: 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
body.cinema-ui .footer-tools :is(a, button):hover { color: #e4f8fa; border-bottom-color: #7cabb6; }
body.cinema-ui .footer-tools button.active { color: var(--cinema-cyan); border-bottom-color: #7cabb6; }
body.cinema-ui .footer-snapshot { color: #9ba9b0; font-size: 9px; white-space: nowrap; }
body.cinema-ui .recording-view { background: var(--paper); }
body.cinema-ui .recording-topbar { background: #151e24; border-color: var(--line); }
body.cinema-ui .recording-content { color: var(--ink); }
body.cinema-ui .app.focus-mode .page-heading h1 { font-size: clamp(49px, 5vw, 78px); }
body.cinema-ui .app.focus-mode .metric-value { font-size: clamp(42px, 4vw, 63px); }
body.cinema-ui .app.focus-mode .metric-note { font-size: 12px; }

@keyframes cinema-panel-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cinema-panel-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(.99); }
}
@keyframes cinema-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cinema-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cinema-view-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cinema-refine { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  body.cinema-ui .workspace { padding-top: 52px; }
  body.cinema-ui .metric-card { min-height: 183px; padding: 27px; }
  body.cinema-ui .metric-value { margin-top: 25px; font-size: 62px; }
  body.cinema-ui .chart-slot { min-height: 270px; }
}
@media (max-width: 1180px) {
  body.cinema-ui .page-heading::after { display: none; }
  body.cinema-ui .app { grid-template-columns: 195px minmax(0, 1fr); }
  body.cinema-ui .sidebar { padding: 32px 17px 24px; }
  body.cinema-ui .workspace { padding: 33px 28px; }
  body.cinema-ui .topbar { padding: 0 28px; }
  body.cinema-ui .metric-card { padding: 21px 18px; }
  body.cinema-ui .metric-label { letter-spacing: 1.1px; font-size: 9px; }
  body.cinema-ui .metric-note { font-size: 10px; }
  body.cinema-ui .record-lenses { gap: 10px; }
  body.cinema-ui .record-lenses button[data-panel] { padding: 20px 18px; min-height: 115px; }
  body.cinema-ui .record-lenses button[data-panel] :is(strong, b, h3) { font-size: 16px; }
  body.cinema-ui .record-lenses .lens-label { font-size: 16px; }
  body.cinema-ui .record-lenses button[data-panel]::after { left: 18px; }
}
@media (max-width: 900px) {
  body.cinema-ui .metrics-grid { gap: 12px; }
  body.cinema-ui .metric-card { min-height: 154px; }
  body.cinema-ui .metric-value { font-size: 41px; }
  body.cinema-ui .record-lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.cinema-ui .record-lenses button[data-panel] { min-height: 105px; }
  body.cinema-ui .filters { flex-wrap: wrap; }
  body.cinema-ui .filter-selects { width: 100%; padding-top: 13px; border-top: 1px solid #354953; }
  body.cinema-ui .record-panel-dialog { width: calc(100vw - 40px); height: calc(100dvh - 46px); max-height: calc(100dvh - 46px); }
  body.cinema-ui .record-panel-header { padding: 23px 25px; }
  body.cinema-ui #record-panel-content { padding: 25px; }
}
@media (max-width: 760px) {
  body.cinema-ui .app { display: block; }
  body.cinema-ui .sidebar { display: block; position: relative; height: auto; padding: 20px 23px 13px; border-right: 0; border-bottom: 1px solid var(--cinema-hairline); background: #10161b; }
  body.cinema-ui .brand { margin: 0 0 16px; gap: 10px; }
  body.cinema-ui .brand-mark { width: 30px; height: 33px; }
  body.cinema-ui .brand > span + span { font-size: 11px; }
  body.cinema-ui .brand small { font-size: 7px; margin-top: 5px; }
  body.cinema-ui .sidebar nav { flex-direction: row; gap: 7px; overflow-x: auto; }
  body.cinema-ui .nav-button { flex: 1; width: auto; justify-content: center; min-height: 43px; padding: 11px 10px; font-size: 11px; white-space: nowrap; }
  body.cinema-ui .nav-button.active { box-shadow: inset 0 -2px 0 var(--cinema-cyan); }
  body.cinema-ui .nav-button .nav-icon { font-size: 14px; width: 14px; }
  body.cinema-ui .sidebar-label { display: none; }
  body.cinema-ui .sidebar-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; padding-top: 14px; margin: 0; }
  body.cinema-ui .sidebar-bottom :is(.sidebar-rule, .sidebar-edition, .private-label) { display: none; }
  body.cinema-ui .sidebar-bottom :is(a, button) { font-size: 10px; }
  body.cinema-ui .sidebar-bottom .nav-button { flex: none; width: auto; min-height: 28px; padding: 3px 0; border: 0; }
  body.cinema-ui .sidebar-bottom .nav-button.active { box-shadow: none; background: transparent; color: var(--cinema-cyan); }
  body.cinema-ui .sidebar-bottom .nav-icon { display: none; }
  body.cinema-ui .topbar { height: 56px; padding: 0 23px; }
  body.cinema-ui .topbar-path { font-size: 8px; letter-spacing: 1.4px; }
  body.cinema-ui .topbar-actions { gap: 13px; }
  body.cinema-ui .freshness { font-size: 9px; }
  body.cinema-ui .workspace { padding: 29px 23px 30px; }
  body.cinema-ui .page-heading { gap: 13px; margin-bottom: 25px; }
  body.cinema-ui .page-heading h1 { font-size: 53px; margin-top: 14px; }
  body.cinema-ui .page-heading p { font-size: 12px; }
  body.cinema-ui .eyebrow { font-size: 9px; letter-spacing: 1.6px; }
  body.cinema-ui .sender-tabs { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #445c68 transparent; }
  body.cinema-ui .sender-tab { flex: none; min-width: 145px; font-size: 11px; padding: 13px 14px; }
  body.cinema-ui .sender-tab:first-child { min-width: 117px; }
  body.cinema-ui .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  body.cinema-ui .metric-card { padding: 23px 21px; min-height: 156px; }
  body.cinema-ui .metric-label { font-size: 9px; }
  body.cinema-ui .metric-value { font-size: 49px; margin: 20px 0 13px; }
  body.cinema-ui .metric-note { font-size: 11px; }
  body.cinema-ui .count-note { margin-bottom: 24px; font-size: 10px; }
  body.cinema-ui .panel-heading { padding: 23px 23px 19px; }
  body.cinema-ui .panel-heading h2 { font-size: 26px; }
  body.cinema-ui .chart-slot { min-height: 210px; padding: 0 20px; }
  body.cinema-ui .chart-caption { padding: 13px 23px 20px; font-size: 10px; }
  body.cinema-ui .record-lenses button[data-panel] { padding: 23px; min-height: 117px; }
  body.cinema-ui .record-lenses button[data-panel] :is(strong, b, h3) { font-size: 18px; }
  body.cinema-ui .record-lenses .lens-label { font-size: 18px; }
  body.cinema-ui .record-lenses button[data-panel]::after { left: 23px; }
  body.cinema-ui .launcher-heading { align-items: flex-start; }
  body.cinema-ui .launcher-heading h2 { font-size: 22px; }
  body.cinema-ui .launcher-heading :is(p, small) { max-width: 180px; }
  body.cinema-ui .reaction-reading { padding: 25px; }
  body.cinema-ui .reaction-quote { padding: 25px; }
  body.cinema-ui .workspace-footer { padding: 21px 23px; }
  body.cinema-ui .footer-tools { margin-left: 0; }
  body.cinema-ui .footer-snapshot { display: none; }
  body.cinema-ui .app.focus-mode .workspace { padding: 29px 23px; }
}
@media (max-width: 540px) {
  body.cinema-ui .sidebar { padding: 18px 17px 12px; }
  body.cinema-ui .nav-button { font-size: 10px; gap: 7px; min-height: 42px; padding: 10px 7px; }
  body.cinema-ui .sidebar-bottom { gap: 5px 14px; padding-top: 11px; }
  body.cinema-ui .topbar { padding: 0 17px; }
  body.cinema-ui .topbar:has(.clear-view:not([hidden])) { min-height: 77px; height: auto; padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap; gap: 8px; }
  body.cinema-ui .topbar:has(.clear-view:not([hidden])) .topbar-actions { width: 100%; justify-content: space-between; }
  body.cinema-ui .topbar .button { font-size: 9px; padding: 8px 10px; min-height: 34px; }
  body.cinema-ui .freshness { max-width: 145px; }
  body.cinema-ui .freshness > span { white-space: normal; font-size: 8px; line-height: 1.5; }
  body.cinema-ui .workspace { padding: 28px 17px; }
  body.cinema-ui .page-heading h1 { font-size: 44px; }
  body.cinema-ui .page-heading .button { padding: 9px 11px; font-size: 10px; }
  body.cinema-ui .view-tools { margin-bottom: 18px; }
  body.cinema-ui .filters { padding: 16px; gap: 15px; }
  body.cinema-ui .filter-selects { gap: 15px; }
  body.cinema-ui .filter-selects :is(select, input) { min-height: 28px; width: 100%; }
  body.cinema-ui .metric-card { padding: 20px 16px; min-height: 145px; }
  body.cinema-ui .metric-label { font-size: 8px; letter-spacing: .9px; }
  body.cinema-ui .metric-value { font-size: clamp(37px, 11vw, 49px); letter-spacing: -.06em; }
  body.cinema-ui .metric-note { font-size: 10px; }
  body.cinema-ui .metrics-grid { gap: 10px; }
  body.cinema-ui .panel-heading { padding: 22px 20px 18px; }
  body.cinema-ui .panel-heading h2 { font-size: 26px; }
  body.cinema-ui .chart-slot { padding: 0 15px; min-height: 185px; }
  body.cinema-ui .chart-caption { padding: 13px 20px 19px; }
  body.cinema-ui .chart-pair { grid-template-columns: 1fr; gap: 0; }
  body.cinema-ui .launcher-heading { flex-direction: column; gap: 6px; }
  body.cinema-ui .launcher-heading :is(p, small) { max-width: none; }
  body.cinema-ui .record-lenses { gap: 10px; }
  body.cinema-ui .record-lenses button[data-panel] { padding: 21px 17px; min-height: 114px; gap: 8px; }
  body.cinema-ui .record-lenses button[data-panel] :is(strong, b, h3) { font-size: 17px; }
  body.cinema-ui .record-lenses .lens-label { font-size: 17px; }
  body.cinema-ui .record-lenses button[data-panel] :is(small, p) { font-size: 10px; }
  body.cinema-ui .record-lenses button[data-panel]::after { left: 17px; }
  body.cinema-ui .record-panel-dialog { width: calc(100vw - 18px); height: calc(100dvh - 22px); max-height: calc(100dvh - 22px); border-radius: 10px; }
  body.cinema-ui .record-panel-header { padding: 21px 18px; gap: 15px; }
  body.cinema-ui .record-panel-header::before { left: 18px; }
  body.cinema-ui #record-panel-title { font-size: 29px; }
  body.cinema-ui .record-panel-header .button { min-height: 39px; padding: 10px; font-size: 10px; }
  body.cinema-ui #record-panel-content { padding: 21px 16px 28px; }
  body.cinema-ui #record-panel-content .chart-pair { gap: 0; }
  body.cinema-ui .historical-banner { padding: 22px 19px; }
  body.cinema-ui .historical-metrics .metric-value { font-size: 36px; }
  body.cinema-ui .reaction-intro h2 { font-size: 44px; }
  body.cinema-ui .reaction-reading { padding: 22px 18px; }
  body.cinema-ui .reaction-quote { padding: 22px 19px; }
  body.cinema-ui .reaction-quote blockquote { font-size: 15px; line-height: 1.8; }
  body.cinema-ui .reaction-topic { font-size: 12px; padding: 15px; }
  body.cinema-ui .context-fold > summary { padding: 20px 18px; font-size: 17px; }
  body.cinema-ui .context-fold > :not(summary) { margin: 21px 17px; }
  body.cinema-ui .email-dialog { padding: 29px 21px; border-radius: 10px; }
  body.cinema-ui .email-headers > div { grid-template-columns: 86px minmax(0, 1fr); }
  body.cinema-ui .email-table-heading { letter-spacing: .6px; font-size: 8px; }
  body.cinema-ui .email-subject { font-size: 12px; }
  body.cinema-ui .workspace-footer { padding: 19px 17px; font-size: 8px; }
  body.cinema-ui .footer-tools { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; }
  body.cinema-ui .app.focus-mode .workspace { padding: 28px 17px; }
  body.cinema-ui .app.focus-mode .page-heading h1 { font-size: 46px; }
  body.cinema-ui .app.focus-mode .metric-value { font-size: clamp(38px, 11vw, 49px); }
}
@media (prefers-reduced-motion: reduce) {
  body.cinema-ui *, body.cinema-ui *::before, body.cinema-ui *::after,
  body.cinema-ui .record-panel-dialog::backdrop {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  body.cinema-ui .record-lenses button[data-panel]:hover { transform: none; }
}

/* One selected source statistic occupies the stage; the other views retain their cards. */
body.cinema-ui .stat-stage {
  position: relative;
  padding: 8px 0 15px;
  margin: 5px 0 15px;
  text-align: center;
}
body.cinema-ui .stat-stage-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 3px;
}
body.cinema-ui .stat-stage-heading::before,
body.cinema-ui .stat-stage-heading::after {
  content: "";
  width: 31px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #688b96);
  opacity: .55;
}
body.cinema-ui .stat-stage-heading::after { transform: rotate(180deg); }
body.cinema-ui .stat-stage-heading h2 {
  margin: 0;
  color: #b9cdd5;
  font: 400 15px/1.5 var(--serif);
  letter-spacing: .2px;
}
body.cinema-ui .metric-dial-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 67px);
  min-height: 314px;
  margin: 0 auto 9px;
  padding: 12px 0;
}
body.cinema-ui .metric-cycle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #a8c5d0;
  background: rgb(142 198 212 / 3%);
  border: 1px solid #3b555f;
  border-radius: 50%;
  font: 400 21px/1 var(--font);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
body.cinema-ui .metric-cycle svg { width: 18px; height: 18px; }
body.cinema-ui .metric-cycle:hover {
  color: #e9feff;
  border-color: #86bac6;
  background: #243c45;
}
body.cinema-ui .metric-cycle:active { transform: scale(.96); }
body.cinema-ui .metric-cycle:disabled { opacity: .35; cursor: default; }
body.cinema-ui .metric-dial {
  position: relative;
  flex: 0 0 290px;
  width: 290px;
  height: 290px;
  isolation: isolate;
  border-radius: 50%;
}
body.cinema-ui .metric-dial::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(101 182 189 / 12%) 0, rgb(86 149 160 / 6%) 42%, transparent 68%);
  pointer-events: none;
}
body.cinema-ui .metric-dial::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 35%, #22333b77, #111a2199 64%, #0b111566);
  box-shadow: inset 0 0 27px rgb(137 209 215 / 4%), 0 0 41px rgb(69 151 165 / 6%);
  pointer-events: none;
}
body.cinema-ui .dial-orbit {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  color: #8ed0d5;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgb(115 224 229 / 10%));
  pointer-events: none;
}
body.cinema-ui .dial-orbit line { stroke: currentColor; stroke-width: .8; opacity: .34; }
body.cinema-ui .dial-orbit line:nth-of-type(5n + 1) { stroke: #c6a778; stroke-width: 1.15; opacity: .74; }
body.cinema-ui .dial-orbit circle { fill: none; stroke: currentColor; stroke-width: .75; opacity: .3; }
body.cinema-ui .dial-orbit circle:nth-of-type(1) { stroke-width: 1.1; opacity: .58; }
body.cinema-ui .dial-orbit circle:nth-of-type(2) { stroke: #c6a778; opacity: .38; }
body.cinema-ui .dial-orbit circle:nth-of-type(3) { stroke: #d5f3f5; opacity: .17; }
body.cinema-ui #metric-dial-value {
  position: absolute;
  inset: 34px;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
}
body.cinema-ui #metric-dial-value .metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 10px 2px 7px;
  color: #e8f4f7;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}
body.cinema-ui #metric-dial-value .metric-card::before { display: none; }
body.cinema-ui #metric-dial-value .metric-label {
  display: block;
  color: #b4d1da;
  font-size: 9px;
  letter-spacing: 1.7px;
  line-height: 1.6;
}
body.cinema-ui #metric-dial-value .metric-label > span { display: none; }
body.cinema-ui #metric-dial-value .metric-value {
  color: #f1ffff;
  font: 400 73px/1.03 var(--serif);
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
  margin: 15px 0 12px;
  text-shadow: 0 0 23px rgb(144 233 238 / 13%);
}
body.cinema-ui #metric-dial-value .metric-note {
  max-width: 202px;
  color: #a5bec9;
  font-size: 10px;
  line-height: 1.6;
  margin: 0 auto;
}
body.cinema-ui .dial-placeholder {
  position: absolute;
  inset: 32px;
  display: grid;
  place-items: center;
  color: #9eb9c5;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
body.cinema-ui .metric-dial.dial-hidden::before,
body.cinema-ui .metric-dial.dial-hidden::after,
body.cinema-ui .metric-dial.dial-hidden .dial-orbit { opacity: 0; }
body.cinema-ui .metric-dial.dial-hidden #metric-dial-value { visibility: hidden; }
body.cinema-ui .metric-dial.dial-hidden .dial-placeholder { opacity: 1; }
body.cinema-ui .dial-selectors {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin: 3px auto 0;
}
body.cinema-ui .dial-selectors button[data-dial] {
  min-height: 35px;
  padding: 7px 10px;
  color: #a0b8c4;
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: #3a505c;
  border-radius: 3px 3px 0 0;
  font-size: 11px;
  line-height: 1.5;
  transition: color .2s, border-color .2s, background .2s;
}
body.cinema-ui .dial-selectors button[data-dial]:hover { color: #d4edf3; background: rgb(136 209 221 / 4%); border-bottom-color: #7dabb9; }
body.cinema-ui .dial-selectors button[data-dial].active {
  color: #e2f6f8;
  background: rgb(137 207 215 / 5%);
  border-bottom-color: #a7e0e4;
  box-shadow: 0 5px 12px -7px rgb(149 234 239 / 44%);
}
body.cinema-ui .dial-clear {
  display: block;
  min-height: 31px;
  margin: 13px auto 0;
  padding: 5px 10px;
  color: #99b1bd;
  background: transparent;
  border: 0;
  font-size: 10px;
  line-height: 1.5;
  transition: color .2s;
}
body.cinema-ui .dial-clear:hover { color: #d6c5a9; }
body.cinema-ui .dial-arriving { animation: cinema-dial-arrive .36s var(--cinema-ease) both; }
body.cinema-ui .dial-leaving { animation: cinema-dial-leave .36s cubic-bezier(.4, 0, .65, 1) both; pointer-events: none; }
body.cinema-ui .dial-arriving .dial-orbit { animation: cinema-orbit-arrive .36s var(--cinema-ease) both; }
body.cinema-ui .dial-leaving .dial-orbit { animation: cinema-orbit-leave .36s ease-in both; }
body.cinema-ui .record-lenses { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.cinema-ui .record-lenses button[data-panel] { min-height: 127px; }

@keyframes cinema-dial-arrive {
  from { opacity: 0; transform: translateX(-30px) scale(.94); filter: blur(5px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@keyframes cinema-dial-leave {
  from { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateX(34px) scale(.94); filter: blur(5px); }
}
@keyframes cinema-orbit-arrive { from { transform: rotate(-12deg); } to { transform: rotate(0); } }
@keyframes cinema-orbit-leave { from { transform: rotate(0); } to { transform: rotate(12deg); } }

@media (max-width: 1180px) {
  body.cinema-ui .record-lenses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.cinema-ui .stat-stage { padding-top: 4px; margin-bottom: 13px; }
  body.cinema-ui .record-lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.cinema-ui .record-lenses button[data-panel]:last-child { grid-column: 1 / -1; min-height: 90px; }
  body.cinema-ui .metric-dial-shell { gap: 27px; }
}
@media (max-width: 540px) {
  body.cinema-ui .stat-stage { margin-top: 0; padding-bottom: 8px; }
  body.cinema-ui .stat-stage-heading h2 { font-size: 14px; }
  body.cinema-ui .metric-dial-shell { min-height: 244px; gap: clamp(12px, 4vw, 22px); margin-bottom: 7px; }
  body.cinema-ui .metric-dial { flex-basis: 220px; width: 220px; height: 220px; }
  body.cinema-ui .metric-dial::before { inset: -24px; }
  body.cinema-ui .metric-dial::after { inset: 21px; }
  body.cinema-ui .metric-cycle { width: 33px; height: 33px; flex-basis: 33px; font-size: 17px; }
  body.cinema-ui .metric-cycle svg { width: 15px; height: 15px; }
  body.cinema-ui #metric-dial-value { inset: 28px; }
  body.cinema-ui #metric-dial-value .metric-card { padding: 4px 0; }
  body.cinema-ui #metric-dial-value .metric-label { font-size: 7px; letter-spacing: 1.1px; }
  body.cinema-ui #metric-dial-value .metric-value { font-size: 56px; margin: 12px 0 10px; }
  body.cinema-ui #metric-dial-value .metric-note { max-width: 160px; font-size: 9px; line-height: 1.55; }
  body.cinema-ui .dial-selectors { gap: 5px; }
  body.cinema-ui .dial-selectors button[data-dial] { font-size: 10px; padding: 7px 8px; min-height: 34px; }
  body.cinema-ui .dial-clear { margin-top: 10px; }
  body.cinema-ui .record-lenses button[data-panel] { min-height: 113px; }
  body.cinema-ui .record-lenses button[data-panel]:last-child { min-height: 86px; }
}
@media (max-width: 360px) {
  body.cinema-ui .metric-dial-shell { gap: 8px; }
  body.cinema-ui .metric-cycle { flex-basis: 29px; width: 29px; height: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  body.cinema-ui :is(.dial-arriving, .dial-leaving),
  body.cinema-ui :is(.dial-arriving, .dial-leaving) .dial-orbit { animation: none !important; filter: none !important; }
  body.cinema-ui .metric-cycle:active { transform: none; }
}
/* Keep the panel dismiss target comfortable on compact screens. */
body.cinema-ui .record-panel-header .dialog-close{width:44px;height:44px;min-width:44px;min-height:44px}
