* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
}

.card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.top-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}

.top-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: #1a1a1a;
}

.beta-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a7a4c;
  background: #e3f3ea;
  border-radius: 999px;
  padding: 2px 8px;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.limit-notice {
  color: #888;
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.disclaimer {
  color: #a15c00;
  background: #fff6e5;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 8px 10px;
  margin: 0 0 20px;
}

.tips {
  text-align: left;
  font-size: 0.85rem;
  margin: 0 0 16px;
  color: #444;
}

.tips summary {
  cursor: pointer;
  color: #1a7a4c;
  font-weight: 600;
}

.tips ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.tips li {
  margin-bottom: 4px;
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 2px dashed #bbb;
  border-radius: 12px;
  cursor: pointer;
  padding: 16px;
  overflow: hidden;
}

.dropzone img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
}

#dropzone-text {
  color: #555;
  font-size: 0.9rem;
}

.optional-fields {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.optional-fields select {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.85rem;
}

button {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #1a7a4c;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

#status {
  min-height: 1.2em;
  color: #444;
  font-size: 0.9rem;
}

#status a {
  color: #1a7a4c;
  font-weight: 600;
}

#result {
  margin-top: 16px;
  text-align: left;
  background: #f4f4f4;
  border-radius: 10px;
  padding: 16px;
}

#result h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

#result-scientific {
  font-style: italic;
  color: #555;
  margin: 0 0 8px;
}

#result-confidence {
  font-weight: 600;
  margin: 0 0 8px;
}

#result-note {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

#result-link {
  color: #1a7a4c;
  font-weight: 600;
  text-decoration: none;
}
