#inquiry-dialog {
  width: min(1000px, 94vw);
  max-width: none;
  max-height: 90dvh;
  padding: 0;
  overflow: auto;
  background: #1e3b30;
  color: #fff;
}
#inquiry-dialog .contact { padding: clamp(20px, 4vw, 48px); }
#inquiry-dialog .contact h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
#inquiry-dialog .inquiry-close {
  position: sticky;
  top: 8px;
  z-index: 2;
  display: block;
  margin: 8px 8px 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f0f4ea;
  color: #1e3b30;
  font-size: 1.5rem;
  cursor: pointer;
}

#inquiry-dialog button[type="submit"] {
  position: sticky;
  bottom: 8px;
  z-index: 1;
  min-height: 44px;
  box-shadow: 0 3px 12px #0004;
}

#inquiry-dialog #inquiry button[type="submit"] {
  position: static;
  width: 100%;
  max-width: none;
  height: auto;
  padding: 12px 18px;
  white-space: normal;
  background: #f0f4ea;
  color: #1e3b30;
}
#inquiry-dialog :is(input, textarea, select) {
  color: #fff;
}
#inquiry-dialog :is(input, textarea)::placeholder {
  color: #baccc2;
  opacity: 1;
}
#inquiry-dialog select option {
  background: #1e3b30;
  color: #fff;
}

#inquiry-reader { width: min(620px, 92vw); max-height: 85dvh; overflow: auto; }
#inquiry-reader form[method="dialog"] { display: flex; justify-content: flex-end; }
#inquiry-reader input { display: block; margin: 8px 0 12px; }
#reader-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
#board-list .board-row button { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
#board-list .board-row {
  display: grid;
  grid-template-columns: minmax(2ch, auto) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  overflow-wrap: anywhere;
}
#board-list .board-row button:disabled { opacity: .55; cursor: default; }
#board-all { margin-top: 16px; }

#inquiry-reader {
  box-sizing: border-box;
  padding: clamp(16px, 4vw, 28px);
  color: #17251f;
  background: #fff;
  overflow-wrap: anywhere;
}
#inquiry-reader #reader-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
#inquiry-reader #reader-form[hidden] { display: none; }
#inquiry-reader #reader-form label { color: #253a30; }
#inquiry-reader #reader-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 6px 0 0;
  color: #17251f;
  background: #fff;
  border: 1px solid #687b70;
  font-size: 16px;
}
#inquiry-reader #reader-form button {
  position: static;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
  white-space: nowrap;
  color: #fff;
  background: #1e3b30;
}
#inquiry-reader form[method="dialog"] button {
  position: static;
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  height: 44px;
}
#board-list .board-row { grid-template-columns: minmax(3ch, max-content) max-content minmax(0, 1fr); }
#board-list .board-row::before { content: none; }
#board-list .board-row button { white-space: nowrap; }
#inquiry-reader #reader-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
}
#inquiry-reader #reader-edit-form[hidden] { display: none; }
#inquiry-reader #reader-edit-body {
  box-sizing: border-box;
  width: 100%;
  min-height: 150px;
  color: #17251f;
  background: #fff;
  border: 1px solid #687b70;
  font-size: 16px;
}
#inquiry-reader :is(#reader-edit, #reader-edit-form button) {
  position: static;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
  white-space: normal;
  color: #fff;
  background: #1e3b30;
}
#inquiry-reader .reader-actions { display: flex; gap: 8px; flex-wrap: wrap; }
