.apple-workspace {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  margin-bottom: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(29, 43, 70, .035);
}

.apple-query,
.apple-results {
  min-width: 0;
  padding: 24px;
}

.apple-query {
  border-right: 1px solid #e8edf4;
}

.apple-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apple-section-title h2 {
  margin: 0;
  color: #172844;
  font-size: 16px;
  font-weight: 650;
}

.apple-service {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: #596b80;
  font-size: 12px;
}

.apple-service::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c37b37;
}

.apple-service.online::before {
  background: #169678;
}

.apple-intro {
  margin: 14px 0 30px;
  color: #68788d;
  font-size: 13px;
  line-height: 1.6;
}

.apple-form-field {
  display: block;
  color: #34445d;
  font-size: 12px;
  font-weight: 600;
}

.apple-form-field input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 9px;
  padding: 0 13px;
  border: 1px solid #d3dce9;
  border-radius: 7px;
  background: #fff;
  color: #172844;
  font: 14px ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .015em;
}

.apple-form-field input:focus {
  border-color: #6a65d8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 86, 208, .11);
}

.apple-form-field input::placeholder {
  color: #97a3b5;
  font-family: inherit;
  letter-spacing: 0;
}

.apple-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
}

.apple-actions small {
  color: #7a889a;
  font-size: 11px;
}

.apple-form-error {
  margin: 12px 0 0;
  color: #b44545;
  font-size: 12px;
}

.apple-empty {
  padding: 42px 0;
  color: #718095;
  font-size: 13px;
}

.apple-empty b {
  color: #34445d;
  font-size: 14px;
}

.apple-empty p {
  margin: 8px 0 0;
}

.apple-result {
  margin-top: 18px;
}

.apple-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8793a4;
  font-size: 11px;
}

.apple-result-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #956925;
  font-size: 14px;
  font-weight: 650;
}

.apple-result-state::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.apple-result-state.success {
  color: #087e69;
}

.apple-result-state.failed {
  color: #b44545;
}

.apple-code {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 15px 0 0;
  padding: 13px 15px;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  background: #f7f9fc;
}

.apple-code small,
.apple-fields small {
  color: #7a889a;
  font-size: 11px;
}

.apple-code code,
.apple-table-code {
  color: #1c3050;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: text;
}

.apple-code code {
  font-size: 15px;
  font-weight: 650;
}

.apple-table-code {
  display: inline-block;
  max-width: 300px;
  font-size: 12px;
}

.apple-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 8px;
}

.apple-fields div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f5;
}

.apple-fields strong {
  color: #233653;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.apple-result-note,
.apple-by {
  color: #6d7d91;
  font-size: 12px;
  line-height: 1.55;
}

.apple-result-note {
  margin: 14px 0;
}

.apple-by {
  margin: 15px 0 0;
}

.apple-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #d47777;
  background: #fff7f7;
  color: #a93f3f;
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .apple-workspace {
    grid-template-columns: 1fr;
  }

  .apple-query {
    border-right: 0;
    border-bottom: 1px solid #e8edf4;
  }
}

@media (max-width: 540px) {
  .apple-query,
  .apple-results {
    padding: 20px;
  }

  .apple-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .apple-fields {
    grid-template-columns: 1fr;
  }

  .apple-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
.apple-copy-feedback{margin-top:14px}
