/* Unmodified local SIL OFL fonts; licenses and provenance are in fonts/. */
@font-face {
  font-family: "Courier Prime";
  src: url("./fonts/courier-prime/CourierPrime-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("./fonts/courier-prime/CourierPrime-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("./fonts/courier-prime/CourierPrime-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("./fonts/courier-prime/CourierPrime-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope/Manrope-cyrillic-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope/Manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope/Manrope-greek.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope/Manrope-vietnamese.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope/Manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope/Manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
html[data-font-mode="cyber"] {
  --font-ui: "Orbitron", system-ui, sans-serif;
  --font-code: var(--font-ui);
}
html[data-font-mode="typewriter"] {
  --font-ui: "Courier Prime", "Courier New", ui-monospace, monospace;
  --font-code: var(--font-ui);
}
html[data-font-mode="clarity"] {
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-code: "Courier Prime", "Courier New", ui-monospace, monospace;
}
/* Also replaces the preserved auditor's explicit Orbitron declarations. */
html[data-font-mode] *,
html[data-font-mode] *::before,
html[data-font-mode] *::after {
  font-family: var(--font-ui);
}
html[data-font-mode="clarity"] :is(pre, code, kbd, samp, .mono),
html[data-font-mode="clarity"] :is(pre, code, kbd, samp) * {
  font-family: var(--font-code) !important;
  font-variant-ligatures: none;
}
html:is([data-font-mode="typewriter"], [data-font-mode="clarity"]) :is(.message-body, .agent-card .composer textarea) {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: normal;
}
html:is([data-font-mode="typewriter"], [data-font-mode="clarity"]) .message-body.formatted h3 {
  font-size: 18px;
  letter-spacing: normal;
}
html:is([data-font-mode="typewriter"], [data-font-mode="clarity"]) .message-body.formatted pre code {
  font-size: 14px;
}
.font-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: var(--panel);
}
.font-selector button {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: normal;
}
.font-selector button:hover { background: var(--panel-2); color: var(--text); }
.font-selector button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.font-selector button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
html[data-theme="matrix"] .font-selector button[aria-pressed="true"] {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent);
}
@media (max-width: 700px) {
  .font-selector { max-width: 100%; }
  .font-selector button { padding-inline: 8px; }
}
