.cloud-editor {
  color-scheme: light;
  --border: #dce3eb;
  --text: #213044;
  --muted: #738196;
  --blue: #2563eb;
}
.cloud-editor * {
  box-sizing: border-box;
}
.cloud-editor body {
  margin: 0;
  background: #f3f5f8;
  color: var(--text);
  font:
    14px/1.5 "Microsoft YaHei",
    "Segoe UI",
    sans-serif;
}
.cloud-editor button,
.cloud-editor input,
.cloud-editor select,
.cloud-editor textarea {
  font: inherit;
}
.cloud-editor button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cloud-editor button {
  cursor: pointer;
}
.cloud-editor button:focus-visible,
.cloud-editor input:focus,
.cloud-editor select:focus {
  outline: 2px solid #93b4ff;
  outline-offset: 2px;
}
.cloud-editor button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 7px;
  padding: 7px 13px;
}
.cloud-editor button:hover {
  background: #f0f5ff;
  border-color: #bdcfee;
}
.cloud-editor button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.cloud-editor button.danger {
  color: #b83c3c;
}
.cloud-editor .top {
  height: 56px;
  background: #14263e;
  color: #ced8e5;
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 30px;
}
.cloud-editor .brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.cloud-editor .nav {
  display: flex;
  gap: 23px;
  font-size: 13px;
}
.cloud-editor .nav b {
  color: white;
}
.cloud-editor .badge {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 9px;
  border: 1px solid #53647b;
  border-radius: 5px;
}
.cloud-editor main {
  max-width: 1600px;
  margin: auto;
  padding: 18px 28px 22px;
}
.cloud-editor .heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cloud-editor h1 {
  font-size: 21px;
  margin: 0;
}
.cloud-editor h2 {
  font-size: 15px;
  margin: 0;
}
.cloud-editor .sub {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}
.cloud-editor .actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cloud-editor .metadata {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 230px 1fr 120px;
  gap: 16px;
  margin-bottom: 16px;
}
.cloud-editor .metadata label {
  font-size: 12px;
  color: #5e6e82;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cloud-editor input,
.cloud-editor select {
  min-width: 0;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 7px 10px;
  height: 35px;
}
.cloud-editor .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  height: calc(100dvh - 251px);
  min-height: 490px;
}
.cloud-editor .pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
.cloud-editor .pane-head {
  flex: none;
  height: 156px;
  padding: 14px 17px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cloud-editor .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cloud-editor .count {
  font-size: 12px;
  color: var(--muted);
}
.cloud-editor .toolbar {
  display: flex;
  gap: 8px;
}
.cloud-editor .search {
  flex: 1;
  position: relative;
  min-width: 0;
}
.cloud-editor .search input {
  width: 100%;
  padding-left: 31px;
  height: 36px;
  background: #f8fafc;
}
.cloud-editor .search span {
  position: absolute;
  left: 10px;
  top: 6px;
  color: #8391a5;
  font-size: 17px;
}
.cloud-editor .filter {
  font-size: 12px;
  white-space: nowrap;
  padding: 6px 10px;
}
.cloud-editor .filter.active {
  color: var(--blue);
  border-color: #b0c8fa;
  background: #eff5ff;
}
.cloud-editor .left-body,
.cloud-editor .right-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.cloud-editor .left-body {
  padding: 4px 18px 20px;
}
.cloud-editor .right-body {
  background: #111d30;
  color: #d6e7ff;
  position: relative;
}
.cloud-editor .code {
  display: block;
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: inherit;
  tab-size: 2;
  margin: 0;
  padding: 20px 22px;
  min-height: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.95 Consolas,
    "Microsoft YaHei",
    monospace;
}
.cloud-editor .preview-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  height: 36px;
}
.cloud-editor .preview-info span:first-child {
  color: #42856a;
}
.cloud-editor .section {
  border-bottom: 1px solid var(--border);
}
.cloud-editor summary {
  padding: 13px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}
