.bgpc-wrap {
  max-width: 860px;
  margin: 18px auto;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.bgpc-main-title {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.2;
  color: #2a76be;
  font-weight: 700;
}

.bgpc-main-description {
  margin: 0 0 14px;
  font-size: 13px;
  color: #666;
}

.bgpc-panel {
  border: 1px solid #cfcfcf;
  background: #fff;
}

.bgpc-form-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-top: 1px solid #dedede;
}

.bgpc-form-row:first-child {
  border-top: none;
}

.bgpc-row-label {
  background: #f5f5f5;
  border-right: 1px solid #dedede;
  padding: 11px 12px;
  font-weight: 700;
  font-size: 13px;
}

.bgpc-row-input {
  padding: 11px 12px;
}

.bgpc-help-text {
  margin: 0;
  font-size: 13px;
  color: #444;
}

.bgpc-input-label {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.bgpc-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bgpc-input-text {
  flex: 1;
  min-width: 260px;
  height: 40px;
  border: 1px solid #bcbcbc;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.bgpc-input-text:focus {
  border-color: #2a76be;
  outline: none;
}

.bgpc-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: #666;
}

.bgpc-action-btn {
  height: 40px;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

.bgpc-run {
  background: #26b24a;
}

.bgpc-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bgpc-error {
  border: 1px solid #dc9d9d;
  background: #fff2f2;
  color: #b04242;
  padding: 9px 10px;
  font-size: 13px;
  margin-top: 10px;
}

.bgpc-status {
  margin-top: 10px;
  font-size: 13px;
  color: #2a76be;
  font-weight: 700;
}

.bgpc-result-block {
  border: 1px solid #d0d0d0;
  background: #fff;
  margin-top: 12px;
}

.bgpc-result-title {
  padding: 8px 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #dcdcdc;
  font-size: 13px;
  font-weight: 700;
}

.bgpc-sub-title {
  border-top: 1px solid #dcdcdc;
}

.bgpc-summary {
  padding: 10px;
  font-size: 14px;
}

.bgpc-summary.is-success {
  color: #1d783d;
  background: #eefbf1;
}

.bgpc-summary.is-warning {
  color: #8a5a11;
  background: #fff8ea;
}

.bgpc-table-wrap {
  overflow-x: auto;
}

.bgpc-result-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bgpc-result-table th,
.bgpc-result-table td {
  border: 1px solid #ededed;
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.bgpc-result-table th {
  width: 38%;
  background: #fafafa;
  font-weight: 700;
}

.bgpc-note-box {
  margin: 10px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  padding: 8px 10px;
  font-size: 12px;
  color: #555;
}

.bgpc-note-box p {
  margin: 0;
}

.bgpc-note-box p + p {
  margin-top: 6px;
}

.bgpc-raw-output {
  margin: 0;
  padding: 10px;
  background: #fcfcfc;
  border-top: 1px solid #ededed;
  color: #333;
  font-size: 12px;
  line-height: 1.5;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 768px) {
  .bgpc-main-title {
    font-size: 24px;
  }

  .bgpc-form-row {
    grid-template-columns: 1fr;
  }

  .bgpc-row-label {
    border-right: none;
    border-bottom: 1px solid #dedede;
  }

  .bgpc-inline-options {
    flex-direction: column;
    align-items: stretch;
  }

  .bgpc-input-text {
    min-width: 0;
    width: 100%;
  }

  .bgpc-action-btn {
    width: 100%;
  }
}
