:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #192231;
  --muted: #5f6c80;
  --accent: #0b7a75;
  --line: #d7dfeb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: linear-gradient(120deg, #f5f7fb 0%, #eef6f4 100%);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  margin: 0;
}

.lead {
  color: var(--muted);
  margin-top: 8px;
}

.card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #c8d4e4;
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin-right: 8px;
  vertical-align: middle;
}

textarea {
  min-height: 84px;
}

button {
  margin-top: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  opacity: 0.92;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.question {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.pill {
  display: inline-block;
  font-size: 12px;
  color: #0f5d5a;
  background: #dff2f1;
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

.score {
  font-size: 28px;
  font-weight: 700;
  color: #0f5d5a;
}

.mini {
  color: var(--muted);
  font-size: 14px;
}

.status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.status.info {
  background: #eef4ff;
  color: #21324d;
}

.status.success {
  background: #e9f8ef;
  color: #0f5d3e;
}

.status.error {
  background: #ffecef;
  color: #8a1f2e;
}

.model-indicator {
  margin: 8px 2px 0;
}

.hidden-file {
  display: none;
}

.upload-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.upload-actions button {
  width: auto;
  margin-top: 0;
}

button.secondary {
  background: #e8f0fb;
  color: #1b3553;
}

button.ghost {
  background: #f4f6f9;
  color: #39465a;
}

.image-preview {
  width: 100%;
  max-width: 260px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.phone-connect {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.phone-qr {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.phone-connect-meta {
  min-width: 220px;
  flex: 1;
}

#phone-url {
  display: block;
  margin-bottom: 10px;
  word-break: break-all;
}
