/* ZEHNOX EduCloud — reset + base elements */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
.ic { width: 18px; height: 18px; flex: none; }   /* default icon size; context rules override */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
small { font-size: var(--fs-sm); }
code, .mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
::selection { background: var(--lime); color: var(--lime-ink); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid var(--paper); }
*::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

[hidden] { display: none !important; }

/* utility */
.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.strong { font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; }
.row.gap1 { gap: var(--s1); } .row.gap2 { gap: var(--s2); } .row.gap3 { gap: var(--s3); } .row.gap4 { gap: var(--s4); }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt1{margin-top:var(--s1)}.mt2{margin-top:var(--s2)}.mt3{margin-top:var(--s3)}.mt4{margin-top:var(--s4)}.mt6{margin-top:var(--s6)}
.mb2{margin-bottom:var(--s2)}.mb3{margin-bottom:var(--s3)}.mb4{margin-bottom:var(--s4)}
.hide { display: none; }

/* boot loader */
.boot { min-height: 100vh; display: grid; place-content: center; gap: var(--s5); justify-items: center; }
.boot__mark {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-content: center;
  background: var(--ink); color: var(--lime); font-weight: 800; font-size: 20px; letter-spacing: .04em;
}
.boot__spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--cobalt); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
