:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f0ea;
  color: #151310;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #fffaf4 0, #f4f0ea 48%, #ebe5dc 100%);
}

.shell {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 0 max(40px, env(safe-area-inset-bottom));
}

header { margin-bottom: 24px; }
.brand { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 12px 0 8px; font-size: clamp(32px, 9vw, 48px); line-height: 1; letter-spacing: -.04em; }
header p { margin: 0; color: #6f675e; line-height: 1.5; }

.card {
  padding: 24px;
  border: 1px solid rgba(21, 19, 16, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 60px rgba(70, 54, 35, .10);
  backdrop-filter: blur(12px);
}

form { display: grid; gap: 12px; }
label { margin-top: 4px; font-size: 14px; font-weight: 650; }

input, select, button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font: inherit;
}

input, select {
  border: 1px solid #d8d0c6;
  background: #fff;
  padding: 0 14px;
  color: #151310;
}

input[type="file"] { padding: 13px 12px; }

button {
  margin-top: 8px;
  border: 0;
  background: #151310;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled { opacity: .55; cursor: wait; }
.hint, .error { margin: 0; font-size: 13px; line-height: 1.45; }
.hint { color: #776e64; }
.error { min-height: 18px; color: #a3342f; }
.results { display: grid; gap: 10px; margin-top: 18px; }

.result {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: #f5f2ed;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.result span { color: #6f675e; }
.result.success { background: #e8f5eb; }
.result.success span { color: #24633a; }
.result.failure { background: #fae9e7; }
.result.failure span { color: #983d35; }

@media (max-width: 420px) {
  .shell { width: min(100% - 20px, 520px); padding-top: 28px; }
  .card { padding: 18px; border-radius: 18px; }
}
