* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #111;
}

header {
  background: #ffc400;
  padding: 16px 12px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
}

header p {
  margin: 4px 0 0;
  font-size: 15px;
}

main {
  padding: 12px;
  max-width: 760px;
  margin: auto;
}

.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.badge {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.card h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 12px 0;
}

.summary {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  white-space: pre-line;
  user-select: text;
  -webkit-user-select: text;
}

.prompt-box {
  margin-top: 14px;
  background: #f7f7f7;
  border-left: 4px solid #ffc400;
  padding: 10px;
  border-radius: 10px;
}

.prompt-box strong {
  display: block;
  margin-bottom: 6px;
}

.prompt-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  user-select: text;
  margin: 0;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.copy-btn {
  flex: 1;
  background: #111;
  color: #fff;
  border: none;
  padding: 11px 6px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.source-list {
  display: none;
  margin-top: 10px;
  background: #f7f7f7;
  padding: 10px;
  border-radius: 10px;
}

.source-list.show {
  display: block;
}

.link-btn {
  display: block;
  background: #ffc400;
  color: #111;
  text-align: center;
  margin-bottom: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
}

.link-btn:last-child {
  margin-bottom: 0;
}

footer {
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: #555;
}