/* ===== Cloud edit panel (A 状态 + B 进度 + G 权限) ===== */

.ce-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border, #e8eaef); }
[data-theme="dark"] .ce-section { border-top-color: rgba(255,255,255,0.08); }

.ce-section-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600;
  color: var(--text-mute, #5f6168);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.ce-section-h .ce-sub { font-weight: 400; font-size: 11px; opacity: 0.7; }
.ce-lock { font-weight: 400; font-size: 11px; color: #a0a4ad; }

/* status buttons */
.ce-status-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ce-st {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--border, #e0e3e8);
  background: transparent;
  color: var(--text-mute, #5f6168);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}
[data-theme="dark"] .ce-st { border-color: rgba(255,255,255,0.12); color: #8a92a6; }
.ce-st:hover:not(:disabled) { border-color: #06b6d4; color: #06b6d4; }
.ce-st:disabled { opacity: 0.45; cursor: not-allowed; }
.ce-st.on { background: #06b6d4; border-color: #06b6d4; color: #fff; font-weight: 500; }
.ce-st.st-blocked.on { background: #dc4d4d; border-color: #dc4d4d; }
.ce-st.st-paused.on  { background: #8a8e95; border-color: #8a8e95; }
.ce-st.st-done.on    { background: #2d8a4e; border-color: #2d8a4e; }

/* progress input */
.ce-input { display: flex; gap: 8px; margin-bottom: 12px; }
.ce-input textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border, #e0e3e8);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg, #fff);
  color: var(--text, #1a1f2e);
  resize: vertical;
  outline: none;
  min-height: 38px;
}
[data-theme="dark"] .ce-input textarea {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.12);
  color: #e8eaf0;
}
.ce-input textarea:focus { border-color: #06b6d4; }
.ce-input .btn-primary { align-self: stretch; padding: 0 18px; white-space: nowrap; }

.ce-err {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(220,77,77,0.1);
  border-left: 3px solid #dc4d4d;
  color: #dc4d4d;
  font-size: 12px;
  border-radius: 3px;
}

/* log list */
.ce-log-list { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow: auto; padding-right: 4px; }
.ce-log { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; background: var(--bg-soft, #f7f8fa); }
[data-theme="dark"] .ce-log { background: rgba(255,255,255,0.03); }
.ce-log-status { border-left: 3px solid #06b6d4; }
.ce-log-create { border-left: 3px solid #8a8e95; opacity: 0.7; }

.ce-log-head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 3px; }
.ce-log-head b { color: var(--text, #1a1f2e); font-weight: 600; }
[data-theme="dark"] .ce-log-head b { color: #e8eaf0; }
.ce-log-at { color: var(--text-mute, #9094a0); font-size: 11px; }
.ce-kind-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: rgba(6,182,212,0.15); color: #06b6d4; font-weight: 500;
}
.ce-log-create .ce-kind-tag { background: rgba(138,142,149,0.18); color: #8a8e95; }
.ce-log-text { font-size: 13px; line-height: 1.55; color: var(--text, #1a1f2e); white-space: pre-wrap; word-break: break-word; }
[data-theme="dark"] .ce-log-text { color: #c8d0e0; }
.ce-log-text b { color: #06b6d4; }

/* ===== C. 新建任务 ===== */
.cw-fab {
  position: fixed; right: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 6px;
  padding: 12px 20px;
  background: #06b6d4; color: #0a0e1a;
  border: none; border-radius: 28px;
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(6,182,212,0.4);
  z-index: 100;
  transition: transform 0.12s, box-shadow 0.12s;
}
.cw-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(6,182,212,0.5); }
.cw-fab > span:first-child { font-size: 20px; line-height: 1; }
.cw-fab-lbl { font-size: 13px; }

.cw-new-modal { max-width: 480px; }
.cw-new-form { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.cw-new-form label { display: flex; flex-direction: column; gap: 5px; }
.cw-new-row { display: flex; gap: 12px; }
.cw-half { flex: 1; }
.cw-lbl { font-size: 12px; font-weight: 600; color: var(--text-mute, #5f6168); letter-spacing: 0.3px; }
[data-theme="dark"] .cw-lbl { color: #8a92a6; }
.cw-hint { font-size: 11px; color: #a0a4ad; margin-top: 2px; }

.cw-new-form input, .cw-new-form select, .cw-new-form textarea {
  padding: 8px 12px;
  border: 1.5px solid var(--border, #e0e3e8);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg, #fff);
  color: var(--text, #1a1f2e);
  outline: none;
}
[data-theme="dark"] .cw-new-form input,
[data-theme="dark"] .cw-new-form select,
[data-theme="dark"] .cw-new-form textarea {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #e8eaf0;
}
.cw-new-form input:focus, .cw-new-form select:focus, .cw-new-form textarea:focus {
  border-color: #06b6d4;
}

.cw-new-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.btn-secondary {
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid var(--border, #e0e3e8);
  color: var(--text-mute, #5f6168);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
[data-theme="dark"] .btn-secondary { border-color: rgba(255,255,255,0.12); color: #8a92a6; }
.btn-secondary:hover { border-color: #06b6d4; color: #06b6d4; }
