/* Creators Packs base styles: fonts, page defaults, focus, scrollbars.
   Fonts are bundled (latin subset, SIL Open Font License — see assets/fonts/OFL-*.txt), so the panel
   works offline and never contacts a font service. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-800-italic.woff") format("woff");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-mono-latin-700.woff2") format("woff2");
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--cp-bg);
  color: var(--cp-text-primary);
  font: var(--cp-weight-regular) var(--cp-text-md) / var(--cp-line-height) var(--cp-font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow: hidden; /* the app shell scrolls its own content area */
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-size: inherit; }
::selection { background: var(--cp-accent); color: var(--cp-accent-ink); }

/* Anything with its own display value would otherwise beat the browser's rule for [hidden]. */
[hidden] { display: none !important; }

/* One focus style everywhere, only for keyboard focus. */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--cp-focus-ring); }

/* Windows web views draw bright system scrollbars on a dark panel unless styled. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--cp-surface-hover);
  border: 3px solid var(--cp-bg);
  border-radius: var(--cp-radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--cp-border-strong); }
::-webkit-scrollbar-corner { background: transparent; }

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

.cp-mono { font-family: var(--cp-font-mono); font-weight: 700; }

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