/* Base layer of the Termik design system: reset, type, layout. Values only from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* component classes set display; hidden must still win */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
h1, h2, h3, h4, p { margin: 0; }
p { line-height: var(--lh-body); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Type scale: one class per style of the system. */
.t-figure { font-size: var(--fs-figure); line-height: var(--lh-figure); font-weight: var(--fw-figure); }
.t-title { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-title); }
.t-title strong, .t-title-strong { font-weight: var(--fw-title-strong); }
.t-heading { font-size: var(--fs-heading); line-height: var(--lh-heading); font-weight: var(--fw-heading); }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-body); }
.t-label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--fw-label); }
.t-small { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: var(--fw-small); }
.t-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--fw-caption); }
.t-micro { font-size: var(--fs-micro); line-height: var(--lh-micro); font-weight: var(--fw-micro); }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.strong { font-weight: 700; }

/* Usernames, passwords, codes: left to right inside the RTL page. */
.ltr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.col { display: flex; flex-direction: column; gap: var(--space-3); }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.page { padding: var(--space-7); min-height: 100vh; }
.shell { display: flex; gap: var(--space-6); align-items: flex-start; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }
@media (max-width: 760px) {
  .page { padding: var(--space-4); }
  .shell { flex-direction: column; align-items: stretch; }
}
