/* Peças comuns às telas do medialab: cores, relevo, botões, entrada com senha e avisos.
   Regras de design: skill regras-design (escuro grafite, altura diz quem manda, régua mínima). */
:root {
  --fundo: #2B2F36; --fundo-fundo: #24282e; --texto: #e9ecf1; --texto2: #aab2bf;
  --destaque: #8fb4ff; --ok: #5fd38d; --atencao: #f2b84b; --erro: #ff8a8a;
  --neu-fora: 6px 6px 14px rgba(0,0,0,.45), -6px -6px 14px rgba(255,255,255,.05);
  --neu-leve: 3px 3px 7px rgba(0,0,0,.45), -3px -3px 7px rgba(255,255,255,.05);
  --neu-dentro: inset 3px 3px 7px rgba(0,0,0,.5), inset -3px -3px 7px rgba(255,255,255,.04);
  --r: 14px; --curva: cubic-bezier(.2,.8,.2,1); --t: 220ms;
  --toque: 44px;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #555c68 transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo); color: var(--texto);
  font: 16px/1.45 system-ui, "Segoe UI", Roboto, sans-serif;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
textarea, input { user-select: text; -webkit-user-select: text; font: inherit; color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { :root { --t: 1ms; } }
@media (max-width: 760px) { :root { --toque: 48px; } }

.bt {
  min-height: var(--toque); padding: 0 16px; border: 0; border-radius: 12px;
  background: var(--fundo); box-shadow: var(--neu-leve); text-decoration: none; color: inherit;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: box-shadow var(--t) var(--curva), transform var(--t) var(--curva);
}
.bt:active { transform: scale(.97); box-shadow: var(--neu-dentro); }
.bt.primario { background: var(--destaque); color: #13203a; font-weight: 600;
  box-shadow: 3px 3px 7px color-mix(in srgb, var(--destaque) 30%, #000), -3px -3px 7px rgba(255,255,255,.05); }
.bt.ligado { box-shadow: var(--neu-dentro); color: var(--destaque); }
.bt.icone { width: var(--toque); padding: 0; justify-content: center; }
.selo { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--texto2); white-space: nowrap; }
.selo b { font-weight: 600; color: var(--texto); }
.selo.atencao { color: var(--atencao); }
.selo.ok { color: var(--ok); }
.simulado { font-size: 14px; color: var(--atencao); }
.nota { font-size: 14px; color: var(--texto2); }

.avisos { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 40; width: min(520px, calc(100vw - 32px)); }
.aviso { background: #3a404a; box-shadow: var(--neu-fora); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; animation: entra var(--t) var(--curva); }
.aviso .bt { min-height: 36px; margin-left: auto; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

.entrada { position: fixed; inset: 0; display: grid; place-items: center; background: var(--fundo); z-index: 50; }
.entrada form { width: min(360px, calc(100vw - 32px)); display: grid; gap: 14px; padding: 24px; border-radius: 18px; box-shadow: var(--neu-fora); }
.entrada input, .entrada select { width: 100%; }
.entrada select { min-height: 48px; border: 0; border-radius: 12px; padding: 0 12px; background: var(--fundo); box-shadow: var(--neu-dentro); outline: none; color: inherit; font: inherit; }
.entrada input { min-height: 48px; border: 0; border-radius: 12px; padding: 0 14px; background: var(--fundo); box-shadow: var(--neu-dentro); outline: none; }
.erro { color: var(--erro); font-size: 14px; min-height: 20px; }
