:root {
  --bg: #f6f6f6;
  --card: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --accent: #111111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
}

.header {
  margin-bottom: 16px;
}

.sub {
  color: var(--muted);
  margin-top: 6px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.hint {
  color: var(--muted);
  margin: 8px 0 12px;
}

.hint.small {
  font-size: 13px;
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.q {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.q p {
  margin: 0 0 8px;
}

.opts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.opts label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

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

.btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  font-size: 15px;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn.ghost {
  background: transparent;
}

.error {
  color: #b00020;
  margin-top: 10px;
}

.result {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 8px;
}

.details {
  margin-top: 12px;
}

.details summary {
  cursor: pointer;
  font-weight: 600;
}

.box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.box.muted {
  background: #fafafa;
  color: #444444;
}

.pro {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pro-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.input,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 15px;
}