.cloud-editor summary:before {
  content: "›";
  font-size: 19px;
  line-height: 16px;
  color: #8090a5;
  transform: rotate(0);
}
.cloud-editor details[open] > summary:before {
  transform: rotate(90deg);
}
.cloud-editor summary small {
  font-size: 11px;
  color: #8b98a9;
  font-weight: 400;
  margin-left: auto;
}
.cloud-editor .field {
  padding: 12px 0;
  border-top: 1px solid #eef1f5;
}
.cloud-editor .field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
}
.cloud-editor .key {
  color: #92a0b2;
  font:
    10px Consolas,
    monospace;
  margin-left: auto;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}
.cloud-editor .field input,
.cloud-editor .field select {
  width: 100%;
}
.cloud-editor .field-foot {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  font-size: 11px;
  color: #8a97a9;
}
.cloud-editor .set {
  color: #b87d1b;
}
.cloud-editor .reset {
  padding: 0;
  border: 0;
  background: none;
  color: #7a8da9;
  font-size: 11px;
}
.cloud-editor .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 11px;
  color: var(--muted);
  height: 35px;
  flex: none;
}
.cloud-editor .empty {
  padding: 35px 8px;
  color: var(--muted);
  text-align: center;
}
.cloud-editor .hidden {
  display: none !important;
}
.cloud-editor .list {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 12px;
  padding: 10px 16px;
}
.cloud-editor table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.cloud-editor td,
.cloud-editor th {
  padding: 8px;
  border-bottom: 1px solid #edf1f6;
}
.cloud-editor td button {
  font-size: 12px;
  padding: 4px 11px;
}
.cloud-editor #toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #18324e;
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  box-shadow: 0 5px 20px #0002;
  display: none;
  z-index: 8;
}
.cloud-editor .notice {
  font-size: 11px;
  color: #8794a7;
  margin-top: 8px;
}
.cloud-editor .error {
  color: #bf4a39 !important;
}
@media (max-width: 850px) {
  .cloud-editor .top {
    padding: 0 16px;
  }
  .cloud-editor .nav {
    display: none;
  }
  .cloud-editor main {
    padding: 14px;
  }
  .cloud-editor .metadata {
    grid-template-columns: 1fr 1fr;
  }
  .cloud-editor .metadata label:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .cloud-editor .split {
    grid-template-columns: 1fr;
    height: auto;
  }
  .cloud-editor .pane {
    height: 620px;
  }
  .cloud-editor .heading {
    align-items: flex-start;
  }
  .cloud-editor .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 220px;
  }
  .cloud-editor .key {
    display: none;
  }
}

.cloud-editor {
  --blue: #2563eb;
  --muted: #738196;
  color: #213044;
}
.cloud-editor .split {
  height: 720px;
  max-height: calc(100dvh - 180px);
  min-height: 520px;
}
.cloud-editor .code {
  box-shadow: none;
  line-height: 1.8;
  font-family: Consolas, "Microsoft YaHei", monospace;
}
.cloud-editor #text-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cloud-editor .foot {
  gap: 12px;
}
.cloud-editor #toast {
  position: fixed;
}
.cloud-editor .metadata {
  margin-top: 12px;
}
.cloud-editor details > summary {
  display: flex;
}
.cloud-editor .code:focus {
  outline: 2px solid #93b4ff;
  outline-offset: -2px;
}
.cloud-editor [inert] {
  opacity: 0.6;
}
@media (max-width: 850px) {
  .cloud-editor .split {
    max-height: none;
    height: auto;
  }
}

.cloud-management > div > button,
.cloud-management table button,
.cloud-management [role="alert"] button {
  border: 1px solid #dce3eb;
  border-radius: 7px;
  background: #fff;
  color: #213044;
  padding: 7px 12px;
  cursor: pointer;
}
.cloud-management table td,
.cloud-management table th {
  padding: 9px 12px;
  border-bottom: 1px solid #dce3eb;
}
.cloud-management table {
  border-collapse: collapse;
}
.cloud-management table td small {
  color: #738196;
  margin-top: 3px;
}
