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

html { height: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.resizing { user-select: none; cursor: col-resize; }
body.resizing iframe,
body.resizing video { pointer-events: none; }

a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }

input, select, textarea {
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-md);
  outline: none;
  transition: border-color var(--t-normal);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}

::selection { background: var(--accent); color: white; }

/* Scrollbar: Standard properties (Firefox, modern browsers) */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* Scrollbar: WebKit (Chrome, Safari, Edge) */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
}
