/**
 * Unified Listing Workbench CSS (1:1 像素级复刻 OzonAI 上品助手插件工作台、图片处理中心与视频处理中心)
 */

/* ==========================================================================
   1. 基础重置与容器
   ========================================================================== */
.ulw-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}

.ulw-modal-box {
  width: 98vw;
  max-width: 1680px;
  height: 96vh;
  max-height: 98vh;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1e293b;
}

.ulw-embedded-box {
  width: 100%;
  min-height: 85vh;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1e293b;
}

/* ==========================================================================
   2. 顶部主导航栏 (Top Header - Screenshot 1, 2, 4)
   ========================================================================== */
.ulw-header {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  z-index: 20;
}

.ulw-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ulw-header-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.ulw-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
}

.ulw-header-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ulw-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

.ulw-nav-tab:hover {
  background: #f8fafc;
  color: #0A59F7;
  border-color: #c7d2fe;
}

.ulw-nav-tab.active {
  background: #0A59F7;
  color: #ffffff;
  border-color: #0A59F7;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(10, 89, 247, 0.25);
}

.ulw-nav-tab svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.ulw-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ulw-close-btn:hover {
  color: #1e293b;
  background: #f1f5f9;
}

/* ==========================================================================
   3. 次级操作栏 (Sub Action Bar - Screenshot 1)
   ========================================================================== */
.ulw-sub-bar {
  height: 48px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  z-index: 10;
  gap: 12px;
}

.ulw-sub-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ulw-ai-tag {
  color: #0A59F7;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ulw-mode-pill {
  background: #eff6ff;
  color: #0A59F7;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 500;
}

.ulw-cat-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  cursor: pointer;
  min-width: 260px;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.ulw-cat-box:hover {
  border-color: #0A59F7;
  background: #f8faff;
}

.ulw-anti-piracy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  margin-left: 6px;
}

/* 仿 iOS / 插件开关切换 */
.ulw-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}
.ulw-switch input { opacity: 0; width: 0; height: 0; }
.ulw-slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 18px;
}
.ulw-slider:before {
  position: absolute; content: "";
  height: 14px; width: 14px; left: 2px; bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.ulw-switch input:checked + .ulw-slider { background-color: #0A59F7; }
.ulw-switch input:checked + .ulw-slider:before { transform: translateX(14px); }

.ulw-sub-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ulw-rating-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.ulw-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px dashed #cbd5e1;
  color: #ef4444;
  font-size: 11px;
}

.ulw-btn-autofill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.ulw-btn-autofill:hover {
  color: #0A59F7;
  border-color: #0A59F7;
  background: #f8faff;
}

.ulw-btn-submit-ozon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: #0A59F7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 89, 247, 0.25);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.ulw-btn-submit-ozon:hover {
  background: #2563EB;
  box-shadow: 0 6px 16px rgba(10, 89, 247, 0.35);
}

/* ==========================================================================
   4. 视图一：工作台 (Listing Workbench - Screenshot 1)
   ========================================================================== */
.ulw-view-workbench {
  flex: 1;
  background: #f1f5f9;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.ulw-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ulw-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ulw-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.ulw-card-title-bar {
  width: 4px;
  height: 14px;
  background: #0A59F7;
  border-radius: 2px;
}

/* 店铺卡片选择 */
/* 店铺卡片选择容器 */
.ulw-shop-cards {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 提示条 */
.ulw-info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.ulw-info-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
}

.ulw-info-banner-desc {
  font-size: 11.5px;
  color: #3b82f6;
  margin-top: 2px;
}

/* 描述框 */
.ulw-desc-wrap {
  position: relative;
  margin-top: 8px;
}

