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

:root {
  --bg: #0f1115;
  --painel: #171a21;
  --borda: #272b36;
  --texto: #e6e8ee;
  --suave: #949aab;
  --acento: #e8657f;
  --acento-escuro: #c94c66;
  --erro: #e05252;
  --raio: 11px;
}

body {
  min-height: 100vh;
  padding: 36px 20px;
  background: var(--bg);
  color: var(--texto);
  font: 14px/1.55 "Segoe UI", system-ui, sans-serif;
}

.caixa { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

header h1 { font-size: 22px; }
header p { margin-top: 4px; font-size: 13px; color: var(--suave); }

label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--suave); }
.opc { color: #6b7183; font-size: 11px; }

input:not([type=file]) {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: #0f1218;
  color: var(--texto);
  font: inherit;
}
input:focus { outline: none; border-color: var(--acento); }

.area {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 16px;
  border: 1.5px dashed var(--borda);
  border-radius: 14px;
  background: var(--painel);
  cursor: pointer;
  text-align: center;
}
.area:hover, body.arrastando .area { border-color: var(--acento); background: #1b1f29; }
#areaVazia { display: flex; flex-direction: column; gap: 5px; }
#areaVazia strong { color: var(--texto); font-size: 14px; }
#areaVazia span { font-size: 12px; color: var(--suave); }
#previa { max-width: 100%; max-height: 320px; border-radius: 9px; background: #fff; }

details summary { cursor: pointer; font-size: 12.5px; color: var(--suave); padding: 4px 0; }
details[open] summary { margin-bottom: 10px; }

button {
  padding: 12px 20px;
  border: none;
  border-radius: var(--raio);
  background: var(--acento);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
button:hover { background: var(--acento-escuro); }

.aviso {
  padding: 13px 15px;
  border: 1px solid var(--erro);
  border-radius: var(--raio);
  background: rgba(224, 82, 82, .12);
}
.aviso.leve { border-color: #b8862f; background: rgba(212, 160, 60, .12); }
.aviso pre {
  margin-top: 5px;
  font-size: 12px;
  color: var(--suave);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}
.aviso pre:empty { display: none; }

.resultado { display: flex; flex-direction: column; gap: 12px; }
.resultado img { width: 100%; border-radius: 12px; border: 1px solid var(--borda); background: #fff; }
.acoes { display: flex; align-items: center; gap: 14px; }
.acoes a {
  padding: 10px 18px;
  border-radius: var(--raio);
  background: var(--acento);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.acoes a:hover { background: var(--acento-escuro); }
.meta { font-size: 12px; color: var(--suave); }

.oculto { display: none !important; }
