* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #FAFAF9;
  color: #111;
}

.header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  text-align: center;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.hint {
  font-size: 12.5px;
  color: #888;
  line-height: 1.5;
  margin: 0 0 12px;
}

.url-row {
  display: flex;
  gap: 8px;
}

input, select, textarea {
  width: 100%;
  font-size: 14px;
  font-family: inherit;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 9px;
  background: #fff;
  color: #111;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #111;
}

textarea { resize: vertical; }

.field { margin-bottom: 12px; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status {
  font-size: 12.5px;
  margin-top: 10px;
  min-height: 16px;
}

.status.loading { color: #888; }
.status.error { color: #a32d2d; }

.source-banner {
  display: none;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.source-banner.confident {
  display: block;
  background: #eefaf0;
  color: #1c7a34;
}

.source-banner.weak {
  display: block;
  background: #FAEEDA;
  color: #854F0B;
}

.source-banner.manual {
  display: block;
  background: #F1EFE8;
  color: #5F5E5A;
}

.preview-image-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #eee;
}

.preview-image-row img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #f2f2f0;
}

.preview-caption {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
}

.readiness {
  font-size: 12.5px;
  color: #888;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #F5F5F5;
}

.readiness.ready {
  background: #eefaf0;
  color: #1c7a34;
}

.actions { margin-bottom: 6px; }

.btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn.copied {
  background: #eefaf0;
  border-color: #1c7a34;
  color: #1c7a34;
}

.handoff-options {
  border-top: 1px dashed #eee;
  padding-top: 14px;
  margin-top: 14px;
}

.handoff-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin: 0 0 10px;
}

.handoff-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.qr-container {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-container svg { width: 96px !important; height: 96px !important; }

.handoff-buttons { flex: 1; }

.handoff-hint {
  font-size: 11px;
  color: #999;
  line-height: 1.5;
  margin: 8px 0 0;
}

.privacy {
  font-size: 10.5px;
  line-height: 1.5;
  color: #999;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.start-over {
  text-align: center;
}

.feedback-question {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 10px;
  text-align: center;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.feedback-btn {
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.feedback-btn.selected {
  border-color: #111;
  background: #F5F5F5;
}

#feedbackComment {
  margin-bottom: 10px;
}

.feedback-thanks {
  text-align: center;
  font-size: 13px;
  color: #1c7a34;
  margin: 4px 0 0;
}
