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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f3f2f1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid #e1dfdd;
  border-top-color: #0078d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

#status { color: #605e5c; font-size: 0.95rem; }

.result-icon { font-size: 3rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.25rem; margin-bottom: 0.5rem; color: #201f1e; }
p  { font-size: 0.875rem; color: #605e5c; }

#justification-view { text-align: left; }
#justification-view h2 { text-align: center; margin-bottom: 0.5rem; }
#justification-view .subtitle {
  text-align: center;
  color: #605e5c;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
#justification-input {
  width: 100%;
  min-height: 100px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c8c6c4;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
}
#justification-input:focus { border-color: #0078d4; }
#justification-error {
  color: #a4262c;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1rem;
}
#justification-submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
#justification-submit:hover:not(:disabled) { background: #106ebe; }
#justification-submit:disabled { background: #a19f9d; cursor: not-allowed; }

.hidden { display: none; }