.ulw-desc-textarea {
  width: 100%;
  min-height: 85px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  box-sizing: border-box;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.ulw-desc-textarea:focus {
  border-color: #0A59F7;
}

.ulw-desc-ai-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent-brand, #0f52ba);
  color: #ffffff;
  border: 1px solid var(--accent-brand, #0f52ba);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ulw-desc-ai-btn:hover {
  background: var(--accent-brand-hover, #0d469f);
  border-color: var(--accent-brand-hover, #0d469f);
}

.ulw-desc-ai-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 特征属性表单 */
.ulw-attrs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.ulw-attr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ulw-attr-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ulw-attr-label .req { color: #ef4444; }

.ulw-attr-input {
  width: 100%;
  height: 34px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  box-sizing: border-box;
  color: #1e293b;
  background: #fff;
  outline: none;
}

.ulw-attr-input:focus { border-color: #0A59F7; }

/* ==========================================================================
   5. 变体矩阵表格 (Variant Table - Screenshot 1)
   ========================================================================== */
.ulw-matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ulw-matrix-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.ulw-matrix-count {
  font-size: 12px;
  color: #64748b;
  margin-left: 6px;
  font-weight: 400;
}

.ulw-matrix-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ulw-matrix-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  border: 1px solid #dcdfe6;
  background: #ffffff;
  color: #334155;
}

.ulw-matrix-btn:hover {
  background: #f8fafc;
  border-color: #0A59F7;
  color: #0A59F7;
}

.ulw-matrix-btn.primary {
  background: #0A59F7;
  color: #ffffff;
  border-color: #0A59F7;
  font-weight: 600;
}

.ulw-matrix-btn.danger-outline {
  border-color: #fecaca;
  color: #dc2626;
  background: #ffffff;
}

.ulw-matrix-btn.danger-outline:hover {
  background: #fef2f2;
}

.ulw-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.ulw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.ulw-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 10px 10px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
}

.ulw-table th a.ulw-th-link {
  color: #0A59F7;
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  display: block;
  margin-top: 2px;
}

.ulw-table th a.ulw-th-link:hover {
  text-decoration: underline;
}

.ulw-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f8fafc;
  vertical-align: middle;
}

.ulw-table tr:hover td {
  background: #f8faff;
}

.ulw-img-thumb-box {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ulw-img-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ulw-table-inp {
  height: 30px;
  border: 1px solid #dcdfe6;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 12px;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  background: #ffffff;
}

.ulw-table-inp:focus { border-color: #0A59F7; }

/* ==========================================================================
   6. 视图二：图片处理中心 (Image Processing Center - Screenshot 2 & 3)
   ========================================================================== */
.ulw-center-subhead {
  height: 44px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 12px;
}

.ulw-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #0A59F7;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

.ulw-alert-banner {
  flex: 1;
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: #B45309;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ulw-mode-switch-group {
  display: flex;
  align-items: center;
  border: 1px solid #dcdfe6;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}

.ulw-mode-switch-btn {
  padding: 6px 12px;
  background: #ffffff;
  color: #475569;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.ulw-mode-switch-btn.active {
  background: #0A59F7;
  color: #ffffff;
  font-weight: 600;
}

/* 3栏主工作区 */
.ulw-three-cols {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 96px);
}

/* 左侧变体栏 */
.ulw-col-left {
  width: 320px;
  min-width: 270px;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.ulw-col-left-head {
  padding: 12px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ulw-variant-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ulw-var-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  position: relative;
}

.ulw-var-card:hover {
  border-color: #93c5fd;
}

.ulw-var-card.active {
  border-color: #0A59F7;
  box-shadow: 0 0 0 1px #0A59F7;
  background: #f8faff;
}

.ulw-var-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 20px;
  position: relative;
}

.ulw-var-card-title input.var-chk {
  position: absolute;
  left: 0;
  top: 1px;
}

.ulw-var-thumbs-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ulw-var-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
  flex-shrink: 0;
}

.ulw-var-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ulw-var-thumb-main-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #0A59F7;
  color: #ffffff;
  font-size: 9px;
  padding: 1px 4px;
  border-bottom-right-radius: 4px;
}

.ulw-var-thumb-more {
  width: 32px;
  height: 44px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #0A59F7;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ulw-col-left-foot {
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ulw-foot-drawer-btn {
  width: 100%;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.ulw-foot-drawer-btn:hover {
  background: #f8fafc;
  border-color: #0A59F7;
  color: #0A59F7;
}

.ulw-foot-drawer-btn.primary {
  background: #0A59F7;
  color: #ffffff;
  border-color: #0A59F7;
}

/* 中间图片网格区 */
.ulw-col-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.ulw-gallery-toolbar {
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
}

.ulw-gallery-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.ulw-gallery-tool-btn:hover {
  background: #f8fafc;
  color: #0A59F7;
  border-color: #0A59F7;
}

.ulw-gallery-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  align-content: start;
}

/* 图片卡片 (Screenshot 2 & 3) */
.ulw-img-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: visible;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.ulw-img-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(10, 89, 247, 0.08);
}

.ulw-img-card-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  cursor: pointer;
}

.ulw-img-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ulw-img-card-main-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0A59F7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.ulw-img-card-chk {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  z-index: 2;
  cursor: pointer;
}

.ulw-img-card-foot {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  border-radius: 0 0 9px 9px;
  font-size: 12px;
  color: #64748b;
  position: relative;
}

.ulw-card-ops {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ulw-edit-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #0A59F7;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 2px 4px;
  border-radius: 4px;
}

.ulw-edit-dropdown-btn:hover {
  background: #eff6ff;
}

/* 下拉菜单 (Screenshot 3) */
.ulw-dropdown-menu {
  position: absolute;
  bottom: 40px;
  right: 4px;
  z-index: 99;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  min-width: 140px;
  display: none;
}

.ulw-dropdown-menu.show {
  display: block;
}

.ulw-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.ulw-dropdown-item:hover {
  background: #f1f5f9;
}

.ulw-dropdown-item.primary {
  color: #0A59F7;
  font-weight: 600;
}

.ulw-dropdown-item.ai {
  color: #7C3AED;
  font-weight: 600;
}

.ulw-dropdown-item.danger {
  color: #ef4444;
  border-top: 1px solid #f1f5f9;
}

.ulw-add-img-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.ulw-add-img-card:hover {
  border-color: #0A59F7;
  color: #0A59F7;
  background: #f8faff;
}

/* 右侧 AI 改图工具栏 (Screenshot 2) */
.ulw-col-right {
  width: 290px;
  min-width: 260px;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.ulw-ai-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ulw-ai-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  cursor: pointer;
}

.ulw-ai-box-bd {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.ulw-ai-tab-row {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.ulw-ai-tab-btn {
  flex: 1;
  padding: 5px 0;
  font-size: 11px;
  text-align: center;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-weight: 500;
}

.ulw-ai-tab-btn.active {
  background: #0A59F7;
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   7. 视图三：视频处理中心 (Video Processing Center - Screenshot 4)
   ========================================================================== */
.ulw-video-player-container {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.ulw-video-player-container video {
  width: 100%;
  height: 100%;
  display: block;
}

.ulw-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  gap: 10px;
}

/* ==========================================================================
 * 8. 全面补齐与美化所有工作台、图片中心、视频中心及矩阵表格 UI 控件
 * ========================================================================== */

/* 1. 基础卡片与表单 */
.ulw-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.ulw-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ulw-card-header {
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ulw-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ulw-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.ulw-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ulw-form-item {
  display: flex;
  flex-direction: column;
}

.ulw-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 提示横幅 (黄色温馨提示) */
.ulw-tip-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
  padding: 10px 16px;
  margin: 14px 18px 0;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  display: block;
}

/* 2. 现代输入框与文本域 (全面美化，彻底告别浏览器原生丑框) */
.ulw-input {
  width: 100%;
  height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.ulw-input:hover {
  border-color: #94a3b8;
}
.ulw-input:focus {
  border-color: #0A59F7;
  box-shadow: 0 0 0 3px rgba(10, 89, 247, 0.12), 0 1px 3px rgba(10, 89, 247, 0.08);
  background: #ffffff;
}

.ulw-textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.ulw-textarea:hover {
  border-color: #94a3b8;
}
.ulw-textarea:focus {
  border-color: #0A59F7;
  box-shadow: 0 0 0 3px rgba(10, 89, 247, 0.12);
}

.ulw-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12.5px;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.ulw-select:hover {
  border-color: #0A59F7;
}
.ulw-select:focus {
  border-color: #0A59F7;
  box-shadow: 0 0 0 3px rgba(10, 89, 247, 0.12);
}

/* 3. AI 专属智能动作胶囊按钮 (去模板化：克制、单色调、清晰边框) */
.ulw-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #d3dfef;
  background: #f4f7fb;
  color: #0f52ba;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
  white-space: nowrap;
}
.ulw-inline-btn:hover {
  background: #e9f0f9;
  border-color: #b9d0ec;
  color: #0d469f;
  transform: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ulw-inline-btn:active {
  transform: scale(0.98);
}
.ulw-inline-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 4. 变体表格工具条按钮 (一键同首行、批量设置、利润计算器) */
.ulw-matrix-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ulw-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  white-space: nowrap;
}
.ulw-tool-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
  transform: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ulw-tool-btn:active {
  transform: scale(0.98);
}
.ulw-tool-btn.pri {
  background: #eff5fc;
  color: #0f52ba;
  border-color: #bfd6f2;
  font-weight: 600;
  box-shadow: none;
}
.ulw-tool-btn.pri:hover {
  background: #e4edf8;
  border-color: #9ec2eb;
}

/* 5. 变体矩阵表格 (13列) 细节精修 */
.ulw-table-wrap {
  overflow-x: auto;
  padding: 0 18px 14px;
}
.ulw-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  color: #1e293b;
  min-width: 1260px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.ulw-matrix-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  font-size: 12px;
}
.ulw-matrix-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  background: #ffffff;
}
.ulw-matrix-table tr:last-child td {
  border-bottom: none;
}
.ulw-matrix-table tr:hover td {
  background: #fafcff;
}

/* 表格内输入框 */
.ulw-table-inp {
  height: 32px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12.5px;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.ulw-table-inp:hover {
  border-color: #94a3b8;
}
.ulw-table-inp:focus {
  border-color: #0A59F7;
  box-shadow: 0 0 0 2.5px rgba(10, 89, 247, 0.14);
  background: #ffffff;
}

/* 表格图片缩略图及角标 */
.ulw-table-img-cell {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ulw-table-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ulw-table-img-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

/* 表格小操作按钮 (改图 / 删除 / 复制货号) */
.ulw-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.ulw-icon-btn:hover {
  border-color: #0A59F7;
  color: #0A59F7;
  background: #eff6ff;
  transform: translateY(-1px);
}

.ulw-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  user-select: none;
  white-space: nowrap;
}
.ulw-row-btn:hover {
  border-color: #0A59F7;
  color: #0A59F7;
  background: #eff6ff;
  transform: translateY(-1px);
}
.ulw-row-btn.danger {
  border-color: #fecaca;
  color: #dc2626;
  background: #ffffff;
}
.ulw-row-btn.danger:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

/* 利润药丸胶囊 */
.ulw-profit-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}
.ulw-profit-pill.neg {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* 标签徽章 */
.ulw-tag-green {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #d1fae5;
  color: #059669;
}
.ulw-tag-blue {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1d4ed8;
}
.ulw-tag-gray {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
}

/* 6. 店铺卡片栅格与自适应美化 (1:1 对标 ShopSelectCard.vue，杜绝右侧溢出) */
.ulw-shop-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  background: #f8fafc !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}
.ulw-shop-card {
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  transition: background-color 0.2s ease !important, border-color 0.2s ease !important, color 0.2s ease !important, opacity 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.ulw-shop-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}
.ulw-shop-card.selected {
  border-color: #0A59F7 !important;
  background: #f0f7ff !important;
  box-shadow: 0 2px 10px rgba(10, 89, 247, 0.08) !important;
}
.ulw-shop-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #eef2f6 !important;
}
.ulw-shop-chk-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
}
.ulw-shop-chk {
  width: 16px !important;
  height: 16px !important;
  accent-color: #0A59F7 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}
.ulw-shop-name {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 0 !important;
}
.ulw-shop-card.selected .ulw-shop-name {
  color: #0A59F7 !important;
}
.ulw-quota-tag {
  flex-shrink: 0 !important;
  font-size: 11px !important;
  color: #059669 !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}
.ulw-shop-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.ulw-shop-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}
.ulw-fld-lbl {
  width: 64px !important;
  flex: 0 0 64px !important;
  font-size: 12.5px !important;
  color: #475569 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}
.ulw-shop-wh-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.ulw-shop-wh {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: 32px !important;
  padding: 0 24px 0 10px !important;
  font-size: 12.5px !important;
  color: #1e293b !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  outline: none !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.ulw-shop-wh:focus, .ulw-shop-wh:hover {
  border-color: #0A59F7 !important;
}
.ulw-shop-wh:focus {
  box-shadow: 0 0 0 2px rgba(10, 89, 247, 0.15) !important;
}
.ulw-shop-wh-refresh {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important, border-color 0.2s ease !important, color 0.2s ease !important, opacity 0.2s ease !important;
}
.ulw-shop-wh-refresh:hover {
  border-color: #0A59F7 !important;
  color: #0A59F7 !important;
  background: #f0f7ff !important;
}
.ulw-shop-stepper {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  height: 30px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}
.ulw-stepper-btn {
  width: 26px !important;
  height: 100% !important;
  border: none !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  user-select: none !important;
  transition: background 0.15s, color 0.15s !important;
}
.ulw-stepper-btn:hover {
  background: #ecf5ff !important;
  color: #0A59F7 !important;
}
.ulw-stepper-btn:active {
  background: #dbeafe !important;
}
/* 隐藏原生数字步进器箭头，配合左右减加按钮 */
.ulw-shop-qty::-webkit-inner-spin-button,
.ulw-shop-qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.ulw-shop-stepper input,
.ulw-shop-stepper .ulw-shop-qty,
.ulw-shop-stepper .ulw-input {
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  outline: none !important;
  height: 100% !important;
  margin: 0 !important;
  -moz-appearance: textfield !important;
}
.ulw-shop-qty {
  width: 52px !important;
  height: 100% !important;
  min-height: unset !important;
  border: none !important;
  border-left: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  padding: 0 4px !important;
  outline: none !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
.ulw-unit-label {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-left: 4px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* 7. 通用按钮 (ulw-btn) 系列美化 */
.ulw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #dcdfe6;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ulw-btn:hover {
  border-color: #0A59F7;
  color: #0A59F7;
  background: #f8faff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 89, 247, 0.14);
}
.ulw-btn:active {
  transform: scale(0.97);
}
.ulw-btn.pri {
  background: var(--accent-brand, #0f52ba) !important;
  border: 1px solid var(--accent-brand, #0f52ba) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}
.ulw-btn.pri:hover {
  background: var(--accent-brand-hover, #0d469f) !important;
  border-color: var(--accent-brand-hover, #0d469f) !important;
  box-shadow: 0 2px 6px rgba(15, 82, 186, 0.25) !important;
  color: #ffffff !important;
  transform: none !important;
}
.ulw-btn.sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
}
.ulw-btn.danger {
  color: #dc2626 !important;
  border-color: #fecaca !important;
  background: #ffffff !important;
}
.ulw-btn.danger:hover {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

/* 模式切换胶囊 (单变体 / 批量变体) */
.ulw-mode-pills {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}
.ulw-pill-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ulw-pill-btn:hover {
  color: #1e293b;
}
.ulw-pill-btn.active {
  background: #ffffff;
  color: #0A59F7;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* 返回按钮 */
.ulw-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.ulw-back-btn:hover {
  border-color: #0A59F7;
  color: #0A59F7;
  background: #f8faff;
  transform: translateY(-1px);
}

/* 图片处理中心悬浮操作条与下拉菜单 */
.ulw-card-hover-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}
.ulw-edit-dropdown-btn {
  border: 1px solid #dbeafe !important;
  background: #eff6ff !important;
  color: #0A59F7 !important;
  font-size: 12px !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.ulw-edit-dropdown-btn:hover {
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
}
.ulw-img-edit-menu, .ulw-menu {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 5px;
}
.ulw-menu-item {
  padding: 8px 12px;
  font-size: 12.5px;
  color: #334155;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ulw-menu-item:hover {
  background: #f1f5f9;
  color: #0A59F7;
}
.ulw-menu-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* 8. 右栏视觉工坊与语言胶囊 */
.ulw-lang-pill, .ulw-ratio-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  text-align: center;
}
.ulw-lang-pill:hover, .ulw-ratio-btn:hover {
  border-color: #0A59F7;
  color: #0A59F7;
}
.ulw-lang-pill.active, .ulw-ratio-btn.active {
  border-color: #0A59F7;
  background: #eff6ff;
  color: #0A59F7;
  font-weight: 600;
}
.ulw-vtab-btn {
  font-size: 12px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.ulw-vtab-btn:hover {
  color: #0A59F7;
}
.ulw-vtab-btn.active {
  color: #0A59F7;
  font-weight: 600;
  border-bottom-color: #0A59F7;
}

/* 9. 布局容器与结构卡片 */
.ulw-features-grid {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ulw-3cols {
  display: flex;
  height: calc(100% - 46px);
  overflow: hidden;
  background: #f1f5f9;
}

.ulw-col-left {
  width: 270px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.ulw-col-left-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.ulw-col-left-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.ulw-left-sku-card, .ulw-left-video-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.ulw-left-sku-card:hover, .ulw-left-video-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
.ulw-left-sku-card.active, .ulw-left-video-card.active {
  border-color: #0A59F7;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(10, 89, 247, 0.12);
}

.ulw-left-drawers {
  border-top: 1px solid #e2e8f0;
  padding: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ulw-drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ulw-drawer-item:hover {
  border-color: #0A59F7;
  background: #f8faff;
  box-shadow: 0 2px 6px rgba(10, 89, 247, 0.08);
}

.ulw-col-center {
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ulw-col-center-toolbar {
  padding: 10px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ulw-grid-area {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.ulw-center-card-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.ulw-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.ulw-grid-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ulw-grid-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ulw-grid-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background: #f8fafc;
  cursor: pointer;
}
.ulw-grid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ulw-add-img-card {
  height: 178px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  background: #fafafa;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ulw-add-img-card:hover {
  border-color: #0A59F7;
  color: #0A59F7;
  background: #f8faff;
  transform: translateY(-2px);
}

.ulw-col-right {
  width: 350px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.ulw-right-panel {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.ulw-notice-strip {
  flex: 1;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ulw-video-player-box {
  width: 100%;
  max-width: 740px;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.ulw-empty-video-card {
  width: 100%;
  max-width: 620px;
  height: 380px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  cursor: pointer;
  padding: 24px;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ulw-empty-video-card:hover {
  border-color: #0A59F7;
  background: #f8faff;
}

.ulw-free-pill {
  font-size: 10.5px;
  background: #dcfce7;
  color: #15803d;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ==========================================================================
   10. 手机端与小屏响应式优化 (Mobile & Tablet Responsiveness)
   ========================================================================== */
@media (max-width: 860px) {
  /* 1. 弹窗全屏化沉浸式展示 */
  .ulw-modal-mask {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .ulw-modal-box {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* 2. 顶部主导航栏响应式与悬浮关闭按钮 */
  .ulw-header {
    position: relative !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 8px 48px 8px 12px !important; /* 右侧预留关闭按钮空间 */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .ulw-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .ulw-header-title {
    font-size: 14px !important;
  }
  .ulw-header-tabs {
    width: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    padding-bottom: 2px !important;
    scrollbar-width: none;
  }
  .ulw-header-tabs::-webkit-scrollbar {
    display: none;
  }
  .ulw-nav-tab, .ulw-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
    height: 32px !important;
  }
  .ulw-header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .ulw-points-pill {
    display: none !important; /* 手机端窄屏折叠积分展示 */
  }
  .ulw-close-btn {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    z-index: 50 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    border: 1px solid #cbd5e1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
  .ulw-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }

  /* 3. 工作台二级操作栏 (Sub-Bar) */
  .ulw-sub-bar {
    height: auto !important;
    min-height: 48px !important;
    padding: 8px 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .ulw-sub-bar-left {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .ulw-cat-box {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 11.5px !important;
  }
  .ulw-sub-bar-right {
    display: flex !important;
    width: 100% !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }
  .ulw-sub-bar-right .ulw-rating-box {
    width: 100% !important;
    font-size: 11.5px !important;
    margin-bottom: 2px !important;
    justify-content: flex-start !important;
  }
  .ulw-sub-bar-right .ulw-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 11px !important;
    padding: 6px 4px !important;
    white-space: nowrap !important;
  }

  /* 4. 工作台主区域卡片与网格 */
  .ulw-main-area {
    padding: 10px 8px !important;
  }
  .ulw-card {
    border-radius: 8px !important;
    margin-bottom: 12px !important;
  }
  .ulw-card-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }
  .ulw-card-title-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .ulw-card-title {
    white-space: nowrap !important;
    font-size: 13.5px !important;
  }
  .ulw-features-grid {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 10px !important;
  }

  /* 图片处理中心二级操作栏移动端适配 */
  .ulw-image-center-subbar {
    padding: 8px 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .ulw-image-center-subbar > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .ulw-image-center-subbar .ulw-notice-strip {
    font-size: 11.5px !important;
    padding: 6px 10px !important;
    line-height: 1.5 !important;
  }
  .ulw-image-center-subbar > div:last-child {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 6px !important;
  }
  .ulw-image-center-subbar .ulw-inline-btn {
    flex: 1 !important;
    font-size: 11px !important;
    padding: 5px 8px !important;
    justify-content: center !important;
  }
  .ulw-mode-pills {
    flex: 1 !important;
  }
  .ulw-pill-btn {
    flex: 1 !important;
    font-size: 11px !important;
    padding: 5px 4px !important;
    text-align: center !important;
  }

  /* 5. 店铺网格移动端单列 */
  .ulw-shop-grid {
    grid-template-columns: 1fr !important;
    padding: 10px 8px !important;
    gap: 10px !important;
  }
  .ulw-shop-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* 6. 表单输入与防 iOS 缩放 */
  .ulw-input, .ulw-textarea, .ulw-select {
    font-size: 14px !important;
  }

  /* 7. 变体表格工具条移动端水平滑动 */
  .ulw-matrix-tools {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
    gap: 6px !important;
    scrollbar-width: none;
  }
  .ulw-matrix-tools::-webkit-scrollbar {
    display: none;
  }
  .ulw-tool-btn {
    flex-shrink: 0 !important;
    font-size: 11.5px !important;
    height: 30px !important;
    padding: 0 10px !important;
  }

  /* 8. 变体表格与滑动提示 */
  .ulw-mobile-table-hint {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    background: #eff6ff !important;
    color: #1e40af !important;
    font-size: 11.5px !important;
    border-radius: 6px !important;
    margin: 0 10px 8px !important;
    border: 1px solid #dbeafe !important;
  }
  .ulw-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 8px 12px !important;
  }
  .ulw-matrix-table {
    min-width: 860px !important;
  }

  /* 9. 图片处理中心 (Image Center) 移动端响应式布局 */
  .ulw-3cols {
    flex-direction: column !important;
    height: auto !important;
    min-height: calc(100% - 50px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 左栏变体列表 -> 移动端顶部横向可滑动卡片条 */
  .ulw-col-left {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
  }
  .ulw-col-left-header {
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .ulw-col-left-list {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    max-height: 95px !important;
    scrollbar-width: none;
  }
  .ulw-col-left-list::-webkit-scrollbar {
    display: none;
  }
  .ulw-left-sku-card {
    flex-shrink: 0 !important;
    width: 155px !important;
    padding: 6px 8px !important;
    margin-bottom: 0 !important;
  }
  .ulw-left-sku-card label {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 135px !important;
  }
  .ulw-left-drawers {
    flex-direction: row !important;
    padding: 6px 10px !important;
    gap: 8px !important;
  }
  .ulw-drawer-item {
    flex: 1 !important;
    padding: 6px 8px !important;
  }

  /* 中栏图片网格区与工具条 */
  .ulw-col-center {
    width: 100% !important;
    flex: none !important;
    overflow: visible !important;
  }
  .ulw-col-center-toolbar {
    padding: 8px 10px !important;
    gap: 6px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .ulw-col-center-toolbar > div:first-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding-bottom: 4px !important;
    gap: 6px !important;
    scrollbar-width: none;
  }
  .ulw-col-center-toolbar > div:first-child::-webkit-scrollbar {
    display: none;
  }
  .ulw-col-center-toolbar > div:last-child {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 4px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }
  .ulw-col-center-toolbar .ulw-btn {
    flex-shrink: 0 !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
  }
  .ulw-grid-area {
    padding: 10px !important;
  }
  .ulw-center-card-box {
    padding: 12px 10px !important;
  }
  .ulw-img-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 8px !important;
  }
  .ulw-grid-card {
    overflow: visible !important;
  }
  .ulw-grid-img-wrap {
    height: 100px !important;
    border-radius: 8px 8px 0 0 !important;
    overflow: hidden !important;
  }
  .ulw-add-img-card {
    height: 132px !important;
    padding: 8px !important;
  }

  /* 右栏 AI 工具箱 -> 移动端折叠在底部，点击展开 */
  .ulw-mobile-ai-toggle {
    display: block !important;
    padding: 10px 12px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
  }
  .ulw-mobile-ai-toggle .ulw-btn {
    width: 100% !important;
    justify-content: center !important;
    font-weight: 600 !important;
    background: #eff6ff !important;
    color: #0A59F7 !important;
    border: 1px solid #bfdbfe !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
  }
  .ulw-col-right {
    display: none !important;
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }
  .ulw-col-right.ulw-mobile-expanded {
    display: flex !important;
  }

  /* 10. 分配图片弹窗移动端适配 */
  #ulwAssignImagesModalMask .ulw-modal-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 92vh !important;
    margin: 10px auto !important;
  }
  .ulw-assign-place-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .ulw-assign-footer {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .ulw-assign-footer > div {
    display: flex !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .ulw-assign-footer .ulw-btn {
    flex: 1 !important;
    justify-content: center !important;
  }

  /* 11. 富文本弹窗移动端垂直流式排布 */
  #ulwRichTextModalMask {
    padding: 0 !important;
    align-items: stretch !important;
  }
  #ulwRichTextModalMask > div {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
  #ulwRichTextModalMask div[style*="display:flex;overflow:hidden"] {
    flex-direction: column !important;
  }
  #ulwRichTextModalMask div[style*="width:290px"] {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
    max-height: 220px !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
  }

  /* 12. 视频处理中心移动端适配 */
  .ulw-video-player-box {
    width: 100% !important;
    border-radius: 8px !important;
  }
  .ulw-video-player-box video {
    height: 240px !important;
  }
  .ulw-empty-video-card {
    height: 240px !important;
    padding: 16px !important;
  }
}

@media (max-width: 480px) {
  .ulw-img-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .ulw-grid-img-wrap {
    height: 85px !important;
  }
  .ulw-nav-tab, .ulw-tab-btn {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
  .ulw-card-hover-bar {
    padding: 2px 4px !important;
  }
}

/* ==========================================================================
   Web Interface Guidelines (Vercel) Compliance Adjustments
   ========================================================================== */

/* 1. Visible Keyboard Focus Replacement (Never naked outline: none) */
:focus-visible,
.ulw-input:focus-visible,
.ulw-textarea:focus-visible,
.ulw-select:focus-visible,
.ulw-btn:focus-visible,
.ulw-tool-btn:focus-visible,
.ulw-nav-tab:focus-visible,
.ulw-icon-btn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0f52ba !important;
}

/* 2. Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. Touch Optimization */
button, input, select, textarea, .ulw-btn, .ulw-tab-btn, .ulw-nav-tab {
  touch-action: manipulation;
}

/* 4. Tabular Numbers for Matrix Calculations & Prices */
.ulw-matrix-table td,
.ulw-table-inp,
#ulwTitleLen,
#ulwDescLen,
.ulw-shop-qty {
  font-variant-numeric: tabular-nums;
}
