* { box-sizing: border-box; }

/* Muss die display-Regeln weiter unten schlagen, sonst bleiben mit dem
   hidden-Attribut markierte Elemente sichtbar. */
[hidden] { display: none !important; }

body {
  font-family: -apple-system, system-ui, sans-serif;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem;
  color: #1a1a1a;
  background: #f7f7f8;
}

h1 { font-size: 1.25rem; }

.file-btn {
  display: block;
  text-align: center;
  padding: 0.9rem;
  background: #111;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

#preview {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
}

button {
  display: block;
  width: 100%;
  padding: 0.9rem;
  margin-top: 1rem;
  border: none;
  border-radius: 10px;
  background: #0066ff;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled { opacity: 0.5; cursor: default; }

label {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
}

input[type="text"] {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: ui-monospace, monospace;
}

.warning {
  background: #fff4d6;
  border: 1px solid #e8c96a;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

#status {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}
