/* Reset mínimo + base tipográfica */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body.ds-app-body {
  margin: 0;
  width: 100%;
  min-height: max(884px, 100dvh);
  font-family: var(--ds-font-body);
  background-color: var(--ds-background);
  color: var(--ds-on-surface);
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  text-align: start;
}

/* Links sem sublinhado por defeito (substitui o estilo do user agent em nav, header, etc.). */
.ds-theme a {
  text-decoration: none;
}

/* Coluna central: evita painel “preso” à direita se algo externo alterar alinhamento */
.ds-shell {
  width: 100%;
  max-width: none;
  min-height: max(884px, 100dvh);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Texto editável / leitura */
textarea,
select,
input[type="checkbox"],
.live-capture-debug-panel {
  user-select: auto;
}

/* Material Symbols */
.ds-mso {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-smoothing: antialiased;
}

.ds-mso--fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.ds-mso--lg {
  font-size: 2.25rem;
}

.ds-mso--xl {
  font-size: 2.5rem;
}

.ds-mso--muted {
  opacity: 0.2;
}

/* Utilitários de acessibilidade (mantidos do projeto) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* Scrollbar (zona de texto) */
.ds-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--ds-surface-container-highest) transparent;
}

.ds-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.ds-scrollbar::-webkit-scrollbar-thumb {
  background: var(--ds-surface-container-highest);
  border-radius: 10px;
}

/* Glows decorativos */
.ds-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ds-ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.ds-ambient__blob--tr {
  top: -10%;
  right: -10%;
  width: 60%;
  height: 40%;
}

.ds-ambient__blob--bl {
  bottom: -5%;
  left: -5%;
  width: 50%;
  height: 30%;
  filter: blur(100px);
}
