/* 草料式生码首页 —— 零代码二维码 */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #eef0f3;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --brand: #16a34a;
  --brand-hover: #15803d;
  --brand-soft: rgba(22, 163, 74, 0.08);
  --radius: 14px;
  --nav-h: 56px;
  --content-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: #2d2d3a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }

/* —— 导航（对齐主站） —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--content-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--brand); }
.logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.link-btn {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 10px;
  text-decoration: none;
}
.link-btn:hover { color: var(--brand); text-decoration: none; }
.cta-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--brand) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(22, 163, 74, 0.25);
  background: var(--brand-soft);
  white-space: nowrap;
  cursor: pointer;
}
.cta-btn:hover {
  color: #fff !important;
  background: var(--brand);
  border-color: var(--brand);
}
.cta-btn.is-authed {
  color: #fff !important;
  background: var(--brand);
  border-color: var(--brand);
}
.cta-btn.is-authed:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.cta-btn.lg {
  margin-left: 0;
  padding: 10px 22px;
  font-size: 14px;
  color: #fff !important;
  background: var(--brand);
  border-color: var(--brand);
}
.cta-btn.lg:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.cta-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 24px 24px 48px;
}

/* —— 统一生码面板 —— */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  background: #fff;
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #4b5563;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
a.tab:hover { text-decoration: none; color: var(--ink); background: transparent; }
a.tab.active:hover { color: var(--brand); }
.tab:hover { color: var(--ink); background: transparent; }
.tab.active {
  color: var(--brand);
  font-weight: 700;
  background: transparent;
}
.tab.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px 2px 0 0;
}
.tab.soon { color: #c0c4cc; cursor: not-allowed; }
.tab.soon em {
  font-style: normal;
  font-size: 11px;
  margin-left: 4px;
  color: #d1d5db;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  min-height: 560px;
}

.editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #fff;
}
.editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 8px;
  min-height: 0;
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.editor-head h2,
.editor-head .editor-title,
.editor-head h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.editor-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.adv-edit-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 6px;
  background: rgba(22, 163, 74, 0.06);
  color: #16a34a;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.adv-edit-btn:hover {
  background: rgba(22, 163, 74, 0.12);
  border-color: #16a34a;
  color: #15803d;
}
.adv-edit-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #9ca3af;
  cursor: help;
  outline: none;
}
.adv-edit-help:hover,
.adv-edit-help:focus-visible {
  color: #6b7280;
}
.adv-edit-help-icon {
  display: block;
}
.adv-edit-tip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(260px, 70vw);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  color: #4b5563;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}
.adv-edit-tip::before {
  content: '';
  position: absolute;
  right: 8px;
  top: -5px;
  width: 9px;
  height: 9px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  transform: rotate(45deg);
}
.adv-edit-help:hover .adv-edit-tip,
.adv-edit-help:focus-visible .adv-edit-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.type-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.type-panel[hidden] { display: none !important; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.field-grow {
  flex: 1;
  margin-bottom: 8px;
  min-height: 0;
}
.field-grow textarea {
  flex: 1;
  min-height: 220px;
  resize: none;
}
.wifi-hidden-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.wifi-hidden-opt input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #16a34a;
  cursor: pointer;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.field textarea { line-height: 1.55; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.hint {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.check-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
}

.live-tip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  color: #555;
  background: #fafbfc;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}
.live-tip strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.live-tip p { font-size: 13px; margin-bottom: 18px; color: var(--muted); max-width: 28em; }

.file-box,
.media-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.file-drop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 220px;
  padding: 36px 24px;
  border: 1px dashed #16a34a;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.file-drop[hidden] {
  display: none !important;
}
.file-drop:hover,
.file-drop.dragover {
  background: rgba(22, 163, 74, 0.04);
  border-color: #15803d;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}
.file-drop:focus-visible {
  outline: 2px solid rgba(22, 163, 74, 0.45);
  outline-offset: 2px;
}
.file-drop-icon {
  color: #16a34a;
  flex-shrink: 0;
}
.file-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 36px;
  padding: 0 20px;
  border-radius: 4px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
}
.file-drop:hover .file-drop-btn {
  background: #15803d;
}
.file-drop-tip {
  margin: 0;
  max-width: 34em;
  font-size: 12px;
  line-height: 1.6;
  color: #999;
}
.file-format-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.file-format-link:hover { color: #15803d; }
.file-format-panel {
  width: min(100%, 420px);
  margin-top: 2px;
  padding: 10px 12px;
  text-align: left;
  background: #f8faf9;
  border: 1px solid #e5ebe7;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: #4b5563;
}
.file-format-panel[hidden] { display: none !important; }
.file-format-panel .fmt-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
  padding: 4px 0;
}
.file-format-panel .fmt-row + .fmt-row {
  border-top: 1px dashed #e5e7eb;
}
.file-format-panel .fmt-type {
  color: #6b7280;
  flex-shrink: 0;
}
.file-format-panel .fmt-exts {
  color: #1f2937;
  word-break: break-all;
}
.file-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-progress[hidden] {
  display: none !important;
}
.file-progress-bar {
  height: 8px;
  border-radius: 99px;
  background: #eef0f3;
  overflow: hidden;
}
.file-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #16a34a;
  border-radius: 99px;
  transition: width .15s ease;
}
#file-progress-text {
  font-size: 12px;
  color: var(--muted);
}
.file-list-wrap {
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.file-list-wrap[hidden] { display: none !important; }
.file-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px 4px;
  max-height: 320px;
  overflow: auto;
}
.file-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  padding: 18px 40px 16px;
  text-align: center;
}
.file-item + .file-item {
  border-top: 1px solid #f0f2f5;
}
.file-item-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.file-item-name {
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  word-break: break-all;
  line-height: 1.4;
}
.file-item-size {
  font-size: 12px;
  color: #9ca3af;
}
.file-item-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 2px;
}
.file-item-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.file-item-btn:hover {
  background: #f3f4f6;
  color: #4b5563;
}
.file-item-btn.is-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}
.file-item-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.file-add-more {
  width: 100%;
  border: 0;
  border-top: 1px solid #f0f2f5;
  background: #fff;
  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
}
.file-add-more:hover {
  background: rgba(22, 163, 74, 0.04);
}
.file-add-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.file-result {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.file-result[hidden] {
  display: none !important;
}
.file-result-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
  word-break: break-all;
}
.file-result-row:last-of-type { margin-bottom: 12px; }
.file-result-label {
  flex-shrink: 0;
  width: 36px;
  color: var(--muted);
}
.file-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.adv {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.adv-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
}
.adv-toggle span { color: var(--muted); font-weight: 400; font-size: 12px; }
.adv.collapsed .adv-body { display: none; }
.adv-body { padding: 8px 0 4px; }
.sub-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.sub-label + .logo-row,
.color-fields + .sub-label { margin-top: 12px; }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.colors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e5e7eb;
  cursor: pointer;
  padding: 0;
}
.color-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.color-field input[type="color"] {
  width: 36px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0;
  background: none;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.logo-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.btn-text {
  border: 0;
  background: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}
.btn-text:hover { text-decoration: underline; }

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

/* —— 右侧预览列 —— */
.preview {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  background: #f8faf9;
  min-width: 0;
}
.preview-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  text-align: center;
}
.stage {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.stage canvas {
  display: block;
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.stage-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
  line-height: 1.6;
}
.stage-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 14px;
}
.meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.dl-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.btn-secondary {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover { border-color: #d1d5db; background: #f9fafb; }
.btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

.params {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8ece9;
}
.params .row-2 { margin-bottom: 0; }
.params .field { margin-bottom: 0; }

.seo {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.seo h2 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 10px;
}
.seo p, .seo li {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
}
.seo .em { color: var(--brand); }
.seo ul { padding-left: 1.2em; margin: 10px 0 18px; }
.seo h3 {
  font-size: 15px;
  color: var(--ink);
  margin: 18px 0 8px;
}
.seo-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.seo-links a { margin: 0 2px; }

.foot {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #9ca3af;
  font-size: 13px;
  padding: 0 4px;
}
.foot a { color: #6b7280; }
.foot a:hover { color: var(--brand); }

/* —— 登录弹窗 —— */
.ldm-login-mask,
.ldm-captcha-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}
.ldm-login-mask[hidden],
.ldm-captcha-mask[hidden] { display: none !important; }
.ldm-login-dialog,
.ldm-captcha-dialog {
  position: relative;
  width: min(100%, 400px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef0f3;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 22px 22px 18px;
}
.ldm-login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}
.ldm-login-close:hover { color: #374151; }
.ldm-login-dialog h3,
.ldm-captcha-dialog h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 750;
  color: #1f2937;
}
.ldm-login-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7280;
}
.ldm-login-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 14px;
}
.ldm-login-tab {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  position: relative;
}
.ldm-login-tab.active { color: #16a34a; }
.ldm-login-tab.active::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -1px;
  height: 2px;
  background: #16a34a;
  border-radius: 2px;
}
.ldm-login-panel { display: none; }
.ldm-login-panel.active { display: block; }
.ldm-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.ldm-login-field input {
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  color: #111827;
}
.ldm-login-field input:focus {
  outline: none;
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.ldm-login-row {
  display: flex;
  gap: 8px;
}
.ldm-login-row input { flex: 1; min-width: 0; }
.ldm-login-sms {
  flex-shrink: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ldm-login-sms:disabled { opacity: 0.55; cursor: not-allowed; }
.ldm-login-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ldm-login-submit:hover { background: #15803d; }
.ldm-login-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.ldm-login-tip {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.ldm-login-tip.err { color: #dc2626; }
.ldm-login-tip.ok { color: #16a34a; }
.ldm-captcha-img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  margin-bottom: 8px;
}
.ldm-captcha-refresh {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  color: #16a34a;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
}
.ldm-captcha-input {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  margin-bottom: 12px;
}
.ldm-captcha-actions { display: flex; gap: 8px; }
.ldm-captcha-cancel,
.ldm-captcha-ok {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ldm-captcha-cancel {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}
.ldm-captcha-ok {
  border: 0;
  background: #16a34a;
  color: #fff;
}

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .editor { border-right: 0; border-bottom: 1px solid var(--line); }
  .preview { min-height: 420px; }
  .field-grow textarea { min-height: 160px; resize: vertical; }
  .row-2, .color-fields { grid-template-columns: 1fr; }
  .topbar-inner, .wrap { padding-left: 16px; padding-right: 16px; }
  .top-actions .link-btn { display: none; }
}
