.wce-view .panel { margin-bottom: 16px; min-width: 0; padding: clamp(14px, 2vw, 22px); }
.wce-view [role="status"]:empty { display: none; }
.wce-view [hidden] { display: none !important; }
.wce-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0; }
.wce-view label { display: grid; gap: 5px; max-width: 100%; min-width: 0; }
.wce-view input, .wce-view select { min-width: 0; max-width: 100%; }
.wce-view button:disabled { opacity: .5; cursor: default; }
.wce-view #wceDraftForm > label { max-width: 480px; margin-bottom: 12px; }
.wce-view details { margin-block: 12px; }
.wce-view .table-wrap { overflow-x: auto; margin-bottom: 12px; }
.wce-view th { white-space: nowrap; }
.wce-view caption { text-align: left; font-weight: 700; padding: 4px 0 8px; }
.wce-view .wce-media { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 8px; list-style: none; }
.wce-view .wce-media li { flex: 0 0 76px; display: grid; gap: 5px; font-size: 12px; }
.wce-view .wce-media img { width: 76px; height: 94px; object-fit: contain; border: 1px solid #d9dfe7; border-radius: 6px; }
.wce-catalog, .wce-slides { list-style: none; padding: 0; margin: 0; }
.wce-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 8px; }
.wce-product { width: 100%; min-height: 64px; display: grid; grid-template-columns: 43px minmax(0,1fr); align-items: center; gap: 9px; text-align: left;
  padding: 8px; border: 1px solid #d7e4ed; border-radius: 9px; background: #fff; color: inherit; cursor: pointer; }
.wce-product:hover, .wce-product:focus-visible { border-color: var(--accent, #087d86); }
.wce-product img, .wce-product .wce-empty-photo { width: 43px; height: 48px; object-fit: contain; }
.wce-product small { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.wce-empty-photo { display: block; background: #edf3f8; border-radius: 6px; min-height: 48px; }
.wce-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin: 12px 0; }
.wce-columns > section, #wceRun { min-width: 0; padding: 12px; border: 1px solid #d7e4ed; border-radius: 10px; }
.wce-columns h3 { margin: 0; }
.wce-columns p { margin: 4px 0 12px; overflow-wrap: anywhere; }
.wce-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 133px), 1fr)); gap: 9px; }
.wce-slides li { min-width: 0; background: #f6f9fc; border-radius: 8px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.wce-slides li[draggable="true"] { cursor: grab; }
.wce-zoom-button { width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.wce-zoom-button img { width: 100%; height: clamp(96px, 13vw, 165px); display: block; object-fit: contain; border-radius: 6px; background: #edf3f8; }
.wce-slide-controls { display: flex; flex-wrap: wrap; gap: 4px; }
.wce-slides .ghost-btn { font-size: 12px; padding: 6px 8px; min-height: 26px; }
.wce-drop { padding: 14px; border: 1px dashed #7897a9; border-radius: 9px; background: #f6fbfc; }
.wce-drop input { padding: 4px; }
.wce-zoom { max-width: 94vw; max-height: 92vh; border: 1px solid #c2d5e0; border-radius: 10px; }
.wce-zoom img { display: block; max-width: 85vw; max-height: 75vh; margin-top: 8px; }
.wce-zoom::backdrop { background: rgb(12 30 49 / 64%); }
.wce-calendar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.wce-calendar li { padding: 4px 8px; border-radius: 5px; background: #edf3f8; }
.wce-view .wce-check { display: flex; align-items: center; gap: 8px; }
.wce-view .wce-check input { min-height: 0; }
@media (max-width: 600px) {
  .wce-form > label { width: 100%; }
  .wce-view select { width: 100%; }
  .wce-columns { gap: 6px; }
  .wce-columns > section { padding: 7px; }
  .wce-columns > section > p { min-height: 3.6em; }
}
