#cloud-editor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  color: #34413a;
  font:
    12px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  white-space: nowrap;
}
#cloud-editor-bar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 24px;
  color: inherit;
  text-decoration: none;
  border-left: 1px solid var(--guide-line);
  padding-left: 14px;
  font-size: 12px;
}
#cloud-editor-bar a:hover {
  color: #2d6549;
}
#cloud-editor-project {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
#cloud-editor-name {
  display: block;
  max-width: 32ch;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 12px;
}
#cloud-editor-state {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #66736b;
  font-size: 11px;
}
#cloud-editor-state::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #bc9450;
}
#cloud-editor-state[data-status="saved"]::before {
  background: #548866;
}
#cloud-editor-state[data-status="loading"]::before {
  background: #a7b1ab;
}
#cloud-editor-state[data-status="error"]::before {
  background: #bf7159;
}
#cloud-editor-state[data-status="working"]::before {
  width: 8px;
  height: 8px;
  border: 1.5px solid #b8cbbc;
  border-top-color: #2d6549;
  background: transparent;
  animation: cloud-action-spin 0.8s linear infinite;
}
#cloud-editor-bar[data-operation]::after {
  content: "";
  position: fixed;
  top: calc(var(--guide-top) - 2px);
  left: 0;
  z-index: 51;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #62a17d, transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: cloud-action-progress 1.5s ease-in-out infinite;
}
@keyframes cloud-action-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cloud-action-progress {
  from {
    background-position: -70% 0;
  }
  to {
    background-position: 170% 0;
  }
}
#cloud-editor-bar button,
#cloud-editor-dialog button {
  font: inherit;
  border: 1px solid #b1c5a7;
  border-radius: 4px;
  background: #f9fbf4;
  color: #2d563c;
  padding: 7px 12px;
  cursor: pointer;
}
#cloud-editor-bar #cloud-editor-save {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 30px;
  padding: 0 11px;
  border-radius: 5px;
  background: #2d6549;
  color: #fff;
  border-color: #2d6549;
}
#cloud-editor-bar #cloud-editor-save:hover {
  background: #244f3b;
}
#cloud-editor-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;
}
#cloud-editor-bar .cloud-secondary-action,
#guide-cloud-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#cloud-editor-bar .cloud-secondary-action {
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--guide-line);
  border-radius: 5px;
  background: transparent;
  color: #46574c;
}
#cloud-editor-bar .cloud-secondary-action:hover {
  background: #e9eeeb;
  border-color: #bdcbbf;
}
.cloud-secondary-action svg {
  flex-shrink: 0;
}
#guide-nav .cloud-secondary-action[aria-busy="true"]::before {
  margin-right: 0;
}
.cloud-secondary-action[aria-busy="true"] svg {
  display: none;
}
#cloud-editor-bar button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#cloud-editor-bar #cloud-editor-save[data-feedback="busy"] {
  opacity: 1;
  cursor: progress;
}
#cloud-editor-save[data-feedback="busy"] svg {
  transform-origin: center;
  animation: cloud-action-spin 0.8s linear infinite;
}
#cloud-editor-bar #cloud-editor-save[data-feedback="success"] {
  background: #244f3b;
  border-color: #244f3b;
}
#cloud-editor-bar #cloud-editor-save[data-feedback="error"] {
  background: #99503b;
  border-color: #99503b;
}
#cloud-editor-notice {
  position: fixed;
  top: calc(var(--guide-top) + 8px);
  right: 12px;
  width: min(380px, calc(100vw - 24px));
  z-index: 45;
  padding: 14px 16px;
  background: #fffdf8;
  border: 1px solid #e1d7bf;
  border-radius: 8px;
  color: #725b2b;
  font:
    12px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  box-shadow: 0 8px 32px #1934201c;
}
#cloud-editor-notice[hidden] {
  display: none;
}
.guide-focus-mode #cloud-editor-notice {
  top: 48px;
}
#cloud-editor-notice-close {
  float: right;
  background: none;
  border: 0;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}
#cloud-editor-notice[data-kind="help"] {
  background: #f8fbf8;
  border-color: #ccdacf;
  color: #244d38;
}
#cloud-editor-notice[data-kind="success"] {
  background: #f1f8f3;
  border-color: #bed4c4;
  color: #244d38;
}
#cloud-editor-notice[data-kind="success"] > span::before {
  content: "✓";
  margin-right: 7px;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  #cloud-editor-state[data-status="working"]::before,
  #cloud-editor-save[data-feedback="busy"] svg,
  #cloud-editor-bar[data-operation]::after {
    animation: none;
  }
  #cloud-editor-bar[data-operation]::after {
    width: 100%;
    background: #62a17d;
    opacity: 0.65;
  }
}
#cloud-editor-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
#cloud-editor-notice-actions:not(:empty) {
  margin-top: 10px;
}
#cloud-editor-notice-actions a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#cloud-editor-notice :focus-visible {
  outline: 3px solid #74975e;
  outline-offset: 2px;
}
#cloud-editor-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid #b1c5a7;
  border-radius: 8px;
  color: #244d38;
  background: #f8fbf1;
  font: 14px/1.6 sans-serif;
}
#cloud-editor-dialog::backdrop {
  background: #183e3566;
}
#cloud-editor-dialog label {
  display: block;
  margin-bottom: 20px;
}
#cloud-editor-dialog input {
  display: block;
  width: 100%;
  font: inherit;
  padding: 9px;
  border: 1px solid #b1c5a7;
  border-radius: 3px;
  margin-top: 8px;
}
#cloud-editor-dialog button {
  margin-right: 10px;
}
#cloud-editor-bar :focus-visible,
#cloud-editor-dialog :focus-visible {
  outline: 3px solid #74975e;
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  #cloud-editor-bar a span {
    display: none;
  }
  #cloud-editor-bar a {
    padding-left: 10px;
  }
  #cloud-editor-project {
    display: grid;
    gap: 0;
    line-height: 15px;
  }
  #cloud-editor-name {
    max-width: 100%;
  }
  #cloud-editor-state {
    display: block;
    font-size: 10px;
  }
  #cloud-editor-state::before {
    display: inline-block;
    vertical-align: 1px;
    margin-right: 4px;
  }
}
@media (min-width: 900px) and (max-width: 1279px) {
  #cloud-editor-actions .cloud-secondary-action {
    width: 30px;
    padding: 0;
    justify-content: center;
  }
  #cloud-editor-actions .cloud-secondary-action span {
    display: none;
  }
}
@media (max-width: 600px) {
  #cloud-editor-bar {
    gap: 8px;
  }
  #cloud-editor-bar #cloud-editor-save {
    width: 30px;
    padding: 0;
  }
  #cloud-editor-save span {
    display: none;
  }
}
