:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fafafa;
  color: #111827;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.card {
  width: min(100%, 520px);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.shell {
  text-align: left;
}

h1,
h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.hint {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

input[type="file"] {
  display: block;
  margin: 20px 0;
}

.pin-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  margin-bottom: 12px;
}

button,
a {
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.secondary {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #d1d5db !important;
}

.notification {
  display: none;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
  background: #f9fafb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.notification.show {
  display: block;
}

.notification .label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.notification .value {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-all;
}

.notification .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.progress-shell {
  display: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #111;
  transition: width 0.2s ease;
}

.progress-label {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #4b5563;
}

#status-message {
  margin-top: 10px;
  color: #b91c1c;
  font-size: 0.9rem;
}

#status-message[data-type="success"] {
  color: #166534;
}

.actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

img {
  width: 260px;
  height: 260px;
  margin: 18px 0;
}

.finish-box {
  margin-top: 18px;
  color: #4b5563;
}
