/* ═══════════════════════════════════════════════════════════════════════════
   COMPOSE — Reset
   Surgical, minimal. Only what's needed to normalize.
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  height: 100%;
  font-family: var(--font-ui);
  background: var(--bg-app);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* Shell manages scroll */
}

/* Remove list semantics only from role-list elements */
[role="list"] { list-style: none; }

/* Focus rings: keyboard only */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Images */
img, svg { display: block; max-width: 100%; }

/* Buttons */
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* Inputs */
input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Links */
a { color: inherit; text-decoration: none; }

/* Scrollbars — webkit */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Firefox scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }

/* Selection */
::selection {
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--text);
}

/* Hidden attribute */
[hidden] { display: none !important; }
