.bgic-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;
}

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

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

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

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

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

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

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

.bgic-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

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

.bgic-mt-8 {
  margin-top: 8px;
}

.bgic-dropzone {
  border: 2px dashed #c8d0d7;
  background: #f9fbfd;
  border-radius: 4px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
}

.bgic-dropzone.is-dragover {
  border-color: #2a76be;
  background: #edf5fc;
}

.bgic-dropzone p {
  margin: 0;
}

.bgic-file-btn {
  display: inline-flex;
  align-items: center;
}

.bgic-file-btn span,
.bgic-mini-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #b8b8b8;
  border-radius: 2px;
  background: #f9f9f9;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.bgic-mini-btn.is-active {
  border-color: #3aa25c;
  background: #eaf8ef;
  color: #1d783d;
}

.bgic-selected-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.bgic-selected-list li {
  font-size: 12px;
  color: #444;
}

.bgic-input-range {
  width: 220px;
  height: 20px;
}

.bgic-input-num {
  width: 88px;
  height: 30px;
  border: 1px solid #bcbcbc;
  padding: 3px 7px;
  font-size: 14px;
  border-radius: 2px;
  box-sizing: border-box;
}

.bgic-actions {
  margin: 16px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.bgic-compress {
  background: #26b24a;
}

.bgic-reset {
  background: #444;
}

.bgic-download {
  background: #2580d8;
}

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

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

.bgic-status {
  margin-top: 8px;
  font-size: 12px;
  color: #555;
}

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

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

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

.bgic-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bgic-result-table th,
.bgic-result-table td {
  border: 1px solid #ececec;
  padding: 8px;
  text-align: left;
}

.bgic-result-table th {
  background: #fafafa;
}

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

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

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

  .bgic-actions {
    flex-direction: column;
  }

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