/* =====================================================================
   «Мозаїка» base: reset, typography, utilities. Needs tokens.css.
   ===================================================================== */

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;transition:background .2s,color .2s}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
h1,h2,h3,h4,p{margin:0}
:focus-visible{outline:2px solid var(--text);outline-offset:2px}
kbd{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:1px 5px;font-family:inherit}

/* icons from the sprite (assets/js/icons.js) */
.icon{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.icon.xs{width:14px;height:14px}.icon.lg{width:22px;height:22px}

/* text */
.muted{color:var(--muted)}.faint{color:var(--muted)}
.sm{font-size:12px}.xs-t{font-size:11px}
.num{font-variant-numeric:tabular-nums}
.t-ok{color:var(--ok)}.t-warn{color:var(--mid)}.t-err{color:var(--high)}
.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.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 helpers */
.grow{flex:1;min-width:0}.sp{flex:1}
.row{display:flex;align-items:center;gap:10px}.row.wrap{flex-wrap:wrap}.row.top{align-items:flex-start}
.stack{display:flex;flex-direction:column;gap:var(--gap)}
.col{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--gap)}
.split{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:var(--gap);align-items:start}
.mt{margin-top:var(--gap)}
.divider{height:1px;background:var(--line);margin:14px 0}
.hide{display:none!important}

@media (max-width:1180px){.split{grid-template-columns:1fr}}
@media (max-width:980px){.grid-2{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
[hidden]{display:none!important}
