:root {
  --ink: #1c2430;
  --ink-2: #2a3340;
  --ink-soft: #5c6573;
  --paper: #f7f9fb;
  --paper-2: #eef2f5;
  --sheet: #ffffff;
  --line: rgba(28, 36, 48, 0.1);
  --muted: #5c6573;
  --cyan: #0f766e;
  --cyan-ink: #0c615a;
  --cyan-soft: #e7f4f1;
  --green: #07c160;
  --warn: #b45309;
  --danger: #b42318;
  --ok: #3f6212;
  --side: 232px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 36, 48, .05);
  --nav-h: 62px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-body: 14px;
  --fs-md: 15px;
  --fs-lg: 16px;
  --fs-title: 18px;
  --lh: 1.55;
  --lh-tight: 1.28;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan-ink); }

.login-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(720px 360px at 100% -8%, rgba(15, 118, 110, 0.1), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #eef2f5 100%);
}
.login-card {
  width: min(400px, 100%);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px 26px;
}
.login-card .login-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.login-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: var(--lh-tight);
}
.login-card p { margin: 0 0 22px; color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh); }
.login-card label { display: block; font-size: var(--fs-xs); margin: 0 0 6px; color: var(--muted); }
.login-card input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  margin-bottom: 14px;
  outline: none;
}
.login-card input:focus { border-color: #9fd0c6; box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }
.login-card .btn { width: 100%; height: 42px; border-radius: 10px; }
.err { color: var(--danger); font-size: var(--fs-sm); line-height: var(--lh); min-height: 18px; margin: 0 0 10px; }

.layout,
.layout-app {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(780px 380px at 100% -10%, rgba(15, 118, 110, 0.1), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #eef2f5 100%);
}
.layout .side,
.layout-app .side,
.layout-chat .side { display: none; }
.main-app,
.layout-chat .main-chat {
  flex: 0 1 auto;
  width: min(520px, 100%);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--sheet);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.app-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.app-body.is-chat {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.app-page {
  padding: 16px 18px 24px;
}
.app-page .page { max-width: none; }
.app-page .card { overflow-x: auto; }
.app-page .top { margin-bottom: 16px; }
.app-page .top h2 { font-size: var(--fs-title); font-weight: 700; letter-spacing: -0.02em; line-height: var(--lh-tight); }
.app-page .top .sub { font-size: var(--fs-sm); line-height: var(--lh); margin-top: 6px; }
.app-page .dash-stats,
.app-page .dash-grid,
.app-page .stats,
.app-page .grid-2 { grid-template-columns: 1fr; }
.side {
  width: var(--side);
  background: #151c24;
  color: #e7e5e4;
  padding: 18px 0 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.brand { padding: 4px 18px 18px; border-bottom: 1px solid #2a3440; }
.brand a { color: inherit; text-decoration: none; }
.brand strong { display: block; font-size: 16px; letter-spacing: 0.02em; }
.brand span { display: block; margin-top: 5px; color: #8b98a5; font-size: 12px; }
.nav { padding: 10px 10px; flex: 1; overflow: auto; }
.nav a {
  display: block;
  color: #c5ced6;
  text-decoration: none;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 8px;
}
.nav a:hover { color: #fff; background: #243140; }
.nav a.on { color: #fff; background: #0f766e; }
.nav .grp { color: #7d8b98; font-size: 11px; padding: 14px 12px 6px; letter-spacing: 0.12em; }
.side .who {
  margin: 8px 12px 0;
  padding: 12px 10px 0;
  border-top: 1px solid #2a3440;
  color: #8b98a5;
  font-size: 12px;
}

.main { flex: 1; min-width: 0; min-height: 100vh; padding: 26px 32px 48px; background: var(--paper); overflow: auto; }
.main.main-app {
  padding: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--sheet);
}
.page { max-width: 1180px; }
.main-chat { padding: 0; max-width: none; display: flex; flex-direction: column; min-height: 0; }
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.top h2 { margin: 0; font-size: var(--fs-title); font-weight: 700; letter-spacing: -0.02em; line-height: var(--lh-tight); }
.top .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; line-height: var(--lh); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; align-items: start; }

.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.card .body { padding: 16px 16px 18px; }

textarea.ask {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  background: #fff;
  line-height: 1.55;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
}
.chip:hover { background: var(--paper-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cities { padding: 14px 12px 8px; }
.cities .lab { font-size: 11px; color: #8b98a5; letter-spacing: 0.12em; margin: 0 6px 8px; }
.city-seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #243140;
  border-radius: 9px;
}
.city-seg .chip {
  flex: 1;
  height: 28px;
  border: 0;
  background: transparent;
  color: #9aa8b4;
  border-radius: 6px;
}
.city-seg .chip.on { background: #fff; color: var(--ink); }

.btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--cyan);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1;
}
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper); filter: none; }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: wait; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ticket {
  border: 1px dashed var(--ink);
  padding: 18px 16px;
  background: repeating-linear-gradient(-45deg, #fffdf8, #fffdf8 12px, #faf6ee 12px, #faf6ee 24px);
}
.ticket .sum {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 12px;
}
.ticket pre, .script {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}
.script {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  min-height: 88px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
}
.badge.ok { color: #3f6212; background: #eef8eb; }
.badge.warn { color: #b45309; background: #fff7e8; }
.badge.bad { color: #b42318; background: #fff0ef; }

table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: var(--lh); }
table.data th, table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { color: var(--muted); font-weight: 650; font-size: var(--fs-xs); background: rgba(28, 36, 48, 0.03); letter-spacing: 0.02em; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:hover td { background: #f7fbfa; }

.toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.toolbar input, .toolbar select, .field input, .field select, .field textarea {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  outline: none;
}
.toolbar input:focus, .toolbar select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: #9fd0c6;
}
.field textarea { height: auto; padding: 8px 10px; min-height: 72px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); color: var(--muted); line-height: var(--lh); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span2 { grid-column: 1 / -1; }

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.35);
  display: grid;
  place-items: center;
  z-index: 20;
}
.modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 24px 48px rgba(26, 35, 48, .16);
}
.modal h3 { margin: 0 0 16px; }

.empty { color: var(--muted); padding: 32px; text-align: center; }

.dashboard-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #17212b; color: #fff; border-radius: 10px; padding: 24px 28px; margin-bottom: 16px;
}
.dashboard-hero h3 { margin: 3px 0 4px; font-size: 24px; }
.dashboard-hero p { margin: 0; color: #b9c7d1; font-size: 13px; }
.dashboard-hero .eyebrow { color: #5eead4; font-size: 12px; letter-spacing: .12em; }
.dashboard-hero .btn { background: #fff; border-color: #fff; color: #17212b; }
.dashboard-hero .btn.ghost { background: transparent; border-color: #5f7180; color: #fff; }
.dash { display: grid; gap: 16px; }
.dash-alert {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff8ea;
  border: 1px solid #efd29a;
  color: #925b08;
  text-decoration: none;
  font-size: 13px;
}
.dash-alert:hover { background: #fff3d6; }
.dash-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef7f4 0%, var(--sheet) 58%);
  border: 1px solid #d5ebe4;
}
.dash-kicker {
  display: inline-block;
  font-size: var(--fs-xs);
  color: #0f766e;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.dash-welcome h3 { margin: 0 0 6px; font-size: var(--fs-title); line-height: var(--lh-tight); }
.dash-welcome p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh); }
.dash-welcome-actions { display: flex; gap: 8px; flex-shrink: 0; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.dash-stat:hover { border-color: #9fd0c6; box-shadow: 0 8px 20px rgba(15, 118, 110, .06); }
.dash-stat span { display: block; color: var(--muted); font-size: 12px; }
.dash-stat b { display: block; margin-top: 8px; font-size: 28px; font-variant-numeric: tabular-nums; color: var(--ink); }
.dash-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; align-items: start; }
.dash-panel { overflow: hidden; }
.dash-panel table.data td:nth-child(2) {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.readiness { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.readiness-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.readiness-item b { display: block; font-size: 24px; color: var(--ink); }
.readiness-item span { display: block; color: var(--muted); font-size: 12px; margin: 3px 0 8px; }
.readiness-item a { font-size: 12px; text-decoration: none; }
.readiness-item.attention { border-color: #e9b46b; background: #fffaf0; }
.dashboard-summary { display: grid; gap: 4px; }
.dashboard-summary b { font-size: 30px; color: var(--cyan-ink); }
.dashboard-summary span, .dashboard-summary p { color: var(--muted); font-size: 13px; margin: 0; }
.dashboard-summary a { margin-top: 10px; font-size: 13px; }
.action-list { padding: 4px 8px 8px !important; }
.action-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--ink); }
.action-list a span { color: var(--muted); font-size: 12px; }
.action-list a:hover { color: var(--cyan-ink); }
.action-list a:last-child { border-bottom: 0; }
.tab-bar { display: flex; gap: 4px; padding: 5px; background: #e9eef1; border-radius: 8px; width: max-content; margin-bottom: 16px; }
.tab { color: var(--muted); padding: 8px 14px; font-size: 13px; text-decoration: none; border-radius: 5px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); background: #fff; font-weight: 700; }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: 0 0 14px; color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh); }
.section-toolbar b { color: var(--ink); font-size: var(--fs-lg); }
.low-margin td { background: #fff8ec; }
.city-empty { background: var(--sheet); border: 1px dashed rgba(28, 36, 48, 0.16); border-radius: 14px; padding: 40px 24px; text-align: center; max-width: 620px; margin: 36px auto; }
.city-empty-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); font-size: var(--fs-xs); font-weight: 700; }
.city-empty h3 { margin: 14px 0 8px; font-size: var(--fs-title); line-height: var(--lh-tight); }
.city-empty p { color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh); margin: 0 auto 18px; max-width: 440px; }
.city-empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.import-stage {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  background: #fafafa;
}
.import-stage-preview {
  margin-bottom: 12px;
  text-align: center;
}
.import-preview-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.import-preview-frame img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  border: 1px solid var(--line, #e5e7eb);
}
.import-preview-del {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.import-preview-del:hover { background: #b91c1c; }
.import-preview-zoom-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted, #6b7280);
}
.import-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.88);
}
.import-zoom-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: #f3f4f6;
  font-size: 13px;
}
.import-zoom-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.import-zoom-stage {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  cursor: grab;
  display: grid;
  place-items: center;
  touch-action: none;
}
.import-zoom-stage.dragging { cursor: grabbing; }
.import-zoom-img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.import-stage-file {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted, #6b7280);
}
.import-stage .field {
  display: block;
  margin-bottom: 0;
}
.import-stage .field textarea {
  width: 100%;
  min-height: 130px;
  margin-top: 6px;
  resize: vertical;
  box-sizing: border-box;
}
.import-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.drop {  display: block;
  border: 1px dashed #b7c9d1;
  background: #fff;
  padding: 36px 16px;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
}
.drop:hover, .drop.over { background: #f3fbf9; border-color: #0f766e; }
.drop input { display: none; }
.preview-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}
.draft-table input, .draft-table select {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 6px;
}
.draft-table .tiny { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .layout { flex-direction: row; }
  .side {
    width: var(--side);
    flex: 0 0 var(--side);
  }
  .nav { display: block; }
  .nav a { align-self: flex-start; height: auto; }
  .quote-grid, .grid-2, .stats, .form-grid, .readiness, .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .main { padding: 18px 16px 28px; }
  .layout-chat .main-chat { padding: 0; }
  .dashboard-hero, .dash-welcome { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1180px) {
  .main { padding-left: 24px; padding-right: 24px; }
  .dashboard-hero, .dash-welcome { align-items: flex-start; flex-direction: column; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

/* 接单工作台：突出城市、报价动作和内部/客户信息边界 */
.cities { border-bottom: 1px solid #2a3440; }
.side .who a { color: #c5e4df; }
.top { align-items: flex-start; margin-bottom: 18px; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.city-pill {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
}
.city-switcher { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px; }
.city-switcher > span { color: var(--muted); font-size: 11px; padding: 0 4px; white-space: nowrap; }
.city-switcher-buttons { display: flex; gap: 2px; }
.city-switcher button { border: 0; background: transparent; color: var(--muted); padding: 6px 10px; border-radius: 5px; font-size: 12px; }
.city-switcher button:hover { background: var(--paper-2); color: var(--ink); }
.city-switcher button.on { background: #17212b; color: #fff; font-weight: 700; }
.quote-output { position: sticky; top: 20px; }
.quote-input-card h3, .quote-result-card h3 { display: flex; align-items: center; gap: 8px; }
.step-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; color: #fff; background: var(--cyan); border-radius: 50%; font-size: 11px; }
.form-hint { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.ticket { border: 1px solid #b9dcd6; background: linear-gradient(135deg, #f3fbf9, #ffffff 58%); border-radius: 6px; }
.script { border-radius: 6px; }
.result-section-title { border: 0 !important; padding: 20px 0 8px !important; display: flex !important; align-items: center; gap: 8px; }
.tab-bar { box-shadow: inset 0 0 0 1px #dbe3e8; }
.tab { min-width: 86px; text-align: center; }
.section-toolbar + .card { box-shadow: 0 8px 24px rgba(23, 33, 43, .04); }
table.data td { transition: background .15s ease; }
table.data tr:hover td { background: #f2f8f7; }
.supplier-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.supplier-actions .btn { height: 30px; padding: 0 9px; font-size: 12px; }
.import-complete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; margin-bottom: 12px; border: 1px solid #b9dcd6; border-radius: 6px; background: #f3fbf9; font-size: 13px; }
.import-complete b { color: var(--ok); }
.import-complete span { color: var(--muted); flex: 1; }
.import-pending-hint { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.import-warning { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-bottom: 12px; border: 1px solid #efd29a; border-radius: 6px; background: #fff8ea; font-size: 13px; color: #925b08; }
.import-warning span { color: #7c6a4b; line-height: 1.55; }
.supplier-price-list { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--cyan); background: #f4faf9; font-size: 12px; }
.supplier-price-list b { display: block; margin-bottom: 6px; color: var(--ink); }
.supplier-price-list span { display: block; padding: 2px 0; color: #31544f; }
.calc-note { font-size: 12px; color: #57534e; margin-top: 4px; line-height: 1.45; }
.inline-create { display: flex; gap: 8px; }
.inline-create input { flex: 1; }
.inline-create .btn { flex: 0 0 auto; }
.nav a.nav-cta { margin: 2px 0 8px; background: var(--green); color: #fff; font-weight: 600; }
.nav a.nav-cta:hover, .nav a.nav-cta.on { background: #06ad56; }
.quote-grid.has-result { grid-template-columns: .72fr 1.28fr; }
.result-customer { border-radius: 8px; }
.result-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: #a16207; font-size: 11px; }
.result-divider::before, .result-divider::after { content: ""; height: 1px; background: #f1d7a4; flex: 1; }
.result-internal { margin-top: 10px; padding: 0 14px 14px; background: #fffaf0; border-left: 3px solid #d97706; border-radius: 0 6px 6px 0; }
.result-internal .script { background: #fffdf8; border-color: #ead9b5; }
.badge.ok { background: #eef8eb; }
.badge.warn { background: #fff7e8; }
.badge.bad { background: #fff0ef; }

.quote-chat { display: flex; flex-direction: column; gap: 12px; min-height: calc(100vh - 170px); }

.wx-app {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
}
.yb-hd {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 12px 14px;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.yb-hd-main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.yb-hd .yb-brand {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: var(--lh-tight);
  flex-shrink: 0;
  white-space: nowrap;
}
.yb-hd .wx-city {
  padding: 0;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 4px;
}
.yb-hd .wx-city-btn {
  flex: 0 0 auto;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 650;
}
.yb-hd .wx-menu {
  font-size: var(--fs-xs);
  margin-top: 0;
  padding: 6px 10px;
  border-radius: 8px;
}
.yb-hd-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wx-sessions {
  position: absolute;
  inset: 0;
  z-index: 12;
  width: auto;
  background: #f7f7f7;
  border-right: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wx-sessions[hidden] { display: none !important; }
.quote-tabbar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  background: var(--sheet);
  border-top: 1px solid var(--line);
}
.quote-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 10px;
  padding: 5px 2px;
}
.quote-tab .tab-ico {
  display: block;
  width: 20px;
  height: 20px;
}
.quote-tab strong {
  font-size: var(--fs-xs);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.quote-tab:hover { color: var(--cyan-ink); background: var(--paper); }
.quote-tab.on {
  color: var(--cyan-ink);
  background: var(--cyan-soft);
}
.wx-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 0;
}
.wx-brand-row b { font-size: 15px; font-weight: 700; }
.wx-brand-row .wx-menu {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(87, 107, 149, 0.1);
}
.wx-city {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  background: transparent;
}
.wx-city-btn {
  flex: 1;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 36, 48, 0.08);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 650;
}
.wx-city-btn.on { background: var(--green); color: #fff; }
.wx-sessions-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  font-size: 14px;
  color: #111;
}
.wx-sessions-hd strong { font-weight: 600; }
.wx-new {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #07c160;
  color: #fff;
  font-size: 12px;
}
.wx-new:hover { background: #06ad56; }
.wx-search-wrap { padding: 0 12px 10px; }
.wx-search {
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: #d9d9d9;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}
.wx-search:focus { background: #fff; }
.wx-session-list { flex: 1; overflow: auto; }
.wx-session-list::-webkit-scrollbar,
.wx-log::-webkit-scrollbar { width: 6px; }
.wx-session-list::-webkit-scrollbar-thumb,
.wx-log::-webkit-scrollbar-thumb { background: #c7c7c7; border-radius: 6px; }
.wx-session-empty { padding: 28px 16px; text-align: center; color: #999; font-size: 13px; }
.wx-session {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
}
.wx-session:hover { background: #dcdcdc; }
.wx-session.on { background: #c9c9c9; }
.wx-session-meta { min-width: 0; }
.wx-session-top { display: flex; align-items: baseline; gap: 8px; }
.wx-session-top b {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #111;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-session-top em { flex-shrink: 0; font-size: 11px; color: #aaa; font-style: normal; }
.wx-session-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-session-del {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background: #bbb;
  color: #fff;
  font-size: 13px;
}
.wx-session:hover .wx-session-del { display: block; }
.wx-session-del:hover { background: #e64545; }
.wx-room { flex: 1; min-width: 0; display: flex; flex-direction: column; background: transparent; position: relative; min-height: 0; }
.wx-room-hd { display: none; }
.wx-menu {
  color: #576b95;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  border: 0;
  background: rgba(87, 107, 149, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}
.wx-menu:hover { opacity: .85; background: rgba(87, 107, 149, 0.16); }
.win-lock { display: inline-flex; align-items: center; gap: 4px; }
.win-lock svg { width: 13px; height: 13px; flex-shrink: 0; }
.win-lock.is-locked {
  color: var(--cyan-ink);
  background: var(--cyan-soft);
  font-weight: 700;
}
.win-lock.is-locked:hover { background: #d8ebe6; }
.wx-inst-panel {
  margin: 10px 16px 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 3px solid #0f766e;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.wx-inst-panel-hd {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px 6px;
  background: #f3fbf6;
}
.wx-inst-panel-hd strong { font-size: 13px; font-weight: 700; color: #111; }
.wx-inst-panel-hd span { font-size: 11px; color: #888; }
.wx-inst-panel-hd a {
  margin-left: auto;
  font-size: 12px;
  color: #576b95;
  text-decoration: none;
}
.wx-inst-list { max-height: 108px; overflow: auto; }
.wx-inst-list::-webkit-scrollbar { width: 6px; }
.wx-inst-list::-webkit-scrollbar-thumb { background: #c7c7c7; border-radius: 6px; }
#wx-installers-rest[hidden] { display: none !important; }
.wx-inst-empty {
  padding: 12px 10px 14px;
  text-align: center;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
}
.wx-inst-empty a { color: #576b95; text-decoration: none; }
.wx-inst {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #f0f0f0;
}
.wx-inst-main { flex: 1; min-width: 0; }
.wx-inst-main b { display: block; font-size: 13px; color: #111; }
.wx-inst-main span {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-inst-main em { display: block; margin-top: 2px; font-size: 12px; color: #333; font-style: normal; }
.wx-inst-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wx-inst-call {
  height: 24px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
}
.wx-inst-all {
  width: 100%;
  height: 30px;
  border: 0;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  color: #576b95;
  font-size: 12px;
  font-weight: 600;
}
.wx-inst-all:hover { background: #f3f3f3; }
.wx-log {
  flex: 1;
  overflow: auto;
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wx-time {
  align-self: center;
  font-size: 12px;
  color: #b0b0b0;
  padding: 2px 0;
}
.wx-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 92%;
}
.wx-row.me { align-self: flex-end; flex-direction: row-reverse; }
.wx-ava {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 650;
  flex-shrink: 0;
}
.wx-ava.bot { background: #07c160; }
.wx-ava.me { background: #4c6fff; }
.wx-bubble {
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  line-height: 1.6;
  font-size: var(--fs-md);
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  position: relative;
}
.wx-bubble.bot { background: #fff; color: #111; }
.wx-bubble.bot::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 14px;
  border: 6px solid transparent;
  border-right-color: #fff;
  border-left: 0;
}
.wx-bubble.me { background: #95ec69; color: #111; }
.wx-bubble.me::before {
  content: "";
  position: absolute;
  right: -6px;
  top: 14px;
  border: 6px solid transparent;
  border-left-color: #95ec69;
  border-right: 0;
}
.wx-bubble.pending { color: #888; }
.wx-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: #bbb;
  animation: wxdot 1s infinite;
}
.wx-dots span:nth-child(2) { animation-delay: .15s; }
.wx-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes wxdot {
  0%, 80%, 100% { opacity: .3; }
  40% { opacity: 1; }
}
.wx-card {
  background: #fff;
  border-radius: 10px;
  min-width: 240px;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  border-left: 3px solid var(--green);
}
.wx-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px 8px;
  font-size: 12px;
  color: #888;
}
.wx-card-hd b { color: #07c160; font-size: 20px; font-weight: 700; }
.wx-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid #f2f2f2;
  font-size: 13px;
}
.wx-line b { display: block; color: #111; }
.wx-line span, .wx-line em { display: block; color: #888; font-size: 12px; font-style: normal; margin-top: 2px; }
.wx-line strong { color: #111; white-space: nowrap; }
.wx-card-ft { padding: 8px 12px 10px; font-size: 12px; color: #aaa; border-top: 1px solid #f2f2f2; }
.wx-card-ft.muted { color: #bbb; }
.wx-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  background: #fff;
  border-radius: 4px;
  padding: 10px 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.wx-file.me { background: #95ec69; }
.wx-file i {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #07c160;
  flex-shrink: 0;
}
.wx-file.me i { background: #06ad56; }
.wx-file b { display: block; font-size: 13px; }
.wx-file span { display: block; margin-top: 3px; font-size: 12px; color: #666; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-compose {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
}
.wx-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.wx-toolbar { display: none; }
.wx-attach {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sheet);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  flex-shrink: 0;
  position: relative;
}
.wx-attach svg { display: block; }
.wx-attach:hover { background: #f4f6f8; color: var(--ink); }
.wx-attach input { display: none; }
.wx-copy {
  border: 0;
  background: transparent;
  color: #576b95;
  padding: 0;
  font-size: 13px;
}
.wx-copy:hover { opacity: .75; }
.wx-compose .err { min-height: 0; margin: 4px 0 0; }
.ask-chat {
  height: 84px;
  min-height: 84px !important;
  max-height: 140px;
  flex: 1;
  width: auto;
  border: 1px solid var(--line) !important;
  background: var(--sheet);
  border-radius: 12px;
  padding: 10px 14px;
  resize: none;
  outline: none;
  line-height: 1.55;
  font-size: var(--fs-md);
  overflow-y: auto;
}
.ask-chat:focus { border-color: #9fd0c6 !important; box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1); }
.wx-compose-ft { display: none; }
.wx-send {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: var(--cyan);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 650;
  flex-shrink: 0;
}
.wx-send:hover { background: #0c615a; color: #fff; }
.wx-send:disabled { opacity: .5; }
.wx-toast {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 20;
  pointer-events: none;
}
.chat-empty {
  margin: auto;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh);
  max-width: 420px;
  text-align: center;
  padding: 48px 20px;
}
.chat-empty-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--cyan);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.chat-empty b { display: block; color: var(--ink); font-size: var(--fs-lg); font-weight: 650; line-height: var(--lh-tight); }
.chat-empty p { margin: 8px 0 18px; }
.chat-empty-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wx-hint {
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #333;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
}
.wx-hint:hover { background: #f3f3f3; border-color: #07c160; color: #07c160; }

@media (max-width: 960px) {
  .top { align-items: flex-start; flex-direction: column; }
  .top-actions { justify-content: flex-start; width: 100%; }
  .city-switcher { width: 100%; justify-content: space-between; }
  .quote-output { position: static; }
  .quote-grid.has-result { grid-template-columns: 1fr; }
  .wx-compose-ft span { display: none; }
}
@media (max-width: 520px) {
  .layout-chat .main-chat { border-left: 0; border-right: 0; }
}

.storefront-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.3fr); gap: 16px; align-items: start; }
.storefront-grid .card { margin: 0; }
.storefront-result { grid-column: 1 / -1; }
.storefront-grid h3 { margin: 0 0 16px; }
.sf-drop { display: grid; place-items: center; min-height: 112px; margin-bottom: 12px; padding: 16px; border: 1.5px dashed #9ab8b4; border-radius: 12px; background: #f4faf8; color: var(--cyan); font-weight: 650; text-align: center; cursor: pointer; }
.sf-drop input { display: block; width: 100%; margin-top: 10px; font-weight: 400; color: var(--ink-soft); }
.sf-drop.dragging { border-color: var(--cyan); background: #dff3ef; transform: scale(1.01); }
.sf-file-preview { display: flex; gap: 10px; overflow-x: auto; min-height: 92px; margin: -2px 0 12px; padding: 4px 2px 8px; }
.sf-file-empty { display: grid; place-items: center; width: 100%; min-height: 80px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; }
.sf-file-thumb { position: relative; flex: 0 0 104px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: grab; user-select:none; }
.sf-file-thumb:active{cursor:grabbing}.sf-file-thumb.dragging{opacity:.45;border-color:var(--cyan);transform:scale(.96)}
.sf-file-thumb img { display: block; width: 94px; height: 70px; border-radius: 7px; object-fit: cover; cursor: zoom-in; }
.sf-file-thumb small { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sf-file-number { position: absolute; left: 8px; top: 8px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; }
.sf-file-remove { position: absolute; right: 7px; top: 7px; z-index: 2; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #d94841; color: #fff; font-size: 18px; line-height: 22px; cursor: pointer; }
.sf-image-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 30px; background: rgba(0,0,0,.82); cursor: zoom-out; }
.sf-image-modal img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.sf-image-modal button { position: fixed; right: 24px; top: 18px; border: 0; background: transparent; color: #fff; font-size: 42px; cursor: pointer; }
.sf-effect-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 118px; margin: 10px 0; padding: 18px; border: 2px dashed #63aaa1; border-radius: 12px; background: #eef8f6; color: var(--cyan); text-align: center; cursor: pointer; }
.sf-effect-drop span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.sf-effect-drop input { width: 100%; margin-top: 12px; color: var(--ink-soft); }
.sf-effect-drop.dragging { border-color: #07877b; background: #d8f1ec; transform: scale(1.01); }
.sf-effect-file-preview { margin-bottom: 14px; }
.storefront-photo textarea { width: 100%; margin-bottom: 10px; }
.storefront-photo .err { margin-left: 10px; }
.sf-action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.storefront-ai-empty { margin-top: 16px; padding: 16px; border-radius: 10px; background: #f7f7f5; color: var(--muted); line-height: 1.7; }
.storefront-ai-result { margin-top: 16px; padding: 16px; border-radius: 10px; background: #f4faf8; line-height: 1.65; }
.storefront-ai-result > b { display: block; margin-bottom: 8px; }
.storefront-ai-result p { margin: 8px 0 2px; }
.storefront-ai-result ol { margin: 4px 0 8px; padding-left: 22px; }
.storefront-ai-result small { color: #a05a18; }
.storefront-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.storefront-tags span { padding: 3px 8px; border-radius: 12px; background: #dcefeb; color: #176d64; font-size: 12px; }
.storefront-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.storefront-form .field.check { min-height: 66px; display: flex; flex-direction: row; align-items: center; gap: 8px; padding-top: 25px; }
.storefront-form .field.check input { width: auto; }
.sf-visual-section { padding: 10px 0 2px; }
.sf-visual-section > b { display: block; margin-bottom: 8px; font-size: 13px; }
.sf-visual-list { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 7px; }
.sf-visual-option, .sf-visual-add { flex: 0 0 88px; min-height: 78px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; }
.sf-visual-option.selected { border: 2px solid var(--cyan); padding: 5px; box-shadow: 0 0 0 3px rgba(16,137,125,.12); }
.sf-visual-option img, .sf-visual-option i { display: block; width: 74px; height: 44px; margin: 0 auto 5px; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; object-fit: cover; }
.sf-visual-option i { background: var(--swatch); }
.sf-visual-option span { display: block; font-size: 11px; line-height: 1.25; }
.sf-visual-add { border-style: dashed; color: var(--cyan); font-weight: 650; }
.sf-visual-list.text-only { flex-wrap: wrap; overflow: visible; }
.sf-visual-list.text-only .sf-visual-option, .sf-visual-list.text-only .sf-visual-add { flex-basis: auto; min-height: 42px; padding: 9px 14px; }
.sf-visual-list.text-only .sf-visual-option.selected { padding: 8px 13px; }
.sf-visual-list.text-only span { font-size: 13px; }
.sf-visual-section.hidden { display: none; }
.storefront-form .sf-letter-only.hidden { display: none; }
.storefront-form .field.hidden { display: none; }
.installer-platforms { margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfa; }
.installer-platforms h3 { margin: 0 0 5px; }
.installer-platforms > p { margin: 0 0 12px; color: var(--muted); }
.installer-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.installer-platform-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.installer-platform-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.installer-platform-card p { min-height: 42px; color: var(--muted); font-size: 13px; line-height: 1.55; }
@media (max-width: 720px) { .installer-platform-grid { grid-template-columns: 1fr; } }
.yunbang-shell { position: relative; min-height: 720px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.yunbang-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f7faf9; color: var(--muted); font-size: 12px; }
#yunbang-frame { position: relative; z-index: 2; display: block; width: 100%; height: calc(100vh - 230px); min-height: 650px; border: 0; background: #fff; }
.yunbang-fallback { position: absolute; left: 20px; right: 20px; top: 110px; z-index: 1; color: var(--muted); text-align: center; }
@media (max-width: 520px) { .quote-tab { min-width: 0; padding-left: 3px; padding-right: 3px; } .quote-tab strong { font-size: 10px; } #yunbang-frame { height: calc(100vh - 205px); } }
.sf-delivery-panel { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; }
.sf-delivery-panel h4 { margin: 0 0 6px; }
.sf-delivery-panel > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.sf-delivery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sf-delivery-grid section { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sf-delivery-grid section > b { display: block; margin-bottom: 8px; }
.sf-delivery-grid textarea { width: 100%; resize: vertical; font-size: 12px; line-height: 1.55; }
@media (max-width: 760px) { .sf-delivery-grid { grid-template-columns: 1fr; } }
.sf-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 18px; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #e6f5f2, #f8fbfa); }
.sf-missing { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #f0c7a1; border-radius: 10px; background: #fff7ed; color: #9a4d0d; }
.sf-missing span { font-size: 13px; }
.sf-total span { font-weight: 650; }
.sf-total strong { color: var(--cyan); font-size: 30px; }
.sf-total em { color: var(--muted); font-style: normal; }
.sf-breakdown { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.sf-breakdown span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.sf-internal { margin-bottom: 12px; color: #8a531c; }
#sf-script { width: 100%; margin-bottom: 10px; background: #fafafa; }
.sf-effect-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.sf-effect-panel h4 { margin: 0 0 6px; font-size: 17px; }
.sf-effect-panel p { margin: 0 0 10px; color: var(--muted); line-height: 1.65; }
#sf-effect-prompt { width: 100%; margin-bottom: 10px; background: #fafafa; line-height: 1.6; }
#sf-image-provider { min-width: 250px; }
#sf-effect-status { display: block; margin-top: 10px; }
#sf-effect-image { margin-top: 12px; }
#sf-effect-image p { margin-bottom: 8px; font-size: 13px; }
.sf-supplement { margin-top: 18px; padding: 16px; border: 1px solid #b9d8d3; border-radius: 12px; background: #f4faf8; }
.sf-supplement h4 { margin: 0 0 6px; font-size: 17px; }
.sf-supplement p { margin: 0 0 10px; color: var(--muted); }
#sf-supplement { width: 100%; margin-bottom: 10px; background: #fff; }
@media (max-width: 820px) {
  .storefront-grid { grid-template-columns: 1fr; }
  .storefront-result { grid-column: auto; }
}
@media (max-width: 520px) {
  .storefront-form .form-grid { grid-template-columns: 1fr; }
  .storefront-form .field.full { grid-column: auto; }
  .storefront-form .field.check { min-height: auto; padding-top: 4px; }
  .sf-total strong { font-size: 25px; }
}
.sf-delivery-final-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.sf-delivery-final-images .sf-effect-drop{min-height:150px;margin:0}.sf-delivery-final-images img{display:block;max-width:100%;height:120px;object-fit:contain;margin:10px auto;border-radius:8px;background:#f3f4f6}.sf-delivery-final-images .btn{position:relative;z-index:2}@media(max-width:760px){.sf-delivery-final-images{grid-template-columns:1fr}}
.sf-document-image-list{display:flex;gap:10px;width:100%;overflow-x:auto;margin-top:10px}.sf-document-image-list figure{position:relative;flex:0 0 150px;margin:0;padding:25px 6px 6px;border:1px solid #d8dee7;border-radius:10px;background:#fff}.sf-document-image-list figure.selected{border:2px solid #0f8a7e}.sf-document-image-list figure em{position:absolute;left:7px;top:5px;font-size:12px;font-style:normal;color:#52606d}.sf-document-image-list figure button{position:absolute;z-index:3;right:4px;top:3px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#dc2626;color:#fff;font-size:18px;line-height:24px;cursor:pointer}.sf-document-image-list figure img{height:92px;margin:0}
.sf-paste-target{display:block;width:calc(100% - 20px);margin:10px auto 0;padding:10px;border:1px dashed #0f8a7e;border-radius:8px;background:#fff;color:#0f766e;font-weight:700;cursor:text}.sf-paste-target:focus{outline:3px solid rgba(15,138,126,.2);border-style:solid}
.sf-brief-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0;align-items:start}.sf-brief-upload-card{min-width:0;padding:0;border:0;background:transparent}.sf-brief-upload-card .sf-effect-drop{min-height:0;margin:0;padding:8px 8px 10px;gap:0}.sf-brief-upload-card .sf-effect-drop b{font-size:12px;line-height:1.3}.sf-brief-upload-card .sf-effect-drop>span{display:none}.sf-brief-upload-card .sf-paste-target{width:100%;margin:8px 0 0;padding:6px 4px;font-size:11px;font-weight:600;line-height:1.3}.sf-brief-upload-card .sf-effect-drop input{margin-top:6px;font-size:11px}.sf-brief-upload-card .sf-file-preview{min-height:0;margin:6px 0 0}.sf-brief-upload-card .sf-file-preview:empty{display:none}.sf-brief-upload-card .sf-file-thumb img{width:72px;height:52px}
.sf-mini-pricing{margin-top:10px}.sf-mini-note{margin:8px 0 12px;color:var(--muted);font-size:12px;line-height:1.6}.sf-mini-addons{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}@media(max-width:760px){.sf-mini-addons{grid-template-columns:1fr}}
.sf-storefront-chat{height:280px;max-height:none;overflow:auto;padding:12px;margin:10px 0;border:1px solid #e0e5e8;border-radius:12px;background:#f6f8f8}.sf-chat-message{display:flex;gap:8px;align-items:flex-start;margin:8px 0}.sf-chat-message b{flex:0 0 auto;font-size:12px;color:#607078}.sf-chat-message span{max-width:86%;padding:9px 12px;border-radius:12px;background:#fff;line-height:1.55;white-space:pre-line}.sf-chat-message.user{justify-content:flex-end}.sf-chat-message.user b{order:2}.sf-chat-message.user span{background:#dff4ef;color:#123f38}
.sf-chat-block{margin:14px 0 8px;padding:10px;border:2px solid #b9ddd6;border-radius:14px;background:#fbfefd}.sf-chat-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.sf-chat-heading h4{margin:0;color:#0f766e}.sf-chat-heading small{color:var(--muted)}.sf-chat-heading .btn{padding:7px 12px;white-space:nowrap}.sf-chat-block .sf-storefront-chat{margin:0;background:#f4f9f8}.sf-chat-block.expanded .sf-storefront-chat{height:65vh;min-height:480px}
