:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --ink: #19211e;
  --muted: #66716c;
  --line: #dfe4e1;
  --line-strong: #c9d0cc;
  --surface: #ffffff;
  --page: #f4f6f4;
  --sidebar: #17201d;
  --sidebar-muted: #a6b0ac;
  --green: #16835f;
  --green-dark: #0f684a;
  --green-soft: #e7f5ef;
  --orange: #d46b1e;
  --orange-soft: #fff2e6;
  --red: #c23b3b;
  --red-soft: #fdecec;
  --blue: #2f69a3;
  --blue-soft: #eaf2fa;
  --purple: #7d52a1;
  --purple-soft: #f2ebf8;
  --shadow: 0 8px 28px rgba(22, 35, 29, 0.08);
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; }
.icon { width: 18px; height: 18px; stroke-width: 1.9; flex: 0 0 auto; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 30; display: flex; flex-direction: column; background: var(--sidebar); color: white; }
.brand { height: 68px; display: flex; align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: #43d39e; color: #10201a; border-radius: 7px; }
.brand-mark .icon { width: 19px; height: 19px; stroke-width: 2.4; }
.brand-name { font-size: 17px; font-weight: 720; }
.brand-sub { margin-top: 2px; font-size: 10px; color: var(--sidebar-muted); }
.nav-scroll { min-height: 0; flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin: 17px 10px 7px; color: #7f8d87; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nav-section:first-child { margin-top: 0; }
.nav-item { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border: 0; border-radius: 6px; color: #bdc6c2; background: transparent; text-align: left; transition: .16s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: #2a3833; box-shadow: inset 3px 0 #43d39e; }
.nav-item .nav-badge { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 10px; background: #d85c3a; color: white; font-size: 10px; text-align: center; }
.nav-group { margin: 1px 0; }
.nav-parent .nav-chevron { width: 14px; height: 14px; margin-left: auto; transition: transform .18s ease; }
.nav-group.open .nav-chevron { transform: rotate(180deg); }
.product-nav-group.active .nav-parent { color: white; }
.product-nav-group.active .nav-parent > .icon:first-child { color: #43d39e; }
.nav-children { display: none; padding: 2px 0 5px; }
.nav-group.open .nav-children { display: grid; }
.nav-child { position: relative; min-height: 33px; display: flex; align-items: center; padding: 0 10px 0 39px; border: 0; border-radius: 5px; color: #96a39e; background: transparent; text-align: left; font-size: 12px; }
.nav-child::before { content: ""; position: absolute; left: 23px; width: 4px; height: 4px; border-radius: 50%; background: #64736d; }
.nav-child:hover { color: white; background: rgba(255,255,255,.05); }
.nav-child.active { color: white; background: #26342f; font-weight: 650; }
.nav-child.active::before { background: #43d39e; box-shadow: 0 0 0 3px rgba(67,211,158,.13); }
.sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.09); }
.factory-switch { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 6px; padding: 9px; color: white; background: rgba(255,255,255,.06); text-align: left; }
.factory-avatar { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: #17201d; background: #f4ba58; font-size: 12px; font-weight: 800; }
.factory-name { display: block; font-size: 12px; font-weight: 650; }
.factory-role { display: block; margin-top: 2px; color: var(--sidebar-muted); font-size: 10px; }

.main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 26px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.mobile-menu { display: none !important; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-size: 14px; }
.top-spacer { flex: 1; }
.sync-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #27a579; box-shadow: 0 0 0 3px #e0f4ec; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: #52605a; background: white; }
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); background: #f8faf9; }
.icon-btn .icon { width: 17px; height: 17px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e9ecea; color: #37423e; font-size: 12px; font-weight: 750; }

.page { padding: 24px 26px 40px; }
.page-head { min-height: 48px; display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 22px; line-height: 1.3; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.page-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 6px; color: #35413c; background: white; font-weight: 620; }
.btn:hover { background: #f8faf9; }
.btn.primary { color: white; border-color: var(--green); background: var(--green); }
.btn.primary:hover { border-color: var(--green-dark); background: var(--green-dark); }
.btn.danger { color: var(--red); border-color: #ecc3c3; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 30px; padding: 0 9px; font-size: 12px; }
.btn .icon { width: 16px; height: 16px; }
.btn:disabled { cursor: not-allowed; opacity: .52; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; }
.kpi-icon .icon { width: 16px; height: 16px; }
.kpi-value { margin-top: 11px; font-size: 27px; font-weight: 760; line-height: 1; }
.kpi-foot { margin-top: 8px; color: var(--muted); font-size: 11px; }
.up { color: var(--green); font-weight: 700; }
.down { color: var(--red); font-weight: 700; }

.finance-callout { min-height: 74px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #b9dfd0; border-left: 4px solid var(--green); border-radius: 7px; background: #f5fbf8; }
.finance-callout-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-soft); }
.finance-callout-copy { min-width: 0; display: grid; gap: 4px; }
.finance-callout-copy strong { font-size: 14px; }
.finance-callout-copy span, .finance-callout-total small { color: var(--muted); font-size: 11px; }
.finance-callout-total { margin-left: auto; display: grid; gap: 3px; padding: 0 20px; border-left: 1px solid #cfe7dd; }
.finance-callout-total strong { color: var(--ink); font-size: 20px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.panel-head { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 14px; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.panel-head .head-actions { margin-left: auto; display: flex; gap: 7px; }
.panel-body { padding: 16px; }

.flow { display: grid; grid-template-columns: repeat(6, minmax(85px, 1fr)); gap: 0; padding: 18px 16px; overflow-x: auto; }
.flow-step { position: relative; min-width: 88px; text-align: center; }
.flow-step::after { content: ""; position: absolute; top: 17px; left: calc(50% + 18px); width: calc(100% - 36px); height: 1px; background: var(--line-strong); }
.flow-step:last-child::after { display: none; }
.flow-num { position: relative; z-index: 1; width: 34px; height: 34px; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 12px; font-weight: 750; }
.flow-step.active .flow-num { border-color: var(--green); color: white; background: var(--green); }
.flow-count { margin-top: 10px; font-size: 17px; font-weight: 750; }
.flow-label { margin-top: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 38px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fafbfa; font-size: 10px; font-weight: 700; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { min-height: 50px; padding: 10px 12px; border-bottom: 1px solid #edf0ee; vertical-align: middle; }
tbody tr { transition: .12s ease; }
tbody tr:hover { background: #fafcfb; }
tbody tr:last-child td { border-bottom: 0; }
.order-id { color: #1e5d48; font-size: 12px; font-weight: 700; cursor: pointer; }
.order-id:hover { text-decoration: underline; }
.subtext { margin-top: 3px; color: var(--muted); font-size: 10px; }
.channel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.channel-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; color: white; font-size: 10px; font-weight: 800; }
.amazon { background: #263238; }
.aliexpress { background: #d83a34; }
.temu { background: #e96a18; }
.dianxiaomi { background: #2388d8; }
.erp { background: #7857a4; }
.webstore { background: #16835f; }
.status { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 0 8px; border-radius: 12px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.green { color: #10704f; background: var(--green-soft); }
.status.orange { color: #a75017; background: var(--orange-soft); }
.status.red { color: #a62e2e; background: var(--red-soft); }
.status.blue { color: #275e93; background: var(--blue-soft); }
.status.gray { color: #5e6864; background: #edf0ee; }
.status.purple { color: #694589; background: var(--purple-soft); }

.exception-list { display: grid; }
.exception { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 13px 16px; border-bottom: 1px solid #edf0ee; }
.exception:last-child { border-bottom: 0; }
.exception-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.exception-icon .icon { width: 15px; height: 15px; }
.exception-title { font-size: 12px; font-weight: 650; }
.exception-meta { margin-top: 3px; color: var(--muted); font-size: 10px; }
.count-pill { min-width: 27px; padding: 4px 7px; border-radius: 10px; color: #a62e2e; background: var(--red-soft); font-size: 10px; font-weight: 800; text-align: center; }

.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.search-box { min-width: 250px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; }
.search-box:focus-within { border-color: #73ad97; box-shadow: 0 0 0 3px rgba(22,131,95,.08); }
.search-box .icon { width: 15px; height: 15px; color: var(--muted); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.select { height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: #3f4a46; background: white; }
.segmented { height: 36px; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #ecefed; }
.segmented button { min-width: 72px; padding: 0 10px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 11px; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(22,35,29,.1); font-weight: 700; }
.spacer { flex: 1; }

.product-cell { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.thumb { width: 38px; height: 38px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #f0f2f1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-title { max-width: 190px; overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.money { font-variant-numeric: tabular-nums; font-weight: 650; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.empty { padding: 48px 20px; color: var(--muted); text-align: center; }
.empty .icon { width: 28px; height: 28px; margin-bottom: 8px; }

.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.board-col { min-width: 220px; border: 1px solid var(--line); border-radius: 7px; background: #ecefed; }
.board-head { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.board-head h3 { margin: 0; font-size: 12px; }
.board-head span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
.board-list { min-height: 420px; display: grid; align-content: start; gap: 8px; padding: 8px; }
.job-card { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 1px 2px rgba(22,35,29,.03); }
.job-card-top { display: flex; align-items: center; gap: 7px; }
.unit-code { font-size: 11px; font-weight: 750; }
.job-time { margin-left: auto; color: var(--muted); font-size: 9px; }
.job-product { display: flex; gap: 9px; margin-top: 10px; }
.job-product .thumb { width: 44px; height: 44px; }
.job-info { min-width: 0; }
.job-title { overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.job-spec { margin-top: 4px; color: var(--muted); font-size: 10px; }
.job-foot { margin-top: 11px; display: flex; align-items: center; gap: 7px; }
.priority { font-size: 9px; font-weight: 800; }
.priority.high { color: var(--red); }
.priority.normal { color: var(--green); }
.job-foot .btn { margin-left: auto; }

.scan-layout { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(420px, 1.28fr); gap: 16px; }
.scan-console { min-height: 560px; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.scan-title { margin: 0; font-size: 16px; }
.scan-label { display: block; margin: 28px 0 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.scan-input-wrap { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 2px solid var(--ink); border-radius: 7px; background: white; }
.scan-input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22,131,95,.1); }
.scan-input-wrap .icon { width: 22px; height: 22px; color: var(--green); }
.scan-input { width: 100%; border: 0; outline: 0; font-size: 17px; font-weight: 650; text-transform: uppercase; }
.quick-codes { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.quick-code { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #f8faf9; font-size: 9px; }
.scan-log { margin-top: 26px; }
.scan-log h3 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; }
.scan-event { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf0ee; }
.event-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.event-main { font-size: 11px; font-weight: 650; }
.event-meta { margin-top: 3px; color: var(--muted); font-size: 9px; }
.event-time { margin-left: auto; color: var(--muted); font-size: 9px; }
.scan-result { min-height: 560px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.scan-idle { min-height: 560px; display: grid; place-items: center; padding: 40px; color: var(--muted); text-align: center; }
.scan-idle-icon { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.scan-idle-icon .icon { width: 25px; height: 25px; }
.result-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.result-head h2 { margin: 0; font-size: 15px; }
.result-head .status { margin-left: auto; }
.result-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(240px, 1.2fr); }
.artwork-view { min-height: 374px; display: grid; place-items: center; padding: 24px; border-right: 1px solid var(--line); background: #edf0ee; }
.artwork-view img { width: 100%; max-width: 350px; max-height: 320px; object-fit: contain; border-radius: 5px; box-shadow: 0 10px 30px rgba(22,35,29,.14); background: white; }
.detail-list { padding: 18px; }
.detail-row { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf0ee; }
.detail-row dt { color: var(--muted); font-size: 10px; }
.detail-row dd { margin: 0; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.result-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }

.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 12px; }
.integration-card { min-height: 178px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.integration-top { display: flex; align-items: center; gap: 11px; }
.integration-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; color: white; font-size: 12px; font-weight: 800; }
.integration-name { font-size: 13px; font-weight: 720; }
.integration-type { margin-top: 3px; color: var(--muted); font-size: 10px; }
.integration-state { margin-left: auto; }
.integration-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.integration-stat { padding: 8px; border-radius: 5px; background: #f4f6f4; }
.integration-stat span { display: block; color: var(--muted); font-size: 9px; }
.integration-stat strong { display: block; margin-top: 4px; font-size: 11px; }
.integration-foot { display: flex; align-items: center; margin-top: 14px; color: var(--muted); font-size: 10px; }
.integration-foot .btn { margin-left: auto; }

.developer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 16px; }
.key-box { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0ee; }
.key-box:last-child { border-bottom: 0; }
.key-box label { color: var(--muted); font-size: 10px; font-weight: 700; }
.code-value { min-width: 0; overflow: hidden; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; color: #29332f; background: #f6f8f7; font-family: Consolas, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.endpoint { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #edf0ee; }
.endpoint:last-child { border-bottom: 0; }
.method { padding: 4px 6px; border-radius: 4px; font-family: Consolas, monospace; font-size: 9px; font-weight: 800; text-align: center; }
.method.get { color: #235f91; background: var(--blue-soft); }
.method.post { color: #0f6b4b; background: var(--green-soft); }
.endpoint code { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.endpoint span { color: var(--muted); font-size: 9px; }
.webhook-item { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #edf0ee; }
.webhook-item:last-child { border-bottom: 0; }
.webhook-info { min-width: 0; }
.webhook-name { font-size: 11px; font-weight: 650; }
.webhook-url { margin-top: 3px; overflow: hidden; color: var(--muted); font-family: Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.toggle { position: relative; width: 34px; height: 20px; margin-left: auto; flex: 0 0 auto; border: 0; border-radius: 10px; background: #c9d0cc; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; transition: .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(14px); }

.formula-band { display: grid; grid-template-columns: minmax(260px, 1fr) 34px minmax(280px, 1fr) minmax(190px, .65fr); align-items: center; gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.formula-item { min-width: 0; display: flex; align-items: center; gap: 11px; }
.formula-item strong, .formula-item small { display: block; }
.formula-item strong { font-size: 12px; }
.formula-item small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.formula-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-soft); }
.formula-icon.orange { color: var(--orange); background: var(--orange-soft); }
.formula-icon .icon { width: 17px; height: 17px; }
.formula-equals { color: var(--muted); font-size: 18px; font-weight: 700; text-align: center; }
.formula-total { padding-left: 16px; border-left: 1px solid var(--line); }
.formula-total span, .formula-total strong { display: block; }
.formula-total span { color: var(--muted); font-size: 10px; }
.formula-total strong { margin-top: 4px; color: var(--green-dark); font-size: 20px; }
.worker-cell { min-width: 130px; display: flex; align-items: center; gap: 9px; }
.worker-avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #285447; background: #e3eee9; font-size: 11px; font-weight: 800; }
.worker-cell strong, .worker-cell small { display: block; }
.worker-cell strong { font-size: 11px; }
.worker-cell small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.formula-code { display: inline-block; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: #3d4944; background: #f6f8f7; font-size: 9px; white-space: nowrap; }
.money-positive { color: var(--green-dark); }
.payable { color: #1d5544; font-size: 13px; }

.piece-rolebar { min-height: 64px; display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.piece-rolebar > div:first-child { display: flex; align-items: center; gap: 12px; }
.piece-rolebar-label { color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.piece-role-switch button { min-width: 84px; }
.piece-worker-select { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.piece-worker-select > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.piece-role-account { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.piece-role-account > span:last-child strong, .piece-role-account > span:last-child small { display: block; }
.piece-role-account > span:last-child strong { font-size: 11px; }
.piece-role-account > span:last-child small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.piece-approval-flow { min-height: 66px; display: grid; grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto; align-items: center; margin-bottom: 12px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.piece-approval-flow > span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.piece-approval-flow > span b { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #f7f9f8; font-size: 10px; }
.piece-approval-flow > span strong { font-size: 10px; white-space: nowrap; }
.piece-approval-flow > span.done { color: var(--green); }
.piece-approval-flow > span.done b { border-color: var(--green); color: white; background: var(--green); }
.piece-approval-flow > i { height: 1px; margin: 0 10px; background: var(--line-strong); }
.piece-toolbar { position: sticky; top: 68px; z-index: 10; padding: 8px 0; background: var(--bg); }
.piece-tabs { max-width: 100%; }
.piece-tabs button { min-width: 86px; }
.piece-section-head { min-height: 50px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.piece-section-head h2, .piece-section-head p { margin: 0; }
.piece-section-head h2 { font-size: 14px; }
.piece-section-head p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.piece-section-head .btn { margin-left: auto; }
.piece-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.piece-task-card { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.piece-task-card.over { border-color: #e4b5b5; box-shadow: inset 0 3px var(--red); }
.piece-task-card header { min-height: 66px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.piece-task-card header > div strong, .piece-task-card header > div small { display: block; }
.piece-task-card header > div strong { font-size: 12px; }
.piece-task-card header > div small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.piece-process-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-soft); }
.piece-process-icon .icon { width: 17px; height: 17px; }
.piece-task-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px; }
.piece-task-metrics > span { padding: 0 10px; border-right: 1px solid var(--line); text-align: center; }
.piece-task-metrics > span:first-child { padding-left: 0; }
.piece-task-metrics > span:last-child { padding-right: 0; border-right: 0; }
.piece-task-metrics small, .piece-task-metrics b { display: block; }
.piece-task-metrics small { color: var(--muted); font-size: 9px; }
.piece-task-metrics b { margin-top: 5px; font-size: 20px; }
.piece-task-card footer { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--line); background: #fafbfa; }
.piece-task-card footer > span { color: var(--muted); font-size: 9px; }
.piece-task-card footer .btn { margin-left: auto; }
.piece-employee-head { min-height: 68px; display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #b9dfd0; border-radius: 7px; background: #f5fbf8; }
.piece-employee-head .worker-avatar { width: 40px; height: 40px; font-size: 13px; }
.piece-employee-head span, .piece-employee-head h2 { margin: 0; }
.piece-employee-head > div:nth-child(2) > span { color: var(--muted); font-size: 10px; }
.piece-employee-head h2 { margin-top: 4px; font-size: 13px; }
.piece-date-chip { margin-left: auto !important; padding: 5px 8px; border-radius: 5px; color: var(--green-dark); background: white; font-size: 10px; font-weight: 700; }
.piece-mobile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.piece-mobile-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.piece-mobile-card header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.piece-mobile-card header > div strong, .piece-mobile-card header > div small { display: block; }
.piece-mobile-card header > div strong { font-size: 13px; }
.piece-mobile-card header > div small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.piece-mobile-card > p { min-height: 34px; margin: 13px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.piece-mobile-price { display: flex; gap: 8px; margin-top: 13px; }
.piece-mobile-price > span { flex: 1; padding: 9px; border-radius: 6px; background: #f4f6f5; color: var(--muted); font-size: 9px; }
.piece-mobile-price b { display: block; margin-top: 4px; color: var(--ink); font-size: 11px; }
.piece-submitted-count { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.piece-submitted-count > span { padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.piece-submitted-count small, .piece-submitted-count strong { display: block; }
.piece-submitted-count small { color: var(--muted); font-size: 9px; }
.piece-submitted-count strong { margin-top: 5px; font-size: 14px; }
.piece-report-button { width: 100%; min-height: 42px; justify-content: center; margin-top: 12px; }
.piece-return-reason { display: flex; gap: 8px; margin: 12px 0; padding: 10px; border: 1px solid #edc7c7; border-radius: 6px; color: #8d2929; background: #fff7f7; font-size: 10px; line-height: 1.5; }
.piece-return-reason .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.piece-return-reason b { display: block; margin-bottom: 2px; }
.piece-review-table { min-width: 860px; }
.piece-empty, .piece-empty-state { padding: 34px 18px; color: var(--muted); text-align: center; font-size: 11px; }
.piece-empty-state { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; }
.piece-empty-state > .icon { width: 34px; height: 34px; color: var(--green); }
.piece-empty-state h2, .piece-empty-state p { margin: 0; }
.piece-empty-state h2 { color: var(--ink); font-size: 14px; }
.piece-process-name { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.piece-process-name strong, .piece-process-name small { display: block; }
.piece-process-name strong { font-size: 11px; }
.piece-process-name small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.piece-process-code { width: max-content; display: block; margin-bottom: 4px; padding: 3px 6px; border: 1px solid #b8d8cc; border-radius: 4px; color: #17684f; background: #edf7f3; font-family: Consolas, monospace; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.piece-masterdata-summary { display: grid; grid-template-columns: 130px 130px 130px minmax(260px, 1fr); gap: 10px; margin-bottom: 12px; }
.piece-masterdata-summary > span, .piece-masterdata-summary > div { min-height: 72px; display: grid; align-content: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.piece-masterdata-summary > span small, .piece-masterdata-summary > span strong, .piece-masterdata-summary > div small { display: block; }
.piece-masterdata-summary > span small, .piece-masterdata-summary > div small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.piece-masterdata-summary > span strong { margin-top: 5px; font-size: 21px; }
.piece-masterdata-summary > div { border-left: 4px solid var(--green); background: #f5fbf8; }
.piece-masterdata-summary > div b { margin-bottom: 4px; font-size: 11px; }
.piece-process-table { min-width: 1080px; }
.field.piece-custom-fields { display: none; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 6px; background: #fafbfa; }
.field.piece-custom-fields.show { display: block; }
.piece-form-note { display: flex; gap: 8px; margin-top: 14px; padding: 10px; border-radius: 6px; color: #365d50; background: #edf7f3; font-size: 10px; line-height: 1.5; }
.piece-form-note .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.piece-report-process-select { margin-bottom: 14px; }
.piece-report-process-select .input { min-height: 44px; }
.piece-report-summary { min-height: 66px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 16px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; }
.piece-report-summary > div strong, .piece-report-summary > div small, .piece-report-summary > span:last-child small, .piece-report-summary > span:last-child strong { display: block; }
.piece-report-summary small { color: var(--muted); font-size: 9px; }
.piece-report-summary > div strong { font-size: 12px; }
.piece-report-summary > div small { margin-top: 4px; }
.piece-report-summary > span:last-child { text-align: right; }
.piece-report-summary > span:last-child strong { margin-top: 4px; font-size: 12px; }
.piece-quantity-field { display: grid; gap: 9px; margin-bottom: 16px; }
.piece-quantity-field > label { color: #4b5752; font-size: 10px; font-weight: 700; text-align: center; }
.piece-stepper { width: min(310px, 100%); height: 68px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 7px; }
.piece-stepper button { display: grid; place-items: center; border: 0; color: var(--ink); background: #f1f4f2; }
.piece-stepper button:hover { color: var(--green-dark); background: var(--green-soft); }
.piece-stepper button .icon { width: 20px; height: 20px; }
.piece-stepper input { min-width: 0; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); outline: 0; font-size: 28px; font-weight: 800; text-align: center; }
.piece-amount-preview { height: 38px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; color: var(--green-dark); background: var(--green-soft); font-size: 15px; font-weight: 800; }
.piece-daily-wage-preview { min-height: 48px; display: flex; align-items: center; padding: 0 12px; border: 1px solid #acd9c8; border-radius: 6px; color: #124f3c; background: #f2fbf7; font-size: 22px; font-weight: 800; }
.piece-form-section-title { min-height: 50px; display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 9px 11px; border-left: 3px solid var(--green); border-radius: 5px; background: #f2f8f5; }
.piece-form-section-title.finance { border-left-color: #3778a8; background: #f2f7fb; }
.piece-form-section-title > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; color: var(--green); background: white; }
.piece-form-section-title.finance > span { color: #3778a8; }
.piece-form-section-title .icon { width: 15px; height: 15px; }
.piece-form-section-title strong, .piece-form-section-title small { display: block; }
.piece-form-section-title strong { font-size: 11px; }
.piece-form-section-title small { margin-top: 3px; color: var(--muted); font-size: 9px; }

/* === 班组/工种管理按钮 === */
.piece-manage-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 7px;
  background: var(--bg, #fafbfc);
  color: var(--muted, #6b7280);
  cursor: pointer;
  transition: all 0.15s;
}
.piece-manage-ref:hover { border-color: var(--primary, #2f6bff); color: var(--primary, #2f6bff); background: rgba(47,107,255,0.04); }
.piece-manage-ref svg { width: 14px; height: 14px; }
.field .piece-manage-ref { vertical-align: top; margin-top: 24px; }

/* === 班组/工种管理弹窗 === */
.modal-body:has(.trade-col) { display: flex; gap: 16px; padding: 0; }
.trade-col { flex: 1; min-width: 220px; border-right: 1px solid var(--border, #eef0f4); padding: 16px; }
.trade-col:last-child { border-right: none; }
.trade-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.trade-col-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.trade-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.trade-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; margin-bottom: 4px;
  border: 1px solid var(--border, #eef0f4); border-radius: 7px;
  background: white;
  transition: all 0.12s;
}
.trade-item:hover { border-color: var(--primary, #2f6bff); background: rgba(47,107,255,0.02); }
.trade-name { flex: 1; font-size: 13px; font-weight: 500; }
.trade-used { font-size: 11px; color: var(--muted, #9ca3af); padding: 2px 8px; background: #f3f4f6; border-radius: 10px; }
.trade-edit, .trade-del { flex-shrink: 0; opacity: 0.5; }
.trade-item:hover .trade-edit, .trade-item:hover .trade-del { opacity: 1; }
.trade-del[disabled] { opacity: 0.25; cursor: not-allowed; }
.modal.wide { width: min(920px, 100%); }
.piece-import-owners { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.piece-import-owners > span { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfa; }
.piece-import-owners .icon { grid-row: 1 / 3; width: 18px; height: 18px; color: var(--green); }
.piece-import-owners b, .piece-import-owners small { display: block; }
.piece-import-owners b { font-size: 11px; }
.piece-import-owners small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.piece-import-drop { min-height: 118px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 18px; border: 1px dashed #8eb9a9; border-radius: 7px; color: #285447; background: #f5fbf8; text-align: center; cursor: pointer; }
.piece-import-drop:hover { border-color: var(--green); background: #eff9f5; }
.piece-import-drop > .icon { width: 25px; height: 25px; }
.piece-import-drop strong { font-size: 12px; overflow-wrap: anywhere; }
.piece-import-drop small { color: var(--muted); font-size: 9px; }
.piece-import-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.piece-import-help { display: flex; align-items: center; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.piece-import-help a { display: inline-flex; align-items: center; gap: 5px; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.piece-import-help .icon { width: 13px; height: 13px; }
.piece-import-empty { margin-top: 12px; padding: 18px; border-radius: 6px; color: var(--muted); background: #f6f8f7; font-size: 10px; text-align: center; }
.piece-import-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 10px; }
.piece-import-preview { max-height: 300px; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; }
.piece-import-preview table { min-width: 760px; }
.piece-import-preview th { position: sticky; top: 0; z-index: 1; }
.piece-import-preview td { padding: 8px 10px; }
.import-error-row { background: #fff8f8; }
.import-error-text { color: var(--red); font-size: 9px; line-height: 1.4; }
.import-warn-row { background: #fffbe8; }
.import-warn-text { color: #b8860b; font-size: 9px; line-height: 1.4; }
.import-action { display: inline-flex; padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 750; }
.import-action.new { color: #17684f; background: var(--green-soft); }
.import-action.update { color: #275e93; background: var(--blue-soft); }
.piece-import-more { padding: 8px; color: var(--muted); font-size: 9px; text-align: center; }
.piece-audit-list { display: grid; gap: 0; margin-top: 16px; }
.piece-audit-list > div { position: relative; min-height: 56px; display: grid; grid-template-columns: 25px 1fr; gap: 9px; }
.piece-audit-list > div::before { content: ""; position: absolute; left: 10px; top: 21px; bottom: 0; width: 1px; background: var(--line); }
.piece-audit-list > div:last-child::before { display: none; }
.piece-audit-list strong, .piece-audit-list small { display: block; }
.piece-audit-list strong { font-size: 11px; }
.piece-audit-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.piece-audit-list p { margin: 5px 0 0; color: #8d2929; font-size: 9px; }

.settlement-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.settlement-step { position: relative; min-height: 74px; display: grid; grid-template-columns: 28px 1fr; align-content: center; column-gap: 8px; padding: 12px 14px; border-right: 1px solid var(--line); }
.settlement-step:last-child { border-right: 0; }
.settlement-step > span { grid-row: 1 / 3; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-size: 10px; font-weight: 800; }
.settlement-step strong { font-size: 11px; }
.settlement-step small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.settlement-step.done > span { border-color: var(--green); color: white; background: var(--green); }
.settlement-step.active { background: #f4faf7; box-shadow: inset 0 -3px var(--green); }
.settlement-step.active > span { border-color: var(--green); color: var(--green); }

.payment-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.payment-summary > div { padding: 11px; border: 1px solid var(--line); border-radius: 6px; }
.payment-summary > div span, .payment-summary > div strong { display: block; }
.payment-summary > div span { color: var(--muted); font-size: 9px; }
.payment-summary > div strong { margin-top: 5px; font-size: 12px; }
.payment-summary .total { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: white; border-color: var(--green); background: var(--green); }
.payment-summary .total span { color: rgba(255,255,255,.8); }
.payment-summary .total strong { margin: 0; font-size: 22px; }
.payment-line { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf0ee; }
.payment-line span strong, .payment-line span small { display: block; }
.payment-line span strong { font-size: 11px; }
.payment-line span small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.payment-total { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 6px; color: white; background: var(--ink); }
.payment-total span { font-size: 11px; }
.payment-total strong { font-size: 20px; }
.order-filter-panel { display: grid; grid-template-columns: minmax(0, 1fr) 285px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.order-filter-main { min-width: 0; padding: 14px 16px; }
.order-filter-line { min-height: 38px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; padding: 5px 0; }
.order-filter-line > strong { padding-top: 6px; color: #52605a; font-size: 10px; }
.order-filter-line > div { display: flex; flex-wrap: wrap; gap: 3px 5px; }
.order-filter-pill { min-height: 27px; padding: 0 7px; border: 0; border-radius: 3px; color: #56635d; background: transparent; font-size: 10px; white-space: nowrap; }
.order-filter-pill span { margin-left: 2px; color: inherit; opacity: .8; }
.order-filter-pill:hover, .order-filter-pill.active { color: #21332c; background: #edf1ef; font-weight: 700; }
.order-filter-pill.red { color: #d73d3d; }
.order-filter-pill.orange { color: #d46b1d; }
.order-filter-pill.blue { color: #315bd4; }
.order-filter-pill.cyan { color: #008da1; }
.order-filter-pill.green { color: #0e8a55; }
.order-advanced-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 7px; padding-top: 12px; border-top: 1px solid #edf0ee; }
.order-advanced-filters label { display: flex; align-items: center; gap: 5px; }
.order-advanced-filters label > span { color: #52605a; font-size: 9px; white-space: nowrap; }
.order-advanced-filters .select { width: auto; max-width: 150px; height: 32px; padding-left: 8px; font-size: 10px; }
.order-search-wide { min-height: 42px; display: flex; margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; }
.order-search-wide:focus-within { border-color: #6b9c89; box-shadow: 0 0 0 3px rgba(22,131,95,.08); }
.order-search-wide input { min-width: 0; flex: 1; padding: 0 12px; border: 0; outline: 0; font-size: 10px; }
.order-search-wide .btn { min-width: 88px; min-height: 42px; border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; }
.order-risk-stack { display: grid; align-content: start; gap: 7px; padding: 14px; border-left: 1px solid var(--line); background: #fafbfc; }
.filter-total { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.filter-total strong { color: var(--ink); }
.order-age-alert { min-height: 31px; padding: 0 10px; border: 1px solid transparent; border-radius: 4px; color: white; font-size: 10px; font-weight: 750; text-align: center; box-shadow: 0 2px 5px rgba(26,41,35,.08); }
.order-age-alert.outline { color: #37454d; border-color: #344b63; background: white; }
.order-age-alert.green { background: #20c88a; }
.order-age-alert.cyan { background: #12bdd0; }
.order-age-alert.blue { background: #5b72df; }
.order-age-alert.coral { background: #fa6246; }
.order-age-alert.pink { background: #f63163; }
.order-bulk-toolbar { min-height: 46px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding: 5px 7px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8faf9; }
.order-bulk-toolbar > span { color: var(--muted); font-size: 10px; }
.bulk-check { width: 25px; display: grid; place-items: center; }
.bulk-check input, .order-card-header input { width: 15px; height: 15px; accent-color: var(--green); }
.select.compact { width: 62px; height: 30px; padding-left: 8px; font-size: 10px; }
.order-mode-switch { height: 31px; }
.order-mode-switch button { min-width: 58px; }
.order-card-list { display: grid; gap: 12px; }
.order-management-card { min-width: 0; border: 1px solid #dfe5e2; border-radius: 6px; background: white; box-shadow: 0 1px 3px rgba(22,35,29,.04); overflow: hidden; }
.order-card-header { min-height: 72px; display: grid; grid-template-columns: 22px minmax(360px, 1fr) auto 190px; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); background: #fcfdfc; }
.order-card-ids { min-width: 0; }
.order-card-ids > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #50605a; font-size: 10px; }
.order-card-ids strong { color: #184c73; font-size: 11px; letter-spacing: .2px; }
.order-card-ids small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.copy-mini { width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0; border: 0; color: #4e68b0; background: transparent; vertical-align: middle; }
.copy-mini .icon { width: 11px; height: 11px; }
.order-card-states { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.order-card-states > b { color: #27394d; font-size: 12px; }
.order-barcode { width: 180px; display: grid; justify-items: center; gap: 3px; }
.order-barcode > span { width: 176px; height: 34px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 12px, transparent 12px 14px); }
.order-barcode strong { max-width: 180px; overflow: hidden; font-family: Consolas, monospace; font-size: 12px; letter-spacing: 1px; text-overflow: ellipsis; white-space: nowrap; }
.order-card-body { display: grid; grid-template-columns: minmax(440px, 1.35fr) minmax(255px, .72fr) minmax(250px, .7fr); }
.order-card-body > section { min-width: 0; padding: 14px; }
.order-card-body > section + section { border-left: 1px solid var(--line); }
.order-product-column { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 30px; gap: 12px; }
.order-artwork { align-self: start; }
.order-artwork img { width: 150px; height: 150px; display: block; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #f0f2f1; }
.order-artwork span { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; text-align: center; }
.order-product-detail { min-width: 0; }
.order-product-detail h3, .order-product-detail h4 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-product-detail h3 { color: #45578f; font-size: 11px; font-weight: 600; }
.order-product-detail h4 { margin-top: 5px; color: #182d4f; font-size: 12px; }
.order-product-detail p { margin: 5px 0 0; color: #43514b; font-size: 9px; overflow-wrap: anywhere; }
.order-model-tags, .order-variant-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.order-model-tags span, .order-variant-tags span { min-height: 24px; display: inline-flex; align-items: center; padding: 0 7px; border: 1px solid #dce3e0; border-radius: 4px; color: #3d4a57; background: #fafcfc; font-size: 9px; }
.order-variant-tags span { min-height: 28px; color: #1f3255; font-size: 10px; font-weight: 700; }
.order-note-inline { min-height: 28px; margin-top: 7px; padding: 6px 8px; border: 1px solid #dfe5e2; border-radius: 4px; font-size: 9px; line-height: 1.5; }
.order-file-row { display: flex; align-items: center; gap: 4px; margin-top: 7px; }
.order-file-row > button:first-child { min-width: 140px; min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: #53668d; background: white; font-size: 9px; }
.order-file-row .icon { width: 12px; height: 12px; }
.order-qty { align-self: start; color: #9ca9b3; font-size: 22px; }
.receiver-head { display: flex; align-items: center; gap: 5px; color: #274172; }
.receiver-head strong { font-size: 11px; }
.order-shipping-column address { margin-top: 9px; color: #354742; font-size: 10px; font-style: normal; line-height: 1.65; }
.order-card-body hr { height: 1px; margin: 12px 0; border: 0; background: var(--line); }
.order-shipping-column dl, .order-summary-column dl { margin: 0; }
.order-shipping-column dl > div, .order-summary-column dl > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 6px; padding: 4px 0; font-size: 9px; }
.order-shipping-column dt, .order-summary-column dt { color: #69756f; }
.order-shipping-column dd, .order-summary-column dd { margin: 0; color: #2b3f5e; overflow-wrap: anywhere; }
.order-shipping-column dd > button { padding: 0; border: 0; color: #435fc1; background: transparent; font-size: 9px; }
.order-summary-column > p { margin: 6px 0; color: #596761; font-size: 9px; }
.order-summary-column > p b { color: #2e405e; }
.order-total { color: #08a45f !important; font-size: 13px; font-weight: 750; }
.order-total small { color: #5ca282; font-size: 9px; font-weight: 600; }
.order-summary-note { min-height: 68px; font-size: 9px; line-height: 1.6; }
.order-summary-note b, .order-summary-note span { display: block; }
.order-summary-note span { margin-top: 4px; color: #55645d; }
.order-summary-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.order-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.order-action-grid > button { min-height: 66px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; text-align: left; }
.order-action-grid > button:hover { border-color: #96b5a8; background: #f7faf8; }
.order-action-grid > button > .icon { color: var(--green); }
.order-action-grid b, .order-action-grid small { display: block; }
.order-action-grid b { font-size: 10px; }
.order-action-grid small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.order-pagination { min-height: 54px; display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.order-pagination > button:not(.btn) { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: #63706a; background: white; }
.order-pagination > button.active { color: white; border-color: #213956; background: #213956; }
.order-pagination input { width: 52px; height: 32px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; text-align: center; }
.order-risk-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.order-risk-strip > button { min-width: 0; min-height: 84px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; text-align: left; transition: .16s ease; }
.order-risk-strip > button:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.order-risk-strip > button > span:last-child { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; }
.order-risk-strip b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-risk-strip strong { font-size: 20px; }
.order-risk-strip small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.risk-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; }
.risk-icon.red { color: var(--red); background: var(--red-soft); }
.risk-icon.orange { color: var(--orange); background: var(--orange-soft); }
.risk-icon.blue { color: var(--blue); background: var(--blue-soft); }
.risk-icon.green { color: var(--green); background: var(--green-soft); }
.payment-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-method-card { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 1px 2px rgba(16,30,24,.03); }
.payment-method-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.payment-method-head > div { min-width: 0; }
.payment-method-head strong, .payment-method-head small { display: block; }
.payment-method-head strong { font-size: 12px; }
.payment-method-head small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.payment-method-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #cfe3da; border-radius: 7px; color: var(--green); background: #f2f8f5; }
.payment-method-icon .icon { width: 19px; height: 19px; }
.payment-method-card dl { margin: 10px 0 0; }
.payment-method-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.payment-method-foot .toggle { margin-left: auto; }
.transaction-amount { display: inline-block; margin-left: 7px; font-size: 12px; }
.ticket-description { max-width: 360px; font-size: 10px; line-height: 1.55; }
.receipt { text-align: center; }
.receipt-mark { width: 48px; height: 48px; display: grid; place-items: center; margin: 4px auto 10px; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.receipt-mark .icon { width: 23px; height: 23px; }
.receipt > strong { display: block; font-size: 27px; }
.receipt > span { display: block; margin: 5px 0 18px; color: var(--muted); font-size: 10px; }
.receipt dl { margin: 0; text-align: left; }

.settings-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
.settings-nav { display: grid; align-content: start; gap: 3px; }
.settings-nav button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; text-align: left; }
.settings-nav button.active { color: var(--ink); background: #e7ebe9; font-weight: 700; }
.func-config-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; }
.func-config-nav { padding: 12px 10px 14px; }
.func-config-nav-head { padding: 2px 10px 10px; color: var(--ink); font-size: 12px; font-weight: 700; }
.func-config-nav nav { display: grid; gap: 4px; }
.func-config-nav button { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; text-align: left; }
.func-config-nav button .icon { width: 15px; height: 15px; flex: 0 0 15px; }
.func-config-nav button:hover { color: var(--ink); background: #f4f7f5; }
.func-config-nav button.active { color: #2563eb; background: #e8f0ff; font-weight: 700; }
.func-config-body { display: grid; gap: 12px; min-width: 0; }
.func-config-card .panel-body { padding: 0 18px 16px; }
.currency-base-row { min-height: 54px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #edf0ee; }
.currency-label { color: var(--muted); font-size: 12px; }
.currency-pill { min-height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid #d5dde6; border-radius: 999px; background: #f7f9fb; font-size: 12px; font-weight: 700; }
.currency-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0 6px; }
.currency-sec-head strong { font-size: 12px; }
.currency-sec-head span { color: #9aa5a0; font-size: 11px; }
.currency-col-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; padding: 4px 0 6px; color: #9aa5a0; font-size: 10px; }
.currency-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 34px; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid #edf0ee; }
.currency-name strong { font-size: 12px; }
.currency-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.currency-rate .currency-rate-input { width: 128px; height: 34px; }
.rate-io { color: #4b5752; font-size: 12px; }
.currency-ref { color: #9aa5a0; font-size: 10px; }
.currency-remove { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #d9534f; background: transparent; cursor: pointer; }
.currency-remove:hover { background: #fdecec; }
.currency-add-row { display: flex; align-items: center; gap: 8px; padding-top: 14px; }
.currency-add-row .input { width: 220px; height: 36px; }
.currency-add-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); background: #fff; }
.currency-add-btn:hover { color: var(--ink); border-color: #9fb3a9; }
.currency-empty { padding: 18px 0; color: var(--muted); font-size: 12px; }
.func-config-foot { display: flex; justify-content: flex-end; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #4b5752; font-size: 10px; font-weight: 700; }
.input, .textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; background: white; }
.input { height: 38px; padding: 0 10px; }
.textarea { min-height: 92px; padding: 10px; resize: vertical; }
.input:focus, .textarea:focus { border-color: #73ad97; box-shadow: 0 0 0 3px rgba(22,131,95,.08); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(14, 21, 18, .42); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(580px, 94vw); overflow-y: auto; background: white; box-shadow: -14px 0 40px rgba(0,0,0,.16); animation: slide-in .2s ease; }
@keyframes slide-in { from { transform: translateX(30px); opacity: .5; } }
.drawer-head { position: sticky; top: 0; z-index: 2; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); background: white; }
.drawer-head h2 { margin: 0; font-size: 16px; }
.drawer-content { padding: 18px; }
.drawer-section { margin-bottom: 20px; }
.drawer-section h3 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; }
.order-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.summary-box { padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.summary-box span { color: var(--muted); font-size: 9px; }
.summary-box strong { display: block; margin-top: 5px; font-size: 11px; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 23px 1fr; gap: 8px; min-height: 54px; }
.timeline-item::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 21px; height: 21px; z-index: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; }
.timeline-dot.done { border-color: var(--green); color: white; background: var(--green); }
.timeline-dot .icon { width: 11px; height: 11px; }
.timeline-title { font-size: 11px; font-weight: 650; }
.timeline-time { margin-top: 3px; color: var(--muted); font-size: 9px; }

.modal-backdrop { display: grid; place-items: center; padding: 18px; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; border-radius: 8px; background: white; box-shadow: var(--shadow); animation: pop .16s ease; }
@keyframes pop { from { transform: translateY(8px); opacity: .5; } }
.modal-head { min-height: 58px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 15px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--line); background: #fafbfa; }

#toast-root { position: fixed; top: 82px; right: 18px; z-index: 80; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 360px; display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; padding: 12px; border: 1px solid #badbce; border-radius: 7px; color: #154f3c; background: #f4fbf8; box-shadow: var(--shadow); animation: toast-in .2s ease; }
.toast.error { border-color: #e5b8b8; color: #8d2929; background: #fff7f7; }
.toast .icon { width: 16px; height: 16px; }
.toast strong { display: block; font-size: 11px; }
.toast span { display: block; margin-top: 3px; color: #53615b; font-size: 9px; }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } }

.store-shell { min-height: 100vh; color: #202722; background: #f6f7f4; }
.store-header { position: sticky; top: 0; z-index: 20; min-height: 70px; display: flex; align-items: center; gap: 20px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid #dfe3de; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.store-brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; color: #17201d; background: transparent; text-align: left; }
.store-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: #14211c; background: #43d39e; }
.store-brand strong, .store-brand small { display: block; }
.store-brand strong { font-size: 16px; }
.store-brand small { margin-top: 2px; color: #77817c; font-size: 9px; }
.store-header-search { width: min(340px, 32vw); min-height: 38px; display: flex; align-items: center; gap: 8px; margin-left: 30px; padding: 0 11px; border: 1px solid #d9dfdb; border-radius: 6px; color: #78827d; background: #f7f9f7; }
.store-header-search .icon { width: 15px; }
.store-header-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #26312c; background: transparent; font-size: 12px; }
.store-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.store-service { display: inline-flex; align-items: center; gap: 6px; color: #56615b; font-size: 12px; }
.store-service .icon { color: var(--green); }
.store-main { width: min(1440px, 100%); margin: 0 auto; padding: 30px 24px 56px; }
.store-title { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.store-title > div:first-child > span { color: var(--green); font-size: 11px; font-weight: 750; }
.store-title h1 { margin: 5px 0 0; font-size: 32px; line-height: 1.2; }
.store-title p { margin: 7px 0 0; color: #67716b; font-size: 12px; }
.store-promise { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.store-promise span { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #dde3df; border-radius: 6px; color: #4d5a54; background: white; font-size: 11px; }
.store-promise .icon { width: 15px; color: var(--green); }
.store-market-strip { min-height: 66px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; border: 1px solid #dfe4e0; border-radius: 7px; background: white; }
.store-market-strip > span { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; border-right: 1px solid #e5e9e6; }
.store-market-strip > span:last-child { border-right: 0; }
.store-market-strip b { color: #1d3028; font-size: 17px; }
.store-market-strip small { color: #748078; font-size: 10px; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 460px); gap: 22px; align-items: start; }
.store-catalog { min-width: 0; }
.store-section-head { min-height: 46px; display: flex; align-items: center; margin-bottom: 10px; }
.store-section-head > div { display: flex; align-items: center; gap: 9px; }
.store-section-head span, .store-form-title span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: #17201d; font-size: 10px; font-weight: 750; }
.store-section-head h2, .store-form-title h3 { margin: 0; font-size: 15px; }
.store-section-head > strong { margin-left: auto; color: #738078; font-size: 11px; }
.store-category-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.store-category-tabs button { min-height: 32px; padding: 0 14px; border: 1px solid #dbe1dd; border-radius: 6px; color: #5e6963; background: white; font-size: 11px; }
.store-category-tabs button:hover { border-color: #aebbb5; }
.store-category-tabs button.active { border-color: #17201d; color: white; background: #17201d; }
.store-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.store-product-card { min-width: 0; overflow: hidden; padding: 0; border: 1px solid #dfe4e0; border-radius: 7px; color: inherit; background: white; text-align: left; transition: .16s ease; }
.store-product-card:hover { border-color: #aab8b1; transform: translateY(-1px); box-shadow: 0 7px 20px rgba(24,38,31,.07); }
.store-product-card.selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.store-product-image { position: relative; aspect-ratio: 16 / 10; display: block; overflow: hidden; border-bottom: 1px solid #e5e8e5; background: #edf1ee; }
.store-product-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.store-product-tag { position: absolute; top: 9px; left: 9px; z-index: 1; min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 5px; color: white; background: #c75423; font-size: 9px; font-weight: 750; }
.store-product-body { min-height: 180px; display: flex; flex-direction: column; padding: 13px; }
.store-product-category { color: var(--green); font-size: 10px; font-weight: 750; }
.store-product-body > strong { margin-top: 5px; font-size: 14px; }
.store-product-body > small { min-height: 34px; margin-top: 6px; color: #707a74; font-size: 10px; line-height: 1.7; }
.store-product-meta { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: #65716b; font-size: 9px; }
.store-product-meta .icon { width: 12px; height: 12px; color: var(--green); }
.store-product-meta i { margin-left: auto; color: #58655f; font-style: normal; }
.store-product-foot { display: flex; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid #edf0ed; }
.store-product-foot b { font-size: 18px; }
.store-product-foot > span { margin-left: auto; display: inline-flex; align-items: center; color: #5d6963; font-size: 11px; }
.store-product-foot .icon { width: 14px; }
.store-empty { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed #cfd7d2; border-radius: 7px; color: #77817c; background: #fafbfa; text-align: center; }
.store-empty .icon { width: 28px; height: 28px; color: #9aa49f; }
.store-empty strong { color: #435049; font-size: 14px; }
.store-empty span { font-size: 10px; }
.store-checkout { position: sticky; top: 88px; overflow: hidden; border: 1px solid #d7ddd8; border-radius: 7px; background: white; box-shadow: 0 8px 30px rgba(24,38,31,.07); }
.store-checkout-head { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 14px; color: white; background: #17201d; }
.store-checkout-preview { width: 92px; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: white; }
.store-checkout-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.store-checkout-head span { color: #63dfb1; font-size: 10px; font-weight: 750; }
.store-checkout-head h2 { margin: 4px 0; font-size: 15px; }
.store-checkout-head small { color: #aeb9b4; font-size: 9px; }
.store-form-section { padding: 15px; border-bottom: 1px solid #e5e9e6; }
.store-form-section:last-child { border-bottom: 0; }
.store-form-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.store-form-title span { width: 22px; height: 22px; color: #17201d; background: #dff3eb; }
.store-form-title h3 { font-size: 13px; }
.store-checkout .form-grid { gap: 10px; }
.store-checkout .field label { margin-bottom: 5px; }
.file-input { padding: 7px 9px; }
.store-price-box { min-height: 38px; display: flex; align-items: center; padding: 0 11px; border: 1px solid #d9dfdb; border-radius: 6px; color: #25312b; background: #f7f9f7; font-weight: 750; }
.store-order-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e9e6; }
.store-order-total > span, .store-order-total > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-order-total > span { min-height: 25px; color: #647069; }
.store-order-total small { font-size: 10px; }
.store-order-total > span b { color: #3f4b45; font-size: 11px; }
.store-order-total > div { margin-top: 7px; padding-top: 10px; border-top: 1px dashed #ccd4cf; }
.store-order-total > div span { font-weight: 700; }
.store-order-total > div strong { color: #c75423; font-size: 24px; }
.store-submit { width: 100%; min-height: 46px; margin-top: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; color: white; background: var(--green); font-weight: 750; }
.store-submit:hover { background: var(--green-dark); }
.store-footer { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); border-top: 1px solid #dde2de; color: #748078; background: white; font-size: 10px; }
.store-success { text-align: center; }
.store-success-mark { width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); }
.store-success-mark .icon { width: 27px; height: 27px; }
.store-success h3 { margin: 12px 0 5px; font-size: 20px; }
.store-success > strong { color: #506059; font-family: Consolas, monospace; font-size: 12px; }
.store-success > p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.store-sync-state { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid #bfe1d3; border-radius: 6px; color: #165b43; background: #f0faf6; text-align: left; }
.store-sync-state .icon { color: var(--green); }
.store-sync-state span, .store-sync-state small { display: block; }
.store-sync-state small { margin-top: 3px; color: #5e746a; font-size: 9px; }
.store-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.store-code-list code { overflow: hidden; padding: 7px; border: 1px solid #e0e5e2; border-radius: 5px; color: #47534d; background: #f7f9f7; font-size: 9px; text-overflow: ellipsis; }

.model-requirements { min-height: 72px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.model-requirements > span { min-width: 0; display: grid; grid-template-columns: 30px 1fr; align-content: center; column-gap: 9px; padding: 11px 14px; border-right: 1px solid var(--line); }
.model-requirements > span:last-child { border-right: 0; }
.model-requirements .icon { grid-row: 1 / 3; align-self: center; color: var(--green); }
.model-requirements b, .model-requirements small { display: block; }
.model-requirements b { font-size: 11px; }
.model-requirements small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.product-admin-summary { min-height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.product-admin-summary > span { min-width: 0; display: grid; align-content: center; gap: 5px; padding: 12px 18px; border-right: 1px solid var(--line); }
.product-admin-summary > span:last-child { border-right: 0; }
.product-admin-summary b { font-size: 21px; line-height: 1; }
.product-admin-summary small { color: var(--muted); font-size: 10px; }
.product-config-list { display: grid; gap: 10px; }
.product-config-card { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.product-config-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-soft); }
.product-config-icon .icon { width: 22px; height: 22px; }
.product-config-main { min-width: 0; }
.product-config-title { display: flex; align-items: center; gap: 8px; }
.product-config-title strong { font-size: 14px; }
.product-config-title code { padding: 2px 5px; border-radius: 4px; color: var(--blue); background: var(--blue-soft); font-size: 9px; }
.product-config-main p { margin: 5px 0 7px; color: var(--muted); font-size: 11px; }
.product-config-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.product-config-meta span, .size-chip-list span { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border: 1px solid #dfe5e1; border-radius: 4px; color: #53615b; background: #f8faf9; font-size: 9px; }
.size-chip-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 180px; }
.design-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.design-admin-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
.design-admin-preview { position: relative; width: 100%; aspect-ratio: 16 / 9; display: block; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #edf1ee; }
.design-admin-preview img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .18s ease; }
.design-admin-preview:hover img { transform: scale(1.02); }
.design-admin-preview > span { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 4px; color: white; background: rgba(20,31,27,.76); font-size: 9px; }
.design-admin-body { display: grid; gap: 7px; padding: 12px; }
.design-admin-body > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.design-admin-body > small { color: var(--muted); font-size: 9px; }
.design-admin-body > div { min-height: 24px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.design-admin-body > div .status { margin-left: auto; }
.design-admin-body > .btn { justify-self: start; }

.modeler-workspace { min-height: calc(100vh - 160px); display: grid; grid-template-columns: minmax(0, 1fr) 430px; background: #e9eeeb; }
.modeler-stage { position: sticky; top: 88px; height: calc(100vh - 132px); min-height: 600px; overflow: hidden; background: #e9eeeb; }
.modeler-canvas { position: absolute; inset: 0; }
.modeler-canvas canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.modeler-stage-top { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.75); border-radius: 6px; color: #52605a; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); font-size: 10px; }
.modeler-stage-tools { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.modeler-stage-tools .icon-btn { background: rgba(255,255,255,.9); }
.modeler-specbar { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; min-height: 62px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.8); border-radius: 6px; background: rgba(23,32,29,.9); backdrop-filter: blur(8px); }
.modeler-specbar span { min-width: 0; display: grid; align-content: center; padding: 10px 13px; border-right: 1px solid rgba(255,255,255,.12); }
.modeler-specbar span:last-child { border-right: 0; }
.modeler-specbar b, .modeler-specbar small { display: block; }
.modeler-specbar b { color: white; font-size: 10px; }
.modeler-specbar small { margin-top: 4px; color: #afbbb5; font-size: 9px; }
.modeler-properties { height: calc(100vh - 132px); min-height: 600px; overflow: hidden; border-left: 1px solid #d2d9d5; background: white; }
.modeler-properties form { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.modeler-properties-head { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.modeler-properties-head > div span { color: var(--green); font-size: 9px; font-weight: 750; }
.modeler-properties-head h2 { margin: 3px 0 0; font-size: 15px; }
.modeler-properties-head > .status { margin-left: auto; }
.modeler-form-scroll { overflow-y: auto; }
.modeler-block { padding: 16px 17px; border-bottom: 1px solid var(--line); }
.modeler-block h3 { margin: 0 0 12px; font-size: 12px; }
.modeler-block .field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.modeler-block input[type="range"] { width: 100%; accent-color: var(--green); }
.model-dimensions { grid-template-columns: repeat(3, 1fr); }
.model-dimensions .field.full { grid-column: 1 / -1; }
.color-input { min-height: 38px; padding: 4px; }
.modeler-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 17px; border-top: 1px solid var(--line); background: #fafbfa; }

.customer-main { width: min(1180px, 100%); margin: 0 auto; padding: 28px 24px 56px; }
.customer-heading { min-height: 150px; display: flex; align-items: center; gap: 24px; padding: 22px 26px; color: white; background: #17201d; }
.customer-heading > div:first-child > span { color: #5ce0b0; font-size: 10px; font-weight: 750; }
.customer-heading h1 { margin: 5px 0; font-size: 24px; }
.customer-heading p { margin: 0; color: #aeb8b3; font-size: 11px; }
.customer-balance { margin-left: auto; min-width: 300px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 16px; }
.customer-balance > span { color: #b5c0ba; font-size: 10px; }
.customer-balance > strong { grid-row: 2; font-size: 32px; }
.customer-balance .btn { grid-column: 2; grid-row: 1 / 3; }
.customer-tabs { display: flex; align-items: center; gap: 3px; margin: 18px 0 12px; border-bottom: 1px solid var(--line); }
.customer-tabs button { min-height: 42px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 12px; }
.customer-tabs button.active { border-bottom-color: var(--green); color: var(--ink); font-weight: 700; }
.customer-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.customer-profile { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.customer-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--green); font-size: 17px; font-weight: 800; }
.customer-profile strong, .customer-profile small { display: block; }
.customer-profile small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.customer-details { margin: 0; padding: 8px 18px 14px; }
.customer-recent-list { padding: 4px 16px; }
.customer-recent-list > div { min-height: 58px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf0ee; }
.customer-recent-list > div:last-child { border-bottom: 0; }
.customer-recent-list span, .customer-recent-list small { display: block; }
.customer-recent-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.customer-recent-list b { margin-left: auto; color: var(--green); }
.customer-empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); }
.customer-empty .icon { width: 34px; height: 34px; }
.customer-empty strong { color: var(--ink); }
.recharge-balance { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-radius: 6px; color: white; background: #17201d; }
.recharge-balance span { font-size: 11px; }
.recharge-balance strong { font-size: 25px; }
.recharge-amount { font-size: 20px; font-weight: 750; }
.bank-security { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 11px; border: 1px solid #c8e3d8; border-radius: 6px; color: #165b43; background: #f2faf6; }
.bank-security .icon { color: var(--green); }
.bank-security span, .bank-security small { display: block; }
.bank-security small { margin-top: 3px; color: #62736b; font-size: 9px; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.asset-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
.asset-preview { position: relative; width: 100%; aspect-ratio: 16 / 10; display: block; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #edf1ee; }
.asset-preview img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .18s ease; }
.asset-preview:hover img { transform: scale(1.02); }
.asset-type, .asset-warning { position: absolute; top: 9px; min-height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 5px; color: white; font-size: 9px; font-weight: 750; }
.asset-type { left: 9px; background: rgba(23,32,29,.86); }
.asset-warning { right: 9px; background: #b84635; }
.asset-warning .icon { width: 12px; height: 12px; }
.asset-body { padding: 13px; }
.asset-body > strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.asset-body > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.asset-meta { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 0 9px; border-radius: 5px; color: #66716b; background: #f4f6f4; font-size: 9px; }
.asset-actions { display: flex; align-items: center; gap: 5px; margin-top: 10px; }
.asset-actions .icon-btn:first-of-type { margin-left: auto; }
.asset-empty { grid-column: 1 / -1; min-height: 300px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 7px; color: var(--muted); background: white; }
.asset-empty .icon { width: 30px; height: 30px; }
.asset-empty strong { color: var(--ink); }
.asset-empty span { font-size: 10px; }
.asset-upload-zone { min-height: 190px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; padding: 14px; border: 1px dashed #aebbb5; border-radius: 7px; color: #4d5a54; background: #f7f9f7; cursor: pointer; }
.asset-upload-zone > img { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #e8ece9; }
.asset-upload-zone > span { display: grid; justify-items: start; gap: 6px; }
.asset-upload-zone .icon { width: 25px; height: 25px; color: var(--green); }
.asset-upload-zone small { color: var(--muted); font-size: 9px; line-height: 1.6; }
.asset-modal-preview { aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: #e9eeeb; }
.asset-modal-preview img { width: 100%; height: 100%; object-fit: contain; }
.asset-modal-title { margin: 14px 0 5px; font-size: 14px; }

.shipping-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shipping-method-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
.shipping-method-card.default { box-shadow: inset 3px 0 var(--green); }
.shipping-method-top { min-height: 70px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.shipping-logo { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: var(--green); background: var(--green-soft); }
.shipping-logo .icon { width: 18px; height: 18px; }
.shipping-method-top > div { min-width: 0; }
.shipping-method-top strong, .shipping-method-top small { display: block; }
.shipping-method-top strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.shipping-method-top small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.shipping-method-top > .status { margin-left: auto; }
.shipping-method-details { margin: 0; padding: 5px 15px; }
.shipping-method-foot { min-height: 52px; display: flex; align-items: center; gap: 7px; padding: 8px 15px; border-top: 1px solid var(--line); background: #fafbfa; }
.default-label { display: inline-flex; align-items: center; gap: 5px; color: #196147; font-size: 10px; font-weight: 700; }
.default-label .icon { width: 13px; height: 13px; fill: #d9aa29; color: #d9aa29; }

.worker-avatar.square { border-radius: 6px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 16px; }
.site-control-panel { display: grid; gap: 14px; }
.switch-list { padding: 3px 16px; }
.setting-switch { min-height: 66px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #edf0ee; }
.setting-switch:last-child { border-bottom: 0; }
.setting-switch > span { min-width: 0; }
.setting-switch strong, .setting-switch small { display: block; }
.setting-switch strong { font-size: 11px; }
.setting-switch small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.domain-panel { padding-bottom: 14px; }
.domain-panel > dl { margin: 0; padding: 0 15px 10px; }
.domain-panel > .btn { margin-left: 15px; }
.domain-status { display: flex; align-items: center; gap: 10px; margin: 14px; padding: 11px; border: 1px solid #c9e2d8; border-radius: 6px; background: #f2faf6; }
.domain-status > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--green); background: white; }
.domain-status strong, .domain-status small { display: block; }
.domain-status strong { font-size: 11px; overflow-wrap: anywhere; }
.domain-status small { margin-top: 4px; color: #60716a; font-size: 9px; }

.account-tabs { display: flex; align-items: center; gap: 3px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.account-tabs button { min-height: 39px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 11px; }
.account-tabs button.active { border-bottom-color: var(--green); color: var(--ink); font-weight: 700; }
.account-profile-head { min-height: 92px; display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.account-avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--green); font-size: 20px; font-weight: 800; }
.account-profile-head strong, .account-profile-head small { display: block; }
.account-profile-head small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.account-profile-head .btn { margin-left: auto; }
.security-actions { min-height: 72px; display: flex; align-items: center; gap: 14px; margin: 0 16px; border-top: 1px solid #edf0ee; }
.security-actions > div { min-width: 0; }
.security-actions strong, .security-actions small { display: block; }
.security-actions strong { font-size: 11px; }
.security-actions small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.security-actions .btn { margin-left: auto; }
.session-list { padding: 2px 16px; }
.session-list > div { min-height: 68px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #edf0ee; }
.session-list > div:last-child { border-bottom: 0; }
.session-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: #396453; background: #e9f2ee; }
.session-icon .icon { width: 16px; height: 16px; }
.session-list strong, .session-list small { display: block; }
.session-list strong { font-size: 11px; }
.session-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.session-list time { margin-left: auto; color: var(--muted); font-size: 9px; }

.permission-list { max-width: 310px; display: flex; flex-wrap: wrap; gap: 4px; }
.permission-list span { padding: 3px 6px; border-radius: 4px; color: #466057; background: #eef3f0; font-size: 9px; white-space: nowrap; }
.permission-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.permission-picker label { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: #4d5954; background: #fafbfa; cursor: pointer; }
.permission-picker input { accent-color: var(--green); }
.permission-picker span { font-size: 10px; }
.access-summary { min-height: 90px; display: grid; grid-template-columns: repeat(3, 150px) minmax(260px, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.access-summary > span { display: grid; grid-template-columns: 28px 1fr; align-content: center; column-gap: 8px; padding: 12px 15px; border-right: 1px solid var(--line); }
.access-summary > span .icon { grid-row: 1 / 3; align-self: center; color: var(--green); }
.access-summary b { font-size: 16px; }
.access-summary small { color: var(--muted); font-size: 9px; }
.access-summary > div { display: grid; align-content: center; padding: 12px 18px; background: #f7f9f7; }
.access-summary > div strong { font-size: 11px; }
.access-summary > div small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.mobile-overlay { display: none; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .developer-layout { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .scan-layout { grid-template-columns: 1fr; }
  .formula-band { grid-template-columns: 1fr 24px 1fr; }
  .formula-total { grid-column: 1 / -1; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .store-layout { grid-template-columns: 1fr; }
  .store-checkout { position: static; }
  .store-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-requirements { grid-template-columns: 1fr 1fr; }
  .model-requirements > span:nth-child(2) { border-right: 0; }
  .model-requirements > span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .modeler-workspace { grid-template-columns: 1fr; }
  .modeler-stage { position: relative; top: 0; height: 580px; min-height: 0; }
  .modeler-properties { height: auto; min-height: 0; border-top: 1px solid #d2d9d5; border-left: 0; }
  .modeler-form-scroll { overflow: visible; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-risk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
  .access-summary { grid-template-columns: repeat(3, 1fr); }
  .access-summary > div { grid-column: 1 / -1; }
  .order-filter-panel { grid-template-columns: 1fr; }
  .order-risk-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 0; }
  .filter-total { grid-column: 1 / -1; }
  .order-card-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-product-column { grid-column: 1 / -1; }
  .order-card-body > section:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); }
  .order-summary-column { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay { position: fixed; inset: 0; z-index: 29; display: block; background: rgba(14,21,18,.38); }
  .main { width: 100%; }
  .topbar { height: 60px; padding: 0 14px; }
  .mobile-menu { display: inline-grid !important; }
  .sync-state { display: none; }
  .page { padding: 16px 12px 30px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-actions { width: 100%; margin-left: 0; }
  .page-actions { flex-wrap: wrap; }
  .page-actions .btn { flex: 1 1 145px; }
  .piece-rolebar { align-items: stretch; flex-direction: column; gap: 10px; }
  .piece-rolebar > div:first-child { align-items: stretch; flex-direction: column; gap: 7px; }
  .piece-role-switch { width: 100%; height: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .piece-role-switch button { min-height: 36px; min-width: 0; }
  .piece-worker-select, .piece-role-account { width: 100%; margin-left: 0; }
  .piece-worker-select { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
  .piece-worker-select .select { width: 100%; }
  .piece-approval-flow { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 9px; }
  .piece-approval-flow > span { min-width: 0; flex-direction: column; gap: 5px; text-align: center; }
  .piece-approval-flow > span strong { font-size: 9px; white-space: normal; }
  .piece-approval-flow > i { display: none; }
  .piece-toolbar { top: 60px; align-items: stretch; flex-direction: column; }
  .piece-toolbar .spacer { display: none; }
  .piece-tabs { width: 100%; height: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .piece-tabs button { min-height: 34px; min-width: 0; }
  .piece-toolbar > .select { width: 100%; }
  .piece-task-grid, .piece-mobile-grid { grid-template-columns: 1fr; }
  .piece-masterdata-summary { grid-template-columns: 1fr 1fr; }
  .piece-masterdata-summary > div { grid-column: 1 / -1; }
  .piece-import-owners { grid-template-columns: 1fr; }
  .piece-import-help { align-items: flex-start; flex-direction: column; }
  .piece-task-card header, .piece-mobile-card header { grid-template-columns: 38px minmax(0, 1fr); }
  .piece-task-card header > .status, .piece-mobile-card header > .status { grid-column: 2; justify-self: start; }
  .piece-section-head { align-items: flex-start; }
  .piece-section-head p { max-width: 210px; line-height: 1.5; }
  .piece-report-summary { grid-template-columns: 38px minmax(0, 1fr); }
  .piece-report-summary > span:last-child { grid-column: 2; text-align: left; }
  .piece-stepper { width: 100%; }
  .piece-review-table { min-width: 780px; }
  .store-header { min-height: 64px; padding: 0 12px; }
  .store-service { display: none; }
  .store-header { flex-wrap: wrap; gap: 8px; padding-top: 9px; padding-bottom: 9px; }
  .store-header-search { order: 3; width: 100%; margin-left: 0; }
  .store-header-actions .btn { min-width: 36px; padding: 0 9px; font-size: 0; }
  .store-main { padding: 20px 12px 36px; }
  .store-title { align-items: flex-start; flex-direction: column; }
  .store-title h1 { font-size: 27px; }
  .store-promise { width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .store-promise span { justify-content: center; padding: 0 5px; }
  .store-market-strip { grid-template-columns: 1fr 1fr; }
  .store-market-strip > span { min-height: 52px; border-bottom: 1px solid #e5e9e6; }
  .store-market-strip > span:nth-child(2) { border-right: 0; }
  .store-market-strip > span:nth-child(n+3) { border-bottom: 0; }
  .store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .store-product-body { min-height: 165px; padding: 10px; }
  .store-footer { align-items: flex-start; flex-direction: column; padding: 15px 12px; }
  .modeler-stage { height: 460px; }
  .modeler-stage-top { left: 10px; top: 10px; max-width: calc(100% - 104px); }
  .modeler-stage-top > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modeler-stage-tools { top: 10px; right: 10px; }
  .modeler-specbar { left: 10px; right: 10px; bottom: 10px; }
  .modeler-specbar span { padding: 8px; }
  .modeler-specbar small { line-height: 1.35; }
  .model-dimensions { grid-template-columns: 1fr; }
  .customer-main { padding: 14px 12px 36px; }
  .customer-heading { align-items: flex-start; flex-direction: column; padding: 18px; }
  .customer-balance { width: 100%; min-width: 0; margin-left: 0; }
  .customer-overview-grid { grid-template-columns: 1fr; }
  .customer-tabs { overflow-x: auto; }
  .customer-tabs button { flex: 0 0 auto; }
  .asset-grid, .shipping-method-grid { grid-template-columns: 1fr; }
  .design-admin-grid { grid-template-columns: 1fr; }
  .product-admin-summary { grid-template-columns: 1fr 1fr; }
  .product-admin-summary > span { border-bottom: 1px solid var(--line); }
  .product-admin-summary > span:nth-child(2n) { border-right: 0; }
  .product-admin-summary > span:nth-last-child(-n+2) { border-bottom: 0; }
  .product-config-card { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .product-config-icon { width: 40px; height: 40px; }
  .product-config-card > .btn { grid-column: 2; justify-self: start; }
  .payment-method-grid { grid-template-columns: 1fr; }
  .asset-upload-zone { grid-template-columns: 1fr; }
  .asset-upload-zone > img { width: 100%; max-height: 220px; aspect-ratio: 16 / 10; }
  .account-tabs { overflow-x: auto; }
  .account-tabs button { flex: 0 0 auto; }
  .access-summary { grid-template-columns: 1fr 1fr; }
  .access-summary > span:nth-child(2) { border-right: 0; }
  .access-summary > span:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .permission-picker { grid-template-columns: 1fr; }
  .finance-callout { align-items: stretch; flex-wrap: wrap; }
  .finance-callout-copy { justify-content: center; }
  .finance-callout-total { width: calc(100% - 52px); margin-left: 52px; padding: 10px 0 0; border-top: 1px solid #cfe7dd; border-left: 0; }
  .finance-callout .btn { width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 23px; }
  .integration-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .search-box { width: 100%; min-width: 0; }
  .toolbar .select { flex: 1; }
  .toolbar .spacer { display: none; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; min-width: 0; }
  .scan-console { min-height: 420px; padding: 16px; }
  .scan-result, .scan-idle { min-height: 460px; }
  .result-grid { grid-template-columns: 1fr; }
  .artwork-view { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { grid-template-columns: repeat(3, 1fr); }
  .settings-nav button { text-align: center; }
  .func-config-layout { grid-template-columns: 1fr; }
  .currency-col-head, .currency-row { grid-template-columns: minmax(0, 1fr); }
  .currency-remove { justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .order-summary { grid-template-columns: 1fr; }
  .formula-band { grid-template-columns: 1fr; }
  .formula-equals { display: none; }
  .settlement-flow { grid-template-columns: 1fr 1fr; }
  .settlement-step:nth-child(2) { border-right: 0; }
  .settlement-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .payment-summary { grid-template-columns: 1fr; }
  .payment-summary .total { grid-column: auto; }
  .order-risk-strip { grid-template-columns: 1fr; }
  .order-filter-main { padding: 11px; }
  .order-filter-line { grid-template-columns: 1fr; gap: 3px; }
  .order-filter-line > strong { padding-top: 0; }
  .order-advanced-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .order-advanced-filters label { min-width: 0; display: grid; gap: 4px; }
  .order-advanced-filters .select { width: 100%; max-width: none; }
  .order-search-wide { display: grid; grid-template-columns: minmax(0, 1fr) 74px; }
  .order-search-wide .btn { min-width: 0; padding: 0 7px; font-size: 0; }
  .order-search-wide .btn .icon { margin: 0; }
  .order-risk-stack { grid-template-columns: 1fr 1fr; padding: 10px; }
  .order-age-alert { min-height: 38px; line-height: 1.35; }
  .order-bulk-toolbar { align-items: stretch; }
  .order-bulk-toolbar .spacer { display: none; }
  .order-mode-switch { width: 100%; order: 20; }
  .order-mode-switch button { flex: 1; }
  .order-card-header { grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }
  .order-card-states { grid-column: 2; }
  .order-barcode { grid-column: 1 / -1; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
  .order-barcode > span { width: min(260px, 100%); }
  .order-card-body { grid-template-columns: 1fr; }
  .order-card-body > section, .order-card-body > section:nth-child(2), .order-summary-column { grid-column: auto; border-top: 1px solid var(--line); border-left: 0; }
  .order-product-column { grid-template-columns: 108px minmax(0, 1fr) 24px; padding: 11px !important; }
  .order-artwork img { width: 108px; height: 108px; }
  .order-product-detail h3 { white-space: normal; }
  .order-file-row > button:first-child { min-width: 0; flex: 1; }
  .order-pagination { justify-content: flex-start; overflow-x: auto; }
  .order-pagination > button:not(.btn) { flex: 0 0 32px; }
  .key-box { grid-template-columns: 1fr auto; }
  .key-box label { grid-column: 1 / -1; }
  #toast-root { left: 12px; right: 12px; top: 70px; }
  .toast { min-width: 0; max-width: none; }
}

@media (max-width: 420px) {
  .store-product-grid { grid-template-columns: 1fr; }
  .store-product-body { min-height: 145px; }
  .store-checkout-head { grid-template-columns: 76px 1fr; }
  .store-checkout-preview { width: 76px; }
  .store-code-list { grid-template-columns: 1fr; }
  .breadcrumb span { display: none; }
  .topbar { gap: 8px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .piece-rolebar + .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .piece-rolebar + .kpi-grid .kpi { padding: 12px; }
  .piece-rolebar + .kpi-grid .kpi-value { margin-top: 8px; font-size: 21px; }
  .piece-rolebar + .kpi-grid .kpi-foot { min-height: 26px; margin-top: 6px; line-height: 1.4; }
}

@media print {
  .sidebar, .topbar, .page, #toast-root { display: none !important; }
  .print-label { display: block !important; }
}


/* === 产品分组 Tab === */
.piece-product-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--panel-bg, #fff);
  border-bottom: 1px solid var(--border, #eef0f4);
  overflow-x: auto;
  flex-wrap: wrap;
}
.piece-product-tabs::-webkit-scrollbar { height: 4px; }
.piece-product-tabs::-webkit-scrollbar-thumb { background: var(--border, #eef0f4); border-radius: 2px; }
.piece-product-tab-wrap {
  display: flex;
  align-items: stretch;
  gap: 2px;
  position: relative;
}
.piece-product-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--border, #eef0f4);
  border-radius: 10px;
  background: var(--bg, #fafbfc);
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  min-width: 140px;
  text-align: left;
}
.piece-product-tab:hover {
  border-color: var(--primary, #2f6bff);
  background: #fff;
}
.piece-product-tab.active {
  border-color: var(--primary, #2f6bff);
  background: linear-gradient(135deg, #eef4ff, #fff);
  box-shadow: 0 2px 8px rgba(47,107,255,0.12);
}
.piece-product-tab-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-bg, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.piece-product-tab-img img { width: 100%; height: 100%; object-fit: cover; }
.piece-product-tab-img span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.piece-product-tab-img span.c0 { background: linear-gradient(135deg, #667eea, #764ba2); }
.piece-product-tab-img span.c1 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.piece-product-tab-img span.c2 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.piece-product-tab-img span.c3 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.piece-product-tab-img span.c4 { background: linear-gradient(135deg, #fa709a, #fee140); }
.piece-product-tab-img span.c5 { background: linear-gradient(135deg, #30cfd0, #330867); }
.piece-product-tab-img span.c6 { background: linear-gradient(135deg, #a8edea, #fed6e3); color: #4a5568; }
.piece-product-tab-img span.c7 { background: linear-gradient(135deg, #ff9a9e, #fecfef); color: #c53030; }
.piece-product-tab-info { display: flex; flex-direction: column; min-width: 0; }
.piece-product-tab-info strong {
  font-size: 13px;
  color: var(--text, #1a202c);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.piece-product-tab-info small {
  font-size: 11px;
  color: var(--text-secondary, #7a8799);
  margin-top: 2px;
}
.piece-product-tab.active .piece-product-tab-info strong { color: var(--primary, #2f6bff); }
.piece-product-manage-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  border: 1px solid var(--border, #eef0f4);
  border-radius: 10px;
  background: var(--bg, #fafbfc);
  color: var(--text-muted, #8a93a3);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.piece-product-manage-btn:hover {
  color: var(--primary, #2f6bff);
  border-color: var(--primary, #2f6bff);
  background: rgba(47, 107, 255, 0.06);
}
.piece-product-manage-btn svg { width: 14px; height: 14px; }
.piece-product-tab-wrap .piece-product-tab.active { border-radius: 10px 0 0 10px; border-right: none; }
.piece-product-tab-wrap:has(.piece-product-tab.active) .piece-product-manage-btn {
  border-radius: 0 10px 10px 0;
  border-color: var(--primary, #2f6bff);
  border-left: 1px solid var(--primary, #2f6bff);
  color: var(--primary, #2f6bff);
  background: rgba(47, 107, 255, 0.04);
}

/* === 产品头部 === */
.piece-product-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg, #fafbfc);
  border-bottom: 1px solid var(--border, #eef0f4);
}
.piece-product-header img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border, #eef0f4);
}
.piece-product-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #1a202c);
  margin: 0 0 2px 0;
}
.piece-product-header p {
  font-size: 12px;
  color: var(--text-secondary, #7a8799);
  margin: 0;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .piece-product-tab { background: #1e2128; border-color: #2d3139; }
  .piece-product-tab:hover { background: #252932; }
  .piece-product-tab.active { background: linear-gradient(135deg, #1a2850, #252932); }
  .piece-product-tab-img { background: #252932; }
  .piece-product-header { background: #16181d; border-bottom-color: #252932; }
  .piece-product-header img { border-color: #252932; }
}


/* ===== admin.fypod.com 创建模型表单样式 ===== */
/* Tab 切换 */
.ff-tabs {
  display: flex; border-bottom: 1px solid #e5e5e5;
  padding: 0 22px; background: #fff;
}
.ff-tab {
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  color: #999; background: transparent; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; transition: all .15s;
}
.ff-tab:hover { color: #333; }
.ff-tab.on { color: #f26522; border-bottom-color: #f26522; }

/* Tab 内容面板 */
.ff-panel { padding: 20px 22px; }

/* 图片地址 + 预览框 */
.ff-img-row { display: flex; gap: 10px; align-items: center; }
.ff-img-row input { flex: 1; }
.ff-img-box {
  width: 70px; height: 70px;
  border: 1px solid #e0e0e0; border-radius: 4px;
  background: #f9f9f9; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.ff-img-placeholder {
  display: inline-block; width: 30px; height: 30px;
  border-top: 2px solid #bbb; border-right: 2px solid #bbb;
  transform: rotate(45deg); opacity: 0.5;
}

/* 动态行（颜色等） */
.ff-dyn-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ff-dyn-row { display: flex; gap: 8px; align-items: center; }
.ff-dyn-del {
  background: #fff; border: 1px solid #e0e0e0; color: #999;
  width: 34px; height: 36px; border-radius: 4px; cursor: pointer;
  font-size: 14px; transition: all .15s;
}
.ff-dyn-del:hover { background: #fff5f5; border-color: #e23a14; color: #e23a14; }
.ff-dyn-add {
  background: #f5f5f5; border: 1px dashed #ccc; color: #666;
  padding: 8px 16px; border-radius: 4px; cursor: pointer;
  font-size: 13px; transition: all .15s;
}
.ff-dyn-add:hover { background: #fff; border-color: #3bb46b; color: #3bb46b; }

/* 表单宽一点（admin.fypod.com 风格） */
.modal form[data-tabs] ~ .modal-foot,
.modal form[data-tabs] + .modal-foot { display: none; }

/* 顶栏同步状态：同步中(橙) / 未登录(红) */
.sync-state.sync-busy .sync-dot { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; animation: sync-pulse 1s ease-in-out infinite; }
.sync-state.sync-off .sync-dot { background: #e23a14; box-shadow: 0 0 0 3px #fde0db; }
.sync-state.sync-off { color: #e23a14; }
@keyframes sync-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* 创建模型空提示 */
.ff-empty-tip { background: #f8f9fa; border: 1px dashed #ddd; border-radius: 6px; padding: 14px 16px; color: #888; font-size: 13px; margin-bottom: 16px; }


/* ===== 模型设置 - 内联贴图编辑器 ===== */
.model-settings-panel {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 16px;
  padding: 12px 0;
  min-height: 520px;
}
.ms-hint-bar {
  grid-column: 1 / -1;
  background: #f0f7ff;
  border: 1px solid #c7e0ff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1a6fc0;
  line-height: 1.6;
}
.model-settings-col-left,
.model-settings-col-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.model-settings-col-center {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ms-flat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}
.ms-flat-thumb {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  transition: all .15s;
  position: relative;
}
.ms-flat-thumb:hover {
  border-color: #3bb46b;
  background: #f0fff4;
}
.ms-flat-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  background: #fff;
}
.ms-canvas-wrap {
  flex: 1;
  min-height: 480px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms-canvas-wrap svg {
  width: 100%;
  height: 100%;
  min-height: 480px;
}
/* 角度图缩略图 */
.angle-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.angle-thumb-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.angle-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  transition: all .15s;
}
.angle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.angle-thumb.sel {
  border-color: #3bb46b;
  box-shadow: 0 0 0 2px rgba(59, 180, 107, 0.25);
}
.angle-thumb.disabled {
  opacity: 0.4;
}
.angle-thumb-overlay {
  position: absolute;
  inset: 0;
}
.angle-thumb-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.angle-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 24px;
}
.angle-thumb-name {
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 操作按钮栏 */
.ms-op-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ms-op-bar .btn {
  flex: 1;
  min-width: 60px;
}
/* 复选框堆栈 */
.setting-check-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.setting-check-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
}
.setting-check-line input {
  margin: 0;
}
/* 设置行 */
.setting-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.setting-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #555;
  flex: 1;
  min-width: 100px;
}
.setting-row select {
  font-size: 12px;
}
/* 透明度行 */
.setting-row-opacity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.opacity-label {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}
.opacity-input {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  border-radius: 2px;
  outline: none;
}
.opacity-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3bb46b;
  cursor: pointer;
}
.opacity-value {
  font-size: 12px;
  color: #333;
  min-width: 32px;
  text-align: right;
}
/* 保存按钮 */
.setting-save {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.setting-save .btn {
  min-width: 100px;
}
/* SVG 贴图元素 */
.le2-print { cursor: move; }
.le2-print .le2-sel {
  fill: none;
  stroke: transparent;
  stroke-width: 2;
  pointer-events: none;
}
.le2-print.selected .le2-sel {
  stroke: #14b8a6;
  stroke-dasharray: 4 2;
}
.le2-print .le2-handle {
  fill: #fff;
  stroke: #14b8a6;
  stroke-width: 1.5;
  opacity: 0;
  cursor: nwse-resize;
}
.le2-print.selected .le2-handle { opacity: 1; }
.le2-print .le2-handle.h-n, .le2-print .le2-handle.h-s { cursor: ns-resize; }
.le2-print .le2-handle.h-e, .le2-print .le2-handle.h-w { cursor: ew-resize; }
.le2-print .le2-handle.h-ne, .le2-print .le2-handle.h-sw { cursor: nesw-resize; }
.le2-print .le2-rot {
  fill: #14b8a6;
  stroke: #fff;
  stroke-width: 1.5;
  opacity: 0;
  cursor: grab;
}
.le2-print.selected .le2-rot { opacity: 1; }
/* 通用 */
.pc-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.le-chip-laid { background: #3bb46b; }


/* ===== 创建/编辑产品表单（admin 风格三 Tab） ===== */
.pf-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; }
.pf-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-mt { margin-top: 18px; }
.pf-req::before { content: '* '; color: #e23a14; font-weight: 700; }
.pf-en-row { display: flex; gap: 8px; align-items: stretch; }
.pf-en-row .input { flex: 1; }
.pf-cap-btn { white-space: nowrap; }
.pf-section { margin-top: 22px; }
.pf-sec-label { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 10px; display: block; }
.pf-dyn-list { display: flex; flex-direction: column; gap: 8px; }
.pf-dyn-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center; }
.pf-dyn-row-3 { grid-template-columns: 1fr 1fr 1fr 40px; }
.pf-dyn-del { border: 1px solid var(--line-strong); background: #fff; color: #999; border-radius: 6px; height: 36px; cursor: pointer; font-size: 15px; transition: all .15s; }
.pf-dyn-del:hover { color: #e23a14; border-color: #e23a14; background: #fff5f5; }
.pf-dyn-add { width: 100%; border: 1px dashed var(--line-strong); background: #fafbfa; border-radius: 6px; height: 38px; cursor: pointer; font-size: 18px; color: #666; margin-top: 2px; transition: all .15s; }
.pf-dyn-add:hover { color: #3bb46b; border-color: #3bb46b; background: #f0fff4; }
.pf-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pf-color-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.pf-color-swatch { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; flex: none; }
.pf-image-upload { border: 1px dashed var(--line-strong); border-radius: 8px; background: #fafbfa; min-height: 160px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.pf-image-upload:hover { border-color: #3bb46b; background: #f4fff8; }
.pf-image-upload img { max-width: 100%; max-height: 300px; object-fit: contain; }
.pf-image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #98a29d; font-size: 12px; padding: 30px 0; }
.pf-detail-ta { min-height: 160px; }

/* 创建产品表单复刻扩展 20261007 */
.pf-color-card { flex-direction: column; align-items: stretch; gap: 8px; }
.pf-color-main { display: flex; align-items: center; gap: 10px; }
.pf-color-main .input { flex: 1; }
.pf-color-ext { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pf-color-ext .input { padding: 6px 8px; font-size: 12px; }
.pf-radio-row { display: flex; gap: 16px; padding: 8px 0 2px; }
.pf-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #333; cursor: pointer; font-weight: 400; }
.pf-radio input { accent-color: var(--primary, #3bb46b); }

/* ===== 颜色矩阵（颜色区块 × 型号行）20261007 ===== */
.pf-tip { font-size: 12px; color: var(--muted); margin: 6px 0 14px; line-height: 1.7; }
.pf-color-blocks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.pf-color-block { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.pf-color-block.collapsed .pf-matrix-wrap { display: none; }
.pf-color-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f7f9f8; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pf-color-name { flex: 1; min-width: 120px; max-width: 260px; }
.pf-color-count { font-size: 12px; padding: 2px 10px; border-radius: 20px; white-space: nowrap; }
.pf-color-count.on { background: #e7f8ef; color: #1a9e57; }
.pf-color-count.off { background: #fdecec; color: #d64545; }
.pf-color-ops { display: flex; gap: 12px; margin-left: auto; }
.pf-color-ops a { font-size: 13px; color: #4a7fd6; cursor: pointer; white-space: nowrap; }
.pf-color-ops a.danger { color: #d64545; }
.pf-color-ops a:hover { text-decoration: underline; }
.pf-color-thumb { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pf-color-thumb img { max-height: 80px; border-radius: 6px; border: 1px solid var(--line); }
.pf-thumb-empty { font-size: 12px; color: #aaa; }
.pf-matrix-wrap { padding: 10px 12px; overflow-x: auto; }
.pf-matrix { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 780px; }
.pf-matrix th { background: #f4f6f5; font-weight: 600; color: #444; padding: 6px 4px; border: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
.pf-matrix td { border: 1px solid var(--line); padding: 4px; vertical-align: middle; }
.pf-matrix .pf-col-check { width: 34px; text-align: center; }
.pf-matrix .pf-col-name { min-width: 110px; }
.pf-cell { padding: 5px 6px !important; font-size: 12px; min-width: 70px; }
.pf-cell-name { padding: 5px 6px !important; font-size: 12px; }
.pf-vol-cell { display: flex; gap: 4px; min-width: 150px; }
.pf-vol-cell .input { width: 52px; padding: 5px 4px !important; font-size: 12px; }
.pf-col-ops { display: flex; gap: 6px; margin-top: 3px; font-weight: 400; }
.pf-col-ops a { color: #6a93d4; cursor: pointer; font-size: 11px; white-space: nowrap; }
.pf-col-ops a:hover { text-decoration: underline; }
.pf-add-size { margin-top: 8px; }

/* ===== 产品详情：轻量富文本编辑器 20261007 ===== */
.pf-rt { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.pf-rt-bar { display: flex; align-items: center; gap: 3px; padding: 6px 8px; background: #f6f8f7; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pf-rt-sel { height: 28px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; font-size: 12px; padding: 0 4px; color: #333; }
.pf-rt-btn { width: 30px; height: 28px; border: 1px solid transparent; background: transparent; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #444; }
.pf-rt-btn:hover { background: #e9f5ee; border-color: #bfe3cf; color: #1a9e57; }
.pf-rt-btn .icon { width: 15px; height: 15px; }
.pf-rt-color { position: relative; width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #444; border-radius: 5px; }
.pf-rt-color:hover { background: #e9f5ee; }
.pf-rt-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pf-rt-color .icon { width: 15px; height: 15px; }
.pf-rt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 5px; }
.pf-rt-body { min-height: 160px; max-height: 480px; overflow-y: auto; padding: 12px 14px; font-size: 14px; line-height: 1.75; color: #2b2b2b; outline: none; }
.pf-rt-body:focus { background: #fcfefd; }
.pf-rt-body img { max-width: 100%; }
.pf-rt-body p { margin: 0 0 8px; }
.pf-rt-body ul, .pf-rt-body ol { margin: 0 0 8px; padding-left: 24px; }
.pf-rt.fullscreen { position: fixed; inset: 12px; z-index: 9999; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.pf-rt.fullscreen .pf-rt-body { flex: 1; max-height: none; }
.pf-detail-top { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 700px) { .pf-detail-top { grid-template-columns: 1fr; } }

/* === 产品颜色统一扁平表（2026-10-08 对齐参照站）=== */
.pf-colors-wrap { background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 16px; }
.pf-colors-banner { background: #eef6ff; border: 1px solid #d7e9ff; color: #35507a; font-size: 13px; line-height: 1.6; padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; }
.pf-colors-layout { display: flex; align-items: flex-start; gap: 14px; }
.pf-u-tablewrap { flex: 1; min-width: 0; overflow-x: auto; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; }
.pf-unified { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 13px; }
.pf-unified th { background: #f7f9fc; color: #475569; font-weight: 600; text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border, #e5e7eb); white-space: nowrap; position: relative; }
.pf-unified td { padding: 8px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.pf-unified tbody tr:hover td { background: #fafbfd; }
.pf-u-color { width: 120px; text-align: center; }
.pf-u-check { width: 42px; text-align: center; }
.pf-u-check input { width: 15px; height: 15px; cursor: pointer; }
.pf-u-model { min-width: 110px; }
.pf-color-cell { background: #fbfcfe; text-align: center; border-right: 1px solid var(--border, #e5e7eb); }
.pf-u-thumb { position: relative; width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 8px; overflow: hidden; background: #f1f4f8; }
.pf-u-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-u-thumb-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #94a3b8; font-size: 11px; }
.pf-u-badge { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; line-height: 18px; text-align: center; color: #fff; }
.pf-u-badge.on { background: rgba(22, 135, 84, .92); }
.pf-u-badge.off { background: rgba(100, 116, 139, .92); }
.pf-u-colorname { width: 100%; margin-bottom: 8px; text-align: center; font-size: 12px; padding: 5px 6px; }
.pf-u-cops { display: flex; gap: 4px; justify-content: center; }
.pf-u-cops .btn.small { padding: 3px 8px; font-size: 12px; }
.pf-u-cell { width: 88px; padding: 6px 8px; font-size: 13px; }
.pf-u-cell-name { width: 100%; padding: 6px 8px; font-size: 13px; }
.pf-u-vol { white-space: nowrap; }
.pf-u-vol .input { width: 52px; display: inline-block; padding: 6px 4px; text-align: center; }
.pf-u-vol i { font-style: normal; color: #94a3b8; margin: 0 2px; }
.pf-u-q { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #94a3b8; color: #94a3b8; font-size: 10px; font-style: normal; margin-right: 3px; cursor: help; }

/* 通用下拉菜单（列头 / 颜色操作 / 区间预设）*/
.pf-dropdown { position: relative; display: inline-block; }
.pf-drop-btn { padding: 2px 7px; font-size: 12px; line-height: 1.4; cursor: pointer; background: transparent; border: none; color: #64748b; }
th .pf-drop-btn { font-size: 11px; }
.pf-drop-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 132px; background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); padding: 5px; z-index: 50; }
.pf-dropdown.open .pf-drop-menu { display: block; }
.pf-drop-menu a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 13px; color: #334155; cursor: pointer; white-space: nowrap; }
.pf-drop-menu a:hover { background: #f1f6ff; color: #1d4ed8; }
.pf-drop-menu a.danger { color: #dc2626; }
.pf-drop-menu a.danger:hover { background: #fef2f2; }

/* 生产时间区间输入 */
.pf-range { display: flex; align-items: center; gap: 6px; }
.pf-range .input { width: 70px; padding: 7px 8px; }
.pf-range-sep { color: #64748b; font-size: 13px; }

/* 右侧固定操作区 */
.pf-colors-side { display: flex; flex-direction: column; gap: 10px; width: 120px; flex-shrink: 0; position: sticky; top: 12px; }
.pf-side-btn { width: 100%; padding: 10px 8px; font-size: 14px; }
.pf-side-save { width: 100%; padding: 12px 8px; font-size: 15px; }
@media (max-width: 900px) {
  .pf-colors-layout { flex-direction: column; }
  .pf-colors-side { width: 100%; flex-direction: row; position: static; }
  .pf-side-btn, .pf-side-save { flex: 1; }
}

/* ===== 生产底版列表（参照 admin.xkpod.com 表格布局） ===== */
.models-layout { display: flex; gap: 16px; align-items: flex-start; }
.models-side { width: 220px; flex-shrink: 0; padding: 12px; position: sticky; top: 12px; }
.models-side-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #eee; margin-bottom: 8px; }
.models-cat { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: 13px; color: #333; text-align: left; }
.models-cat:hover { background: #f5f6fa; }
.models-cat.active { background: #e8f0ff; color: #1f6feb; font-weight: 600; }
.models-cat-n { color: #999; font-size: 12px; }
.models-cat.active .models-cat-n { color: #1f6feb; }
.models-main { flex: 1; min-width: 0; }
.models-filter { padding: 12px 16px; margin-bottom: 12px; }
.models-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.models-filter-label { font-size: 13px; color: #666; width: 60px; flex-shrink: 0; }
.input.slim { padding: 4px 8px; font-size: 13px; }
.models-batch { display: flex; align-items: center; gap: 8px; padding: 8px 4px; font-size: 13px; color: #666; }
.models-count { margin-left: auto; color: #999; }
.models-table-wrap { padding: 0; overflow-x: auto; }
.models-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.models-table th, .models-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: middle; }
.models-table th { background: #fafbfc; color: #666; font-weight: 600; white-space: nowrap; }
.models-table tr.row-disabled td { opacity: .55; }
.models-thumb { width: 48px; height: 48px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; background: #fff; }
.models-thumb-empty { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: #eef0f4; border-radius: 4px; color: #999; }
.models-sub { font-size: 12px; color: #888; margin-top: 2px; }
.models-copy { border: 0; background: none; cursor: pointer; color: #1f6feb; padding: 0 2px; font-size: 12px; }
.models-ops { white-space: nowrap; }
.models-ops .model-op-btn { margin: 2px 2px 2px 0; }
.mk-tag { display: inline-block; font-size: 11px; border-radius: 3px; padding: 1px 6px; border: 1px solid; }
.mk-tag.green { background: #f6ffed; color: #389e0d; border-color: #b7eb8f; }
.mk-tag.orange { background: #fff4e5; color: #d46b08; border-color: #ffd591; }
.mk-tag.gray { background: #f5f5f5; color: #999; border-color: #d9d9d9; }
.mk-tag.blue { background: #e8f0ff; color: #1f6feb; border-color: #adc8ff; }
.link-like { border: 0; background: none; cursor: pointer; color: #1f6feb; padding: 0; font-size: 13px; text-align: left; }
@media (max-width: 1100px) {
  .models-layout { flex-direction: column; }
  .models-side { width: 100%; position: static; }
}

/* ===== 生产底版表格 1:1 细节（编号/状态圆点/名称加粗） ===== */
.models-name { font-weight: 600; color: #1a1a1a; }
.models-name:hover { color: #1f6feb; }
.mk-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #555; }
.mk-none { color: #c0c4cc; }
.mk-center { text-align: center; }
.mk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.mk-dot.on { background: #52c41a; }
.mk-dot.off { background: #bfbfbf; }

/* ===== 顶部导航（按 admin.xkpod.com 顶部菜单复刻） ===== */
.app-shell { display: block; }
.main { grid-column: auto; min-width: 0; }
.sidebar { display: none; }
.xk-nav { position: sticky; top: 0; z-index: 40; height: 48px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: #5b4bdb; color: #fff; }
.xk-brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.xk-logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.16); }
.xk-logo .icon { width: 17px; height: 17px; }
.xk-brand-text { font-size: 14px; font-weight: 700; line-height: 1.1; }
.xk-brand-text small { display: block; margin-top: 2px; font-size: 9px; font-weight: 500; letter-spacing: .6px; opacity: .65; }
.xk-menu { min-width: 0; height: 100%; display: flex; align-items: stretch; }
.xk-item { height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 13px; border: 0; background: transparent; color: rgba(255,255,255,.9); font-size: 13px; white-space: nowrap; cursor: pointer; }
.xk-item:hover, .xk-item.active, .xk-group.active > .xk-item { color: #fff; background: rgba(255,255,255,.14); }
.xk-chevron { width: 13px; height: 13px; opacity: .72; }
.xk-group { position: relative; display: flex; align-items: stretch; }
.xk-dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 300px; padding: 10px 12px; background: #fff; border-radius: 8px; box-shadow: 0 12px 32px rgba(16,24,40,.2); }
.xk-group:hover .xk-dropdown, .xk-group:focus-within .xk-dropdown { display: block; }
.xk-dd-section + .xk-dd-section { margin-top: 8px; }
.xk-dd-title { padding: 3px 10px 6px; color: #9aa0b4; font-size: 12px; }
.xk-dd-grid { display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 2px 6px; }
.xk-dd-item { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 4px; background: transparent; color: #333; text-align: left; font-size: 13px; white-space: nowrap; cursor: pointer; }
.xk-dd-item:hover { background: #f1f2fd; color: #5b4bdb; }
.xk-dd-item.active { background: #eceeff; color: #5b4bdb; font-weight: 650; }
.xk-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.xk-pill { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 13px; color: #fff; font-size: 11px; }
.xk-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; }
.xk-icon .icon { width: 15px; height: 15px; }
.xk-avatar { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #edeaff; color: #5b4bdb; font-size: 12px; font-weight: 750; cursor: pointer; }
@media (min-width: 761px) { .topbar { top: 48px; } .mobile-menu { display: none !important; } .sidebar { display: none; } }
@media (max-width: 1100px) { .xk-tools .xk-pill { display: none; } .xk-item { padding: 0 10px; } }
@media (max-width: 900px) { .xk-brand-text { display: none; } .xk-nav { gap: 8px; padding: 0 12px; } }
@media (max-width: 760px) { .xk-nav { display: none; } .sidebar { display: flex; } .topbar { top: 0; } }

/* ===== 账号中心 ===== */
.ac-muted { color: #88938f; font-size: 12px; font-weight: 400; }
.ac-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #56635d; background: #f3f6f4; border-radius: 4px; padding: 1px 6px; }
.ac-panel { margin-bottom: 16px; }
.ac-panel .panel-head h2 { font-size: 14px; }
.ac-profile-grid { margin-bottom: 16px; }
.ac-profile-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.ac-avatar-lg { width: 60px; height: 60px; flex: 0 0 60px; display: grid; place-items: center; border-radius: 50%; background: #edeaff; color: #5b4bdb; font-size: 22px; font-weight: 700; overflow: hidden; }
.ac-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.ac-profile-main { flex: 1; min-width: 0; }
.ac-profile-name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #21332c; }
.ac-profile-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: #6b7772; font-size: 12px; }
.ac-kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.ac-kv { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef1ef; }
.ac-kv-full { grid-column: 1 / -1; }
.ac-kv-label { flex: 0 0 92px; color: #6b7772; font-size: 12px; line-height: 22px; }
.ac-kv-value { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #21332c; font-size: 13px; line-height: 22px; }
.ac-sec-title { margin: 20px 0 4px; font-size: 13px; font-weight: 700; color: #21332c; }
.ac-note { margin-top: 10px; padding: 8px 12px; border-radius: 6px; background: #f7f8f7; color: #88938f; font-size: 12px; }
.ac-verified { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #d8efe1; border-radius: 8px; background: #f4fbf7; }
.ac-verified-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e3f5ea; color: #0e8a55; }
.ac-verified div { flex: 1; }
.ac-verified strong { display: block; font-size: 14px; color: #21332c; }
.ac-verified small { color: #6b7772; font-size: 12px; }
.ac-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-tree-panel .panel-body, .ac-doc-panel .panel-body { padding: 8px; }
.ac-tree-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #21332c; font-size: 13px; text-align: left; cursor: pointer; }
.ac-tree-item .icon { width: 15px; height: 15px; color: #88938f; }
.ac-tree-item span { flex: 1; }
.ac-tree-item small { color: #88938f; font-size: 11px; }
.ac-tree-item:hover { background: #f4f6f5; }
.ac-tree-item.active { background: #edf4f0; color: #0e8a55; font-weight: 650; }
.ac-tree-item.active .icon { color: #0e8a55; }
.ac-empty-state { padding: 56px 20px; text-align: center; color: #56635d; }
.ac-empty-state strong { display: block; margin: 12px 0 6px; font-size: 15px; color: #21332c; }
.ac-empty-state small { color: #88938f; font-size: 12px; }
.ac-empty-art { width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: #f1f5f2; color: #7d9388; }
.ac-empty-art .icon { width: 26px; height: 26px; }
.ac-empty-sm { padding: 32px 16px; text-align: center; color: #88938f; font-size: 13px; }
.ac-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px 10px; border-bottom: 1px solid #eef1ef; }
.ac-toolbar-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ac-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.filter-pill { height: 28px; padding: 0 11px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #56635d; font-size: 12px; cursor: pointer; }
.filter-pill:hover { background: #f1f4f2; }
.filter-pill.active { background: #edf4f0; border-color: #c9e4d6; color: #0e8a55; font-weight: 650; }
.ac-search { display: flex; align-items: center; gap: 6px; }
.ac-search .input { width: 180px; height: 32px; }
.ac-search .btn { height: 32px; }
.ac-selected { padding: 10px 16px; color: #6b7772; font-size: 12px; }
.ac-selected strong { color: #0e8a55; }
.ac-table-foot { padding: 10px 16px; color: #88938f; font-size: 12px; border-top: 1px solid #eef1ef; }
.ac-filter-line { display: flex; align-items: center; gap: 10px; }
.ac-filter-label { flex: 0 0 auto; white-space: nowrap; color: #6b7772; font-size: 12px; }
.ac-date { width: 132px; height: 32px; }
.ac-select { width: 160px; height: 32px; }
.ac-check-cell { width: 34px; text-align: center !important; }
.ac-check { width: 14px; height: 14px; }
.ac-name-cell { display: flex; align-items: center; gap: 9px; }
.ac-panel > .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-name-line { display: flex; align-items: center; gap: 6px; }
.ac-name-cell > span:last-child { display: flex; flex-direction: column; }
.ac-name-cell strong { font-weight: 650; }
.ac-name-cell small { color: #88938f; font-size: 11px; }
.ac-avatar-xs { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: #edf4f0; color: #0e8a55; font-size: 12px; font-weight: 700; }
.ac-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ac-benefit-card .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-big-num { display: flex; align-items: baseline; gap: 6px; font-size: 30px; font-weight: 750; color: #21332c; letter-spacing: -0.5px; }
.ac-big-num small { font-size: 12px; font-weight: 500; color: #88938f; }
.ac-sub-num { margin: 2px 0 12px; color: #6b7772; font-size: 12px; }
.ac-progress { height: 6px; border-radius: 3px; background: #eef1ef; overflow: hidden; margin-bottom: 10px; }
.ac-progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #0e8a55, #55b98a); }
.ac-form-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0 0; margin-top: 8px; border-top: 1px solid #eef1ef; }
.ac-guide-panel .panel-head { display: flex; align-items: center; justify-content: space-between; }
.ac-guide-block-title { margin: 18px 0 8px; color: #6b7772; font-size: 12px; font-weight: 650; }
.ac-guide-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #eef1ef; border-radius: 8px; margin-bottom: 8px; }
.ac-guide-step { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: #f1f4f2; color: #88938f; font-size: 12px; font-weight: 700; }
.ac-guide-step.done { background: #e3f5ea; color: #0e8a55; }
.ac-guide-step .icon { width: 14px; height: 14px; }
.ac-guide-main { flex: 1; min-width: 0; }
.ac-guide-main strong { display: block; font-size: 13px; color: #21332c; }
.ac-guide-main small { color: #88938f; font-size: 12px; }
.ac-help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-doc-nav { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #21332c; font-size: 13px; text-align: left; cursor: pointer; }
.ac-doc-nav .icon { width: 15px; height: 15px; color: #88938f; }
.ac-doc-nav:hover { background: #f4f6f5; }
.ac-doc-nav.active { background: #edf4f0; color: #0e8a55; font-weight: 650; }
.ac-doc-nav.active .icon { color: #0e8a55; }
.ac-article h3 { margin: 18px 0 8px; font-size: 14px; color: #21332c; }
.ac-article h3:first-child { margin-top: 0; }
.ac-article p { margin: 0 0 12px; color: #56635d; font-size: 13px; line-height: 1.85; }

/* ===== 网站装修 ===== */
.deco-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.deco-nav .panel-body { padding: 8px; }
.deco-nav-item { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #21332c; font-size: 13px; text-align: left; cursor: pointer; }
.deco-nav-item:hover { background: #f4f6f5; }
.deco-nav-item.active { background: #edf4f0; color: #0e8a55; font-weight: 650; }
.deco-main .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.deco-theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.deco-theme-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid #eef1ef; border-radius: 8px; cursor: pointer; }
.deco-theme-card.active { border-color: #55b98a; box-shadow: 0 0 0 3px rgba(14,138,85,.08); }
.deco-theme-card input { position: absolute; opacity: 0; }
.deco-theme-preview { height: 110px; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f3f5f4; }
.deco-theme-preview span { display: block; height: 8px; width: 70%; border-radius: 2px; background: rgba(255,255,255,.7); }
.deco-theme-preview span:nth-child(2) { width: 45%; }
.deco-theme-preview span:nth-child(3) { width: 30%; height: 18px; margin-top: auto; }
.deco-theme-preview.standard { background: #16324a; }
.deco-theme-preview.navy { background: #1d3f74; }
.deco-theme-preview.sky { background: #4a90d9; }
.deco-theme-preview.purple { background: #5b4bdb; }
.deco-theme-preview.custom { display: grid; place-items: center; background: #f7f8f7; color: #88938f; }
.deco-theme-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 650; color: #21332c; }
.deco-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.deco-form-grid .field.full { grid-column: 1 / -1; }
.deco-upload-row { display: flex; flex-wrap: wrap; gap: 12px; }
.deco-upload { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.deco-upload-box { width: 150px; min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 1px dashed #cfd8d3; border-radius: 8px; background: #fafbfa; color: #88938f; cursor: pointer; text-align: center; }
.deco-upload-box:hover { border-color: #55b98a; background: #f4fbf7; }
.deco-upload-box img { max-width: 100%; max-height: 60px; object-fit: contain; }
.deco-upload-box small { font-size: 11px; line-height: 1.5; }
.deco-check { display: inline-flex; align-items: center; gap: 6px; color: #21332c; font-size: 13px; cursor: pointer; }
.deco-check input { width: 14px; height: 14px; }
.deco-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.deco-lang-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.deco-lang-tab { height: 28px; padding: 0 10px; border: 1px solid #eef1ef; border-radius: 14px; background: white; color: #56635d; font-size: 12px; cursor: pointer; }
.deco-lang-tab:hover { background: #f4f6f5; }
.deco-lang-tab.active { border-color: #c9e4d6; background: #edf4f0; color: #0e8a55; font-weight: 650; }
.deco-lang-block { margin-bottom: 16px; }
.deco-lang-block > strong { display: block; margin-bottom: 2px; color: #21332c; font-size: 13px; }
.deco-lang-block > small { display: block; margin-bottom: 6px; }
.deco-lang-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.deco-sec-head { margin: 18px 0 10px; padding-bottom: 8px; border-bottom: 1px solid #eef1ef; color: #21332c; font-size: 13px; font-weight: 700; }
.deco-sec-head:first-child { margin-top: 0; }
.deco-sec-head small { margin-left: 8px; }
.deco-color { width: 72px; height: 36px; padding: 3px; }
.textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; min-height: 96px; }
.link-btn { border: 0; background: none; color: #0e8a55; font-size: 12px; cursor: pointer; padding: 0; }

@media (max-width: 1100px) {
  .ac-benefit-grid, .deco-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ac-split, .ac-help-layout, .deco-layout, .ac-kv-grid, .deco-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-split .ac-tree-panel, .deco-layout .deco-nav { max-height: none; }
  .ac-toolbar-right { margin-left: 0; width: 100%; }
}

/* 产品样机详情：基础信息 + 样机贴图车位（对齐参考 admin.xkpod.com） */
.mk-detail-form .field { margin-bottom: 14px; }
.mk-detail-form .field label { display: block; margin-bottom: 6px; font-size: 13px; color: #333; font-weight: 600; }
.mk-detail-form .field label .req { color: #e5484d; }
.mk-count { margin-top: 4px; font-size: 11px; color: #999; text-align: right; }
.mk-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.mk-pills span { padding: 2px 8px; border: 1px solid #dfe4e1; border-radius: 10px; background: #f7f9f8; font-size: 11px; color: #66716c; }
.mk-sec-title { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #eef1ef; font-size: 13px; font-weight: 700; color: #21332c; }
.mk-sec-title:first-of-type { margin-top: 0; }
.mk-sec-title .models-sub { font-weight: 400; }
.mk-choice-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-choice { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid #dfe4e1; border-radius: 6px; background: #fff; font-size: 12px; color: #44504a; cursor: pointer; }
.mk-choice input { margin: 0; }
.mk-choice:has(input:checked) { border-color: #16835f; background: #edf6f1; color: #0f684a; font-weight: 600; }
.mk-file-preview { border: 1px dashed #dfe4e1; border-radius: 8px; min-height: 80px; display: flex; align-items: center; justify-content: center; padding: 8px; margin-bottom: 8px; background: #fafbfa; }
.mk-file-preview img { max-width: 100%; max-height: 170px; border-radius: 6px; }
.mk-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mk-slot { position: relative; border: 1px solid #dfe4e1; border-radius: 8px; padding: 6px; background: #fff; }
.mk-slot.on { border-color: #bfe0d0; }
.mk-slot-media { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; background: #f4f6f4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mk-slot-media img { width: 100%; height: 100%; object-fit: cover; }
.mk-slot-empty { color: #b9c0bd; font-size: 12px; }
.mk-slot-name { margin-top: 4px; font-size: 11px; color: #66716c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-slot-badge { position: absolute; top: 8px; left: 8px; padding: 1px 5px; border-radius: 8px; font-size: 10px; background: #f1f3f2; color: #8a938f; }
.mk-slot.on .mk-slot-badge { background: #e7f5ef; color: #0f684a; }
.mk-slot-ops { display: flex; gap: 4px; margin-top: 4px; }
.mk-slot-ops .btn.small { flex: 1; min-height: 26px; padding: 0 4px; font-size: 11px; }
.mk-slot-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.mk-slot-count { font-size: 12px; color: #66716c; }
.mk-slots-empty { border: 1px dashed #dfe4e1; border-radius: 8px; padding: 18px; text-align: center; font-size: 12px; color: #888; background: #fafbfa; }

@media (max-width: 900px) {
  .mk-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ac-perm-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ac-perm-tools .ac-muted { margin-left: 4px; }

/* ===== 首页数据看板（复刻 admin.xkpod.com 首页）===== */
.hq-page-title { font-size: 13px; color: #6b7280; font-weight: 500; margin: 4px 0 14px; }
.hq-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hq-stat { position: relative; background: #fff; border: 1px solid #e9e9ef; border-radius: 8px; padding: 18px 20px 20px; min-height: 106px; }
.hq-stat-label { font-size: 12px; color: #8a8f9c; font-weight: 500; }
.hq-stat-icon { position: absolute; right: 18px; top: 34px; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.hq-stat-icon .icon { width: 17px; height: 17px; }
.hq-stat-value { margin-top: 22px; font-size: 30px; font-weight: 700; color: #1c1c28; line-height: 1; font-variant-numeric: tabular-nums; }
.hq-tone-purple { background: #f2edff; color: #7c5cff; }
.hq-tone-orange { background: #fff4e8; color: #e08a2e; }
.hq-tone-blue { background: #eef4ff; color: #3b7fe0; }
.hq-tone-red { background: #fff0ec; color: #e2603d; }

.hq-panel { background: #fff; border: 1px solid #e9e9ef; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.hq-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #f0f0f4; flex-wrap: wrap; }
.hq-panel-title { font-size: 15px; font-weight: 700; color: #1c1c28; margin: 0; }
.hq-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hq-select { height: 30px; padding: 0 26px 0 10px; border: 1px solid #e3e3ea; border-radius: 5px; background: #fff; color: #4b5563; font-size: 12px; outline: none; }
.hq-date-wrap { display: flex; align-items: center; gap: 6px; }
.hq-date-wrap .icon { width: 14px; height: 14px; color: #9aa0ac; }
.hq-date-wrap em { font-style: normal; color: #9aa0ac; font-size: 11px; }
.hq-date { height: 30px; padding: 0 6px; border: 1px solid #e3e3ea; border-radius: 5px; background: #fff; color: #4b5563; font-size: 12px; outline: none; }

.hq-chart-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); }
.hq-chart-left { padding: 16px 20px 10px; border-right: 1px solid #f0f0f4; min-width: 0; }
.hq-chart-right { padding: 16px 20px 10px; min-width: 0; }
.hq-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hq-chart-title { font-size: 13px; font-weight: 600; color: #3a3f4b; }
.hq-tabs { display: flex; border: 1px solid #e6e6ee; border-radius: 6px; overflow: hidden; background: #fff; }
.hq-tabs button { border: 0; border-left: 1px solid #eee; background: #fff; padding: 5px 12px; font-size: 11px; color: #6b7280; cursor: pointer; }
.hq-tabs button:first-child { border-left: 0; }
.hq-tabs button.active { color: #7c4ddb; font-weight: 600; background: #faf7ff; }
.hq-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: #8a8f9c; margin: 10px 0 6px; }
.hq-legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.hq-chart-svg { width: 100%; height: auto; display: block; }

.hq-donut { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 8px 0 4px; }
.hq-donut-wrap { flex: 0 0 auto; }
.hq-legend-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hq-legend-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 46px 38px; align-items: center; gap: 8px; font-size: 12px; color: #4b5563; }
.hq-legend-row i { width: 8px; height: 8px; border-radius: 50%; }
.hq-legend-count { text-align: right; color: #4b5563; font-variant-numeric: tabular-nums; }
.hq-legend-pct { text-align: right; color: #9aa0ac; }

.hq-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #f0f0f4; }
.hq-metric { padding: 14px 18px 16px; border-right: 1px solid #f0f0f4; min-width: 0; }
.hq-metric:last-child { border-right: 0; }
.hq-metric-label { font-size: 11px; color: #9aa0ac; }
.hq-metric-value { margin-top: 8px; font-size: 20px; font-weight: 700; color: #1c1c28; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hq-metric-value small { font-size: 11px; font-weight: 500; color: #6b7280; margin-left: 3px; }
.hq-metric-money { margin-top: 5px; font-size: 11px; color: #9aa0ac; }

.hq-table-wrap { overflow: auto; }
.hq-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hq-table th { background: #fafafc; color: #6b7280; font-weight: 500; text-align: left; padding: 11px 16px; border-bottom: 1px solid #eff0f4; white-space: nowrap; }
.hq-table th.num { text-align: right; }
.hq-table th .icon { width: 12px; height: 12px; vertical-align: -2px; margin-left: 3px; color: #b0b4bf; }
.hq-table td { padding: 12px 16px; color: #3a3f4b; border-bottom: 1px solid #f5f5f8; }
.hq-table tbody tr:nth-child(even) { background: #fcfcfd; }
.hq-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.hq-code { color: #4b5563; }
.hq-table td .icon { width: 12px; height: 12px; color: #b0b4bf; margin-left: 6px; vertical-align: -2px; }

.hq-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hq-card { background: #fff; border: 1px solid #e9e9ef; border-radius: 8px; padding: 18px 20px 16px; display: flex; flex-direction: column; }
.hq-card-title { font-size: 14px; font-weight: 700; color: #1c1c28; margin: 0 0 16px; }
.hq-card-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: #8a8f9c; }
.hq-card-row b { color: #1c1c28; font-weight: 700; font-variant-numeric: tabular-nums; }
.hq-bar { height: 6px; border-radius: 3px; background: #edeef5; overflow: hidden; margin: 10px 0; }
.hq-bar span { display: block; height: 100%; border-radius: 3px; }
.hq-note { font-size: 11px; color: #9aa0ac; line-height: 1.6; }
.hq-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #3b7fe0; font-size: 11px; padding: 14px 0 0; margin-top: auto; cursor: pointer; }
.hq-link .icon { width: 13px; height: 13px; }
.hq-mdata-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f8; font-size: 12px; color: #8a8f9c; }
.hq-mdata-row b { color: #1c1c28; font-weight: 700; }
.hq-mdata-row:last-child { border-bottom: 0; }
.hq-foot { text-align: center; font-size: 11px; color: #b0b4bf; padding: 2px 0 20px; }

@media (max-width: 1180px) {
  .hq-chart-grid { grid-template-columns: 1fr; }
  .hq-chart-left { border-right: 0; border-bottom: 1px solid #f0f0f4; }
  .hq-grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hq-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hq-grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hq-stats { grid-template-columns: 1fr; }
  .hq-metrics { grid-template-columns: 1fr 1fr; }
  .hq-donut { flex-direction: column; align-items: flex-start; }
}

/* 顶部头像下拉菜单（我的账号 / 账号设置 / 退出登录） */
.user-menu-wrap { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.user-menu-wrap .avatar { border: 0; padding: 0; cursor: pointer; }
.user-menu-wrap .avatar:hover { background: #dfe5e2; }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 204px; padding: 6px; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.14); }
.user-dd-head { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid #f1f2f5; }
.user-dd-head strong { display: block; font-size: 13px; color: #1c1c28; }
.user-dd-head small { display: block; margin-top: 2px; font-size: 11px; color: #8a8f9c; }
.user-dropdown .user-dd-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #3d434d; font-size: 12px; text-align: left; cursor: pointer; }
.user-dropdown .user-dd-item:hover { background: #f5f6f8; }
.user-dropdown .user-dd-item .icon { width: 15px; height: 15px; }
.user-dd-div { height: 1px; margin: 4px 0; background: #f1f2f5; }
.user-dropdown .user-dd-danger { color: #dc2626; }
.user-dropdown .user-dd-danger:hover { background: #fef2f2; }

/* 商户列表（对齐参考站账号中心-商户列表） */
.merchant-account { display: flex; align-items: center; gap: 10px; }
.merchant-avatar { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; font-weight: 600; font-size: 13px; flex: 0 0 auto; }
.merchant-account strong { display: block; font-size: 13px; color: #1c1c28; }
.merchant-id { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; color: #8a8f9c; }
.copy-id { border: 0; background: transparent; padding: 0; cursor: pointer; color: #8a8f9c; display: inline-flex; }
.copy-id svg { width: 12px; height: 12px; }
.copy-id:hover { color: #4f46e5; }
.merchant-line { font-size: 12.5px; color: #3d434d; }
.merchant-line.strong { font-weight: 600; color: #1c1c28; }
.merchant-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; }
.merchant-badge.blue { background: #e8f0ff; color: #2563eb; }
.merchant-badge.purple { background: #f1ebff; color: #7c3aed; }
.merchant-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.link-btn { border: 0; background: transparent; padding: 0; color: #2563eb; font-size: 12px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.merchant-more { position: relative; }
.merchant-more summary { list-style: none; cursor: pointer; font-size: 12px; color: #5b6170; }
.merchant-more summary::-webkit-details-marker { display: none; }
.merchant-more-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 4px; min-width: 128px; }
.merchant-more-menu button { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: transparent; padding: 6px 8px; font-size: 12px; color: #3d434d; cursor: pointer; border-radius: 6px; text-align: left; }
.merchant-more-menu button:hover { background: #f5f6f8; }
.merchant-more-menu svg { width: 14px; height: 14px; }
.select.compact.merchant-perm { width: 92px; font-size: 12px; }
.merchant-bulk-del { border-color: #fca5a5; color: #dc2626; background: #fff; }
.merchant-table td { vertical-align: middle; }
.merchant-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; font-size: 12px; color: #6b7280; }
.merchant-pager-btns { display: flex; align-items: center; gap: 6px; }
.merchant-pager-btns > button:not(.btn) { min-width: 28px; padding: 3px 6px; border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; font-size: 12px; cursor: pointer; }
.merchant-pager-btns button.active { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.merchant-pager-size { display: inline-flex; align-items: center; gap: 4px; }
.merchant-pager-size select { margin: 0 4px; }
.merchant-pager-size .select.compact { width: 80px; font-size: 12px; padding: 0 8px; }
.merchant-foot { text-align: center; font-size: 12px; color: #9aa0ac; padding: 18px 0 6px; }

/* ===== 商户端商品详情（参照 diyby.com）===== */
.store-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.store-nav button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; color: #4d5a54; background: transparent; font-size: 12px; cursor: pointer; }
.store-nav button:hover { background: #f2f6f3; color: #17201d; }
.store-nav button.active { color: #17201d; font-weight: 700; background: #eef5f0; }
.pdp-shell { background: #f6f7f4; }
.pdp-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; color: #7b867f; font-size: 11.5px; }
.pdp-breadcrumb button { padding: 0; border: 0; color: #5d6a63; background: transparent; font-size: 11.5px; cursor: pointer; }
.pdp-breadcrumb button:hover { color: var(--green); }
.pdp-breadcrumb i { font-style: normal; color: #b3bdb7; }
.pdp-breadcrumb span { color: #2a352f; }
.pdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 560px); gap: 22px; align-items: start; }
.pdp-gallery { min-width: 0; padding: 14px; border: 1px solid #e0e5e1; border-radius: 8px; background: white; }
.pdp-main-image { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #f0f3f0; }
.pdp-main-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pdp-thumbs { display: flex; align-items: center; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.pdp-thumb { flex: 0 0 76px; width: 76px; height: 76px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #f0f3f0; cursor: pointer; }
.pdp-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pdp-thumb:hover { border-color: #c4d2ca; }
.pdp-thumb.active { border-color: var(--green); }
.pdp-info { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid #e0e5e1; border-radius: 8px; background: white; }
.pdp-title-row { display: flex; align-items: flex-start; gap: 10px; }
.pdp-title-row h1 { margin: 0; color: #1b2621; font-size: 22px; line-height: 1.35; }
.pdp-badge { flex: 0 0 auto; margin-top: 2px; padding: 2px 7px; border-radius: 4px; color: #1d7a52; background: #e4f7ec; font-size: 10px; font-weight: 750; }
.pdp-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 9px 10px; border-radius: 6px; color: #6c7771; background: #f7f9f7; font-size: 11.5px; line-height: 1.6; }
.pdp-note .icon { flex: 0 0 auto; width: 14px; margin-top: 2px; color: var(--green); }
.pdp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed #e3e8e4; }
.pdp-price-row strong { color: #c84b1f; font-size: 28px; line-height: 1; font-weight: 800; }
.pdp-price-row > span { color: #7a857f; font-size: 11.5px; }
.pdp-price-row > span b { color: #3f4b45; font-weight: 700; }
.pdp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #e5e9e6; border-radius: 7px; overflow: hidden; }
.pdp-spec { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border-right: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; font-size: 11.5px; }
.pdp-spec:nth-child(2n) { border-right: 0; }
.pdp-spec:nth-last-child(-n+2) { border-bottom: 0; }
.pdp-spec span { color: #7b867f; }
.pdp-spec b { color: #25312b; font-weight: 650; }
.pdp-block { display: flex; flex-direction: column; gap: 8px; }
.pdp-block-title { display: flex; align-items: center; gap: 8px; color: #56625b; font-size: 11.5px; }
.pdp-block-title > span { color: #2b3831; font-weight: 650; }
.pdp-swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.pdp-swatch { width: 34px; height: 34px; padding: 2px; border: 2px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; }
.pdp-swatch > span { display: block; width: 100%; height: 100%; border: 1px solid rgba(24,32,29,.12); border-radius: 4px; }
.pdp-swatch:hover { border-color: #c7d4cc; }
.pdp-swatch.active { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.pdp-sizes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pdp-size { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid #dbe1dd; border-radius: 6px; color: #4a5650; background: white; font-size: 11.5px; cursor: pointer; }
.pdp-size b { color: #ad3f18; font-size: 12px; font-weight: 750; }
.pdp-size:hover { border-color: #b3c1ba; }
.pdp-size.active { border-color: var(--green); background: #eef8f2; box-shadow: 0 0 0 1px var(--green) inset; }
.pdp-artwork { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdp-artwork-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px dashed #b9c7bf; border-radius: 6px; color: #3d4a43; background: #fafcfb; font-size: 11.5px; cursor: pointer; }
.pdp-artwork-btn:hover { border-color: var(--green); color: #1d7a52; }
.pdp-artwork-btn input { display: none; }
.pdp-artwork span { color: #8b958f; font-size: 11px; }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-btn { min-height: 46px; border: 1px solid #17201d; border-radius: 6px; color: #17201d; background: white; font-size: 14px; font-weight: 750; cursor: pointer; }
.pdp-btn:hover { background: #f4f7f5; }
.pdp-btn.primary { border-color: #17201d; color: white; background: #17201d; }
.pdp-btn.primary:hover { background: #2a3a32; }
.pdp-calc { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid #ebeeec; }
.pdp-calc-title { display: flex; align-items: baseline; gap: 9px; color: #1e2a24; font-size: 13px; font-weight: 750; }
.pdp-calc-title small { color: #8b958f; font-size: 10.5px; font-weight: 400; }
.pdp-calc-controls { display: grid; grid-template-columns: 1fr 1fr 104px; gap: 8px; }
.pdp-calc-controls label { display: flex; flex-direction: column; gap: 5px; }
.pdp-calc-controls label > span { color: #7b867f; font-size: 10.5px; }
.pdp-calc-controls .input { min-height: 34px; font-size: 11.5px; }
.pdp-qty { position: relative; }
.pdp-qty .input { padding-right: 22px; }
.pdp-qty i { position: absolute; right: 9px; bottom: 9px; color: #8b958f; font-size: 10.5px; font-style: normal; }
.pdp-table-wrap { overflow: auto; border: 1px solid #e5e9e6; border-radius: 6px; }
.pdp-table { width: 100%; border-collapse: collapse; font-size: 11.5px; white-space: nowrap; }
.pdp-table th, .pdp-table td { padding: 9px 10px; border-bottom: 1px solid #eef1ef; text-align: left; }
.pdp-table th { color: #6f7a74; background: #f7f9f7; font-size: 10.5px; font-weight: 650; }
.pdp-table tbody tr:last-child td { border-bottom: 0; }
.pdp-table td b { color: #ad3f18; font-weight: 750; }
.pdp-table .input { min-height: 30px; width: 78px; font-size: 11.5px; }
.pdp-muted { color: #a3aca7; }
.pdp-calc-note { color: #8b958f; font-size: 10.5px; line-height: 1.65; }
.pdp-calc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #98a29c; font-size: 10.5px; }
.pdp-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--green); background: transparent; font-size: 10.5px; cursor: pointer; }
.pdp-link:hover { text-decoration: underline; }

/* ===== 后台运费模板 ===== */
.ship-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ship-tpl-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #e5e9e6; border-radius: 8px; background: white; }
.ship-tpl-card.default { border-color: #bfd8ca; box-shadow: inset 0 0 0 1px #bfd8ca; }
.ship-tpl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ship-tpl-head strong { display: block; color: #1c2721; font-size: 14px; }
.ship-tpl-head small { display: block; margin-top: 3px; color: #9aa49e; font-size: 10.5px; }
.ship-tpl-note { margin: 0; color: #75817a; font-size: 11.5px; line-height: 1.6; }
.ship-tpl-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #edf0ee; border-radius: 6px; }
.ship-tpl-stats span { display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 8px 0; border-right: 1px solid #edf0ee; color: #8b958f; font-size: 10.5px; }
.ship-tpl-stats span:last-child { border-right: 0; }
.ship-tpl-stats b { color: #25312b; font-size: 15px; }
.ship-tpl-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.ship-chip { padding: 2px 7px; border-radius: 4px; color: #4b5a52; background: #f1f5f2; font-size: 10px; }
.ship-tpl-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid #f0f2f1; }
.ship-tpl-foot .spacer { flex: 1; }
.ship-rules { display: flex; flex-direction: column; gap: 12px; }
.ship-rule { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #e5e9e6; border-radius: 7px; background: #fbfcfb; }
.ship-rule-head { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.ship-rule-head label { display: flex; flex-direction: column; gap: 5px; }
.ship-rule-head label > span { color: #7b867f; font-size: 10.5px; }
.ship-bands { display: flex; flex-direction: column; gap: 7px; }
.ship-band { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 8px; align-items: end; padding: 9px 10px; border: 1px solid #e9edeb; border-radius: 6px; background: white; }
.ship-band label { display: flex; flex-direction: column; gap: 4px; }
.ship-band label > span { color: #8b958f; font-size: 10px; }
.ship-band .input { min-height: 32px; font-size: 11.5px; }
.ship-days { display: flex; align-items: center; gap: 4px; }
.ship-days .input { min-width: 0; width: 58px; }
.ship-days i { color: #a3aca7; font-style: normal; }
.checkbox-line { display: flex; align-items: center; gap: 7px; min-height: 38px; color: #4a5650; font-size: 12px; }
.checkbox-line input { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .pdp-layout { grid-template-columns: 1fr; }
  .pdp-gallery { order: 0; }
  .pdp-info { order: 1; }
}
@media (max-width: 720px) {
  .store-nav { display: none; }
  .pdp-calc-controls { grid-template-columns: 1fr 1fr; }
  .pdp-specs { grid-template-columns: 1fr; }
  .pdp-spec { border-right: 0; }
  .ship-rule-head { grid-template-columns: 1fr; }
  .ship-band { grid-template-columns: 1fr 1fr; }
}

/* 商品图集编辑 */
.pf-gallery-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pf-gallery-item { position: relative; width: 74px; height: 74px; overflow: hidden; border: 1px solid #e2e7e3; border-radius: 6px; background: #f4f6f4; }
.pf-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-gallery-item .icon-btn { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 4px; color: white; background: rgba(17, 24, 20, .55); }
.pf-gallery-add { display: grid; place-items: center; width: 74px; height: 74px; border: 1px dashed #c2ccc6; border-radius: 6px; color: #8b958f; background: #fafcfb; cursor: pointer; }
.pf-gallery-add:hover { border-color: var(--green); color: var(--green); }
.pf-gallery-add input { display: none; }
