* {
  box-sizing: border-box;
}

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

header {
  background: #2563eb;
  color: white;
  padding: 16px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 24px;
}

main {
  max-width: 900px;
  margin: 24px auto 40px;
  padding: 0 12px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  margin-bottom: 16px;
}

.inner-card {
  box-shadow: none;
  border: 1px solid #e5e7eb;
}

.label-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  resize: vertical;
}

.button-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
}

.send-btn {
  flex: 1;
  max-width: 260px;
  background: #2563eb;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.send-btn:hover {
  background: #1d4ed8;
}

.hidden {
  display: none;
}

.summary-box {
  background: #eff6ff;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  font-size: 14px;
}

th {
  background: #f9fafb;
  width: 120px;
  text-align: left;
}

.sub-title {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  padding: 4px 8px;
  background: #eef2ff;
  border-radius: 999px;
  font-size: 13px;
}

.history-link-wrap {
  margin-top: 16px;
  text-align: right;
}
