﻿:root { --orange:#ff7a00; --orange-soft:#fff3e8; --orange-line:#ffd4ad; --blue:#2563eb; --purple:#7e22ce; --green:#16a34a; --red:#dc2626; --muted:#6b7280; --line:#e5e7eb; --bg:#f6f7fb; --card:#fff; --text:#111827; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: 64px; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: var(--text); background: var(--bg); }
.shell { min-height: 100vh; }
.app-header { position: fixed; left: 0; right: 0; top: 0; z-index: 100; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 24px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); box-shadow: 0 10px 28px rgba(15,23,42,.06); backdrop-filter: blur(14px); }
.app-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-header-right { min-width: 180px; min-height: 40px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.account-chip { height: 40px; border: 1px solid #dbe3f0; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; cursor: pointer; color: #1f2937; font-weight: 800; }
.account-avatar { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#3b82f6,#2563eb); font-size: 14px; font-weight: 900; }
.account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-caret { color: #94a3b8; font-size: 12px; }
.sidebar { position: fixed; left: 18px; top: 82px; bottom: 18px; width: 190px; z-index: 20; overflow-y: auto; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: 0 18px 55px rgba(15,23,42,.10); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding: 0 8px; }
.logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid #dbe7ff; box-shadow: 0 8px 22px rgba(37,99,235,.14); overflow: hidden; }
.logo img { width: 34px; height: 34px; display: block; object-fit: contain; }
.brand-title { font-size: 19px; font-weight: 900; }
.brand-sub, .desc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.nav-group { color: #9ca3af; font-size: 12px; font-weight: 800; margin: 18px 12px 8px; }
.nav-item { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; margin-bottom: 4px; border-radius: 14px; font-size: 15px; cursor: pointer; color: #374151; text-align: left; }
.nav-item:hover { background: #f8fafc; }
.nav-item.active { color: #e85900; background: var(--orange-soft); border: 1px solid var(--orange-line); font-weight: 800; }
.sidebar-version { margin: 18px 12px 4px; padding-top: 14px; border-top: 1px solid var(--line); color: #94a3b8; font-size: 12px; font-weight: 800; }
.main { min-width: 0; margin-left: 226px; padding: 30px; }
.page { display: none; }
.active-page { display: block; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
h1 { margin: 0; font-size: 28px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-check { height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; color: #374151; }
.toolbar { margin-bottom: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 10px 28px rgba(15,23,42,.05); }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 900; }
.metric-value { margin-top: 8px; font-size: 28px; font-weight: 900; }
.input, .select { height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; outline: none; font: inherit; }
.input:focus, .select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.12); }
.search { width: 260px; }
.btn { height: 40px; border: 1px solid transparent; border-radius: 12px; padding: 0 16px; cursor: pointer; font-weight: 800; background: #fff; }
.btn.primary { color: #fff; background: var(--orange); }
.btn.ghost { border-color: var(--line); color: #374151; }
.btn.outline-blue { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.btn.outline-orange { border-color: var(--orange-line); color: #c2410c; background: var(--orange-soft); }
.btn:hover { filter: brightness(.98); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 40px rgba(15,23,42,.06); overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-title { font-weight: 900; }
.prompt-module-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 20px; }
.table-wrap { padding: 0; overflow: auto; }
table { width: 100%; min-width: 1160px; border-collapse: collapse; }
.wide-table { min-width: 1680px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 14px; }
th { background: #fafafa; color: #4b5563; font-weight: 900; }
.badge { display: inline-flex; align-items: center; height: 26px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 900; background: #f3f4f6; }
.badge.green { color: #087b35; background: #dcfce7; }
.badge.orange { color: #b45309; background: #fff7ed; }
.badge.red { color: #b91c1c; background: #fee2e2; }
.badge.blue { color: #1d4ed8; background: #dbeafe; }
.badge.purple { color: var(--purple); background: #f3e8ff; }
.thumb { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg,#fff7ed,#eef2ff); border: 1px solid var(--line); overflow: hidden; color: #64748b; font-weight: 900; object-fit: cover; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.collection-thumb { width: 96px; height: 96px; border-radius: 14px; cursor: zoom-in; background: #f8fafc; }
.image-choice { display: grid; gap: 8px; min-width: 180px; }
.image-choice .select { width: 180px; }
.select.compact { height: 34px; border-radius: 10px; font-size: 12px; padding: 0 8px; }
.image-preview { max-width: min(80vw, 900px); max-height: 78vh; object-fit: contain; border-radius: 16px; background: #f8fafc; }
.file-label { cursor: pointer; }
.file-label input { display: none; }
.placeholder { min-height: 260px; display: grid; place-items: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 20px; }
.task-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.temu-upload-layout { display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr); gap: 18px; align-items: start; }
.temu-upload-layout.refined { grid-template-columns: minmax(420px, 1fr) minmax(420px, .95fr); }
.temu-left-stack, .temu-right-stack { display: grid; gap: 18px; }
.compact-form { gap: 12px; }
.compact-form label { gap: 6px; }
.size-triplet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.run-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.progress { height: 12px; background: #eef2ff; border-radius: 999px; overflow: hidden; margin-bottom: 14px; border: 1px solid #dbeafe; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #7c3aed); border-radius: inherit; transition: width .25s ease; }
.terminal-log { min-height: 300px; max-height: 420px; overflow: auto; white-space: pre-wrap; background: #0b1020; color: #d1fae5; padding: 16px; border-radius: 14px; font-family: Consolas, "Courier New", monospace; line-height: 1.55; }
.task-inline-action { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.task-inline-action .btn { height: 30px; padding: 0 10px; font-size: 12px; }
.upload-package-list { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; }
.upload-package-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #e5edf7; border-radius: 16px; background: #fff; padding: 12px; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
.upload-package-card.ready { border-color: #bbf7d0; background: linear-gradient(180deg,#f0fdf4 0%,#fff 58%); }
.upload-package-card.failed { border-color: #fecaca; background: linear-gradient(180deg,#fef2f2 0%,#fff 58%); }
.upload-package-main { display: grid; gap: 7px; min-width: 0; }
.upload-package-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.upload-package-title b { color: #111827; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.upload-package-meta { display: flex; flex-wrap: wrap; gap: 6px; color: #64748b; font-size: 12px; font-weight: 800; }
.upload-package-meta span { border: 1px solid #e5e7eb; border-radius: 999px; padding: 3px 8px; background: #f8fafc; }
.upload-package-log { color: #64748b; font-size: 12px; line-height: 1.45; word-break: break-all; }
.upload-package-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-width: 210px; }
.upload-package-actions .btn { height: 32px; padding: 0 10px; font-size: 12px; }
.executor-status-simple { display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 18px; border: 1px solid #e5e7eb; background: #f8fafc; }
.executor-status-dot { width: 18px; height: 18px; border-radius: 999px; background: #94a3b8; box-shadow: 0 0 0 6px rgba(148,163,184,.14); flex: 0 0 auto; }
.executor-status-copy { display: grid; gap: 3px; min-width: 0; }
.executor-status-copy b { font-size: 22px; color: #111827; line-height: 1.1; }
.executor-status-copy span { color: #64748b; font-size: 13px; font-weight: 800; }
.executor-status-simple.online { border-color: #86efac; background: linear-gradient(135deg,#f0fdf4 0%,#ffffff 100%); }
.executor-status-simple.online .executor-status-dot { background: #22c55e; box-shadow: 0 0 0 7px rgba(34,197,94,.16); }
.executor-status-simple.offline { border-color: #fed7aa; background: linear-gradient(135deg,#fff7ed 0%,#ffffff 100%); }
.executor-status-simple.offline .executor-status-dot { background: #f97316; box-shadow: 0 0 0 7px rgba(249,115,22,.16); }
.executor-status-simple.running .executor-status-dot { animation: executorPulse 1.2s ease-in-out infinite; }
@keyframes executorPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.78); opacity: .65; } }
#processing-tasks .page-head { align-items: flex-start; margin-bottom: 16px; }
#processing-tasks h1 { font-size: 30px; }
#processing-tasks .desc { font-size: 14px; }
.processing-task-layout { display: grid; grid-template-columns: minmax(320px, .42fr) minmax(0, .58fr); gap: 16px; align-items: stretch; min-height: calc(100vh - 170px); }
.processing-log-card { min-height: 0; display: flex; flex-direction: column; }
.processing-log-card .card-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.processing-log-card .terminal-log { flex: 1; min-height: 420px; max-height: calc(100vh - 260px); }
.terminal-log.compact-log { min-height: 420px; max-height: calc(100vh - 260px); }
.processing-task-center-card { min-height: 0; display: flex; flex-direction: column; }
.processing-task-center-head { padding: 14px 18px; }
.processing-task-center-head .card-title { font-size: 18px; }
.processing-task-history { flex: 1; display: grid; gap: 8px; padding: 12px; max-height: calc(100vh - 260px); min-height: 420px; overflow: auto; align-content: start; }
@media (max-width: 700px) { .processing-task-layout { grid-template-columns: 1fr; } .processing-log-card .terminal-log, .terminal-log.compact-log { min-height: 220px; max-height: 320px; } }
.processing-task-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr) auto; gap: 12px; align-items: center; border: 1px solid #e5edf7; border-radius: 16px; background: #fff; padding: 10px 12px; box-shadow: 0 6px 18px rgba(15,23,42,.04); }
.processing-task-main { display: grid; gap: 3px; min-width: 0; }
.processing-task-main b { color: #111827; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.processing-task-main span, .processing-task-progress span { color: #64748b; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.processing-task-progress { display: grid; gap: 5px; min-width: 0; }
.processing-task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.processing-task-actions .btn { padding: 7px 10px; font-size: 12px; }
.progress-track.mini { height: 8px; margin: 0; }
.processing-workbench { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
.processing-list-card { position: sticky; top: 18px; max-height: calc(100vh - 36px); display: flex; flex-direction: column; }
.processing-queue-hint { margin: 0 14px 8px; padding: 9px 12px; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 800; line-height: 1.6; }
.processing-list { max-height: calc(100vh - 210px); overflow: auto; padding: 10px; display: grid; gap: 10px; }
.processing-list-card .processing-list { flex: 1; min-height: 0; }
.processing-list-card .processing-pagination { flex-shrink: 0; }
.processing-card { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 72px 1fr; gap: 12px; text-align: left; cursor: pointer; position: relative; }
.processing-card.sku-images-ok { background: #f0fdf4; border-color: #bbf7d0; }
.processing-card.sku-images-processing { background: #eff6ff; border-color: #bfdbfe; }
.processing-card.sku-images-missing { background: #fff1f2; border-color: #fecdd3; }
.processing-card.active { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 3px rgba(255,122,0,.12); }
.processing-card.sku-images-ok.active { background: #dcfce7; border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.processing-card.sku-images-processing.active { background: #dbeafe; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.processing-card.sku-images-missing.active { background: #fee2e2; border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.processing-select { position: absolute; top: 10px; left: 10px; z-index: 3; width: 18px; height: 18px; accent-color: var(--orange); }
.processing-card-delete { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 999px; background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; display: grid; place-items: center; font-size: 16px; font-weight: 900; line-height: 1; opacity: 0; transition: opacity .15s ease, transform .15s ease; z-index: 2; }
.processing-card:hover .processing-card-delete { opacity: 1; }
.processing-card-delete:hover { transform: scale(1.08); background: #ef4444; color: #fff; }
.processing-card img, .processing-card > div { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: #f8fafc; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.processing-image-placeholder { padding: 0 8px; text-align: center; color: #1d4ed8; font-weight: 900; line-height: 1.35; }
.collecting-notice { border-color: #bfdbfe !important; background: #eff6ff !important; color: #1d4ed8; }
.collecting-notice h3 { color: #1d4ed8; }
.collecting-notice p { margin: 0; line-height: 1.7; font-weight: 800; }
.ready-notice { border-color: #bbf7d0 !important; background: #f0fdf4 !important; color: #087b35; }
.ready-notice h3 { color: #087b35; }
.ready-notice p { margin: 0; line-height: 1.7; font-weight: 800; }
.collecting-inline { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 0 10px; background: #dbeafe; color: #1d4ed8; font-size: 12px; font-weight: 900; }
.processing-card strong { display: block; margin-bottom: 4px; }
.processing-card p { margin: 0 0 8px; color: #374151; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.processing-card footer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.processing-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-block { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.detail-block.wide, .detail-actions.wide { grid-column: 1 / -1; }
.detail-block h3 { margin: 0 0 12px; font-size: 15px; }
.muted-block { background: #fafafa; border-color: #f3f4f6; }
.muted-block h3 { color: #4b5563; }
.spec-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.spec-summary span { min-height: 56px; border: 1px solid #f3f4f6; border-radius: 14px; padding: 10px 12px; background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 800; display: grid; align-content: center; gap: 4px; }
.spec-summary b { color: #111827; font-size: 15px; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid #f3f4f6; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.color-stat-list { display: grid; gap: 8px; margin-top: 10px; }
.color-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; border: 1px solid #f3f4f6; background: #f8fafc; border-radius: 12px; padding: 8px 10px; }
.color-stat b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.color-stat span { color: #1d4ed8; font-weight: 800; }
.color-stat small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.carousel-image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.carousel-image { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 8px; display: grid; gap: 7px; text-align: left; cursor: pointer; position: relative; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.carousel-image:hover { transform: translateY(-1px); border-color: #fed7aa; box-shadow: 0 12px 26px rgba(15,23,42,.08); }
.carousel-image.active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
.image-select-check { position: absolute; top: 8px; left: 8px; z-index: 5; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; border: 2px solid #cbd5e1; background: rgba(255,255,255,.94); color: transparent; font-size: 14px; font-weight: 900; box-shadow: 0 4px 12px rgba(15,23,42,.12); pointer-events: none; }
.image-select-card.active .image-select-check { border-color: #2563eb; background: #2563eb; color: #fff; }
.carousel-image.image-load-failed, .skc-image.image-load-failed, .slot-picker-card.image-load-failed { display: none; }
.carousel-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #f8fafc; border: 1px solid #f3f4f6; }
.carousel-image span { color: #374151; font-size: 12px; font-weight: 900; text-align: center; }
.carousel-image .slot-title { color: #64748b; font-size: 11px; font-weight: 800; line-height: 1.2; }
.skc-manager, .size-manager { border: 1px solid #eef2ff; border-radius: 16px; background: #fbfdff; overflow: hidden; margin-top: 12px; }
.skc-manager-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #eef2ff; flex-wrap: wrap; }
.skc-manager-head b { font-size: 14px; }
.skc-manager-head span { color: var(--muted); font-size: 12px; }
.skc-manager-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.skc-manager-actions .btn { height: 32px; border-radius: 10px; padding: 0 10px; font-size: 12px; }
.skc-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-top: 1px solid #f3f4f6; }
.skc-row:first-of-type { border-top: 0; }
.skc-color { display: grid; gap: 4px; padding-top: 6px; }
.skc-color-head { display: block; min-width: 0; }
.skc-color-head b { display: block; min-width: 0; }
.skc-color-delete { width: 100%; border: 1px solid #fecaca; border-radius: 10px; background: #fff1f2; color: #b91c1c; font-size: 11px; font-weight: 900; line-height: 1; padding: 7px 8px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.skc-color-delete:hover { background: #ef4444; color: #fff; border-color: #ef4444; transform: translateY(-1px); }
.skc-color b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skc-color small, .skc-code { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.skc-code { display: none; }
.skc-images { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; justify-content: flex-start; min-width: max-content; }
.skc-slots { overflow-x: auto; padding-bottom: 4px; width: 100%; }
.skc-image { width: 82px; min-width: 82px; height: 118px; min-height: 118px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; display: grid; grid-template-rows: 84px 22px; gap: 4px; cursor: grab; position: relative; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; font: inherit; appearance: none; }
.skc-image:active { cursor: grabbing; }
.skc-image:hover { transform: translateY(-1px); border-color: #fed7aa; box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.skc-image.active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
.skc-image.dragging { opacity: .55; transform: scale(.98); }
.skc-image.swap-pending { border-color: #f97316; background: #fff7ed; box-shadow: 0 0 0 3px rgba(249,115,22,.22); }
.skc-image.image-generating { border-color: #8b5cf6; background: #f5f3ff; box-shadow: 0 0 0 3px rgba(139,92,246,.18), 0 14px 30px rgba(124,58,237,.16); cursor: progress; }
.image-generation-overlay { position: absolute; inset: 4px; z-index: 6; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .06em; background: linear-gradient(135deg, rgba(124,58,237,.86), rgba(14,165,233,.78)); animation: imageGenPulse 1.15s ease-in-out infinite; pointer-events: none; overflow: hidden; }
.image-generation-overlay::before { content: ''; position: absolute; inset: -70%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.9), transparent 28%); animation: imageGenSpin 1.2s linear infinite; }
.image-generation-overlay span { position: relative; z-index: 1; color: #fff; font-size: 12px; font-weight: 900; text-shadow: 0 1px 3px rgba(15,23,42,.35); }
.skc-image.empty { height: 118px; min-height: 118px; grid-template-rows: 84px 22px; place-items: stretch; border: 1.5px dashed #fdba74; color: var(--muted); background: #fff; align-content: stretch; }
.skc-image.drag-over { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.skc-image img { width: 100%; height: 84px; object-fit: cover; border-radius: 5px; background: #f8fafc; justify-self: center; }
.skc-image span { color: #1d4ed8; font-size: 14px; font-weight: 900; text-align: center; }
.skc-image .slot-title { color: #64748b; font-size: 11px; font-weight: 800; line-height: 1.2; }
.skc-empty-preview { width: 100%; height: 84px; border: 1px dashed #cbd5e1; border-radius: 5px; background: #f8fafc; color: #0ea5e9; display: grid; place-items: center; justify-self: center; font-size: 34px; font-weight: 900; line-height: 1; }
.skc-empty-preview:hover { background: #e0f2fe; border-color: #7dd3fc; color: #0284c7; }
.slot-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; padding: 0 2px; }
.skc-image em { color: #94a3b8; font-size: 10px; font-style: normal; font-weight: 700; text-align: center; line-height: 1.25; max-width: 62px; }
.image-generation-task-badge { position: absolute; left: 4px; right: 4px; bottom: 4px; z-index: 7; max-width: none; padding: 2px 4px; border-radius: 5px; color: #4c1d95 !important; background: rgba(245,243,255,.94); border: 1px solid rgba(139,92,246,.28); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.size-chip-list { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; }
.size-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; color: #4b5563; font-size: 12px; font-weight: 900; }
.size-chip.active { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
@keyframes imageGenSpin { to { transform: rotate(360deg); } }
@keyframes imageGenPulse { 0%, 100% { opacity: .82; } 50% { opacity: .96; } }
.variant-table-wrap { overflow: auto; border: 1px solid #f3f4f6; border-radius: 14px; }
.variant-table { min-width: 760px; }
.variant-table th, .variant-table td { padding: 10px 12px; font-size: 13px; }
.variant-table th { position: sticky; top: 0; z-index: 1; }
.image-picker { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: start; }
.image-picker-preview { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; background: #f8fafc; border: 1px solid var(--line); cursor: zoom-in; }
.image-picker .select { width: 100%; }
.image-picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.image-color-group { border: 1px solid #f3f4f6; border-radius: 16px; background: #fafafa; padding: 12px; margin-bottom: 12px; }
.image-color-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.image-color-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-color-head span { color: #1d4ed8; background: #eff6ff; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.image-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; max-height: 430px; overflow: auto; padding-right: 4px; }
.image-color-group .image-option-grid { max-height: none; overflow: visible; padding-right: 0; }
.image-option-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 8px; display: grid; gap: 7px; text-align: left; cursor: pointer; }
.image-option-card.active { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 3px rgba(255,122,0,.12); }
.image-option-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #f8fafc; border: 1px solid #f3f4f6; }
.image-option-card span { font-weight: 800; font-size: 12px; line-height: 1.3; min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.image-option-card small { color: var(--muted); }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { display: grid; gap: 8px; color: #374151; font-size: 13px; font-weight: 800; }
.prompt-selector-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(15,23,42,.42); padding: 20px; z-index: 200; }
.modal .dialog { position: relative; z-index: 201; }
.modal.hidden { display: none; }
.hover-image-preview { position: fixed; z-index: 80; width: 300px; height: 300px; padding: 8px; border: 1px solid #dbe3f0; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.28); pointer-events: none; }
.hover-image-preview.hidden { display: none; }
.hover-image-preview img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; background: #f8fafc; }
.dialog { width: min(760px, 100%); background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 24px 80px rgba(15,23,42,.28); }
.app-dialog { width: min(520px, 100%); }
.app-dialog-message { color: #374151; line-height: 1.7; white-space: pre-wrap; }
.app-dialog-progress-text { min-height: 72px; display: flex; align-items: center; justify-content: center; text-align: left; font-size: 18px; font-weight: 900; color: #1d4ed8; }
.progress-spinner-wrap { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 14px; }
.progress-spinner { --progress: 0deg; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(#2563eb var(--progress), #e0e7ff 0deg); box-shadow: inset 0 0 0 1px #dbeafe; transition: background .25s ease; }
.progress-spinner::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #eef2ff; }
.progress-spinner::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid transparent; border-top-color: #60a5fa; animation: progress-spin .9s linear infinite; }
.progress-spinner span { position: relative; z-index: 1; color: #1d4ed8; font-size: 16px; font-weight: 950; }
.progress-spinner.done { background: conic-gradient(#16a34a 360deg, #dcfce7 0deg); }
.progress-spinner.done::after, .progress-spinner.error::after { animation: none; border-top-color: transparent; }
.progress-spinner.done span { color: #047857; }
.progress-spinner.error { background: conic-gradient(#f97316 var(--progress), #ffedd5 0deg); }
.progress-spinner.error span { color: #b45309; }
@keyframes progress-spin { to { transform: rotate(360deg); } }
.progress-track { height: 12px; background: #eef2ff; border-radius: 999px; overflow: hidden; margin-bottom: 14px; border: 1px solid #dbeafe; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed); border-radius: inherit; transition: width .25s ease; }
.progress-table-wrap { max-height: 260px; border: 1px solid #f3f4f6; border-radius: 14px; }
.progress-table-wrap table { min-width: 720px; }
.progress-dialog-steps { display: grid; gap: 8px; margin-top: 12px; text-align: left; max-height: 220px; overflow: auto; }
.progress-dialog-step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px 10px; background: #f8fafc; }
.progress-dialog-step span { color: #64748b; font-size: 12px; font-weight: 900; }
.progress-dialog-step b { color: #111827; font-size: 13px; font-weight: 800; line-height: 1.35; }
.progress-dialog-step.running { border-color: #bfdbfe; background: #eff6ff; }
.progress-dialog-step.success { border-color: #bbf7d0; background: #f0fdf4; }
.progress-dialog-step.error { border-color: #fed7aa; background: #fff7ed; }
.progress-dialog-step.error b { color: #b45309; }
.progress-dialog-failures { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e7eb; display: grid; gap: 10px; text-align: left; max-height: 220px; overflow: auto; }
.progress-dialog-failures h4 { margin: 0; color: #111827; font-size: 13px; font-weight: 900; }
.progress-dialog-failure { border: 1px solid #fed7aa; border-radius: 12px; background: #fff7ed; padding: 10px 12px; display: grid; gap: 6px; }
.progress-dialog-failure b { color: #111827; font-size: 13px; line-height: 1.35; }
.progress-dialog-failure span { color: #92400e; font-size: 12px; line-height: 1.5; }
.progress-dialog-failure-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.progress-dialog-failure-actions .btn { height: 30px; border-radius: 10px; padding: 0 10px; font-size: 12px; }
.collection-progress-dialog { width: min(520px, calc(100vw - 36px)); }
.collection-progress-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #374151; line-height: 1.6; margin-bottom: 14px; flex-wrap: wrap; }
.collection-progress-list { display: grid; gap: 8px; max-height: 280px; overflow: auto; padding-right: 4px; }
.collection-progress-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid #eef2f7; border-radius: 14px; padding: 9px 12px; background: #f8fafc; }
.collection-progress-title { min-width: 0; }
.collection-progress-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111827; }
.collection-progress-title span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.collection-progress-state { font-weight: 900; color: #1d4ed8; white-space: nowrap; }
.loading-dots { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; }
.loading-dots i { width: 4px; height: 4px; border-radius: 999px; background: currentColor; opacity: .35; animation: dotPulse .9s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
.collection-progress-item.success { border-color: #bbf7d0; background: #f0fdf4; }
.collection-progress-item.success .collection-progress-state { color: #047857; }
.collection-progress-item.error { border-color: #fed7aa; background: #fff7ed; }
.collection-progress-item.error .collection-progress-state { color: #b45309; }
@keyframes dotPulse { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-3px); opacity: 1; } }
.log-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 900; }
.log-status.running { color: #1d4ed8; background: #eff6ff; }
.log-status.success { color: #047857; background: #d1fae5; }
.log-status.error { color: #b45309; background: #ffedd5; }
.log-status.info { color: #4b5563; background: #f3f4f6; }
.chat-log { display: grid; gap: 12px; max-height: 360px; overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
.chat-empty { color: var(--muted); text-align: center; padding: 34px 12px; border: 1px dashed var(--line); border-radius: 16px; background: #f8fafc; }
.chat-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.chat-avatar { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-weight: 900; background: #eff6ff; color: #1d4ed8; }
.chat-row.success .chat-avatar { background: #d1fae5; color: #047857; }
.chat-row.error .chat-avatar { background: #ffedd5; color: #b45309; }
.chat-bubble { min-width: 0; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 16px; padding: 12px 14px; }
.chat-row.success .chat-bubble { background: #f0fdf4; border-color: #bbf7d0; }
.chat-row.error .chat-bubble { background: #fff7ed; border-color: #fed7aa; }
.chat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chat-meta b { color: #111827; }
.chat-meta span { color: var(--muted); font-size: 12px; }
.chat-meta em { font-style: normal; }
.chat-message { color: #374151; line-height: 1.6; word-break: break-word; overflow-wrap: anywhere; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dialog-head h2 { margin: 0; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 999px; background: #f3f4f6; cursor: pointer; font-size: 24px; line-height: 1; }
.field-settings-menu { position: relative; }
.field-settings-button { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #93c5fd; border-radius: 12px; background: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%); color: #1d4ed8; font-size: 13px; font-weight: 900; box-shadow: 0 8px 18px rgba(37,99,235,.14); cursor: pointer; }
.field-settings-button span { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: #2563eb; color: #fff; font-size: 14px; line-height: 1; }
.field-settings-button:hover { border-color: #2563eb; background: #dbeafe; transform: translateY(-1px); }
.field-settings-panel { position: absolute; top: 48px; left: 0; z-index: 40; width: min(560px, calc(100vw - 340px)); min-width: 420px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(15,23,42,.18); }
.field-settings-panel.hidden { display: none; }
.field-settings-head { display: grid; gap: 4px; margin-bottom: 14px; }
.field-settings-head b { font-size: 15px; }
.field-settings-head span { color: var(--muted); font-size: 12px; }
.inline-fields { display: flex; gap: 8px; align-items: center; }
.inline-fields .input { min-width: 0; flex: 1; }
.mini-select { width: 72px; min-width: 72px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.auth-modal { background: radial-gradient(1200px 460px at 10% 90%, rgba(168,85,247,.16), rgba(15,23,42,.42)), radial-gradient(1200px 460px at 90% 10%, rgba(59,130,246,.12), rgba(15,23,42,.42)); }
.auth-dialog { width: min(430px, 100%); padding: 20px 26px 22px; border-radius: 14px; display: grid; gap: 12px; position: relative; }
.auth-close-btn { position: absolute; top: 10px; right: 10px; }
.auth-hero-icon { width: 42px; height: 42px; border-radius: 12px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#10b981,#059669); font-size: 20px; }
.auth-dialog h2 { margin: 0; text-align: center; color: #2563eb; }
.auth-subtitle { text-align: center; margin-top: -4px; }
.auth-form-stack { display: grid; gap: 10px; }
.auth-form-stack label { display: grid; gap: 6px; font-size: 12px; color: #4b5563; font-weight: 800; }
.auth-code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.auth-form-message { min-height: 18px; color: #b42318; }
.auth-submit-btn { width: 100%; margin-top: 2px; background: linear-gradient(90deg,#10b981,#059669); border-color: #059669; }
.auth-switch-row { display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid #e5e7eb; padding-top: 12px; }
.auth-switch-link { border: 0; background: transparent; color: #2563eb; font-weight: 800; cursor: pointer; }

#profile .page-head { margin-bottom: 14px; }
.profile-layout { display: grid; gap: 14px; }
.profile-user-card { padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.profile-user-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.profile-avatar { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-size: 38px; font-weight: 900; color: #2563eb; background: #f3f4f6; border: 1px solid #e5e7eb; }
.profile-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-name-row b { font-size: 38px; line-height: 1; font-weight: 900; color: #1e3a8a; }
.profile-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-metric-card { padding: 18px 20px; display: grid; gap: 8px; }
.profile-metric-label { color: #64748b; font-size: 32px; font-weight: 800; }
.profile-metric-value { color: #0f172a; font-size: 42px; font-weight: 900; line-height: 1; }
.profile-record-card { overflow: hidden; }
.profile-record-list { display: grid; }
.profile-record-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 20px; border-top: 1px solid #f1f5f9; }
.profile-record-item:first-child { border-top: 0; }
.profile-record-right { text-align: right; }
.profile-record-right b.negative { color: #ef4444; }
.profile-record-right b.positive { color: #10b981; }
.profile-record-filter.active { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
.profile-record-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px 20px 18px; border-top: 1px solid #f1f5f9; }
.shops-layout { display: grid; gap: 14px; }
.shops-slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shops-slot-card { min-height: 88px; border: 1px solid #e5e7eb; border-radius: 16px; background: #f8fafc; padding: 14px 16px; display: grid; align-content: center; gap: 6px; }
.shops-slot-card b { color: #0f172a; font-size: 28px; line-height: 1; }
.shops-slot-card span { color: #64748b; font-size: 12px; font-weight: 800; }
.shops-list { display: grid; gap: 10px; }
.shop-card { border: 1px solid #e5edf7; border-radius: 16px; background: #fff; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
.shop-card.active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.shop-card-main { display: grid; gap: 6px; min-width: 0; }
.shop-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-card-title b { font-size: 16px; color: #0f172a; }
.shop-card-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #64748b; font-size: 12px; font-weight: 800; }
.shop-card-meta span { border: 1px solid #e5e7eb; border-radius: 999px; padding: 3px 8px; background: #f8fafc; }
.shop-card-remark { color: #475569; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.shop-card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.shop-card-actions .btn { min-width: 72px; }
.shops-form { display: grid; gap: 14px; }
.shops-remark-input { min-height: 110px; padding-top: 12px; resize: vertical; }
.shops-form-actions { justify-content: flex-end; }

.back-to-top { position: fixed; right: 26px; bottom: 96px; z-index: 70; width: 48px; height: 48px; border: 0; border-radius: 999px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#ff7a00,#ffb000); box-shadow: 0 18px 40px rgba(255,122,0,.28); cursor: pointer; font-size: 22px; font-weight: 900; transition: transform .18s ease, opacity .18s ease; }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top.hidden { display: none; }
.empty-row { text-align: center; color: var(--muted); padding: 40px; }
.spec-map-groups { display: grid; gap: 14px; max-height: 640px; overflow: auto; padding-right: 4px; }
.spec-map-group { border: 1px solid #eef2f7; border-radius: 16px; background: #fafafa; padding: 14px; }
.spec-map-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.spec-map-group-title b { color: #111827; font-size: 15px; }
.spec-map-group-title span { color: #1d4ed8; background: #eff6ff; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 900; }
.spec-chip-list { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-chip { border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #374151; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.spec-alias-list { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 14px 14px; }
.spec-alias-title { flex-basis: 100%; color: #374151; font-weight: 900; margin-top: 8px; }
.spec-alias-list span { border-radius: 999px; background: #f8fafc; border: 1px solid #e5e7eb; color: #4b5563; padding: 7px 11px; font-size: 12px; font-weight: 800; }
.spec-alias-delete { margin-left: 8px; width: 20px; height: 20px; border: 0; border-radius: 999px; background: #fee2e2; color: #b91c1c; cursor: pointer; font-weight: 900; line-height: 1; }
.spec-alias-delete:hover { background: #ef4444; color: #fff; }
.spec-alias-form { align-items: end; margin-bottom: 12px; }
.spec-exception-list { display: grid; gap: 10px; }
.spec-exception-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; align-items: center; gap: 10px; border: 1px solid #fee2e2; border-radius: 16px; background: #fff7ed; padding: 12px; }
.spec-exception-row div { display: grid; gap: 4px; min-width: 0; }
.spec-exception-row b { color: #9a3412; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec-exception-row span { color: #64748b; font-size: 12px; font-weight: 800; }
.form-action-label { align-self: end; }
.form-action-label .btn { width: 100%; }
.size-chip.supported { color: #047857; background: #ecfdf5; border-color: #bbf7d0; }
.spec-rule-notes { display: grid; gap: 10px; color: #374151; line-height: 1.7; }
.freight-editor { display: grid; gap: 14px; margin-top: 18px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 18px; background: #fafafa; }
.freight-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.freight-rule-editor { display: grid; gap: 10px; }
.freight-rule-row { display: grid; grid-template-columns: 140px 150px 130px 120px auto; gap: 8px; align-items: center; }
.last-mile-rule-row { grid-template-columns: 110px 130px repeat(9, 86px) auto; overflow-x: auto; }
.freight-rule-header { color: #64748b; font-size: 12px; font-weight: 900; padding: 0 2px; }
.freight-rule-header span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.last-mile-rule-header { grid-template-columns: 110px 130px repeat(9, 86px) auto; overflow-x: auto; }
.freight-rule-row .input { min-width: 0; }
.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.billing-plan-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 10px;
}
.billing-plan-card.featured {
  border-color: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}
.billing-plan-name { font-size: 16px; font-weight: 900; color: var(--text); }
.billing-plan-price { font-size: 28px; font-weight: 900; color: #1d4ed8; line-height: 1; }
.billing-plan-origin { color: var(--muted); text-decoration: line-through; min-height: 18px; }
.billing-plan-save { color: #dc2626; font-weight: 800; min-height: 18px; }
@media (max-width: 1100px) { .billing-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .billing-plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .shell { min-height: 100vh; } .app-header { min-height: 64px; box-shadow: none; } .app-header-right { display: none; } .sidebar { position: sticky; left: auto; top: 0; bottom: auto; width: auto; max-height: none; border-radius: 0; box-shadow: none; } .main { margin-left: 0; padding: 18px; } .back-to-top { right: 18px; bottom: 96px; } .page-head, .task-layout, .metric-grid, .processing-workbench, .processing-detail-grid, .spec-summary, .skc-row, .spec-exception-row, .processing-task-row, .profile-metric-grid, .shops-slot-grid, .shop-card { grid-template-columns: 1fr; display: grid; } .processing-list-card { position: static; max-height: none; } .form-grid { grid-template-columns: 1fr; } .profile-user-card { display: grid; } .profile-name-row b { font-size: 26px; } .profile-metric-label { font-size: 20px; } .profile-metric-value { font-size: 32px; } .auth-dialog { width: min(94vw, 430px); padding: 18px; } }

.detail-slot, .skc-slot { position: relative; }
.detail-slot.empty, .skc-slot.empty { border: 1.5px dashed #fdba74; min-height: 120px; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 14px 10px; color: var(--muted); background: linear-gradient(180deg,#fff7ed 0%,#fff 100%); }
.skc-slot.empty { align-content: stretch; justify-items: stretch; padding: 3px; gap: 3px; background: #fff; }
.detail-slot.empty small, .skc-slot.empty em { color: #94a3b8; font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3; max-width: 96px; font-style: normal; }
.slot-action { position: absolute; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; z-index: 4; font-style: normal; font-weight: 900; line-height: 1; box-shadow: 0 8px 18px rgba(15,23,42,.14); transition: transform .15s ease, opacity .15s ease, background .15s ease; }
.skc-slot .slot-action { position: static; width: 22px; height: 22px; border-radius: 4px; box-shadow: none; font-size: 17px; }
.slot-add, .detail-slot strong, .skc-slot strong { left: 8px; top: 8px; background: rgba(255,255,255,.96); color: var(--orange); border: 1px solid #fed7aa; font-size: 18px; }
.skc-slot .slot-add, .skc-slot .slot-ai { background: #fff; color: #0ea5e9; border-color: transparent; }
.slot-delete, .detail-slot i, .skc-slot i { right: 8px; top: 8px; background: rgba(254,226,226,.96); color: #b91c1c; border: 1px solid #fecaca; font-size: 17px; }
.skc-slot .slot-delete { margin-left: auto; background: #fff; color: #2563eb; border-color: transparent; }
.skc-slot .slot-undo { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-size: 16px; }
.slot-undo { right: 42px; top: 8px; background: rgba(255,247,237,.96); color: #c2410c; border: 1px solid #fed7aa; font-size: 16px; }
.skc-slot .slot-delete.disabled, .skc-slot .slot-ai.disabled { opacity: .42; pointer-events: none; }
.detail-slot:not(:hover) .slot-action { opacity: .78; }
.slot-action:hover { transform: scale(1.08); }
.slot-delete:hover, .detail-slot i:hover, .skc-slot i:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.slot-undo:hover, .skc-slot .slot-undo:hover { background: #fb923c; color: #fff; border-color: #fb923c; }
.skc-slot .slot-add:hover, .skc-slot .slot-ai:hover { background: #e0f2fe; color: #0284c7; border-color: #bae6fd; }
.detail-slot.empty .slot-add, .detail-slot.empty strong { position: static; width: 42px; height: 42px; border-radius: 16px; background: linear-gradient(135deg,#ffedd5,#fff7ed); color: var(--orange); border: 1px solid #fdba74; font-size: 28px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 10px 22px rgba(255,122,0,.14); transform: none; order: -1; }
.detail-slot.empty .slot-add:hover, .detail-slot.empty strong:hover { transform: scale(1.06); background: var(--orange); color: #fff; border-color: var(--orange); }
.detail-slot.drag-over, .skc-slot.drag-over { outline: 3px solid rgba(255,122,0,.35); border-color: var(--orange); }
.slot-picker-dialog { width: min(980px, calc(100vw - 36px)); }
.shop-slot-renew-dialog { width: min(720px, calc(100vw - 36px)); }
.shop-slot-renew-list { display: grid; gap: 12px; margin-top: 16px; max-height: 360px; overflow: auto; }
.shop-slot-renew-item { border: 1px solid #dbe3f0; border-radius: 14px; padding: 14px 16px; background: #f8fbff; display: grid; gap: 8px; cursor: pointer; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.shop-slot-renew-item:hover { border-color: #93c5fd; box-shadow: 0 10px 24px rgba(59,130,246,.10); }
.shop-slot-renew-item.selected { border-color: #2563eb; background: #eff6ff; box-shadow: 0 14px 28px rgba(37,99,235,.16); }
.shop-slot-renew-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-slot-renew-item-title { font-size: 15px; font-weight: 800; color: #111827; }
.shop-slot-renew-item-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #475569; font-size: 13px; }
.slot-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; max-height: 62vh; overflow: auto; padding: 4px; }
.slot-picker-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 8px; display: grid; gap: 8px; cursor: pointer; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; position: relative; }
.slot-picker-card:hover { border-color: var(--orange); box-shadow: 0 12px 28px rgba(255,122,0,.16); transform: translateY(-1px); }
.slot-picker-card.selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18), 0 12px 28px rgba(37,99,235,.16); background: #eff6ff; }
.slot-picker-card.selected .image-select-check { border-color: #2563eb; background: #2563eb; color: #fff; }
.slot-picker-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #f3f4f6; }
.slot-picker-card span { font-size: 12px; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #eef2f7; flex-wrap: wrap; }
.pagination-bar .actions { margin-left: auto; }


.service-intro-card {
  grid-column: 1 / -1;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-intro-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text);
}

.service-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.billing-plan-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 10px;
}
.billing-plan-card.featured {
  border-color: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}
.billing-plan-name { font-size: 16px; font-weight: 900; color: var(--text); }
.billing-plan-price { font-size: 28px; font-weight: 900; color: #1d4ed8; line-height: 1; }
.billing-plan-origin { color: var(--muted); text-decoration: line-through; min-height: 18px; }
.billing-plan-save { color: #dc2626; font-weight: 800; min-height: 18px; }
@media (max-width: 1100px) { .billing-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .billing-plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .service-intro-grid {
    grid-template-columns: 1fr;
  }
}



.credit-recharge-page.active-page { display: block; }
.credit-recharge-page { background: linear-gradient(180deg, #fff7ec 0%, #fffaf2 100%); min-height: calc(100vh - 80px); margin: -30px; padding: 44px 30px 80px; }
.credit-recharge-shell { width: min(1180px, calc(100vw - 80px)); margin: 0 auto; display: grid; gap: 28px; }
.credit-back { border: 0; background: transparent; color: #64748b; font-size: 16px; font-weight: 800; width: fit-content; cursor: pointer; }
.credit-recharge-head { text-align: center; display: grid; gap: 10px; }
.credit-recharge-head h1 { margin: 0; color: #0f172a; font-size: 40px; letter-spacing: -.04em; }
.credit-recharge-head p { margin: 0; color: #64748b; font-size: 18px; font-weight: 700; }
.credit-warning { border: 1px solid #fecdd3; background: #fff1f2; color: #e11d48; border-radius: 18px; padding: 18px 24px; display: grid; gap: 6px; box-shadow: 0 10px 28px rgba(244, 63, 94, .06); }
.credit-warning b { font-size: 16px; }
.credit-warning span { font-size: 13px; font-weight: 700; }
.credit-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.credit-plan-card { position: relative; min-height: 156px; text-align: left; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; padding: 24px; cursor: pointer; box-shadow: 0 14px 34px rgba(15, 23, 42, .04); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; font: inherit; }
.credit-plan-card:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(15, 23, 42, .08); }
.credit-plan-card.selected { border: 2px solid #fb923c; box-shadow: 0 20px 44px rgba(251, 146, 60, .16); }
.credit-plan-small { display: block; color: #94a3b8; font-size: 14px; font-weight: 900; margin-bottom: 10px; }
.credit-plan-card b { color: #ea580c; font-size: 28px; line-height: 1; }
.credit-plan-unit { color: #94a3b8; font-size: 14px; font-weight: 900; margin-left: 4px; }
.credit-plan-card strong { display: block; margin-top: 26px; padding-top: 16px; border-top: 1px solid #f1f5f9; color: #0f172a; font-size: 22px; }
.credit-plan-badge { position: absolute; right: 14px; top: -10px; padding: 4px 14px; border-radius: 999px; color: #fff; background: #f97316; font-size: 12px; font-weight: 900; }
.credit-custom-card { border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; padding: 22px 24px 24px; display: grid; gap: 14px; box-shadow: 0 14px 34px rgba(15, 23, 42, .04); }
.credit-custom-head { display: flex; justify-content: space-between; gap: 12px; color: #94a3b8; font-size: 14px; font-weight: 800; }
.credit-custom-head b { color: #0f172a; font-size: 16px; }
.credit-custom-input { height: 58px; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0 18px; display: flex; align-items: center; gap: 12px; color: #94a3b8; font-weight: 900; }
.credit-custom-input input { border: 0; outline: none; flex: 1; font-size: 18px; color: #0f172a; background: transparent; }
.credit-pay-button { height: 72px; border: 0; border-radius: 16px; color: #fff; font-size: 20px; font-weight: 900; background: linear-gradient(90deg, #f3bb8f, #f5cf82); box-shadow: 0 16px 36px rgba(217, 119, 6, .16); cursor: pointer; }
.credit-pay-button:disabled { cursor: not-allowed; opacity: .78; }
.credit-pay-button:not(:disabled) { background: linear-gradient(90deg, #f97316, #f59e0b); }
.credit-rules-card { border: 1px solid #fed7aa; border-radius: 18px; background: rgba(255,255,255,.72); padding: 22px 24px; color: #64748b; font-size: 16px; line-height: 1.7; display: grid; gap: 4px; }
.credit-rules-card p { margin: 0; }
.credit-rules-card .danger { color: #e11d48; font-weight: 900; }
.link-button { border: 0; background: transparent; color: #f97316; font-weight: 900; cursor: pointer; padding: 0; font: inherit; }
@media (max-width: 1100px) { .credit-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .credit-recharge-shell { width: min(100%, calc(100vw - 40px)); } }
@media (max-width: 700px) { .credit-recharge-page { margin: -18px; padding: 28px 18px 60px; } .credit-plan-grid { grid-template-columns: 1fr; } .credit-recharge-head h1 { font-size: 32px; } .credit-custom-head { display: grid; } }
