/**
 * Skip Manager base layer: element defaults only. No component styles here.
 * Reads tokens.css. Loaded after tokens.css.
 */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    transition: background-color var(--dur-slow) var(--ease);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-4);
    line-height: var(--lh-body);
    color: var(--text-1);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img, svg, video { max-width: 100%; }

/* Numbers that must line up: job numbers, money, counts */
.num { font-variant-numeric: tabular-nums; }

/* One focus ring everywhere */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-xs); }

::selection { background: var(--accent-tint); color: var(--text-1); }

/* Safe-area helpers for fixed bars */
.safe-bottom { padding-bottom: var(--safe-bottom); }
.safe-top { padding-top: var(--safe-top); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
