/* One token set (as web/app/globals.css): System follows the device live; Light and Dark pin color-scheme. */
:root {
  color-scheme: light dark;
  --fg: light-dark(#1a1a1a, #eee);
  --bg: light-dark(#fff, #161616);
  --line: light-dark(#ccc, #444);
  --muted: light-dark(#555, #aaa);
  --focus: light-dark(#1d4ed8, #93c5fd);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Interface text is rendered in both languages (i18n.py); only the page's language shows. */
html[lang="bn"] .l-en, html:not([lang="bn"]) .l-bn { display: none; }
html[data-theme="light"] :is(.th-system, .th-dark), html[data-theme="dark"] :is(.th-system, .th-light),
html:not([data-theme="light"]):not([data-theme="dark"]) :is(.th-light, .th-dark) { display: none; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 system-ui, sans-serif; }
/* No external font may load here: the device's Bangla font, and room for stacked conjuncts and vowel signs. */
html[lang="bn"] body { font-family: "Noto Sans Bengali", "Noto Sans", system-ui, sans-serif; line-height: 1.65; }
main { max-width: 52rem; margin: 0 auto; padding: 1rem; }
.prefs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin: 0; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.15rem; margin-top: 1.6rem; }
h3 { font-size: 1rem; margin-top: 1.2rem; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: top;
  overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 600; }
input { font: inherit; padding: .4rem; max-width: 100%; }
button { font: inherit; padding: .5rem .9rem; min-height: 44px; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
#out { font-weight: 600; }
#codes { font-family: ui-monospace, monospace; font-size: 1.1rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.4 ui-monospace, monospace; border: 1px solid var(--line); padding: .6rem; }
pre.go { font-family: ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0;
  padding: .6rem; border: 1px solid var(--line); }
