
:root {
  --tex-a: url(tex/grit-d.png);
  --tex-b: url(tex/fibre-d.png);
  --tex: var(--tex-a), var(--tex-b);
  --tex-dark: url(tex/grit-d.png), url(tex/fibre-d.png);
  --panel-hi: var(--panel-hl), var(--tex);   
  --tex-at: 0px 0px;   
  --tex-bt: 0px 0px;
}
:root[data-theme="light"] {
  --tex-a: url(tex/grit-l.png);
  --tex-b: url(tex/fibre-l.png);
  --panel-hi: var(--panel-hl), var(--tex);
}
.comb-plate, .vault { --tex-a: url(tex/grit-d.png); --tex-b: url(tex/fibre-d.png); }
.comb-plate { --panel-hl: linear-gradient(180deg, rgba(255, 234, 196, .055), rgba(255, 234, 196, 0) 46%); }   
.panel, .stat, .fcard, .explorer, .trace, .flow .fstep, .cta-band, .figure, .role-card, .tier, .facts > div, .hive, .postcard, .bplate,
.sheet, .card, .comb-plate, #main #findings .ledger {
  --panel-hi: var(--panel-hl), var(--tex-a) var(--tex-at), var(--tex-b) var(--tex-bt);
}
:where(.panel, .stat, .fcard, .explorer, .trace, .flow .fstep, .cta-band, .figure, .role-card, .tier, .facts > div, .hive, .postcard, .bplate,
  .sheet, .card, .comb-plate, #main #findings .ledger, .hero-status, .hud, .feed-item, .map-legend, .cellpanel, .door-act):nth-child(2n) { --tex-at: -173px -97px; --tex-bt: -61px -149px; }
:where(.panel, .stat, .fcard, .explorer, .trace, .flow .fstep, .cta-band, .figure, .role-card, .tier, .facts > div, .hive, .postcard, .bplate,
  .sheet, .card, .comb-plate, #main #findings .ledger, .hero-status, .hud, .feed-item, .map-legend, .cellpanel, .door-act):nth-child(3n) { --tex-at: -317px -229px; --tex-bt: -199px -43px; }
:where(.panel, .stat, .fcard, .explorer, .trace, .flow .fstep, .cta-band, .figure, .role-card, .tier, .facts > div, .hive, .postcard, .bplate,
  .sheet, .card, .comb-plate, #main #findings .ledger, .hero-status, .hud, .feed-item, .map-legend, .cellpanel, .door-act):nth-child(5n) { --tex-at: -89px -401px; --tex-bt: -263px -211px; }
:where(.panel, .stat, .fcard, .explorer, .trace, .flow .fstep, .cta-band, .figure, .role-card, .tier, .facts > div, .hive, .postcard, .bplate,
  .sheet, .card, .comb-plate, #main #findings .ledger, .hero-status, .hud, .feed-item, .map-legend, .cellpanel, .door-act):nth-child(7n) { --tex-at: -433px -151px; --tex-bt: -127px -293px; }
.tp-num { --panel-hi: var(--panel-hl), var(--tex); }   
#main #audit .trace, .tp-chart, .brief section { background-image: var(--tex); }
.hero-status, .hud, .feed-item, .map-legend, .cellpanel, .door-act, #main .cta-band { isolation: isolate; }
.feed-item, .door-act { position: relative; }
.hero-status::before, .hud::before, .feed-item::before, .map-legend::before, .cellpanel::before, .door-act::before, #main .cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url(tex/grit-d.png) var(--tex-at), url(tex/fibre-d.png) var(--tex-bt);
}
#main .cta-band::before { background: var(--tex-a) var(--tex-at), var(--tex-b) var(--tex-bt); }   
#main #throughput .tp-num[data-num="peak_tokens"], .entry { isolation: isolate; }
.entry { position: relative; }
#main #throughput .tp-num[data-num="peak_tokens"]::after, .entry::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--tex-a) var(--tex-at), var(--tex-b) var(--tex-bt);
}
@media print {
  body, main:not(.vault), #main #audit .trace, .tp-chart, .brief section { background-image: none; }
  :root, :root[data-theme="light"], .comb-plate, .vault { --tex-a: none; --tex-b: none; --tex-dark: none; }
  .hero-status::before, .hud::before, .feed-item::before, .map-legend::before, .cellpanel::before, .door-act::before, #main .cta-band::before,
  #main #throughput .tp-num[data-num="peak_tokens"]::after, .entry::after { content: none; }
}
@media (forced-colors: active) {
  :root, :root[data-theme="light"], .comb-plate, .vault { --tex-a: none; --tex-b: none; --tex-dark: none; }
  .hero-status::before, .hud::before, .feed-item::before, .map-legend::before, .cellpanel::before, .door-act::before, #main .cta-band::before,
  #main #throughput .tp-num[data-num="peak_tokens"]::after, .entry::after { content: none; }
}
