*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-ui); font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
:lang(ta), [lang="ta"] { font-family: var(--font-ta); }
html[lang="ta"] body { font-family: var(--font-ta); line-height: 1.6; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 15.5px; } h4 { font-size: 14px; }
p { margin: 0; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: rgba(40, 131, 108, .2); }
kbd { font-family: var(--font-data); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-muted); font-weight: 600; }
.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.num, .ref, td.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.ref { font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.pos { color: var(--success); } .neg { color: var(--danger); } .due { color: var(--danger); font-weight: 600; }
.struck { text-decoration: line-through; opacity: .6; }
.hint { color: var(--text-muted); font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; }
.hint .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.err { color: var(--danger); font-size: 13px; font-weight: 600; margin: 6px 0 0; }
.pad { padding: 16px 20px; } .pad-x { padding: 0 16px; }
.spacer, .dt-spacer { flex: 1; }
.ico { width: 18px; height: 18px; flex: none; }
svg.lucide { width: 18px; height: 18px; flex: none; }
.plain { list-style: none; margin: 0; padding: 0; }
.link { background: none; border: 0; padding: 0; color: var(--secondary); font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fatal { max-width: 560px; margin: 15vh auto; padding: 32px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
