:root {
  --bg: #f5f8f2;
  --card: #ffffff;
  --ink: #16301f;
  --muted: #6b7c70;
  --line: #dfe8da;
  --green: #0f5132;
  --green-2: #146c43;
  --green-soft: #e8f3e6;
  --lime: #84cc16;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --blue: #0369a1;
  --blue-soft: #e0f2fe;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --gray-soft: #f1f5f0;
  --shadow: 0 10px 30px rgba(15, 81, 50, .08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.3; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- public ---------- */
.public-header { background: rgba(248,250,246,.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.public-header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand b { display: block; font-size: 20px; letter-spacing: .02em; }
.brand small { display: block; font-size: 9px; letter-spacing: .22em; color: #6b7c70; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.brand-dark { color: #fff; }
.brand-dark small { color: rgba(255,255,255,.6); }
.public-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.public-nav a { padding: 8px 16px; border-radius: 999px; color: #506256; font-weight: 600; }
.public-nav a:hover { background: var(--green-soft); color: var(--green); }
.public-actions { display: flex; gap: 10px; }
.public-main { min-height: 60vh; }
.public-footer { background: #10251a; color: #fff; margin-top: 50px; }
.public-footer-inner { max-width: 1240px; margin: 0 auto; padding: 40px 24px 24px; display: flex; justify-content: space-between; gap: 30px; }
.public-footer p { color: rgba(255,255,255,.5); font-size: 12px; max-width: 460px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 13px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px; font-size: 12px; color: rgba(255,255,255,.35); }

.hero { padding: 56px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -.02em; }
.hero .lead { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 560px; }
.hero-card { background: #10271b; color: #fff; border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.hero-stat { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; text-align: center; margin-top: 18px; }
.hero-stat div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px 6px; }
.hero-stat b { display: block; font-size: 20px; color: #bef264; }

/* ---------- layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: #10271b; color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.sidebar-admin { background: #1c1917; }
.merchant-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px; font-size: 12px; }
.merchant-card b { display: block; font-size: 13px; margin-bottom: 2px; }
.merchant-card span { color: rgba(255,255,255,.55); }
.progress { height: 6px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: var(--lime); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.4); margin: 6px 8px; }
.side-nav a { color: rgba(255,255,255,.72); padding: 9px 10px; border-radius: 9px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.side-nav em { background: var(--lime); color: #17311f; font-style: normal; border-radius: 99px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.side-foot a { color: rgba(255,255,255,.5); font-size: 12px; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: rgba(255,255,255,.85); border-bottom: 1px solid var(--line); padding: 14px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.topbar h1 { font-size: 20px; margin: 0; }
.crumb { font-size: 11px; color: var(--muted); }
.main-content { flex: 1; width: 100%; padding: 24px 26px 50px; max-width: 1400px; }
.seller-header { background: rgba(248,250,246,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.seller-header-inner { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.seller-nav { display: flex; gap: 4px; margin-left: 12px; flex-wrap: wrap; }
.seller-nav a { padding: 8px 14px; border-radius: 9px; color: #506256; font-weight: 600; font-size: 13px; }
.seller-nav a:hover, .seller-nav a.active { background: var(--green-soft); color: var(--green); }
.seller-main { min-height: 70vh; }
.seller-main-inner { max-width: 1280px; margin: 0 auto; padding: 24px 24px 50px; }
.user-area { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.user-name { font-weight: 700; color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar-img { display: inline-block; object-fit: cover; background: #e8f0ea; }
.link-muted { color: var(--muted); }

/* ---------- cards / grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,37,26,.03); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; margin: 0 0 4px; }
.page-head p { color: var(--muted); margin: 0; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat b { display: block; font-size: 26px; margin-top: 4px; letter-spacing: -.02em; }
.stat small { color: var(--muted); font-size: 11px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-main-side { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }

/* ---------- buttons / badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1.2; }
.btn:hover { border-color: #b8cdb0; color: var(--green); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: #17311f; }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--red); }
.btn-sm { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-gray { background: #eceff1; color: #546e7a; }
.pill { display: inline-block; padding: 2px 8px; background: var(--gray-soft); border-radius: 99px; font-size: 11px; color: var(--muted); }
.tag { display: inline-block; background: var(--green-soft); color: var(--green); border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef3ea; vertical-align: middle; }
.table th { background: #f8faf5; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fbfdf9; }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { white-space: nowrap; text-align: right; }
.table-empty { padding: 34px; text-align: center; color: var(--muted); }
.table-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.table .pill { white-space: nowrap; }

/* ---------- recognition records ---------- */
.thumb-64 { width: 64px; height: 64px; object-fit: cover; display: block; border-radius: 10px; border: 1px solid var(--line); background: #f7faf5; }
.thumb-empty { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px dashed var(--line); background: #fafbf8; color: var(--muted); font-size: 11px; }
.thumb-lg { display: block; max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #f7faf5; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: #3f5347; }
.field .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; border: 1px solid #d6e1d1; border-radius: 9px; background: #fff; color: var(--ink);
  padding: 9px 11px; font-size: 13px; font-family: inherit; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,81,50,.08); }
.textarea { min-height: 84px; resize: vertical; }
.input[readonly], .input[disabled] { background: #f4f6f2; color: #6b7c70; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #405145; }
.help { color: var(--muted); font-size: 11px; }
.error-box { background: var(--red-soft); color: #991b1b; border: 1px solid #fecaca; border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.success-box { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form .input, .inline-form .select { width: auto; min-width: 150px; }
.price-input { width: 110px; text-align: right; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a, .tabs button { padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--muted); border: none; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs a.active, .tabs button.active { color: var(--green); border-bottom-color: var(--green); }
.tabs .count { background: var(--gray-soft); border-radius: 99px; padding: 0 6px; font-size: 10px; margin-left: 4px; }

/* ---------- misc ---------- */
.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 14px 4px 0; font-size: 12px; }
.pager-info { color: var(--muted); margin-right: auto; }
.page-link { padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #405145; }
.page-link.active { background: var(--green); border-color: var(--green); color: #fff; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }
.notice { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 12px; padding: 12px 14px; font-size: 12px; }
.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 12px 14px; font-size: 12px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.modal-mask { display: none; position: fixed; inset: 0; background: rgba(9,25,17,.55); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.open { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 18px; }
.modal-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.close { border: none; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #10251a; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { padding: 10px 0; border-bottom: 1px solid #eef3ea; }
.list-clean li:last-child { border-bottom: none; }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar-chart .bar i { display: block; width: 100%; max-width: 26px; background: var(--green); border-radius: 5px 5px 0 0; min-height: 3px; }
.bar-chart .bar span { font-size: 10px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid #dce8d6; }
.timeline li { position: relative; padding: 0 0 16px 16px; }
.timeline li:before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #b9ccb0; }
.timeline li.done:before { border-color: var(--green); background: var(--green); }
.timeline li.current:before { border-color: var(--lime); }
.timeline b { display: block; font-size: 13px; }
.timeline span { font-size: 11px; color: var(--muted); }

/* ---------- file picker ---------- */
.input[type="file"] {
  border-style: dashed;
  background: #f8fbf6;
  padding: 10px 12px;
  cursor: pointer;
}
.input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border: 1.5px dashed #c8d8c0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdf9 0%, #f5faf1 100%);
  transition: border-color .18s ease, background .18s ease;
}
.file-picker:hover {
  border-color: var(--green);
  background: #f2f9ed;
}
.file-picker.has-file {
  border-style: solid;
  border-color: #b9d8b0;
  background: #f7fcf4;
}
.file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.file-picker .file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease;
}
.file-btn:hover { background: var(--green-2); }
.file-btn:before { content: "＋"; font-size: 15px; line-height: 1; }
.file-name {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}
.file-picker.has-file .file-name { color: var(--ink); font-weight: 600; }

/* ---------- seller upload / AI quotation ---------- */
.upload-hero { text-align: center; padding: 8px 0 22px; }
.upload-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border: 1px solid #bbf7d0; border-radius: 99px; background: #ecfdf3;
  color: #166534; font-size: 11px; font-weight: 800; letter-spacing: .06em;
}
.upload-hero h1 { margin: 14px 0 8px; font-size: 38px; letter-spacing: -.03em; }
.upload-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.step-card {
  display: flex; align-items: flex-start; justify-content: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 22px 26px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16,37,26,.03);
}
.step-item { width: 170px; text-align: center; flex-shrink: 0; }
.step-circle {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #f0f3ed; color: #9ba69d; font-size: 14px; font-weight: 900;
}
.step-item.done .step-circle { background: var(--green); color: #fff; }
.step-item.current .step-circle { background: var(--green); color: #fff; box-shadow: 0 0 0 5px #dcfce7; }
.step-item b { display: block; margin-top: 10px; font-size: 14px; }
.step-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.step-item:not(.done):not(.current) b, .step-item:not(.done):not(.current) small { color: #9aa69d; }
.step-line { flex: 1; height: 4px; margin-top: 20px; border-radius: 99px; background: #dfe7da; max-width: 180px; }
.step-line.done { background: var(--green); }
.upload-layout { display: block; }
.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
.upload-dropzone {
  min-height: 330px; border: 1px solid #dce8d5; border-radius: 18px;
  background: radial-gradient(circle at 22% 26%, rgba(255,255,255,.9), transparent 36%), linear-gradient(135deg,#e6f0e1,#d4e5ce);
  padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; overflow: hidden;
}
.upload-dropzone:before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(21,128,61,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(21,128,61,.15) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.upload-illustration { position: relative; z-index: 1; text-align: center; color: #3f6b4b; }
.upload-illustration .upload-icon {
  width: 70px; height: 70px; margin: 0 auto 10px; border-radius: 20px;
  background: #10281b; color: #bef264; display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 16px 30px rgba(16,40,27,.2);
}
.upload-illustration b { display: block; font-size: 14px; color: #244532; }
.upload-illustration small { display: block; margin-top: 3px; font-size: 11px; color: #6b8372; }
.upload-dropzone .file-picker { position: relative; z-index: 1; background: rgba(255,255,255,.9); }
.upload-preview {
  position: relative; min-height: 300px; border-radius: 18px; overflow: hidden;
  background: #eef5ea; border: 1px solid #dce8d5; display: flex; align-items: center; justify-content: center;
}
.upload-preview img { max-width: 100%; max-height: 360px; object-fit: contain; display: block; }
.upload-file-chip {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8);
  border-radius: 12px; padding: 9px 12px; box-shadow: 0 8px 20px rgba(16,37,26,.12);
}
.upload-file-chip b { display: block; font-size: 12px; }
.upload-file-chip span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.upload-side { display: flex; flex-direction: column; gap: 12px; }
.upload-info-box { background: #fafbf8; border: 1px solid #e5ece0; border-radius: 16px; padding: 14px; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #99a49b; text-transform: uppercase; margin: 0 0 10px; }
.btn-block { width: 100%; justify-content: center; padding: 12px 14px; font-size: 13px; }
.ai-panel .progress { height: 8px; margin: 12px 0 16px; }
.ai-panel .progress i { background: linear-gradient(90deg,#10b981,#84cc16); }
.stage-list { display: flex; flex-direction: column; }
.stage-item { display: flex; gap: 10px; padding: 7px 0; }
.stage-rail { display: flex; flex-direction: column; align-items: center; }
.stage-icon {
  width: 28px; height: 28px; border-radius: 50%; background: #f0f3ed; color: #9ba69d;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; flex-shrink: 0;
}
.stage-line { width: 1px; height: 18px; background: #e7ede3; margin-top: 3px; }
.stage-item:last-child .stage-line { display: none; }
.stage-item.done .stage-icon { background: #dcfce7; color: #15803d; }
.stage-item.active .stage-icon { background: var(--green); color: #fff; box-shadow: 0 0 0 4px #e8f3e6; }
.stage-title { font-size: 11px; font-weight: 800; color: #8c998f; }
.stage-desc { font-size: 9px; color: #a5afa6; margin-top: 2px; }
.stage-item.done .stage-title { color: #365042; }
.stage-item.active .stage-title { color: #134e2a; }
.ai-log {
  margin-top: 12px; min-height: 64px; max-height: 120px; overflow: auto;
  background: #10281b; color: #d9f99d; border-radius: 12px; padding: 10px 12px;
  font-family: Consolas, monospace; font-size: 9px; line-height: 1.8;
}
.ai-log .sys { color: rgba(255,255,255,.35); }
.ai-idle { border: 1px dashed #d7e4d0; background: #f8faf6; border-radius: 12px; padding: 14px; text-align: center; margin-top: 12px; }
.result-layout .table { table-layout: auto; font-size: 12px; }
.result-layout .table th,
.result-layout .table td { padding: 8px 7px; }
.result-layout .table th:first-child,
.result-layout .table td:first-child { min-width: 136px; white-space: normal; line-height: 1.45; }
.summary-cta { display: block; margin-top: 12px; border: 1px solid #a7f3d0; background: #ecfdf5; border-radius: 16px; padding: 16px; }
.summary-cta b { display: block; color: #064e3b; font-size: 13px; }
.summary-cta span { display: block; margin-top: 4px; color: #047857; font-size: 10px; line-height: 1.6; }

/* ---------- matched suppliers ---------- */
.supplier-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 18px; }
.supplier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.supplier-head h3 { font-size: 16px; }
.supplier-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; padding-right: 4px; }
.supplier-item { display: flex; align-items: center; gap: 12px; border: 1px solid #eef3ea; border-radius: 12px; padding: 10px 12px; background: #fbfdf9; }
.supplier-logo { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #e8f5ec; color: var(--green); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.supplier-main { flex: 1 1 auto; min-width: 0; }
.supplier-main b { font-size: 13px; }
.supplier-coverage { flex: none; text-align: right; }
.supplier-coverage b { display: block; font-size: 16px; color: var(--green); line-height: 1.2; }
.supplier-coverage b span { font-size: 11px; color: var(--muted); font-weight: 600; }
.supplier-coverage small { display: block; font-size: 10px; color: var(--muted); }
.supplier-empty { display: flex; gap: 12px; align-items: flex-start; background: #fffaf0; border: 1px dashed #f3d9a4; border-radius: 12px; padding: 14px; }
.supplier-empty-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fef3c7; color: #b45309; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.supplier-empty b { font-size: 13px; color: #92400e; }
.supplier-empty p { margin: 4px 0 0; font-size: 11px; color: #a16207; line-height: 1.7; }
.supplier-empty ul { margin: 6px 0 0; padding-left: 18px; font-size: 11px; color: #a16207; line-height: 1.8; }
.supplier-foot { margin-top: 12px; }

@media (max-width: 1100px) {
  .result-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .step-card { flex-wrap: wrap; }
  .step-line { display: none; }
  .step-item { width: 30%; min-width: 90px; }
  .upload-grid { grid-template-columns: 1fr; }
  .supplier-head { flex-direction: column; }
  .supplier-item { flex-wrap: wrap; }
  .supplier-coverage { text-align: left; }
  .upload-hero h1 { font-size: 30px; }
}

/* ---------- login ---------- */
.auth-wrap { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: #10271b; color: #fff; padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-side h1 { font-size: 36px; line-height: 1.2; }
.auth-side p { color: rgba(255,255,255,.6); }
.auth-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.auth-metrics div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 14px; }
.auth-metrics b { display: block; font-size: 22px; color: #bef264; }
.auth-box { padding: 50px 8vw; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 24px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

@media (max-width: 1100px) {
  .hero-grid, .grid-main-side, .auth-wrap { grid-template-columns: 1fr; }
  .stat-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .seller-header-inner, .public-header-inner { flex-wrap: wrap; }
  .stat-grid, .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
  .hero h1 { font-size: 32px; }
  .auth-box { padding: 24px; }
}

/* ---------- shared brand / footer ---------- */
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-sm { height: 34px; }
.site-footer { background: #10251a; color: #fff; border-top: 1px solid rgba(255,255,255,.08); margin-top: 0; }
.site-footer-inner { max-width: 1240px; margin: 0 auto; padding: 30px 24px 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.site-footer-logo { height: 36px; width: auto; display: block; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 12px; font-weight: 600; }
.site-footer-links a { color: rgba(255,255,255,.55); text-decoration: none; }
.site-footer-links a:hover { color: #bef264; }
.site-footer-icp { border-top: 1px solid rgba(255,255,255,.1); padding: 13px 24px; text-align: center; font-size: 10px; line-height: 1.9; color: rgba(255,255,255,.35); }
.site-footer-icp p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 18px; }
.site-footer-icp a { color: rgba(255,255,255,.45); text-decoration: none; }
.site-footer-icp a:hover { color: #bef264; }
@media (max-width: 640px) {
    .site-footer-inner { padding: 22px 18px 14px; }
    .site-footer-icp { padding: 12px 18px; }
    .brand-logo { height: 34px; }
}
