/* Five identities. Original scientific figures, movies and data are untouched. */
:root {
  --bt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bt-display: Georgia, "Times New Roman", serif;
  --bt-label: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bt-ink: #203a2d;
  --bt-muted: #5d6c60;
  --bt-paper: #f6f3eb;
  --bt-surface: #fffdfa;
  --bt-panel: #eeeede;
  --bt-prompt: #f6f3ec;
  --bt-line: #d6d9cc;
  --bt-accent: #35624b;
  --bt-highlight: #a45f37;
  --bt-on-accent: #ffffff;
  --bt-deep: #213b30;
  --bt-on-deep: #f7f6ed;
  --bt-radius: 18px;
  --bt-shadow: 0 10px 35px #23332608;
  --bt-display-spacing: -.035em;
  --bt-header: #f6f3ebf5;
  --bt-swatch: linear-gradient(135deg, #e7ddc8 48%, #42644d 49%);
}

/* Fieldnotes is the original warm editorial design, not an approximation of it. */
:root[data-brand-theme="precision"] {
  color-scheme: light;
  --bt-font: "Helvetica Neue", Arial, sans-serif;
  --bt-display: "Helvetica Neue", Arial, sans-serif;
  --bt-label: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --bt-ink: #102542;
  --bt-muted: #50627a;
  --bt-paper: #f4f8fd;
  --bt-surface: #ffffff;
  --bt-panel: #e9f1fc;
  --bt-prompt: #f2f6fc;
  --bt-line: #c9d8ec;
  --bt-accent: #1356bc;
  --bt-highlight: #0d5984;
  --bt-deep: #102c50;
  --bt-radius: 5px;
  --bt-shadow: 0 4px 0 #d9e5f4;
  --bt-display-spacing: -.055em;
  --bt-header: #f8fbfff5;
  --bt-swatch: linear-gradient(135deg, #e8f1ff 48%, #185bc5 49%);
}
:root[data-brand-theme="frontier"] {
  color-scheme: dark;
  --bt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bt-display: "Helvetica Neue", Arial, sans-serif;
  --bt-label: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --bt-ink: #ecf5f4;
  --bt-muted: #abbfbe;
  --bt-paper: #071211;
  --bt-surface: #101f1e;
  --bt-panel: #18312e;
  --bt-prompt: #0b1817;
  --bt-line: #304e47;
  --bt-accent: #8ae6c5;
  --bt-highlight: #b4cafb;
  --bt-on-accent: #092a21;
  --bt-deep: #1b3932;
  --bt-on-deep: #eafbf4;
  --bt-radius: 16px;
  --bt-shadow: 0 20px 70px #00000035;
  --bt-display-spacing: -.055em;
  --bt-header: #071211f2;
  --bt-swatch: linear-gradient(135deg, #102420 48%, #8ae6c5 49%);
}
:root[data-brand-theme="observatory"] {
  color-scheme: light;
  --bt-font: Avenir, "Segoe UI", Verdana, sans-serif;
  --bt-display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --bt-label: Avenir, "Segoe UI", sans-serif;
  --bt-ink: #352b52;
  --bt-muted: #6c607e;
  --bt-paper: #f8f5fc;
  --bt-surface: #fffdfd;
  --bt-panel: #eee7f7;
  --bt-prompt: #f5f0fa;
  --bt-line: #dbd0e8;
  --bt-accent: #7051a1;
  --bt-highlight: #86566b;
  --bt-deep: #46315e;
  --bt-radius: 26px;
  --bt-shadow: 0 16px 45px #735a9110;
  --bt-display-spacing: -.03em;
  --bt-header: #f8f5fcf5;
  --bt-swatch: linear-gradient(135deg, #e9ddf6 48%, #7a56aa 49%);
}
:root[data-brand-theme="foundry"] {
  color-scheme: dark;
  --bt-font: "Helvetica Neue", Arial, sans-serif;
  --bt-display: Impact, "Arial Narrow", "Helvetica Neue", sans-serif;
  --bt-label: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --bt-ink: #f0ece5;
  --bt-muted: #beb9b0;
  --bt-paper: #1b1c1c;
  --bt-surface: #262828;
  --bt-panel: #35342f;
  --bt-prompt: #202222;
  --bt-line: #55554e;
  --bt-accent: #ffb174;
  --bt-highlight: #e4c294;
  --bt-on-accent: #302010;
  --bt-deep: #3b2c20;
  --bt-on-deep: #fff0df;
  --bt-radius: 2px;
  --bt-shadow: 5px 5px 0 #00000038;
  --bt-display-spacing: .005em;
  --bt-header: #1b1c1cf5;
  --bt-swatch: linear-gradient(135deg, #333531 48%, #f3a260 49%);
}

/* The control is intentionally common to every identity. */
.brand-theme-control {
  flex: 0 0 218px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-left: auto;
  padding-left: 18px;
  border-left: 1px solid var(--bt-line);
  color: var(--bt-ink);
  font-family: var(--bt-font);
}
.brand-theme-control > label {
  font-family: var(--bt-label);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--bt-muted);
}
.brand-theme-select-wrap {display: flex; align-items: center; gap: 8px; min-width: 0;}
.brand-theme-swatch {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--bt-line);
  border-radius: 50%;
  background: var(--bt-swatch);
}
.brand-theme-control select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--bt-surface);
  color: var(--bt-ink);
  font: 650 13px/1.4 var(--bt-font);
  cursor: pointer;
  accent-color: var(--bt-accent);
}
.brand-theme-control select:hover {border-color: var(--bt-line);}
.brand-theme-control select:focus-visible {outline: 2px solid var(--bt-accent); outline-offset: 3px;}
.brand-persona {font-size: 9px; line-height: 1.4; color: var(--bt-muted); white-space: nowrap;}
.bar:has(.brand-theme-control), .sitebar:has(.brand-theme-control) {flex-wrap: wrap; gap: 14px;}
.bar:has(.brand-theme-control) nav, .sitebar:has(.brand-theme-control) nav {flex: 1; justify-content: center;}

/* Shared theme layer. Fieldnotes deliberately keeps the existing source styles. */
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) {
  --ink: var(--bt-ink);
  --muted: var(--bt-muted);
  --paper: var(--bt-paper);
  --teal: var(--bt-accent);
  --accent: var(--bt-highlight);
  --line: var(--bt-line);
  --sand: var(--bt-panel);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) body {
  background: var(--bt-paper);
  color: var(--bt-ink);
  font-family: var(--bt-font);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(body > header, .site-header) {
  background: var(--bt-header);
  border-color: var(--bt-line);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(h1, h2, .library-title, .result-reveal h3, .feature-card h3, .card-image h3, .case-card h3, .evidence-strip b, .metric strong, .opening-span, .facts b) {
  font-family: var(--bt-display);
  color: var(--bt-ink);
  letter-spacing: var(--bt-display-spacing);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.eyebrow, .kicker, .field-tag, .opening-label, .work-label, .spotlight-heading, .explorer-eyebrow, .n, .num) {
  font-family: var(--bt-label);
  color: var(--bt-highlight);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.lead, .small, small, .launch-footnote, .home-section-intro > p:not(.eyebrow), .feature-card p, .feature-card small, .evidence-strip span, .panel p, .story-step p, .case-card p, .card-image p, .opening-clock-label, .opening-clock-context, .opening-session-id, .film-clock-note, .contrast-note, .study-scope, figcaption, .meta, .timeline-key, .timeline-scale, .sources-heading, footer) {
  color: var(--bt-muted);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.result-description, .result-boundary) {color: var(--bt-muted)!important;}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(a, .launch-copy h1 em, .evidence-strip b, .metric strong, .facts b, .opening-span, .context-points b, .result-reveal h3) {color: var(--bt-accent);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.brand, .library-title a) {color: var(--bt-ink);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.brand small, .launch-copy .actions > a:not(.btn), .spotlight-link, .home-collection-link, .library-card .card-link) {color: var(--bt-accent);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.session-demo, .feature-card, .case-card, .card-image, .panel, .metric, .facts, .opening-record, .gather-card, .step, .map, .timeline, .tablewrap, .table-wrap, .brief-form, .brief-preview, .result-explorer, .explorer-controls, .explorer-values, .contrast, figure, .clock > div) {
  background: var(--bt-surface);
  border-color: var(--bt-line);
  border-radius: var(--bt-radius);
  color: var(--bt-ink);
  box-shadow: var(--bt-shadow);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.session-topline, .prompt-composer, .climate-context, .field-tag, .spotlight-tabs button, .film-tabs button, .explorer-tabs button, .replay-files, .shared-brief, .manual-chain, .manual-task, .human-gate, .gather-heading, .map-intro, .branch, .limits, .investor, .study-scope, .pf-result, .artifact-caption, .explorer-note, .explorer-top, .explorer-value, .explorer-footer, .brief-preview, th) {
  background: var(--bt-panel);
  color: var(--bt-ink);
  border-color: var(--bt-line);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .prompt-composer {background: var(--bt-prompt); border-radius: max(2px, calc(var(--bt-radius) - 7px)); box-shadow: none;}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.type-layout, .prompt-composer blockquote) {color: var(--bt-ink); font-family: var(--bt-font);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.composer-label, .composer-kind, .composer-bottom, .response-state, .recorded-label, .replay-toolbar, .replay-toolbar button, .replay-files > div, .file-saved, .artifact-caption, .spotlight-heading, .context-points, .explorer-ticks, .explorer-caption, .explorer-note, .explorer-state, .explorer-snapshot-time, .film-caption-heading span) {color: var(--bt-muted);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.session-topline, .replay-toolbar, .replay-visual, .artifact-caption, .evidence-strip, .evidence-strip a, .facts > div, .story-step, td, th, footer, .opening-events li, .opening-timestamps dl) {border-color: var(--bt-line);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(details, pre, .pf-records pre) {color: var(--bt-ink); background: var(--bt-prompt); border-color: var(--bt-line);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.person-mark, .laplace-mark) {background: var(--bt-panel); color: var(--bt-accent); border-color: var(--bt-line);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.send-mark, .recorded-label i, .type-ink::after) {background: var(--bt-accent); color: var(--bt-on-accent);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .result-reserve span {background: var(--bt-panel);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.btn, .filters button, .library-tools button, .source-list a, .sources a, .file-link, .film-actions button, input, textarea, .explorer-controls button) {
  background: var(--bt-surface);
  color: var(--bt-ink);
  border-color: var(--bt-line);
  border-radius: max(3px, calc(var(--bt-radius) - 10px));
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) input[type="range"] {accent-color: var(--bt-accent);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.launch-copy .actions .btn, nav a.active, .filters button[aria-pressed="true"], .library-tools button[aria-pressed="true"], .spotlight-tabs button[aria-pressed="true"], .film-tabs button[aria-selected="true"], .film-tabs button[aria-pressed="true"], .explorer-tabs button[aria-pressed="true"]) {
  background: var(--bt-accent);
  color: var(--bt-on-accent);
  border-color: var(--bt-accent);
  box-shadow: none;
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.decision, .dark, .map-foot, .work-engine, .public-project-card, .contrast header) {
  background: var(--bt-deep);
  color: var(--bt-on-deep);
  border-color: var(--bt-line);
  border-radius: var(--bt-radius);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.decision, .dark, .map-foot, .work-engine, .public-project-card, .contrast header) :is(h2, h3, p, a, span, strong, small, li) {color: var(--bt-on-deep);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.decision .btn, .dark .btn) {background: transparent; border-color: currentColor; color: var(--bt-on-deep);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .work-engine :is(.engine-tasks, .engine-caption, .handoff) {background: transparent;}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.work-route, .work-gain, .contrast-note) {background: var(--bt-surface); color: var(--bt-ink); border-color: var(--bt-line);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .work-route + .work-route {background: var(--bt-panel);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .work-gains {background: var(--bt-line); border-color: var(--bt-line);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .route-detail {background: var(--bt-prompt)!important; color: var(--bt-ink);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.manual-caption, .manual-task small, .human-gate small, .work-label span, .work-gain span, .explorer-top p, .explorer-value span, .explorer-footer) {color: var(--bt-muted);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.work-gain b, .explorer-controls label > b, .explorer-value strong) {color: var(--bt-accent);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.timeline-track, .bar-track) {background: var(--bt-panel);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.timeline-track i, .bar-track i) {background: var(--bt-accent);}
/* Keep a white paper mount behind scientific images and chart axes. No filters. */
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.zoom, .source-figure img, figure > img, .card-image img, .feature-card img, .replay-visual img, .explorer-canvas) {background: #ffffff; color: #243c35;}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .explorer-canvas :is(.chart-title, .explorer-caption) {color: #506158;}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .explorer-canvas {border-color: var(--bt-line); border-radius: max(2px, calc(var(--bt-radius) - 8px));}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(button, a, summary, input, textarea):focus-visible {outline-color: var(--bt-accent);}

/* The story opening makes the conventional burden and the useful result distinct. */
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .opening-value {
  background: var(--bt-surface);
  color: var(--bt-ink);
  border-color: var(--bt-line);
  border-radius: var(--bt-radius);
  box-shadow: var(--bt-shadow);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .value-traditional {
  background: var(--bt-prompt);
  border-color: var(--bt-line);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .value-laplace {
  background: var(--bt-panel);
  color: var(--bt-ink);
  border-left-color: var(--bt-accent);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .value-payoff {
  background: var(--bt-deep);
  color: var(--bt-on-deep);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .opening-value h3 {
  color: var(--bt-ink);
  font-family: var(--bt-display);
  letter-spacing: var(--bt-display-spacing);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .value-label {
  color: var(--bt-highlight);
  font-family: var(--bt-label);
}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .value-laplace .value-label {color: var(--bt-accent);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .value-traditional p {color: var(--bt-muted);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .value-payoff :is(.value-label, p, h3, a) {color: var(--bt-on-deep);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) .timing-facts b {color: var(--bt-ink); font-family: var(--bt-label);}
html[data-brand-theme]:not([data-brand-theme="fieldnotes"]) :is(.timing-note p, .timing-facts span) {color: var(--bt-muted);}

/* Each suite has its own composition, not just a color substitution. */
html[data-brand-theme="precision"] :is(h1, h2, .library-title, .feature-card h3, .result-reveal h3, .opening-value h3) {font-weight: 650;}
html[data-brand-theme="precision"] :is(.public-section, .climate-context, .home-section-intro) {border-top: 1px solid var(--bt-line); padding-top: 26px;}
html[data-brand-theme="precision"] .session-topline {border-top: 3px solid var(--bt-accent);}
html[data-brand-theme="precision"] .field-tag {border-radius: 2px; text-transform: uppercase; font-size: 10px; letter-spacing: .05em;}
html[data-brand-theme="precision"] .library-grid {gap: 38px 24px;}
html[data-brand-theme="precision"] .evidence-strip {background: var(--bt-surface); border: 1px solid var(--bt-line);}
html[data-brand-theme="precision"] .evidence-strip a:first-child {padding-left: 25px;}
html[data-brand-theme="precision"] .case-story > .why-heading {border-top: 1px solid var(--bt-line); padding-top: 28px;}

html[data-brand-theme="frontier"] body {background-image: radial-gradient(ellipse at 80% 10%, #315d4524 0, transparent 47%); background-attachment: fixed;}
html[data-brand-theme="frontier"] :is(h1, h2) {font-weight: 550;}
html[data-brand-theme="frontier"] .session-demo {border-top-color: #6ba88c; box-shadow: 0 0 0 1px #64bf8b0c, var(--bt-shadow);}
html[data-brand-theme="frontier"] .evidence-strip {border-color: #547d68;}
html[data-brand-theme="frontier"] .library-title {font-family: var(--bt-font); font-weight: 550;}
html[data-brand-theme="frontier"] .home-proof-grid {gap: 28px;}
html[data-brand-theme="frontier"] .launch-copy h1 em {font-style: normal; color: #a4f2cf;}
html[data-brand-theme="frontier"] .opening-film {border-color: #487a63;}

html[data-brand-theme="observatory"] :is(.field-tag, .btn, .filters button, .library-tools button, .spotlight-tabs button, .film-tabs button) {border-radius: 40px;}
html[data-brand-theme="observatory"] .library-grid {gap: 40px 32px;}
html[data-brand-theme="observatory"] .launch-copy h1 em {font-style: italic;}
html[data-brand-theme="observatory"] .session-topline {padding-block: 19px;}
html[data-brand-theme="observatory"] .evidence-strip {border: 0; gap: 14px;}
html[data-brand-theme="observatory"] .evidence-strip a {background: var(--bt-panel); border: 0; border-radius: 18px; padding: 23px;}
html[data-brand-theme="observatory"] .home-section-intro h2 {font-style: italic;}
html[data-brand-theme="observatory"] .home-proof-grid {gap: 30px;}

html[data-brand-theme="foundry"] :is(h1, h2, .library-title, .result-reveal h3, .feature-card h3) {font-weight: 400; letter-spacing: .012em;}
html[data-brand-theme="foundry"] :is(.launch-copy h1, .case-header h1, .library-intro h1) {text-transform: uppercase; line-height: 1.02;}
html[data-brand-theme="foundry"] .launch-copy h1 em {font-style: normal;}
html[data-brand-theme="foundry"] :is(.field-tag, .spotlight-heading, .eyebrow, .kicker) {text-transform: uppercase; letter-spacing: .08em;}
html[data-brand-theme="foundry"] .session-topline {border-top: 4px solid var(--bt-accent);}
html[data-brand-theme="foundry"] .library-grid {gap: 34px 22px;}
html[data-brand-theme="foundry"] .evidence-strip {border-top: 3px solid var(--bt-accent); border-bottom: 1px solid var(--bt-line);}
html[data-brand-theme="foundry"] .evidence-strip b {font-family: var(--bt-label); font-size: 28px; font-weight: 700; letter-spacing: -.06em;}
html[data-brand-theme="foundry"] :is(.opening-record, .opening-value) {border-top: 4px solid var(--bt-accent);}
html[data-brand-theme="foundry"] .feature-copy {border-top: 1px solid var(--bt-line);}

@media (min-width: 1001px) {
  html[data-brand-theme="precision"] .home-launch {grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 42px;}
  html[data-brand-theme="frontier"] .home-launch {grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px;}
  html[data-brand-theme="observatory"] .home-launch {grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 44px;}
  html[data-brand-theme="foundry"] .home-launch {grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px;}
}
@media (max-width: 1150px) {
  .brand-theme-control {flex-basis: 196px; padding-left: 12px;}
  .bar:has(.brand-theme-control) nav, .sitebar:has(.brand-theme-control) nav {order: 3; flex-basis: 100%; justify-content: flex-start;}
}
@media (max-width: 600px) {
  .brand-theme-control {flex-basis: 178px; gap: 0; padding-left: 10px;}
  .brand-theme-control > label {font-size: 8px;}
  .brand-theme-control select {min-height: 38px; font-size: 12px;}
  .brand-persona {font-size: 8px;}
  .brand-theme-swatch {width: 13px; height: 13px; flex-basis: 13px;}
  .brand-theme-select-wrap {gap: 4px;}
  .bar:has(.brand-theme-control), .sitebar:has(.brand-theme-control) {gap: 10px;}
  html[data-brand-theme="observatory"] .evidence-strip {gap: 7px;}
  html[data-brand-theme="observatory"] .evidence-strip a {padding: 16px 10px; border-radius: 12px;}
  html[data-brand-theme="foundry"] .evidence-strip b {font-size: 22px;}
  html[data-brand-theme="precision"] .evidence-strip a:first-child {padding-left: 12px;}
}
@media (max-width: 390px) {
  .bar:has(.brand-theme-control) > .brand, .sitebar:has(.brand-theme-control) > .brand {font-size: 16px; letter-spacing: 2px;}
  .bar:has(.brand-theme-control) .brand small, .sitebar:has(.brand-theme-control) .brand small {max-width: 130px; font-size: 7px; letter-spacing: .55px;}
  .brand-theme-control {flex-basis: 166px; padding-left: 8px;}
}
@media (prefers-reduced-motion: reduce) {
  .brand-theme-control *, html[data-brand-theme] body {scroll-behavior: auto; transition: none!important;}
}
@media print {
  .brand-theme-control {display: none!important;}
  html[data-brand-theme] {
    color-scheme: light;
    --bt-paper: #ffffff; --bt-surface: #ffffff; --bt-panel: #f0f0ed; --bt-prompt: #f7f7f4;
    --bt-ink: #111111; --bt-muted: #444444; --bt-accent: #224c39; --bt-highlight: #3f4b42;
    --bt-deep: #eaece7; --bt-on-deep: #111111; --bt-line: #bbbbbb; --bt-shadow: none;
  }
  html[data-brand-theme] body {background-image: none;}
}
