/* Specification-first shuttlecock studio. Scoped to preserve the racket and legacy pages. */
.cx-shuttle-workbench { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 28px; align-items: stretch !important; }
.cx-shuttle-page .cx-viewer-column { top: 132px; padding: 20px; display: flex !important; flex-direction: column !important; height: 100% !important; box-sizing: border-box !important; }
.cx-shuttle-page .cx-shuttle-view-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cx-shuttle-page .cx-shuttle-viewer { height: clamp(400px, calc(100dvh - 320px), 610px); min-height: 400px; flex: 1 !important; }
.cx-shuttle-page .cx-viewer-column .cx-selection-summary,
.cx-shuttle-page .cx-selection-summary { display: none !important; }
.cx-shuttle-page .cx-page-intro .cx-eyebrow,
.cx-shuttle-page .cx-page-intro .cx-lead { display: none !important; }
.cx-shuttle-page .cx-page-intro h1 { margin-top: 14px; }
.cx-shuttle-page .cx-model-disclaimer { display: none !important; }
.cx-shuttle-page .cx-viewer-hint { display: none !important; }
.cx-shuttle-page .cx-config-panel { padding: 24px; }
.cx-shuttle-page .cx-panel-heading { margin-bottom: 12px; }
.cx-shuttle-page .cx-panel-heading h2 { font-size: 24px; }
.cx-shuttle-page .cx-panel-heading > p:last-child { font-size: 12px; }
.cx-spec-group { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.cx-spec-group legend { margin-bottom: 8px; padding: 0; color: var(--cx-ink); font-size: 12px; font-weight: 650; }
.cx-spec-options { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-spec-panel .fc-option-btn { position: relative; display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border: 1px solid #dce4e7; border-radius: 4px; background: #fff; color: #4f626c; font: inherit; font-size: 10px; line-height: 1.35; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.cx-spec-panel .fc-option-btn:hover { border-color: #7eaab9; }
.cx-spec-panel .fc-option-btn.is-active { border-color: #0284c7; background: #f0f9fc; color: #075c7c; box-shadow: inset 0 0 0 1px #0284c7; font-weight: 650; }
.cx-spec-panel .fc-option-btn:focus-visible, .cx-shuttle-page button:focus-visible, .cx-shuttle-page summary:focus-visible { outline: 2px solid #0284c7; outline-offset: 3px; }
.cx-spec-check { display: none; position: absolute; top: -4px; right: -3px; width: 13px; height: 13px; align-items: center; justify-content: center; border-radius: 50%; background: #0284c7; color: #fff; font-size: 9px; }
.is-active > .cx-spec-check { display: flex; }
.cx-spec-colour .cx-spec-options, .cx-duck-options .cx-spec-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cx-spec-grade .cx-spec-options { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cx-spec-shape .cx-spec-options { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cx-spec-stem .cx-spec-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cx-spec-cork .cx-spec-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-spec-cork .fc-option-btn { min-height: 42px; padding: 8px 6px; display: flex; align-items: center; justify-content: center; flex-direction: row; }
.cx-spec-shape .fc-option-btn { min-height: 42px; padding: 8px 4px; display: flex; align-items: center; justify-content: center; }
.cx-spec-shape .fc-opt-title { display: inline-flex; min-height: auto; align-items: center; justify-content: center; font-size: 10px; line-height: 1.35; }
.cx-spec-shape img { display: none !important; }
.cx-spec-cork .fc-opt-title { display: inline-flex; min-height: auto; align-items: center; justify-content: center; font-size: 11px; line-height: 1.35; }
.cx-spec-cork img { display: none !important; }
.cx-color-dot { display: none !important; }
/* Studio Controls & Integrated Card */
.cx-shuttle-page .cx-studio-controls { display: flex !important; flex-direction: column !important; height: 100% !important; box-sizing: border-box !important; min-width: 0; border: 1px solid var(--cx-line); border-radius: 5px; background: #ffffff; padding: 22px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02); }
.cx-shuttle-page .cx-studio-controls .cx-config-panel:not([hidden]) { border: none !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; flex: 1 !important; display: flex !important; flex-direction: column !important; }
.cx-spec-panel .cx-spec-group:first-of-type { margin-top: 0; }
.cx-studio-nav {
  position: sticky !important;
  top: -22px !important;
  margin: -22px -22px 18px -22px !important;
  padding: 16px 22px 14px 22px !important;
  background: #ffffff !important;
  opacity: 1 !important;
  z-index: 35 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04) !important;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex-shrink: 0 !important;
}
.cx-studio-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 8px 12px !important;
  border-radius: 7px !important;
  font: inherit !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .16s ease !important;
  white-space: nowrap !important;
  user-select: none !important;
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  gap: 8px !important;
}
.cx-studio-nav-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}
.cx-studio-nav-btn.is-active {
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 1.5px solid #0284c7 !important;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.12) !important;
  font-weight: 700 !important;
}
.cx-studio-nav-btn:not(.is-active) {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}
.cx-nav-checkbox-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cx-nav-checkbox {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  accent-color: #0284c7 !important;
  cursor: pointer !important;
  border-radius: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
.cx-nav-btn-text {
  display: inline-block !important;
  font-weight: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
/* 任何带有 hidden 属性的 Tab 面板必须严格彻底隐藏，绝对隔离 */
.cx-tab-panel[hidden],
.cx-config-panel[hidden],
.cx-appearance-panel[hidden],
.cx-shuttle-page .cx-studio-controls [hidden] { display: none !important; }
.cx-appearance-panel:not([hidden]) { display: flex !important; flex-direction: column !important; gap: 20px; flex: 1 !important; }
.cx-appearance-stack { display: flex !important; flex-direction: column !important; gap: 20px; flex: 1 !important; }
.cx-appearance-card { padding: 20px; border: 1px solid var(--cx-line); border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02); }
.cx-appearance-card .cx-subheading { margin-bottom: 16px; }
.cx-appearance-card .cx-design-layout { display: grid; grid-template-columns: minmax(130px, .72fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cx-appearance-card .cx-design-proof { min-height: 220px; padding: 14px 10px; background: #f8fafc; }
.cx-appearance-card .cx-design-proof canvas { height: 210px; }
.cx-appearance-card .cx-mark-proof canvas { width: 140px; height: 140px; }
.cx-studio-actions { display: flex; gap: 12px; margin-top: 20px; }
.cx-studio-actions > * { flex: 1; min-height: 44px; }
.cx-spec-reference { display: none !important; }
.cx-shuttle-page [hidden] { display: none !important; }
.cx-shuttle-viewer[data-view="cork"] .cx-model-caption { display: none; }
.cx-cork-caption, .cx-shuttle-viewer[data-view="cork"] .cx-cork-caption { display: none !important; }
.cx-artwork-section { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--cx-line); scroll-margin-top: 145px; }
.cx-artwork-intro { margin: 12px 0 0; color: var(--cx-copy); font-size: 13px; line-height: 1.7; }
.cx-artwork-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; align-items: start; }
.cx-design-card { min-width: 0; padding: 22px; border: 1px solid var(--cx-line); border-radius: 5px; background: #fff; }
.cx-design-card .cx-subheading { align-items: center; margin-bottom: 22px; }
.cx-design-card .cx-subheading h3 { font-size: 17px; }
.cx-design-card .cx-subheading button { font-size: 11px; }
.cx-design-layout { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1fr); gap: 22px; }
.cx-design-proof { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 0; min-height: 260px; padding: 16px 12px; border-radius: 3px; background: #f4f7f8; }
.cx-design-proof canvas { display: block; width: auto; max-width: 100%; height: 236px; box-shadow: 0 4px 14px #203d4a1a; }
.cx-mark-proof canvas { width: 150px; height: auto; border-radius: 50%; }
.cx-design-proof > span { color: var(--cx-muted); font-size: 10px; line-height: 1.5; text-align: center; }
.cx-design-fields { min-width: 0; }
.cx-design-fields .cx-artwork-input { font-size: 10px; }
.cx-design-fields .cx-artwork-input::file-selector-button { display: block; margin-bottom: 6px; }
.cx-design-fields .cx-field-help { font-size: 10px; line-height: 1.6; }
.cx-design-fields .cx-config-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
.cx-design-fields .cx-config-group { margin-top: 16px; }
.cx-design-fields .cx-field-label { font-size: 11px; }
.cx-tube-dimensions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--cx-line); color: var(--cx-copy); font-size: 11px; }
.cx-tube-dimensions summary { cursor: pointer; }
.cx-tube-dimensions .cx-dimensions { margin: 14px 0 0; padding: 0; border: 0; }
.cx-artwork-section > .cx-micro-note { max-width: 840px; font-size: 11px; }
.cx-artwork-section .cx-brief-actions { margin-top: 23px; justify-content: flex-end; }
.cx-artwork-section .cx-brief-actions > * { flex: 0 1 220px; }
@media (max-width: 1080px) {
  .cx-shuttle-workbench { gap: 18px; }
  .cx-shuttle-page .cx-config-panel { padding: 18px; }
  .cx-design-card { padding: 18px; }
  .cx-design-layout { gap: 14px; }
}
@media (max-width: 980px) {
  .cx-shuttle-workbench { grid-template-columns: minmax(0, 1fr); }
  .cx-shuttle-page .cx-viewer-column { position: relative; top: auto; }
  .cx-shuttle-page .cx-shuttle-viewer { height: 430px; min-height: 340px; }
  .cx-artwork-grid { grid-template-columns: minmax(0, 1fr); }
  .cx-design-layout { grid-template-columns: minmax(130px,.7fr) minmax(0,1fr); }
}
@media (max-width: 580px) {
  .cx-shuttle-page .cx-viewer-column { padding: 14px; }
  .cx-shuttle-page .cx-shuttle-viewer { min-height: 310px; height: 350px; }
  .cx-shuttle-page .cx-viewer-heading { gap: 8px; }
  .cx-shuttle-page .cx-viewer-heading h2 { font-size: 15px; }
  .cx-shuttle-page .cx-viewer-hint { font-size: 10px; }
  .cx-shuttle-page .cx-shuttle-view-tabs button { font-size: 10px; }
  .cx-shuttle-page .cx-config-panel { padding: 17px 14px; }
  .cx-spec-shape .cx-spec-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cx-spec-grade .cx-spec-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-spec-stem .cx-spec-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-spec-colour .cx-spec-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-spec-shape .fc-opt-title { min-height: auto; }
  .cx-spec-shape img { display: none !important; }
  .cx-artwork-section { margin-top: 32px; }
  .cx-design-layout { grid-template-columns: minmax(0, 1fr); }
  .cx-design-proof { min-height: 200px; }
  .cx-design-proof canvas { height: 220px; }
  .cx-mark-proof canvas { width: 150px; height: 150px; }
  .cx-design-fields .cx-config-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cx-artwork-section .cx-brief-actions { flex-direction: column; }
  .cx-artwork-section .cx-brief-actions > * { flex-basis: auto; }
  .cx-design-card .cx-subheading h3 { font-size: 16px; }
  .cx-shuttle-page .cx-studio-controls { padding: 16px 14px; }
  .cx-studio-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
  .cx-studio-nav-btn { min-height: 40px; padding: 6px 8px; font-size: 13px; }
  .cx-appearance-card { padding: 16px 14px; }
  .cx-appearance-card .cx-design-layout { grid-template-columns: minmax(0, 1fr); }
  .cx-studio-actions { flex-direction: column; }
}

/* Φ17mm Shuttlecock Centre Mark UI Enhancements */
.cx-subheading-group { display: flex; flex-direction: column; }
.cx-subheading-note { font-size: 11px; color: var(--cx-muted); margin: 3px 0 0; line-height: 1.4; font-weight: normal; }
.cx-mark-preview-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.cx-mark-guide-ring { position: absolute; inset: -4px; border: 1.5px dashed rgba(2, 132, 199, 0.45); border-radius: 50%; pointer-events: none; }
.cx-mark-spec-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #e0f2fe; color: #0284c7; font-size: 10px; font-weight: 600; text-align: center; border: 1px solid #bae6fd; letter-spacing: 0.02em; }
.cx-mark-field-section { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--cx-line); }
.cx-mark-field-section[hidden] { display: none !important; }
.cx-config-grid-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.cx-range-group { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.cx-range-group .cx-field-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.cx-range-group span { font-weight: 600; color: var(--cx-blue-dark); font-variant-numeric: tabular-nums; }
.cx-range-input { width: 100%; height: 6px; accent-color: var(--cx-blue-dark); cursor: pointer; border-radius: 3px; background: #e2e8f0; }
.cx-color-picker-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--cx-copy); margin-top: 4px; }
.cx-color-picker-label input[type="color"] { width: 36px; height: 28px; padding: 0 2px; border: 1px solid var(--cx-line); border-radius: 4px; cursor: pointer; background: #fff; }
@media (max-width: 640px) {
  .cx-config-grid-2col { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

.cx-design-fields .cx-config-grid .cx-field-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  font-size: 11px !important;
  color: var(--cx-copy) !important;
  white-space: nowrap !important;
}

.cx-design-fields .cx-config-grid .cx-field-label input[type="color"] {
  display: inline-block !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 28px !important;
  margin-top: 0 !important;
  padding: 0 2px !important;
  border: 1px solid var(--cx-line) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  background: #fff !important;
  flex-shrink: 0 !important;
}

/* ========================================================
   球头丝带颜色（包边扎带）单行极简样式
   ======================================================== */
.cx-ribbon-simple-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.cx-ribbon-simple-row .cx-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--cx-heading, #0f172a);
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.cx-ribbon-simple-row input[type="color"] {
  display: inline-block !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 32px !important;
  padding: 2px 3px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.cx-ribbon-simple-row input[type="color"]:hover {
  border-color: #0284c7 !important;
}

.cx-ribbon-simple-row input[type="text"] {
  width: 96px !important;
  height: 32px !important;
  padding: 4px 10px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  background: #ffffff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.cx-ribbon-simple-row input[type="text"]:focus {
  border-color: #0284c7 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

/* ========================================================
   外观定制三区域极简设计：预览与上传合一
   ======================================================== */
.cx-compact-artwork-card {
  padding: 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.cx-subheading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: 12px !important;
}

.cx-subheading-group {
  flex: 1 !important;
  min-width: 0 !important;
}

.cx-subheading-group h3 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--cx-heading, #0f172a) !important;
  line-height: 1.35 !important;
}

.cx-subheading-spec {
  display: block !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  margin-top: 3px !important;
  line-height: 1.2 !important;
}

/* 查看效果统一实体按钮 */
.cx-view-effect-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #0284c7 !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.cx-view-effect-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
  transform: translateY(-1px) !important;
}

.cx-view-effect-btn:active {
  transform: translateY(0) !important;
}

/* 两个预览框与预览图尺寸尽量接近 (框高 165px，图片高 145px，贴合精致) */
.cx-artwork-combined-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 165px !important;
  min-height: 165px !important;
  max-height: 165px !important;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
  background: #f8fafc !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
  position: relative !important;
  width: 100% !important;
  margin-bottom: 12px !important;
}

.cx-artwork-combined-box:hover {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
}

/* 球筒展开图 Canvas 容器与尺寸 (145px 饱满贴近预览框) */
.cx-artwork-canvas-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.cx-tube-proof canvas {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: 145px !important;
  max-height: 145px !important;
  border-radius: 4px !important;
}

/* 悬浮上传提示浮层 */
.cx-artwork-hover-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(2px) !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  pointer-events: none !important;
  border-radius: 4px !important;
}

.cx-artwork-combined-box:hover .cx-artwork-hover-overlay {
  opacity: 1 !important;
}

.cx-artwork-overlay-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* 反馈与操作栏 */
.cx-artwork-actions-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  color: #475569 !important;
  min-height: 16px !important;
}

.cx-artwork-status-text {
  margin: 0 !important;
  font-size: 11px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.cx-artwork-status-text:empty {
  display: none !important;
}

/* 球心标 Canvas 容器与圆环 (122px 黄金比例，四周预留舒适呼吸空间，完整呈现全部标样与外环) */
.cx-mark-proof .cx-mark-preview-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 122px !important;
  height: 122px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
}

.cx-mark-proof canvas {
  width: 122px !important;
  height: 122px !important;
  border-radius: 50% !important;
  display: block !important;
}

.cx-mark-proof .cx-mark-guide-ring {
  position: absolute !important;
  inset: 0 !important;
  border: 1.5px dashed rgba(2, 132, 199, 0.6) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

/* 图片预览正下方操作栏 (横着一行 38px) */
.cx-card-action-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin-top: 0 !important;
}

/* 底部行动条自动沉底对齐 */
.cx-brief-actions.cx-studio-actions {
  margin-top: auto !important;
  padding-top: 16px !important;
}

/* 卡片1与卡片2：图片预览正下方全宽横向按钮 (统一38px) */
.cx-view-effect-btn.cx-view-full-btn {
  width: 100% !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  letter-spacing: 0.5px !important;
}

/* 卡片3：球头丝带操作行 (左侧色盘与HEX，右侧查看效果) */
.cx-ribbon-simple-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 0 16px !important;
  height: 52px !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
}

.cx-ribbon-color-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.cx-ribbon-color-group .cx-field-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--cx-heading, #0f172a) !important;
  margin: 0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.cx-ribbon-color-group input[type="color"] {
  display: inline-block !important;
  width: 90px !important;
  min-width: 90px !important;
  height: 30px !important;
  padding: 2px 3px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  background: #ffffff !important;
  flex-shrink: 0 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.cx-ribbon-color-group input[type="color"]:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}

.cx-ribbon-color-group input[type="text"] {
  width: 86px !important;
  height: 30px !important;
  padding: 2px 8px !important;
  font-size: 13px !important;
  font-family: monospace !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  background: #ffffff !important;
}

/* 按钮通用 */
.cx-crop-edit, .cx-remove-btn {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  background: #e2e8f0 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.15s ease !important;
}

.cx-crop-edit:hover, .cx-remove-btn:hover {
  background: #cbd5e1 !important;
  color: #0f172a !important;
}

.cx-remove-btn {
  color: #dc2626 !important;
  background: #fee2e2 !important;
}

.cx-remove-btn:hover {
  background: #fecaca !important;
  color: #b91c1c !important;
}

/* 外观定制前两项左右并排网格 */
.cx-appearance-grid-2col {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

@media (max-width: 900px) {
  .cx-appearance-grid-2col {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
}




