/* Read every comment directly in the response list. */
#answers .table-wrap { max-height: none; overflow: visible; }
#answers table { table-layout: fixed; white-space: normal; }
#answers th, #answers td { vertical-align: top; overflow-wrap: anywhere; }
#answers th:nth-child(1) { width: 126px; }
#answers th:nth-child(3) { width: 150px; }
#answers th:nth-child(4) { width: 112px; }
#answers th:nth-child(5) { width: 88px; }
#answers .consent-cell .respondent { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: #172b43; overflow-wrap: anywhere; }
#answers td.preview {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: pre-wrap;
  font-size: 15.5px;
  line-height: 1.75;
}
#answers td button { min-height: 44px; }
#answers .response-text { white-space: normal; }
#answers .response-text + .response-text { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #dce4ed; }
#answers .response-text h3 {
  font-size: 12.5px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #526780;
  display: inline-block;
  background: #f4f7fb;
  padding: 2px 8px;
  border-radius: 4px;
}
#answers .response-text p { margin: 0; white-space: pre-wrap; color: #172b43; }
#answers .response-text.response-empty { margin-top: 10px; padding-top: 8px; }
#answers .response-text.response-empty h3,
#answers .response-text.response-empty p {
  display: inline;
  font-size: 13px;
  color: #64748b;
  background: transparent;
  padding: 0;
}
#answers .response-text.response-empty h3::after { content: "："; }
.organizer-notes-lead { max-width: none; }
.notes-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dce4ed;
}
.toc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  background: #f4f7fb;
  border: 1px solid #dce4ed;
  border-radius: 9999px;
  color: #172b43;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.toc-chip:hover {
  background: #edf5ff;
  border-color: #1769d2;
  color: #1769d2;
}
.organizer-notes { max-width: none; scroll-margin-top: 24px; }
.organizer-notes p, .organizer-notes li { overflow-wrap: anywhere; line-height: 1.75; }
.organizer-notes li + li { margin-top: 8px; }
.organizer-notes ul { padding-left: 22px; margin-bottom: 0; }
.note-head { display: flex; align-items: center; gap: 10px; }
.note-head h3 { margin: 0; flex: 1 1 auto; font-size: 20px; line-height: 1.5; color: #172b43; }
.organizer-notes h4.note-sub { margin: 20px 0 6px; padding-top: 14px; border-top: 1px dashed #dce4ed; font-size: 17px; color: #172b43; }
.organizer-notes li { display: flex; align-items: flex-start; gap: 8px; }
.organizer-notes li::before { content: "・"; flex: none; color: #526780; }
.organizer-notes ul { list-style: none; padding-left: 0; }
.note-edit {
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  font-size: 13px;
  color: #526780;
  background: #fff;
  border: 1px solid #dce4ed;
  border-radius: 8px;
}
.note-edit:hover { color: #1769d2; border-color: #1769d2; }
.note-add {
  margin-top: 10px;
  min-height: 44px;
  padding: 6px 14px;
  font-size: 14px;
  color: #1769d2;
  background: #f4f7fb;
  border: 1px dashed #9fb6d3;
  border-radius: 8px;
}
.inline-editor { flex: 1 1 auto; display: grid; gap: 10px; padding: 12px; background: #f8fafc; border: 1px solid #dce4ed; border-radius: 10px; }
.inline-label { display: grid; gap: 4px; font-size: 13px; color: #526780; }
.inline-hint { font-size: 12px; color: #6b7f96; }
.inline-part { margin: 0; padding: 12px; display: grid; gap: 10px; border: 1px solid #dce4ed; border-radius: 8px; background: #fff; }
.inline-part legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: #526780; }
.inline-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #b42318; justify-self: start; }
.inline-editor .inline-check input { width: 20px; min-height: 20px; height: 20px; padding: 0; }
.inline-editor textarea { resize: vertical; overflow: hidden; }
.inline-editor input, .inline-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-actions button { min-height: 44px; }
.inline-actions .danger { margin-left: auto; color: #b42318; border-color: #f3b4ad; background: #fff; }
.inline-actions .danger[data-armed] { color: #fff; background: #b42318; }
.event-pick { display: flex; align-items: center; gap: 8px; color: #526780; font-weight: 600; flex: 1 1 320px; min-width: 0; }
.event-pick select { flex: 1 1 auto; width: 100%; min-width: 0; max-width: 520px; }
@media (max-width: 600px) {
  .event-pick { flex-direction: column; align-items: stretch; flex-basis: 100%; }
}
.promo-wrap { max-height: none; overflow: visible; }
.promo-table { width: 100%; border-collapse: collapse; }
.promo-table th, .promo-table td { padding: 12px 14px; border-bottom: 1px solid #dce4ed; text-align: left; vertical-align: middle; }
.promo-table thead th { font-size: 13px; color: #526780; background: #f8fafc; }
.promo-table tbody th { font-size: 15px; font-weight: 600; color: #172b43; background: transparent; overflow-wrap: anywhere; }
.promo-date { width: 9.5em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.promo-date .badge { margin-left: 8px; }
.promo-action { width: 1%; white-space: nowrap; text-align: right; }
.promo-paths-row td { padding-top: 0; background: #fff; }
.promo-paths { margin: 0; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f7fb; border-radius: 8px; }
@media (max-width: 600px) {
  .promo-table thead { display: none; }
  .promo-table tr:not(.promo-paths-row) { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid #dce4ed; }
  .promo-table tr:not(.promo-paths-row) > * { border: 0; }
  .promo-table tbody th { grid-column: 1 / -1; grid-row: 1; padding-bottom: 0; }
  .promo-paths-row td { display: block; }
}
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #fff;
  cursor: zoom-out;
}
.qr-screen img { width: min(78vh, 90vw); height: auto; image-rendering: pixelated; }
.qr-screen .qr-url { margin: 0; font-size: clamp(18px, 3vw, 32px); font-weight: 700; color: #172b43; }
.qr-screen .qr-hint { margin: 0; color: #526780; }
.qr-screen .qr-close { min-height: 44px; padding: 8px 18px; font-size: 15px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; }
@media (max-width: 900px) {
  #answers table, #answers tbody { display: block; }
  #answers thead { display: none; }
  #answers tbody tr.response-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 18px 12px;
    border-bottom: 1px solid #dce4ed;
  }
  #answers tr.response-row td { display: block; padding: 0; border: 0; min-width: 0; width: auto; }
  #answers tr.response-row td:first-child { flex: 1 1 0; align-self: center; }
  #answers td.preview { flex-basis: 100%; order: 1; }
  #answers tr.response-row td:nth-child(n+3):not(.preview) { order: 2; color: #526780; align-self: center; }
  #answers tr.response-row td:last-child { margin-left: auto; }
}
