:root {
  --bg: #eef2f6;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #687386;
  --line: #dce3ec;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #0f766e;
  --soft-blue: #edf4ff;
  --shadow: 0 18px 48px rgba(31, 42, 68, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .10), transparent 34%),
    linear-gradient(315deg, rgba(15, 118, 110, .10), transparent 30%),
    var(--bg);
}
.auth-card {
  width: min(420px, 100%);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.auth-brand {
  margin-bottom: 20px;
}
.auth-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.auth-tab {
  background: #f8fafc;
}
.auth-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.auth-submit {
  width: 100%;
  margin-top: 6px;
}
.forgot-button {
  width: 100%;
  height: 34px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.forgot-button:hover {
  color: var(--blue);
  border: 0;
}
.forgot-wrap {
  position: relative;
}
.forgot-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 210px;
  padding: 12px;
  display: none;
  z-index: 40;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(31, 42, 68, .18);
}
.forgot-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.forgot-wrap:hover .forgot-popover {
  display: block;
}
.forgot-popover img {
  width: 160px;
  height: 160px;
  display: block;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.forgot-popover b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.forgot-popover span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.auth-message {
  min-height: 22px;
  margin-top: 12px;
  color: #be123c;
  line-height: 1.5;
  font-size: 13px;
}

.topbar {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(220, 227, 236, .46);
  background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 10px 30px rgba(31, 42, 68, .04);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}
.sub {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}
.account {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.model-button {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}
.model-button b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
}
.model-button em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  margin-top: 3px;
}
.model-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
}
.model-logo.small {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.account strong {
  color: var(--green);
  background: #e9fbf7;
  border: 1px solid #b7ede1;
  padding: 8px 12px;
  border-radius: 7px;
}
.announcement-button {
  width: auto;
  min-width: 86px;
  height: 38px;
  padding: 0 12px;
  background: #eef6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-weight: 800;
}
.announcement-button:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.contact-wrap {
  position: relative;
}
.contact-button {
  width: auto;
  min-width: 86px;
  height: 38px;
  padding: 0 12px;
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.contact-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 190px;
  padding: 12px;
  display: none;
  z-index: 30;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(31, 42, 68, .18);
}
.contact-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 26px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.contact-wrap:hover .contact-popover {
  display: block;
}
.contact-popover img {
  width: 150px;
  height: 150px;
  display: block;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.contact-popover b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.contact-popover span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.user-button, .plain-button {
  width: auto;
  min-width: 64px;
  height: 38px;
  padding: 0 12px;
}
.user-button {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plain-button {
  background: #f8fafc;
  color: var(--muted);
}
.module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}
.module-tab {
  width: auto;
  min-width: 132px;
  height: 38px;
  padding: 0 14px;
  background: #f8fafc;
}
.module-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.module-view {
  display: none;
}
.module-view.active {
  display: block;
}
.module-placeholder {
  min-height: calc(100vh - 180px);
  margin: 18px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.module-placeholder-inner {
  width: min(620px, calc(100% - 36px));
  padding: 56px 24px;
  text-align: center;
}
.module-placeholder-inner h1 {
  margin: 0;
  font-size: 24px;
}
.module-placeholder-inner p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.product-progress {
  min-height: calc(100vh - 180px);
  margin: 18px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.product-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.product-progress-head h1 {
  margin: 0;
  font-size: 26px;
}
.product-progress-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.product-progress-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.product-progress-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.product-progress-stats > div {
  min-height: 76px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.product-progress-stats b,
.product-progress-stats span {
  display: block;
}
.product-progress-stats b {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.product-progress-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.product-progress-filters {
  display: grid;
  grid-template-columns: 170px 170px 170px minmax(220px, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.product-progress-filters .field {
  gap: 6px;
}
.product-progress-filters .field span {
  font-size: 12px;
}
.progress-search-field {
  min-width: 0;
}
.product-progress-body {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.product-progress-table-wrap {
  min-width: 0;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.product-progress-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}
.product-progress-table th,
.product-progress-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.5;
}
.product-progress-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4fb;
  color: #334155;
  font-weight: 800;
  white-space: nowrap;
}
.product-progress-table td strong,
.product-progress-table td small,
.product-progress-table td b {
  display: block;
}
.product-progress-table td strong {
  color: var(--ink);
  font-size: 13px;
}
.product-progress-table td small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.product-progress-table td b {
  color: #475569;
  font-weight: 600;
}
.product-progress-row {
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.product-progress-row:hover {
  background: #f8fbff;
}
.product-progress-row.active {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.progress-col-product { width: 170px; }
.progress-col-note { width: 250px; }
.progress-status,
.progress-days {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}
.progress-status.todo,
.progress-days.normal {
  background: #f1f5f9;
  color: #475569;
}
.progress-status.active,
.progress-days.soon {
  background: #dbeafe;
  color: #1d4ed8;
}
.progress-status.waiting,
.progress-days.waiting {
  background: #fef3c7;
  color: #a16207;
}
.progress-status.risk,
.progress-days.risk {
  background: #ffe4e6;
  color: #be123c;
}
.progress-status.done,
.progress-days.done {
  background: #dcfce7;
  color: #15803d;
}
.product-progress-detail {
  order: -1;
  position: sticky;
  top: 94px;
  min-height: 420px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.product-progress-detail-empty {
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.product-progress-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.product-progress-detail-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}
.product-progress-detail-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.product-progress-detail-head .danger {
  width: auto;
  min-width: 48px;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}
.product-progress-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.product-progress-form .field {
  gap: 5px;
}
.product-progress-form .field span {
  color: var(--muted);
  font-size: 12px;
}
.product-progress-form input,
.product-progress-form select,
.product-progress-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.product-progress-form textarea {
  min-height: 66px;
  resize: vertical;
  line-height: 1.5;
}
.progress-form-wide {
  grid-column: 1 / -1;
}
.product-progress-table td[colspan] {
  padding: 28px;
}
@media (max-width: 980px) {
  .product-progress-head {
    display: block;
  }
  .product-progress-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }
  .product-progress-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-progress-body {
    grid-template-columns: 1fr;
  }
  .product-progress-detail {
    position: static;
  }
}
@media (max-width: 620px) {
  .product-progress {
    margin: 12px;
    padding: 14px;
  }
  .product-progress-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-progress-filters {
    grid-template-columns: 1fr;
  }
  .product-progress-form {
    grid-template-columns: 1fr;
  }
  .progress-form-wide {
    grid-column: auto;
  }
}
.profit-calculator {
  min-height: calc(100vh - 180px);
  margin: 12px;
  padding: 14px;
  background: #f3f6fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.profit-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.profit-mode-tab {
  width: auto;
  min-width: 132px;
  height: 34px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
}
.profit-mode-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.profit-calculator-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 340px;
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}
.profit-input-panel,
.profit-result-panel,
.profit-rate-panel {
  min-width: 0;
}
.profit-section,
.profit-result-hero,
.profit-result-metrics,
.profit-breakdown {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.profit-section {
  padding: 0;
  margin-bottom: 9px;
  overflow: hidden;
}
.profit-section h2,
.profit-breakdown h2 {
  margin: 0;
  padding: 9px 12px;
  color: #172033;
  font-size: 14px;
  background: #eef4fb;
  border-bottom: 1px solid var(--line);
}
.profit-section {
  border-left: 4px solid #cbd5e1;
}
.profit-section h2 {
  border-bottom-color: transparent;
}
.profit-section .profit-field {
  border-color: #e2e8f0;
}
.profit-section-site {
  border-left-color: #64748b;
}
.profit-section-site h2 {
  background: #f1f5f9;
  color: #334155;
}
.profit-section-site .profit-field {
  background: #f8fafc;
}
.profit-section-spec {
  border-left-color: #7c3aed;
}
.profit-section-spec h2 {
  background: #f5f3ff;
  color: #6d28d9;
}
.profit-section-spec .profit-field {
  background: #faf8ff;
  border-color: #ddd6fe;
}
.profit-section-revenue {
  border-left-color: #2563eb;
}
.profit-section-revenue h2 {
  background: #eff6ff;
  color: #1d4ed8;
}
.profit-section-revenue .profit-field {
  background: #f7faff;
  border-color: #bfdbfe;
}
.profit-section-cost {
  border-left-color: #d97706;
}
.profit-section-cost h2 {
  background: #fffbeb;
  color: #a16207;
}
.profit-section-cost .profit-field {
  background: #fffdf5;
  border-color: #fde68a;
}
.profit-section-marketing {
  border-left-color: #ea580c;
}
.profit-section-marketing h2 {
  background: #fff7ed;
  color: #c2410c;
}
.profit-section-marketing .profit-field {
  background: #fffaf5;
  border-color: #fed7aa;
}
.profit-section-after-sales {
  border-left-color: #e11d48;
}
.profit-section-after-sales h2 {
  background: #fff1f2;
  color: #be123c;
}
.profit-section-after-sales .profit-field {
  background: #fff8f8;
  border-color: #fecdd3;
}
.profit-section-fees {
  border-left-color: #059669;
}
.profit-section-fees h2 {
  background: #ecfdf5;
  color: #047857;
}
.profit-section-fees .profit-field {
  background: #f5fffb;
  border-color: #a7f3d0;
}
.profit-field-grid {
  display: grid;
  gap: 8px;
  padding: 10px;
}
.profit-field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profit-field-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.profit-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}
.profit-field span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}
.profit-field input,
.profit-field select {
  width: 100%;
  height: 32px;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
}
.profit-field input {
  text-align: right;
}
.profit-input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}
.profit-input-unit input {
  height: 30px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.profit-input-unit em {
  min-width: 44px;
  padding: 0 9px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  text-align: center;
  border-left: 1px solid #e2e8f0;
}
.profit-inline-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 10px 10px;
}
.profit-inline-results span {
  padding: 7px 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
}
.profit-inline-results b {
  color: var(--ink);
}
.profit-result-panel,
.profit-rate-panel {
  position: sticky;
  top: 94px;
}
.profit-rate-panel {
  padding: 11px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0f766e;
  border-radius: 7px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}
.profit-rate-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.profit-rate-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
}
.profit-rate-head span,
.profit-rate-note {
  color: var(--muted);
  font-size: 12px;
}
.profit-rate-head button {
  width: auto;
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.profit-rate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.profit-rate-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 34px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 6px;
  text-align: left;
}
.profit-rate-grid button.active {
  border-color: #0f766e;
  background: #ecfdf5;
  box-shadow: inset 0 0 0 1px #0f766e;
}
.profit-rate-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.profit-rate-grid b {
  color: #0f172a;
  font-size: 13px;
}
.profit-rate-note {
  margin: 9px 0 0;
}
.profit-result-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border-color: #bfdbfe;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .10);
}
.profit-result-hero > div {
  padding: 14px;
  background: #eff6ff;
}
.profit-result-hero > div + div {
  border-left: 1px solid var(--line);
}
.profit-result-hero span,
.profit-result-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.profit-result-hero b {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}
.profit-result-hero small,
.profit-result-metrics small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.profit-result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
}
.profit-result-metrics > div {
  min-height: 78px;
  padding: 11px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.profit-result-metrics > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.profit-result-metrics > div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.profit-result-metrics b {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.1;
}
.profit-breakdown {
  margin-top: 12px;
  padding: 0 12px 12px;
}
.profit-breakdown dl {
  margin: 0;
}
.profit-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #eef2f7;
}
.profit-breakdown dt {
  color: var(--muted);
  font-size: 12px;
}
.profit-breakdown dd {
  margin: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.profit-result-panel .positive {
  color: #047857;
}
.profit-result-panel .negative {
  color: #be123c;
}
.profit-discount-field {
  display: none;
}
.profit-mode-discount .profit-discount-field {
  display: grid;
}
.profit-mode-fbm .profit-fba-field,
.profit-mode-fbm .profit-fba-row {
  display: none;
}
#productDataGrid {
  border: 0;
  box-shadow: none;
}
#productDataGrid th {
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
}
#productDataGrid th:last-child,
#productDataGrid .product-cell:last-child {
  border-right: 0;
}
#productDataGrid .product-cell {
  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  background-clip: padding-box;
}
#productDataGrid tbody tr:last-child .product-cell {
  border-bottom: 0;
}
#productDataGrid tbody tr:hover .product-cell {
  background-color: rgb(239 246 255 / .55);
}
#productDataGrid th:nth-child(1) { width: 118px; min-width: 118px; }
#productDataGrid th:nth-child(2) { width: 110px; min-width: 110px; }
#productDataGrid th:nth-child(3) { width: 180px; min-width: 180px; }
#productDataGrid th:nth-child(4) { width: 110px; min-width: 110px; }
#productDataGrid th:nth-child(5) { width: 220px; min-width: 220px; }
#productDataGrid th:nth-child(6) { width: 180px; min-width: 180px; }
#productDataGrid th:nth-child(7) { width: 116px; min-width: 116px; }
#productDataGrid th:nth-child(8),
#productDataGrid th:nth-child(9),
#productDataGrid th:nth-child(10) { width: 100px; min-width: 100px; }
#productDataGrid th:nth-child(11),
#productDataGrid th:nth-child(12),
#productDataGrid th:nth-child(16) { width: 110px; min-width: 110px; }
#productDataGrid th:nth-child(13),
#productDataGrid th:nth-child(14),
#productDataGrid th:nth-child(15),
#productDataGrid th:nth-child(17) { width: 122px; min-width: 122px; }
#productDataGrid th:nth-child(18),
#productDataGrid th:nth-child(20) { width: 126px; min-width: 126px; }
#productDataGrid th:nth-child(19),
#productDataGrid th:nth-child(21) { width: 112px; min-width: 112px; }
#productDataGrid th:nth-child(22) { width: 180px; min-width: 180px; }
#productDataGrid th:nth-child(23) { width: 190px; min-width: 190px; }
#productDataGrid th:nth-child(24) { width: 150px; min-width: 150px; }
@media (max-width: 980px) {
  .profit-calculator-shell {
    grid-template-columns: 1fr;
  }
  .profit-result-panel,
  .profit-rate-panel {
    position: static;
  }
  .profit-rate-panel {
    max-height: none;
  }
  .profit-rate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profit-field-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-params,
  .product-management-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .profit-calculator {
    margin: 12px;
    padding: 14px;
  }
  .profit-field-grid.three,
  .profit-field-grid.four,
  .profit-rate-grid,
  .profit-result-hero,
  .profit-result-metrics {
    grid-template-columns: 1fr;
  }
  .profit-result-hero > div + div,
  .profit-result-metrics > div:nth-child(odd) {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .profit-result-metrics > div:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  .profit-result-metrics > div:last-child {
    border-bottom: 0;
  }
  .product-management {
    margin: 12px;
    padding: 14px;
  }
  .product-params,
  .product-management-stats,
  .product-management-filters {
    grid-template-columns: 1fr;
  }
}
.teambition-launcher {
  min-height: calc(100vh - 128px);
  padding: 18px;
  display: grid;
  place-items: start stretch;
  background: #f8fafc;
}
.teambition-launch-card {
  width: min(860px, 100%);
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(31, 42, 68, .08);
}
.teambition-launch-brand h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}
.teambition-launch-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.teambition-launch-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.teambition-direct-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.art-workbench {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 18px 18px;
}
.art-sidebar,
.art-editor {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(31, 42, 68, .08);
}
.art-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.art-side-head,
.art-editor-head,
.art-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.art-side-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
#newArtRequestBtn {
  width: 88px;
  min-width: 88px;
  padding: 0 10px;
  white-space: nowrap;
}
.art-side-head h1,
.art-editor-head h2,
.art-section-head h3,
.art-guide h3 {
  margin: 0;
}
.art-side-head h1 {
  font-size: 22px;
}
.art-side-head p,
.art-editor-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.art-filters {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.art-filters select,
.art-filters input {
  width: 100%;
}
.art-standards-button {
  width: 100%;
  height: 40px;
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
  font-weight: 800;
}
.art-standards-button:hover {
  background: #ffedd5;
  border-color: #fdba74;
}
.art-request-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}
.art-request-card {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.art-request-card.active {
  border-color: var(--blue);
  background: #eff6ff;
}
.art-request-cover {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--blue);
  font-weight: 800;
}
.art-request-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-request-card strong,
.art-request-card small,
.art-request-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.art-request-card strong {
  color: var(--ink);
  font-size: 14px;
}
.art-request-card small,
.art-request-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.art-editor {
  min-width: 0;
  padding: 12px;
  overflow: auto;
  background: #f8fafc;
}
.art-editor-head {
  padding: 0 0 12px;
  border-bottom: 1px solid #d6dee9;
  margin-bottom: 12px;
}
.art-editor-actions,
.art-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.art-editor-actions .active {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue-dark);
  font-weight: 800;
}
.art-sheet-block {
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 42, 68, .06);
}
.art-items-sheet {
  overflow-x: auto;
}
.art-sheet-band {
  padding: 10px 14px;
  background: #dbeafe;
  color: #172033;
  font-weight: 900;
  border-bottom: 1px solid #c7d2fe;
}
.art-sheet-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.art-sheet-table th,
.art-sheet-table td {
  border: 1px solid #d6dee9;
  padding: 8px;
  vertical-align: top;
}
.art-sheet-table th {
  width: 112px;
  background: #f1f5f9;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
.art-sheet-table input,
.art-sheet-table textarea,
.art-sheet-table select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
.art-sheet-table textarea {
  min-height: 64px;
  resize: vertical;
}
.art-info-table th,
.art-info-table td {
  height: 50px;
}
.art-info-table textarea {
  min-height: 72px;
}
.art-items-table th,
.art-items-table td {
  font-size: 13px;
}
.art-items-table thead th {
  background: #eaf2ff;
  text-align: center;
  vertical-align: middle;
}
.art-items-table .col-kind { width: 11%; }
.art-items-table .col-size { width: 10%; }
.art-items-table .col-ref { width: 13%; }
.art-items-table .col-copy { width: 15%; }
.art-items-table .col-links { width: 15%; }
.art-items-table .col-notes { width: 14%; }
.art-items-table .col-benchmark { width: 14%; }
.art-items-table .col-material { width: 14%; }
.art-items-table .col-images { width: 18%; }
.art-items-table .col-actions { width: 7%; }
.art-items-table.main-items-table {
  min-width: 1240px;
}
.art-items-table.main-items-table .col-kind { width: 130px; }
.art-items-table.main-items-table .col-size { width: 112px; }
.art-items-table.main-items-table .col-copy { width: 240px; }
.art-items-table.main-items-table .col-ref { width: 150px; }
.art-items-table.main-items-table .col-notes { width: 170px; }
.art-items-table.main-items-table .col-benchmark { width: 210px; }
.art-items-table.main-items-table .col-material { width: 190px; }
.art-items-table.main-items-table .col-actions { width: 74px; }
.main-art-item-row td {
  height: 136px;
  padding: 8px 7px;
}
.main-art-item-row .art-kind-input {
  min-width: 0;
  text-align: center;
}
.art-kind-size-stack {
  display: grid;
  gap: 8px;
}
.art-kind-size-stack .art-size-input {
  color: #475569;
  font-size: 13px;
}
.art-items-table textarea {
  min-height: 92px;
}
.main-art-item-row textarea {
  min-height: 112px;
  margin-top: 0;
}
.main-art-item-row input {
  margin-top: 0;
}
.art-kind-input {
  font-weight: 800;
}
.art-images-cell {
  min-width: 220px;
}
.art-image-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.art-upload-tile,
.art-paste-zone {
  width: 56px;
  height: 56px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #475569;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  flex: 0 0 auto;
}
.art-upload-tile:hover,
.art-paste-zone:focus {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
}
.art-upload-tile input {
  display: none;
}
.art-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
}
.art-ref-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6dee9;
  border-radius: 8px;
  background: #fff;
}
.art-ref-image img {
  width: 100%;
  height: 64px;
  display: block;
  object-fit: cover;
}
.art-ref-image figcaption {
  height: 24px;
  padding: 4px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 11px;
}
.art-remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border-color: rgba(15, 23, 42, .22);
  background: rgba(255, 255, 255, .92);
  color: #be123c;
  line-height: 1;
}
.art-actions-cell {
  text-align: center;
  vertical-align: middle;
}
.art-remove-item {
  width: 56px;
  min-width: 56px;
  height: 34px;
  padding: 0 8px;
}
.art-main-ref-cell {
  min-width: 0;
}
.art-ref-slot {
  min-height: 102px;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  background: #fff;
}
.art-ref-slot.empty {
  display: grid;
  place-items: center;
  padding: 8px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}
.art-ref-slot.empty label {
  display: block;
  color: #1d4ed8;
  font-weight: 800;
  cursor: pointer;
}
.art-ref-slot.empty span {
  display: block;
  margin-top: 4px;
}
.art-ref-slot input {
  display: none;
}
.art-ref-slot.filled {
  position: relative;
  overflow: hidden;
  border-style: solid;
}
.art-ref-slot.filled a,
.art-ref-slot.filled img {
  display: block;
  width: 100%;
  height: 102px;
}
.art-ref-slot.filled img {
  object-fit: cover;
}
.art-ref-slot-actions {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}
.art-ref-slot-actions label,
.art-paste-mini {
  width: 50%;
  min-width: 0;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}
.art-ref-slot-actions input {
  display: none;
}
.art-paste-mini {
  padding: 0;
}
.art-type-card {
  width: min(720px, calc(100vw - 32px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.art-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.art-type-option {
  height: auto;
  min-height: 150px;
  display: block;
  padding: 18px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #d6dee9;
  border-radius: 8px;
}
.art-type-option:hover {
  border-color: var(--blue);
  background: #eff6ff;
}
.art-type-option strong {
  display: block;
  color: #172033;
  font-size: 22px;
}
.art-type-option span {
  display: block;
  margin-top: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}
.art-aplus-module-list {
  display: grid;
  gap: 14px;
  padding: 12px;
  background: #eef3f8;
}
.art-aplus-module-card {
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 42, 68, .055);
  overflow: hidden;
}
.aplus-module-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #d5deea;
  background: #f8fbff;
}
.aplus-module-head span {
  display: inline-flex;
  margin-right: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.aplus-module-head strong {
  color: #13223a;
  font-size: 18px;
  line-height: 1.25;
}
.aplus-module-head em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}
.aplus-module-main {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.15fr);
  gap: 14px;
  padding: 14px;
}
.aplus-module-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.aplus-module-fields label {
  display: grid;
  gap: 5px;
}
.aplus-module-fields label:nth-child(n+3) {
  grid-column: span 2;
}
.aplus-module-fields b,
.aplus-slot-title b {
  color: #13223a;
  font-size: 13px;
}
.aplus-module-fields input,
.aplus-module-fields textarea {
  width: 100%;
  border: 1px solid #c8d4e3;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
.aplus-module-fields input {
  min-height: 36px;
}
.aplus-module-fields textarea {
  min-height: 78px;
  resize: vertical;
}
.aplus-module-fields textarea[data-art-item-field="reference_links"] {
  background: #fffaf0;
}
.aplus-module-fields textarea[data-art-item-field="material_note"] {
  background: #f0fdf4;
}
.aplus-module-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  align-content: start;
}
.aplus-slot-card {
  min-width: 0;
}
.aplus-slot-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.aplus-slot-title span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}
.aplus-slot-image {
  min-height: 170px;
  border: 1px dashed #8aa4c3;
  border-radius: 7px;
  background: #fbfdff;
}
.aplus-slot-image.empty {
  display: grid;
  place-items: center;
  padding: 12px;
  color: #64748b;
  text-align: center;
  cursor: pointer;
}
.aplus-slot-image.empty label {
  color: #1d4ed8;
  font-weight: 900;
  cursor: pointer;
}
.aplus-slot-image.empty input {
  display: none;
}
.aplus-slot-image.empty span,
.aplus-slot-image.empty em {
  display: block;
  font-size: 12px;
  font-style: normal;
}
.aplus-slot-image.filled {
  position: relative;
  overflow: hidden;
  border-style: solid;
}
.aplus-slot-image.filled a,
.aplus-slot-image.filled img {
  display: block;
  width: 100%;
  height: 170px;
}
.aplus-slot-image.filled img {
  object-fit: contain;
  background: #fff;
}
.art-aplus-picker-card {
  width: min(980px, calc(100vw - 36px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.art-aplus-module-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.art-aplus-module-option {
  height: auto;
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #f8fbff;
  text-align: left;
}
.art-aplus-module-option:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.art-aplus-module-option span {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}
.art-aplus-module-option strong {
  color: #13223a;
  font-size: 18px;
}
.art-aplus-module-option em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}
.art-aplus-module-option div {
  display: grid;
  gap: 5px;
}
.art-aplus-module-option b {
  padding: 5px 7px;
  border: 1px solid #dbe5f2;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 12px;
}
.art-preview-pane {
  margin-top: 12px;
}
.art-preview-content {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 42, 68, .06);
}
.preview-sheet-title {
  padding: 18px;
  background: #172033;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}
.preview-status-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #eef6ff;
  border-bottom: 1px solid #cbd5e1;
}
.preview-status-row span {
  padding: 5px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}
.preview-block {
  padding: 14px;
}
.preview-items-block {
  overflow-x: auto;
}
.preview-block + .preview-block {
  border-top: 1px solid #d6dee9;
}
.preview-block h3 {
  margin: 0 0 10px;
  padding: 9px 12px;
  background: #dbeafe;
  border: 1px solid #c7d2fe;
  border-radius: 7px;
  color: #172033;
}
.preview-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.preview-table th,
.preview-table td {
  border: 1px solid #d6dee9;
  padding: 9px;
  vertical-align: top;
  text-align: left;
  word-break: break-word;
  line-height: 1.55;
  font-size: 14px;
}
.preview-table th {
  width: 110px;
  background: #f1f5f9;
  font-weight: 800;
}
.preview-items-table th {
  width: auto;
  background: #eaf2ff;
  text-align: center;
}
.preview-main-table {
  min-width: 0;
  width: 100%;
}
.preview-main-table th:nth-child(1),
.preview-main-table td:nth-child(1) {
  width: 10%;
  text-align: center;
  font-weight: 800;
}
.preview-main-table th:nth-child(2),
.preview-main-table td:nth-child(2) {
  width: 22%;
}
.preview-main-table th:nth-child(3),
.preview-main-table td:nth-child(3),
.preview-main-table th:nth-child(4),
.preview-main-table td:nth-child(4) {
  width: 13%;
  text-align: center;
}
.preview-main-table th:nth-child(5),
.preview-main-table td:nth-child(5) {
  width: 14%;
}
.preview-main-table th:nth-child(7),
.preview-main-table td:nth-child(7) {
  width: 15%;
}
.preview-main-table td {
  height: 118px;
  background: #fff;
}
.preview-image-link {
  color: inherit;
  text-decoration: none;
}
.preview-ref-image {
  width: 108px;
  margin: 0 8px 8px 0;
  display: inline-block;
  overflow: hidden;
  border: 1px solid #d6dee9;
  border-radius: 8px;
  background: #fff;
  vertical-align: top;
}
.preview-main-table .preview-ref-image {
  width: 100%;
  max-width: 138px;
  margin: 0 auto;
}
.preview-ref-image img {
  width: 100%;
  height: 78px;
  display: block;
  object-fit: cover;
}
.preview-main-table .preview-ref-image img {
  height: 92px;
}
.preview-kind-size {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.preview-kind-size strong {
  display: block;
}
.preview-kind-size span {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid #d6dee9;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.preview-ref-image figcaption {
  padding: 4px 6px;
  color: #64748b;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.preview-aplus-module-list {
  display: grid;
  gap: 14px;
}
.preview-aplus-module-card {
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(31, 42, 68, .05);
}
.preview-aplus-module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid #d5deea;
  background: #e6f0ff;
}
.preview-aplus-module-head span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.preview-aplus-module-head strong {
  color: #13223a;
  font-size: 18px;
}
.preview-aplus-module-head em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}
.preview-aplus-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 1fr);
  gap: 12px;
  padding: 12px;
}
.preview-aplus-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  align-content: start;
}
.preview-aplus-slot-image {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.preview-aplus-slot-image img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: contain;
  border: 1px solid #c8d4e3;
  border-radius: 7px;
  background: #fff;
}
.preview-aplus-slot-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed #c8d4e3;
  border-radius: 7px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}
.preview-aplus-slot-empty b,
.preview-aplus-slot-empty span {
  display: block;
}
.preview-aplus-brief {
  display: grid;
  gap: 8px;
  align-content: start;
}
.preview-aplus-brief section {
  padding: 10px;
  border: 1px solid #dbe5f2;
  border-radius: 7px;
  background: #f8fbff;
}
.preview-aplus-brief section.copy {
  border-color: #fed7aa;
  background: #fffaf0;
}
.preview-aplus-brief section.translation {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.preview-aplus-brief b {
  display: block;
  margin-bottom: 5px;
  color: #13223a;
  font-size: 13px;
}
.preview-aplus-brief p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}
.art-standards-card {
  width: min(1160px, calc(100vw - 40px));
  max-height: calc(100vh - 100px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.art-standards-card .modal-head {
  margin: 0;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #172033, #1d4ed8);
}
.art-standards-card .modal-head p {
  color: rgba(255, 255, 255, .76);
}
.art-standards-card .icon-button {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

/* Art request workbench visual refresh: clearer hierarchy for operators and designers. */
#artModule {
  background: #eef3f8;
}
#artModule .art-workbench {
  background: #eef3f8;
}
#artModule .art-sidebar,
#artModule .art-editor,
#artModule .art-sheet-block,
#artModule .art-preview-content {
  border-color: #cfd9e6;
}
#artModule .art-sidebar {
  background: #ffffff;
}
#artModule .art-side-head {
  background: #fbfcff;
}
#artModule .art-side-head h1 {
  color: #101827;
  font-size: 25px;
  line-height: 1.15;
}
#artModule #newArtRequestBtn {
  width: 92px;
  min-width: 92px;
  height: 44px;
  border-color: #1d4ed8;
  background: #2563eb;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .22);
}
#artModule .art-standards-button {
  height: 44px;
  font-size: 16px;
  font-weight: 900;
}
#artModule .art-request-card {
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
#artModule .art-request-card:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
#artModule .art-request-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 4px 0 0 #2563eb, 0 8px 22px rgba(37, 99, 235, .12);
}
#artModule .art-editor {
  padding: 14px;
  background: #f3f6fa;
}
#artModule .art-editor-head {
  position: sticky;
  top: -14px;
  z-index: 8;
  margin: -14px -14px 14px;
  padding: 16px 14px 14px;
  background: rgba(248, 250, 252, .96);
  border-bottom-color: #d6dee9;
  box-shadow: 0 10px 24px rgba(31, 42, 68, .06);
  backdrop-filter: blur(6px);
}
#artModule .art-editor-head h2 {
  color: #0f172a;
  font-size: 26px;
  line-height: 1.2;
}
#artModule .art-editor-actions button,
#artModule .art-card-actions button {
  width: auto;
  min-width: 86px;
  height: 36px;
  padding: 0 12px;
}
#artModule .art-sheet-block {
  margin-top: 14px;
  box-shadow: 0 8px 22px rgba(31, 42, 68, .055);
}
#artModule .art-sheet-band {
  padding: 11px 14px;
  background: #e6f0ff;
  color: #13223a;
  border-bottom-color: #bfd3f0;
  box-shadow: inset 5px 0 0 #2563eb;
}
#artModule .art-section-head {
  padding: 12px 14px;
  border-bottom: 1px solid #d5deea;
  background: #ffffff;
}
#artModule .art-section-head h3 {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}
#artModule .art-sheet-table th {
  background: #eef3f8;
  color: #162033;
}
#artModule .art-sheet-table input,
#artModule .art-sheet-table textarea,
#artModule .art-sheet-table select {
  border-color: #c8d4e3;
}
#artModule .art-sheet-table input:focus,
#artModule .art-sheet-table textarea:focus,
#artModule .art-sheet-table select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
#artModule .art-items-sheet .art-sheet-table {
  border-top: 0;
}
#artModule .art-items-sheet .art-sheet-table thead th:nth-child(1),
#artModule .art-items-sheet .art-sheet-table thead th:nth-child(2),
#artModule .art-items-sheet .art-sheet-table thead th:nth-child(3),
#artModule .art-items-sheet .art-sheet-table thead th:nth-child(4),
#artModule .art-items-sheet .art-sheet-table thead th:nth-child(5) {
  background: #dbeafe;
  color: #13223a;
}
#artModule .art-items-sheet .art-sheet-table thead th:nth-child(6),
#artModule .art-items-sheet .art-sheet-table thead th:nth-child(7) {
  background: #ffedd5;
  color: #7c2d12;
}
#artModule .main-art-item-row td {
  background: #ffffff;
}
#artModule .main-art-item-row:nth-child(even) td {
  background: #fbfdff;
}
#artModule .main-art-item-row td:nth-child(2),
#artModule .main-art-item-row td:nth-child(3),
#artModule .main-art-item-row td:nth-child(4),
#artModule .main-art-item-row td:nth-child(5) {
  background: #f8fbff;
}
#artModule .main-art-item-row td:nth-child(6),
#artModule .main-art-item-row td:nth-child(7) {
  background: #fffaf0;
}
#artModule .art-kind-size-stack .art-kind-input {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
#artModule .art-kind-size-stack .art-size-input {
  border-color: #d5deea;
  background: #f8fafc;
  color: #475569;
}
#artModule .preview-sheet-title {
  padding: 16px 18px;
  background: #13223a;
  font-size: 22px;
}
#artModule .preview-block h3 {
  background: #e6f0ff;
  border-color: #bfd3f0;
  box-shadow: inset 5px 0 0 #2563eb;
}
#artModule .preview-table th {
  background: #eef3f8;
  color: #162033;
}
#artModule .preview-main-table thead th:nth-child(1),
#artModule .preview-main-table thead th:nth-child(2),
#artModule .preview-main-table thead th:nth-child(3),
#artModule .preview-main-table thead th:nth-child(4),
#artModule .preview-main-table thead th:nth-child(5) {
  background: #dbeafe;
}
#artModule .preview-main-table thead th:nth-child(6),
#artModule .preview-main-table thead th:nth-child(7) {
  background: #ffedd5;
  color: #7c2d12;
}
#artModule .preview-main-table tbody td:nth-child(1) {
  background: #f1f5f9;
}
#artModule .preview-main-table tbody td:nth-child(2),
#artModule .preview-main-table tbody td:nth-child(3),
#artModule .preview-main-table tbody td:nth-child(4),
#artModule .preview-main-table tbody td:nth-child(5) {
  background: #f8fbff;
}
#artModule .preview-main-table tbody td:nth-child(6),
#artModule .preview-main-table tbody td:nth-child(7) {
  background: #fffaf0;
}
#artModule .preview-ref-image {
  border-color: #c8d4e3;
  box-shadow: 0 4px 12px rgba(31, 42, 68, .08);
}
.modal-card.art-research-card {
  top: 28px;
  left: 50%;
  right: auto;
  width: min(1120px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-50%);
}
.art-research-card .modal-head {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #d5deea;
  background: #f8fbff;
}
.art-research-card .modal-head h2 {
  font-size: 22px;
}
.art-research-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.art-research-head-actions button {
  width: auto;
  min-width: 88px;
  height: 36px;
  padding: 0 12px;
}
.art-research-head-actions .icon-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
}
.art-research-entry {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.art-research-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #eef3f8;
}
.art-research-item {
  display: grid;
  grid-template-columns: 42px 230px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 42, 68, .06);
}
.art-research-order {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #13223a;
  color: #fff;
  font-weight: 900;
}
.art-research-media {
  min-width: 0;
}
.art-research-image {
  min-height: 190px;
  border: 1px dashed #8aa4c3;
  border-radius: 7px;
  background: #fbfdff;
}
.art-research-image.empty {
  display: grid;
  place-items: center;
  padding: 14px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}
.art-research-image.empty label {
  color: #1d4ed8;
  font-weight: 900;
  cursor: pointer;
}
.art-research-image.empty span {
  display: block;
  margin-top: 6px;
}
.art-research-image input {
  display: none;
}
.art-research-image.filled {
  position: relative;
  overflow: hidden;
  border-style: solid;
}
.art-research-image.filled a,
.art-research-image.filled img {
  display: block;
  width: 100%;
  height: 190px;
}
.art-research-image.filled img {
  object-fit: cover;
}
.art-remove-research-image {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #be123c;
}
.art-research-fields {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.art-research-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.art-research-fields input,
.art-research-fields textarea {
  margin: 0;
  border-color: #c8d4e3;
  border-radius: 6px;
  font-size: 14px;
}
.art-research-fields textarea {
  min-height: 68px;
}
.art-research-fields textarea[data-research-field="analysis"] {
  min-height: 96px;
  background: #fffaf0;
}
.art-research-fields textarea[data-research-field="takeaway"] {
  min-height: 74px;
  background: #f0fdf4;
}
.art-remove-research {
  width: 58px;
  min-width: 58px;
  height: 34px;
  padding: 0 8px;
}
.preview-research-block h3 {
  box-shadow: inset 5px 0 0 #f59e0b;
}
.preview-research-list {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
}
.preview-research-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 12px 12px 12px 46px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 42, 68, .055);
}
.preview-research-index {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f59e0b;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}
.preview-research-media {
  min-width: 0;
}
.preview-research-image-link {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.preview-research-image-link img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: contain;
  border: 1px solid #c8d4e3;
  border-radius: 7px;
  background: #ffffff;
}
.preview-research-empty-image {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #c8d4e3;
  border-radius: 7px;
  background: #f8fafc;
  color: #94a3b8;
  font-weight: 800;
}
.preview-research-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.preview-research-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.preview-research-title-row strong {
  color: #13223a;
  font-size: 17px;
  line-height: 1.25;
}
.preview-research-title-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}
.preview-research-link {
  min-width: 0;
  color: #2563eb;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.preview-research-link a {
  color: #2563eb;
}
.preview-research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.preview-research-grid section {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe5f2;
  border-radius: 7px;
  background: #f8fbff;
}
.preview-research-grid section.analysis {
  border-color: #fed7aa;
  background: #fffaf0;
}
.preview-research-grid section.takeaway {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.preview-research-grid b {
  display: block;
  margin-bottom: 6px;
  color: #13223a;
  font-size: 13px;
}
.preview-research-grid p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}
.preview-research-empty {
  padding: 18px;
  border: 1px dashed #c8d4e3;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}
@media (max-width: 980px) {
  .art-research-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .art-research-media,
  .art-research-fields,
  .art-remove-research {
    grid-column: 2;
  }
  .art-remove-research {
    width: 72px;
  }
  .preview-research-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview-research-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.preview-muted {
  color: #64748b;
  font-size: 12px;
}
.art-standards-scroll {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #f6f8fb;
}
.standard-hero {
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eef6ff;
}
.standard-hero-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.standard-hero-title span {
  color: #172033;
  font-size: 20px;
  font-weight: 900;
}
.standard-hero-title strong {
  color: #be123c;
  font-size: 13px;
}
.standard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}
.standard-kpi {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d6dee9;
  border-radius: 8px;
  background: #fff;
}
.standard-kpi.primary {
  border-color: #93c5fd;
  background: #eff6ff;
}
.standard-kpi.danger {
  border-color: #fecdd3;
  background: #fff1f2;
}
.standard-kpi b {
  display: block;
  color: #1d4ed8;
  font-size: 30px;
  line-height: 1.15;
  white-space: nowrap;
}
.standard-kpi.danger b {
  color: #be123c;
}
.standard-kpi span {
  display: block;
  margin-top: 6px;
  color: #475569;
  font-size: 13px;
}
.standard-alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.standard-alert {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5eaf2;
  background: #fff;
}
.standard-alert b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
}
.standard-alert span {
  color: #334155;
  font-size: 15px;
  line-height: 1.5;
}
.standard-alert.red {
  border-color: #fecdd3;
  background: #fff7f8;
}
.standard-alert.red b {
  background: #be123c;
  color: #fff;
}
.standard-alert.amber {
  border-color: #fed7aa;
  background: #fff7ed;
}
.standard-alert.amber b {
  background: #9a3412;
  color: #fff;
}
.art-standards-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 28px rgba(31, 42, 68, .08);
}
.art-standards-table th,
.art-standards-table td {
  border: 1px solid #cfd8e5;
  padding: 12px;
  vertical-align: top;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.6;
}
.art-standards-table th {
  background: #dbeafe;
  color: #172033;
  font-weight: 800;
}
.art-standards-table .standard-title {
  background: #1d4ed8;
  color: #fff;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0;
}
.art-standards-table .standard-long {
  background: #fff7f8;
  border-color: #fecdd3;
  line-height: 1.7;
}
.art-standards-table .standard-label {
  background: #f8fafc;
  color: #172033;
  font-weight: 800;
}
.art-standards-table .standard-ai-head {
  background: #be123c;
  color: #fff;
  font-size: 17px;
}
.standard-red {
  color: #be123c;
  font-weight: 900;
}
.standard-link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.standard-link:hover {
  color: #be123c;
}
.art-guide {
  margin-top: 18px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.art-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.art-guide-grid span {
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 7px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .36);
}
.modal-card {
  position: absolute;
  right: 24px;
  top: 78px;
  width: 430px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
  padding: 16px;
}
.modal-card.art-standards-card {
  left: 50%;
  right: auto;
  top: 28px;
  width: min(1320px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 56px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-50%);
}
.modal-card.migration-card {
  left: 50%;
  right: auto;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
}
.migration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.migration-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.migration-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.migration-box p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.migration-box input[type="file"] {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.migration-box textarea {
  min-height: 140px;
  margin-bottom: 10px;
  font-family: "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
}
.history-modal-card {
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 120px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
}
.history-modal-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.modal-card.art-image-viewer-card {
  top: 24px;
  left: 50%;
  right: auto;
  width: min(1320px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-50%);
}
.art-image-viewer-card .modal-head {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #d6dee9;
}
.art-image-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.art-image-viewer-actions button {
  width: auto;
  min-width: 72px;
  height: 34px;
  padding: 0 12px;
}
.art-image-viewer-actions .icon-button {
  min-width: 34px;
  width: 34px;
  padding: 0;
}
.art-image-viewer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #0f172a;
}
.art-image-viewer-body img {
  width: 100%;
  height: auto;
  min-width: 420px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
}
.announcement-card {
  width: min(620px, calc(100vw - 32px));
}
.announcement-content {
  padding: 2px 0 0;
  color: #273449;
  font-size: 15px;
  line-height: 1.8;
}
.announcement-content p {
  margin: 0 0 12px;
}
.announcement-content strong {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #b7ede1;
  border-radius: 8px;
  background: #e9fbf7;
  color: #0f766e;
  font-size: 16px;
}
.history-modal-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.history-modal-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-head h2 {
  margin: 0;
  font-size: 18px;
}
.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}
.model-list {
  display: grid;
  gap: 9px;
}
.model-option {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  text-align: left;
  border-radius: 8px;
}
.model-option.active {
  border-color: var(--blue);
  background: #eff6ff;
}
.model-option.unavailable {
  opacity: .58;
}
.model-option-title {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}
.model-option-desc {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  font-weight: 400;
}
.model-status {
  font-size: 12px;
  color: var(--green);
  background: #e9fbf7;
  border: 1px solid #b7ede1;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.model-status.off {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.modal-actions button {
  width: auto;
  min-width: 110px;
  padding: 0 16px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(380px, 430px) 1fr;
  gap: 18px;
  padding: 18px;
  height: calc(100vh - 76px);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 0;
}
.input-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.input-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 18px 12px;
}
.action-dock {
  flex: 0 0 auto;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), #fff);
  box-shadow: 0 -12px 28px rgba(31, 42, 68, .08);
}
.output-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-head h1 {
  margin: 0;
  font-size: 22px;
}
.panel-head p {
  margin: 7px 0 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}
.field {
  display: block;
  margin-bottom: 16px;
}
.field span, .source-title {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.source-hint {
  margin: -2px 0 10px;
  padding: 8px 9px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #eef6ff;
  color: #365f99;
  font-size: 12px;
  line-height: 1.55;
}
select, textarea, input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}
select, input {
  height: 40px;
  padding: 0 10px;
}
textarea {
  min-height: 96px;
  margin-top: 8px;
  padding: 10px;
  resize: vertical;
  line-height: 1.5;
}
textarea.diff {
  min-height: 105px;
}
select:focus, textarea:focus, input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.source-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.source-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}
button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  height: 42px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { border-color: var(--blue); }
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
button.primary:hover { background: var(--blue-dark); }
button.ghost {
  background: var(--soft-blue);
  border-color: #c7dbff;
  color: var(--blue-dark);
}
button.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}
button.danger:hover {
  border-color: #fb7185;
}
button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  margin-left: auto;
  border-radius: 7px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  white-space: nowrap;
}
.progress span {
  width: 18px;
  height: 18px;
  border: 3px solid #c7dbff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.tab {
  width: auto;
  height: 36px;
  padding: 0 14px;
  background: #fff;
}
.tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.tab-pane {
  display: none;
  overflow: auto;
  padding: 16px;
  flex: 1;
}
.tab-pane.active {
  display: block;
}
.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfe;
}
.competitor {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}
.competitor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.title-text {
  font-weight: 800;
  line-height: 1.5;
}
.meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.warn {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
}
.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
}
.bullets li {
  margin: 6px 0;
  line-height: 1.55;
}
.listing-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}
.listing-col-item {
  width: 132px;
}
.listing-col-en {
  width: 52%;
}
.listing-col-cn {
  width: auto;
}
.listing-table th, .listing-table td {
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  padding: 13px 11px;
  line-height: 1.55;
  overflow: visible;
}
.listing-table th {
  background: #f8fafc;
  font-size: 13px;
  color: #273449;
}
.listing-table td:first-child {
  width: 132px;
  min-width: 132px;
}
.listing-table tbody tr {
  transition: background .15s ease;
}
.listing-table tbody tr:hover {
  background: #f8fafc;
}
.listing-row-title {
  background: #f5f9ff;
}
.listing-row-highlight {
  background: #f3fbf8;
}
.listing-row-bullet {
  background: #fffaf0;
}
.listing-row-description {
  background: #f8f5ff;
}
.listing-row-title td:first-child {
  border-left: 4px solid #2563eb;
}
.listing-row-highlight td:first-child {
  border-left: 4px solid #0f766e;
}
.listing-row-bullet td:first-child {
  border-left: 4px solid #d97706;
}
.listing-row-description td:first-child {
  border-left: 4px solid #7c3aed;
}
.listing-item-badge {
  min-width: 92px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.rewrite-row {
  width: 92px;
  height: 28px;
  display: block;
  margin-top: 8px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid #c7dbff;
  background: #ffffff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}
.rewrite-row:hover {
  background: #eff6ff;
  border-color: var(--blue);
}
.listing-badge-title {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.listing-badge-highlight {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}
.listing-badge-bullet {
  background: #ffedd5;
  border-color: #fed7aa;
  color: #9a3412;
}
.listing-badge-description {
  background: #ede9fe;
  border-color: #ddd6fe;
  color: #6d28d9;
}
.listing-badge-other {
  background: #eef2f7;
  border-color: #dbe3ee;
  color: #475569;
}
.listing-cell {
  position: relative;
  min-height: 34px;
  padding-right: 72px;
}
.listing-cell-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.copy-cell {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  min-width: 58px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, .82);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}
.copy-cell:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: #eff6ff;
}
.copy-cell.copied {
  border-color: #99f6e4;
  background: #ccfbf1;
  color: #0f766e;
}
.muted-cell {
  color: #94a3b8;
}
.history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.history-head h2 {
  margin: 0;
  font-size: 18px;
}
.history-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.history-head button {
  width: auto;
  min-width: 80px;
  padding: 0 14px;
}

.mindmap-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) 1fr;
  gap: 18px;
  height: calc(100vh - 142px);
  min-height: 560px;
}
.mindmap-sidebar,
.mindmap-workspace {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mindmap-sidebar {
  padding: 18px;
  max-height: 100%;
}
.mindmap-workspace {
  padding: 14px;
  min-height: 0;
  height: 100%;
}
.mindmap-panel-head h1,
.mindmap-toolbar h2 {
  margin: 0;
  font-size: 22px;
}
.mindmap-panel-head p,
.mindmap-toolbar p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}
.mindmap-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.mindmap-actions.secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}
.mindmap-actions button {
  width: 100%;
}
.mindmap-file-actions {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.mindmap-file-actions button {
  width: 100%;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.mindmap-status {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.mindmap-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mindmap-zoom {
  display: inline-flex;
  gap: 8px;
}
.mindmap-zoom button {
  width: auto;
  min-width: 54px;
  padding: 0 12px;
}
.mindmap-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px 10px 10px;
}
.mindmap-canvas {
  transform-origin: top left;
  min-width: 760px;
  min-height: 520px;
  padding-bottom: 30px;
}
.mind-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mind-node.depth-0 {
  align-items: center;
}
.mind-node.depth-0 > .mind-node-card {
  width: min(420px, 100%);
}
.mind-children {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 18px 0 0;
}
.mind-node-card {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(31, 42, 68, .08);
}
.mind-node-card b {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}
.mind-node-card span {
  display: block;
  margin-top: 7px;
  color: rgba(23, 32, 51, .72);
  font-size: 12px;
  line-height: 1.45;
}
.mind-node-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.mind-color-blue { background: #eff6ff; }
.mind-color-green { background: #ecfdf5; }
.mind-color-orange { background: #fff7ed; }
.mind-color-purple { background: #f5f3ff; }
.mind-color-gray { background: #f8fafc; }

/* Basic WPS-like tree layout: content stays in the canvas, while the viewport scrolls. */
.mindmap-canvas-wrap {
  cursor: grab;
  background: #fbfcfe;
  user-select: none;
}
.mindmap-canvas-wrap.panning {
  cursor: grabbing;
}
.mindmap-zoom-float {
  position: absolute;
  right: 16px;
  bottom: 58px;
  z-index: 8;
  display: inline-flex;
  gap: 0;
  border: 1px solid #d5dce6;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 3px 10px rgba(34, 52, 73, .12);
  overflow: hidden;
}
.mindmap-zoom-float button {
  width: 34px;
  min-width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-right: 1px solid #e4e8ee;
  border-radius: 0;
  background: transparent;
  color: #5c6878;
  font-size: 14px;
}
.mindmap-zoom-float button:last-child {
  border-right: 0;
}
.mindmap-zoom-float button:nth-child(2) {
  width: 58px;
  min-width: 58px;
  font-size: 11px;
}
.mindmap-zoom-float button:hover {
  background: #edf4ff;
  color: #2868c7;
}
.mindmap-canvas {
  width: max-content;
  min-width: 0;
  min-height: 0;
  padding: 48px 64px 80px;
  transform-origin: top left;
}
.mindmap-canvas.free-layout {
  width: max-content;
  min-width: 0;
  min-height: 0;
}
.mind-free-stage {
  position: relative;
  width: max(1500px, 100%);
  height: max(2200px, 100%);
  min-width: 1500px;
  min-height: 2200px;
  padding: 0;
}
.mind-free-node {
  position: absolute;
  z-index: 1;
  width: 330px;
  transform: translate(-50%, -50%);
}
.mind-free-node .mind-node-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mind-free-node .mind-node-card {
  width: 300px;
  max-width: 300px;
}
.mind-free-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.mind-tree-stage {
  width: max-content;
  min-width: 980px;
  min-height: 520px;
  padding: 40px;
  display: flex;
  align-items: flex-start;
}
.mind-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
}
.mind-node.depth-0 {
  padding-top: 150px;
}
.mind-node-row {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mind-node-card {
  width: auto;
  min-width: 156px;
  max-width: 300px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  box-shadow: 0 5px 14px rgba(31, 42, 68, .08);
  text-align: left;
  cursor: grab;
  user-select: none;
}
.mind-node-card:active,
.mind-node-card.dragging {
  cursor: grabbing;
  opacity: .65;
}
.mind-node-card b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.mind-node-card span {
  display: block;
  margin-top: 5px;
  color: #536174;
  font-size: 11px;
  line-height: 1.45;
  max-width: 270px;
}
.mind-node-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14), 0 7px 18px rgba(31, 42, 68, .12);
}
.mind-node-card.drop-target {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .18);
}
.mind-collapse {
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  line-height: 17px;
  z-index: 2;
}
.mind-collapse:hover {
  background: #eff6ff;
  color: var(--blue);
}
.mind-children {
  position: relative;
  width: auto;
  min-width: 390px;
  margin: 14px 0 0 58px;
  padding: 10px 0 10px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.mind-children::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cbd5e1;
}
.mind-node:not(.depth-0) > .mind-node-row::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 50%;
  width: 38px;
  height: 2px;
  background: #cbd5e1;
}
.mind-node.depth-0 > .mind-node-row .mind-node-card {
  min-width: 220px;
  padding: 15px 18px;
  background: #3b82f6;
  border-color: #2563eb;
  color: #fff;
}
.mind-node.depth-0 > .mind-node-row .mind-node-card b,
.mind-node.depth-0 > .mind-node-row .mind-node-card span {
  color: #fff;
}
.mind-node.depth-0 > .mind-children {
  margin-left: 92px;
  min-width: 420px;
}
.mind-color-pink { background: #fce7f3; border-left-color: #ec4899; }
.mind-color-red { background: #fee2e2; border-left-color: #ef4444; }
.mind-color-teal { background: #ccfbf1; border-left-color: #14b8a6; }
.mind-color-indigo { background: #e0e7ff; border-left-color: #6366f1; }
.mind-color-yellow { background: #fef3c7; border-left-color: #f59e0b; }
.mind-color-green { background: #dcfce7; border-left-color: #65a30d; }
.mind-color-orange { background: #ffedd5; border-left-color: #f97316; }
.mind-color-blue { background: #dbeafe; border-left-color: #3b82f6; }
.mind-color-purple { background: #f3e8ff; border-left-color: #a855f7; }
.mind-color-gray { background: #f1f5f9; border-left-color: #64748b; }

/* Mind-map workbench: a compact WPS-like editor surface, isolated from Listing UI. */
#mindmapModule {
  background: #f2f4f7;
}
#mindmapModule .mindmap-layout {
  height: calc(100vh - 132px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.mindmap-appbar {
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e2e6ec;
  color: #202938;
}
.mindmap-file-title {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mindmap-file-title > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.mindmap-file-title strong {
  font-size: 14px;
  line-height: 1.2;
}
.mindmap-file-title > div > span {
  max-width: 180px;
  overflow: hidden;
  color: #7b8492;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mindmap-app-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eaf2ff;
  color: #3975d7;
  font-size: 15px;
  font-weight: 800;
}
.mindmap-toolbar-groups {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mindmap-tool-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 18px;
  border-right: 1px solid #edf0f3;
}
.mindmap-tool-group:last-child {
  border-right: 0;
}
.mind-tool-button {
  width: auto;
  min-width: 50px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #536071;
  font-size: 12px;
  font-weight: 600;
}
.mind-tool-button:hover {
  border-color: #dbe5f4;
  background: #f3f7fd;
  color: #2563c7;
}
.mind-tool-button.accent {
  background: #eaf2ff;
  color: #2868c7;
}
.mind-tool-button.danger {
  color: #b34c55;
}
.mindmap-toolbar-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  overflow: hidden;
  color: #929aa6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mind-save-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #72b58a;
}
.mindmap-body {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}
.mindmap-sidebar {
  padding: 0;
  border: 0;
  border-right: 1px solid #dfe4ea;
  border-radius: 0;
  background: #fff;
  box-shadow: 3px 0 10px rgba(36, 50, 70, .03);
}
.mind-sidebar-tabs {
  height: 44px;
  display: flex;
  align-items: stretch;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f3;
}
.mind-sidebar-tab {
  width: auto;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #87909c;
  font-size: 13px;
}
.mind-sidebar-tab.active {
  border-bottom-color: #3975d7;
  color: #2d66bf;
  font-weight: 700;
}
.mindmap-outline {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px 8px 12px;
}
.mind-outline-item {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px 0 calc(7px + var(--outline-depth) * 15px);
  border-radius: 5px;
  color: #566274;
  cursor: pointer;
  font-size: 12px;
}
.mind-outline-item:hover {
  background: #f3f6fa;
}
.mind-outline-item.selected {
  background: #eaf2ff;
  color: #245fab;
  font-weight: 700;
}
.mind-outline-toggle,
.mind-outline-spacer {
  width: 16px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}
.mind-outline-toggle {
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #9099a6;
  font-size: 12px;
}
.mind-outline-toggle:hover {
  background: #dbe8fb;
  color: #2868c7;
}
.mind-outline-color {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border: 0;
  border-radius: 2px;
}
.mind-outline-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mindmap-inspector {
  flex: 0 0 auto;
  padding: 13px 14px 8px;
  border-top: 1px solid #edf0f3;
  background: #fbfcfe;
}
.mind-inspector-title {
  margin-bottom: 10px;
  color: #485467;
  font-size: 12px;
  font-weight: 800;
}
.mind-field {
  display: block;
  margin-bottom: 9px;
}
.mind-field > span {
  display: block;
  margin-bottom: 4px;
  color: #8a94a2;
  font-size: 11px;
}
.mind-field input,
.mind-field select,
.mind-field textarea {
  width: 100%;
  height: 31px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  background: #fff;
  color: #344054;
  font-size: 12px;
}
.mind-field textarea {
  height: 45px;
  padding: 7px 8px;
  resize: vertical;
}
.mind-reset-button {
  width: calc(100% - 28px);
  height: 30px;
  margin: 5px 14px 12px;
  border: 1px solid #e1e6ec;
  border-radius: 4px;
  background: #fff;
  color: #737d8b;
  font-size: 11px;
}
.mindmap-workspace {
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f4f6f8;
}
.mindmap-canvas-wrap {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0;
  overflow: auto;
  background-color: #f5f7f9;
  background-image: radial-gradient(#dbe1e8 .8px, transparent .8px);
  background-size: 18px 18px;
  cursor: grab;
}
.mindmap-canvas-wrap.panning {
  cursor: grabbing;
}
.mindmap-canvas {
  padding: 0;
}
.mindmap-canvas-hint {
  position: absolute;
  right: 16px;
  bottom: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(218, 224, 232, .9);
  border-radius: 4px;
  background: rgba(255, 255, 255, .76);
  color: #a0a8b3;
  font-size: 10px;
  pointer-events: none;
}
.mindmap-bottom-bar {
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-top: 1px solid #dfe4ea;
  background: #fff;
}
.mindmap-selection-label {
  color: #8892a0;
  font-size: 11px;
}
.mindmap-bottom-bar .mindmap-zoom {
  gap: 0;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  overflow: hidden;
}
.mindmap-bottom-bar .mindmap-zoom button {
  min-width: 29px;
  height: 26px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid #e6eaf0;
  border-radius: 0;
  background: #fff;
  color: #657181;
  font-size: 12px;
}
.mindmap-bottom-bar .mindmap-zoom button:last-child {
  border-right: 0;
}
.mindmap-bottom-bar .mindmap-zoom button:hover {
  background: #f1f5fb;
  color: #2868c7;
}
.mind-free-stage {
  min-width: 1600px;
  min-height: 1100px;
}
.mind-free-node .mind-node-card {
  border: 1px solid #d3dbe6;
  border-left: 3px solid #5d8edb;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(38, 54, 73, .09);
}
.mind-free-node .mind-node-card:hover {
  border-color: #8db3eb;
  box-shadow: 0 3px 10px rgba(47, 93, 154, .14);
}
.mind-free-node .mind-node-card.selected {
  border-color: #3474d1;
  box-shadow: 0 0 0 2px rgba(52, 116, 209, .18), 0 3px 10px rgba(47, 93, 154, .14);
}
.mind-free-node .mind-node-card b {
  color: #334155;
  font-size: 12px;
}
.mind-free-node .mind-node-card span {
  color: #7b8796;
  font-size: 10px;
}
.mind-free-node[data-node-id="root"] .mind-node-card {
  min-width: 220px;
  padding: 13px 17px;
  border: 0;
  border-radius: 6px;
  background: #5a8fd8;
  box-shadow: 0 4px 14px rgba(50, 92, 151, .22);
}
.mind-free-node[data-node-id="root"] .mind-node-card b,
.mind-free-node[data-node-id="root"] .mind-node-card span {
  color: #fff;
}

/* WPS-like mind-map template surface. */
#mindmapModule {
  --mind-template-green: #6f9f8e;
  --mind-template-green-dark: #4f7f70;
  --mind-template-green-soft: #eef6f2;
  --mind-template-text: #24433d;
  --mind-template-line: #6f9f8e;
}
#mindmapModule .mind-free-node {
  width: auto;
  transform: translate(-50%, -50%);
}
#mindmapModule .mind-free-node .mind-node-row {
  gap: 5px;
}
#mindmapModule .mind-free-node .mind-node-card {
  width: auto;
  min-width: 118px;
  max-width: 360px;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(111, 159, 142, .55);
  border-left: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  color: var(--mind-template-text);
}
#mindmapModule .mind-free-node .mind-node-card b {
  color: var(--mind-template-text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#mindmapModule .mind-free-node .mind-node-card span {
  margin-top: 2px;
  color: #55746d;
  font-size: 10px;
  line-height: 1.35;
}
#mindmapModule .mind-free-node.depth-0 .mind-node-card,
#mindmapModule .mind-free-node.depth-1 .mind-node-card {
  min-width: 120px;
  max-width: 180px;
  padding: 6px 10px;
  border-color: var(--mind-template-green);
  border-radius: 4px;
  background: var(--mind-template-green);
  color: #fff;
}
#mindmapModule .mind-free-node.depth-0 .mind-node-card b,
#mindmapModule .mind-free-node.depth-0 .mind-node-card span,
#mindmapModule .mind-free-node.depth-1 .mind-node-card b,
#mindmapModule .mind-free-node.depth-1 .mind-node-card span {
  color: #fff;
  font-weight: 700;
}
#mindmapModule .mind-free-node.depth-2 .mind-node-card {
  border-color: rgba(111, 159, 142, .72);
  background: #fff;
}
#mindmapModule .mind-free-node.depth-3 .mind-node-card,
#mindmapModule .mind-free-node.depth-4 .mind-node-card,
#mindmapModule .mind-free-node.depth-5 .mind-node-card,
#mindmapModule .mind-free-node.depth-6 .mind-node-card {
  border-color: rgba(111, 159, 142, .72);
  background: #fff;
}
#mindmapModule .mind-free-node .mind-node-card:hover {
  border-color: var(--mind-template-green-dark);
  box-shadow: 0 1px 5px rgba(78, 122, 106, .12);
}
#mindmapModule .mind-free-node .mind-node-card.selected {
  border-color: #2586ff;
  box-shadow: 0 0 0 2px rgba(37, 134, 255, .22);
}
#mindmapModule .mind-collapse {
  width: 15px;
  min-width: 15px;
  height: 15px;
  border: 1px solid rgba(111, 159, 142, .65);
  background: #fff;
  color: var(--mind-template-green-dark);
  font-size: 11px;
  line-height: 12px;
}
#mindmapModule .mind-collapse:hover {
  background: var(--mind-template-green-soft);
  color: var(--mind-template-green-dark);
}
#mindmapModule .mind-outline-color {
  background-color: var(--branch, var(--mind-template-green));
}
#mindmapModule .mind-outline-item.selected {
  background: #e8f2ee;
  color: var(--mind-template-green-dark);
}

/* Branch-colored template override: nodes and lines share the first-level branch color. */
#mindmapModule .mind-color-green { --branch: #729B8D; --branch-soft: #EEF5F2; --branch-text: #315F53; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-yellow { --branch: #EED484; --branch-soft: #FCF6E4; --branch-text: #74602A; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-orange { --branch: #E19873; --branch-soft: #FAEEE8; --branch-text: #7A4C38; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-pale { --branch: #DFE8D7; --branch-soft: #F4F8F1; --branch-text: #506B45; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-red { --branch: #C7654E; --branch-soft: #F7EAE7; --branch-text: #73372A; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-teal { --branch: #B0E38F; --branch-soft: #F0FAEA; --branch-text: #4A7934; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-blue { --branch: #86A9CF; --branch-soft: #ECF3FA; --branch-text: #3E5F82; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-purple { --branch: #B4A0C9; --branch-soft: #F2EEF7; --branch-text: #604A76; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-gray { --branch: #AEB7BE; --branch-soft: #F1F3F4; --branch-text: #56626B; background-color: var(--branch); border-left-color: var(--branch); }
#mindmapModule .mind-color-indigo { --branch: #91A1C9; --branch-soft: #EEF1F8; --branch-text: #4B5A82; background-color: var(--branch); border-left-color: var(--branch); }

#mindmapModule .mind-free-node.depth-0 .mind-node-card {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  min-height: 28px;
  padding: 7px 11px;
  border: 1px solid #729B8D;
  border-radius: 4px;
  background: #729B8D;
}
#mindmapModule .mind-free-node.depth-1 .mind-node-card {
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  min-height: 26px;
  padding: 6px 10px;
  border: 1px solid var(--branch);
  border-radius: 4px;
  background: var(--branch);
}
#mindmapModule .mind-free-node.depth-2 .mind-node-card,
#mindmapModule .mind-free-node.depth-3 .mind-node-card,
#mindmapModule .mind-free-node.depth-4 .mind-node-card,
#mindmapModule .mind-free-node.depth-5 .mind-node-card,
#mindmapModule .mind-free-node.depth-6 .mind-node-card {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid var(--branch-soft);
  border-left: 3px solid var(--branch);
  border-radius: 3px;
  background: var(--branch-soft);
}
#mindmapModule .mind-free-node.depth-2 .mind-node-card b,
#mindmapModule .mind-free-node.depth-3 .mind-node-card b,
#mindmapModule .mind-free-node.depth-4 .mind-node-card b,
#mindmapModule .mind-free-node.depth-5 .mind-node-card b,
#mindmapModule .mind-free-node.depth-6 .mind-node-card b {
  color: var(--branch-text);
  font-weight: 500;
}
#mindmapModule .mind-free-node.depth-0 .mind-node-card b,
#mindmapModule .mind-free-node.depth-1 .mind-node-card b {
  color: #fff;
  font-weight: 700;
  text-align: center;
}
#mindmapModule .mind-free-node.depth-1 .mind-color-yellow b,
#mindmapModule .mind-free-node.depth-1 .mind-color-pale b,
#mindmapModule .mind-free-node.depth-1 .mind-color-teal b {
  color: #375043;
}
#mindmapModule .mind-outline-color {
  background-color: var(--branch);
}

@media (max-width: 980px) {
  .module-nav {
    padding: 12px 14px 0;
    flex-wrap: wrap;
  }
  .layout,
  .mindmap-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .mindmap-canvas {
    min-width: 0;
  }
  .mindmap-toolbar,
  .mindmap-actions,
  .mindmap-actions.secondary {
    grid-template-columns: 1fr;
    display: grid;
  }
  .mindmap-toolbar {
    display: grid;
  }
  .topbar {
    height: auto;
    padding: 14px;
    align-items: flex-start;
    gap: 12px;
  }
  .account {
    align-items: flex-end;
    flex-direction: column;
  }
  .art-workbench {
    grid-template-columns: 1fr;
  }
  .art-form-grid,
  .art-item-grid,
  .art-guide-grid {
    grid-template-columns: 1fr;
  }
  .standard-kpi-grid,
  .standard-alert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .standard-hero-title,
  .standard-alert {
    display: block;
  }
  .standard-alert span {
    display: block;
    margin-top: 8px;
  }
  .art-form-grid .wide {
    grid-column: auto;
  }
  .art-editor-head,
  .art-item-head {
    flex-direction: column;
    align-items: stretch;
  }
  .art-editor-actions,
  .art-card-actions {
    justify-content: flex-start;
  }
  .art-type-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .modal-card.art-standards-card {
    top: 12px;
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
    max-height: calc(100vh - 24px);
  }
  .art-standards-scroll {
    padding: 12px;
  }
  .standard-kpi-grid,
  .standard-alert-grid {
    grid-template-columns: 1fr;
  }
  .standard-kpi b {
    font-size: 26px;
  }
}

@media (max-width: 980px) {
  .mind-tree-stage {
    min-width: 820px;
    padding: 20px;
  }
  .mindmap-canvas {
    padding: 24px 34px 60px;
  }
}
.history-list {
  display: grid;
  gap: 12px;
}
.history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.history-item h3 {
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.45;
}
.history-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}
.history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.history-open {
  width: auto;
  min-width: 96px;
  height: 36px;
  margin-top: 12px;
  padding: 0 14px;
  background: var(--soft-blue);
  color: var(--blue-dark);
  border-color: #c7dbff;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: "Microsoft YaHei UI", Arial, sans-serif;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .topbar {
    height: auto;
    padding: 14px;
    align-items: flex-start;
    gap: 12px;
  }
  .account {
    align-items: flex-end;
    flex-direction: column;
  }
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: 18px;
  padding: 18px;
  height: calc(100vh - 76px);
}
.admin-users, .admin-detail {
  min-height: 0;
  overflow: hidden;
}
.admin-users {
  display: flex;
  flex-direction: column;
}
.admin-search {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.admin-list {
  overflow: auto;
  padding: 12px;
}
.admin-user-card {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  padding: 12px;
  text-align: left;
  background: #fff;
}
.admin-user-card.active {
  border-color: var(--blue);
  background: #eff6ff;
}
.admin-user-card b,
.admin-user-card span,
.admin-user-card em {
  display: block;
}
.admin-user-card b {
  font-size: 15px;
  color: var(--ink);
}
.admin-user-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.admin-user-card em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.admin-user-card i {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  font-style: normal;
  border-radius: 999px;
  padding: 3px 8px;
}
.admin-user-card i.ok {
  color: var(--green);
  background: #e9fbf7;
}
.admin-user-card i.off {
  color: #be123c;
  background: #fff1f2;
}
.admin-detail {
  overflow: auto;
  padding: 18px;
}
.admin-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-detail-head h1 {
  margin: 0;
  font-size: 24px;
}
.admin-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.admin-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.admin-metrics b {
  display: block;
  font-size: 24px;
}
.admin-metrics span {
  color: var(--muted);
  font-size: 12px;
}
.admin-actions-row {
  display: grid;
  grid-template-columns: 1.2fr 110px 110px 96px 110px;
  gap: 8px;
  margin-bottom: 18px;
}
.admin-actions-row button {
  width: auto;
}
.admin-section {
  margin-top: 18px;
}
.admin-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.admin-record-list {
  display: grid;
  gap: 10px;
}
.record-open {
  width: auto;
  min-width: 110px;
  height: 36px;
  margin-top: 12px;
  padding: 0 14px;
  background: var(--soft-blue);
  color: var(--blue-dark);
  border-color: #c7dbff;
}
.admin-log-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.admin-log-table th,
.admin-log-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px;
  text-align: left;
  font-size: 13px;
}
.admin-log-table th {
  background: #f8fafc;
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .admin-actions-row {
    grid-template-columns: 1fr;
  }
}

/* 2026-08-11 visual refresh: tool-style SaaS skin */
:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e2ee;
  --blue: #1769e0;
  --blue-dark: #0f4fb8;
  --green: #087f70;
  --amber: #b86e00;
  --rose: #b42318;
  --violet: #6941c6;
  --soft-blue: #edf5ff;
  --shadow: 0 18px 46px rgba(16, 24, 40, .10);
  --shadow-soft: 0 10px 28px rgba(16, 24, 40, .07);
  --focus-ring: 0 0 0 3px rgba(23, 105, 224, .14);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef4fb 0, #f7f9fc 220px, #f4f7fb 100%);
}

.auth-view {
  background:
    linear-gradient(180deg, rgba(23, 105, 224, .12), transparent 42%),
    linear-gradient(115deg, rgba(8, 127, 112, .10), transparent 32%),
    #f4f7fb;
}

.auth-card,
.modal-card {
  border-color: rgba(217, 226, 238, .92);
  box-shadow: 0 26px 70px rgba(16, 24, 40, .16);
}

.topbar {
  min-height: 72px;
  height: auto;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(217, 226, 238, .92);
  box-shadow: 0 12px 34px rgba(16, 24, 40, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #101828;
  font-size: 21px;
}

.brand::before {
  content: "L";
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #1769e0, #087f70);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(23, 105, 224, .22);
}

.sub {
  color: #697586;
}

.account {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account strong,
.model-button,
.announcement-button,
.contact-button,
.user-button,
.plain-button {
  box-shadow: 0 4px 12px rgba(16, 24, 40, .05);
}

.module-nav {
  position: sticky;
  top: 72px;
  z-index: 8;
  align-items: center;
  gap: 7px;
  padding: 10px 18px 11px;
  background: rgba(244, 247, 251, .92);
  border-bottom: 1px solid rgba(217, 226, 238, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.module-tab {
  min-width: 118px;
  height: 36px;
  border-color: #d7e0ea;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
}

.module-tab:hover {
  color: var(--blue-dark);
  background: #f7fbff;
  transform: translateY(-1px);
}

.module-tab.active {
  background: #102a43;
  border-color: #102a43;
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 42, 67, .18);
}

.layout {
  grid-template-columns: minmax(390px, 438px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px 18px;
  height: calc(100vh - 129px);
}

.panel,
.product-progress,
.profit-calculator,
.product-management,
.module-placeholder,
.art-sidebar,
.art-editor,
.teambition-launch-card {
  border-color: rgba(217, 226, 238, .95);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
}

.panel {
  overflow: hidden;
}

.panel-head {
  margin: -18px -18px 18px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  border-bottom: 1px solid #edf1f6;
}

.panel-head h1,
.product-progress-head h1,
.teambition-launch-brand h1 {
  color: #101828;
  letter-spacing: 0;
}

.panel-head h1 {
  font-size: 23px;
}

.panel-head p,
.product-progress-head p,
.teambition-launch-brand p {
  color: #697586;
}

.field span,
.source-title,
.profit-field span {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.source-card,
.profit-section,
.product-params,
.product-progress-filters,
.product-management-filters,
.shipping-template-card {
  border: 1px solid #dfe7f1;
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  box-shadow: 0 8px 20px rgba(16, 24, 40, .045);
}

.source-card {
  padding: 14px;
}

.source-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(8, 127, 112, .10);
}

.source-card:first-child .source-title::before {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, .12);
}

.source-hint {
  border-color: #d8eafe;
  background: #f2f8ff;
  color: #315f8e;
}

.shipping-fee-page {
  min-height: calc(100vh - 180px);
  margin: 18px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.shipping-fee-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.shipping-fee-head h1 {
  margin: 0;
  color: #101828;
  font-size: 23px;
  letter-spacing: 0;
}

.shipping-fee-head p {
  margin: 7px 0 0;
  color: #697586;
  font-size: 14px;
  line-height: 1.6;
}

.shipping-fee-head span {
  flex: 0 0 auto;
  border: 1px solid #d8eafe;
  border-radius: 999px;
  background: #f2f8ff;
  color: #315f8e;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.shipping-fee-card {
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .045);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
}

.shipping-card-title {
  border-bottom: 1px solid #dfe7f1;
  background: #ffffff;
  color: #101828;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 900;
}

.shipping-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.shipping-table-gap {
  border-top: 10px solid #f8fafc;
}

.shipping-fee-table {
  width: auto;
  border-collapse: collapse;
  table-layout: fixed;
  color: #24364a;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.shipping-fee-table th,
.shipping-fee-table td {
  border: 1px solid #cfd7d3;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.shipping-fee-table thead th {
  background: #d9d9d9;
  color: #151515;
  font-weight: 800;
}

.shipping-fee-table .shipping-title-row th {
  height: 32px;
  font-size: 13px;
}

.shipping-fee-table .col-segment {
  width: 142px;
}

.shipping-fee-table .col-weight {
  width: 150px;
}

.shipping-fee-table .col-fee {
  width: 172px;
}

.shipping-fee-table .col-size {
  width: 120px;
}

.shipping-fee-table .col-girth {
  width: 150px;
}

.shipping-fee-table .size-segment {
  background: #fff;
  color: #111827;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.shipping-fee-table tbody th {
  background: #fff;
  font-weight: 500;
}

.shipping-fee-table .standard-small td {
  background: #e9f3eb;
  color: #00343d;
}

.shipping-fee-table .standard-large td {
  background: #f6e2d0;
  color: #2f261f;
}

.shipping-fee-table .oversize th {
  background: #fff;
  color: #334155;
}

.shipping-fee-table .oversize td {
  background: #d8f3f0;
  color: #214244;
}

.shipping-fee-table td:nth-child(n+3) {
  font-variant-numeric: tabular-nums;
}

.size-standard-table tbody th {
  color: #334155;
}

.size-standard-table .long-note {
  max-width: 570px;
  text-align: left;
  line-height: 1.5;
}

.shipping-note-row td {
  background: #fff;
  color: #475569;
  text-align: left;
  font-size: 12px;
}

@media (max-width: 760px) {
  .shipping-fee-page {
    margin: 12px;
    padding: 14px;
  }

  .shipping-fee-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipping-fee-head span {
    border-radius: 8px;
  }
}

select,
textarea,
input {
  border-color: #d2dce9;
  background: #fbfdff;
  color: #101828;
}

select:hover,
textarea:hover,
input:hover {
  border-color: #b8c7d9;
}

select:focus,
textarea:focus,
input:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: var(--focus-ring);
}

button {
  border-color: #d2dce9;
  background: #ffffff;
  color: #26364a;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

button:hover {
  border-color: #9cc2f7;
  box-shadow: 0 6px 14px rgba(16, 24, 40, .07);
}

button.primary {
  background: linear-gradient(180deg, #2478ed, #1769e0);
  border-color: #1769e0;
  box-shadow: 0 10px 22px rgba(23, 105, 224, .20);
}

button.primary:hover {
  background: linear-gradient(180deg, #1769e0, #0f4fb8);
}

button.ghost {
  background: #f2f7ff;
  border-color: #cfe2ff;
  color: #1554b0;
}

button.danger {
  background: #fff5f5;
  border-color: #ffd6d1;
  color: var(--rose);
}

.action-dock {
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -14px 28px rgba(16, 24, 40, .07);
}

.actions {
  gap: 9px;
}

.actions button {
  height: 43px;
}

.tabs {
  gap: 6px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
  border-bottom-color: #e2e8f0;
}

.tab {
  height: 34px;
  border-color: transparent;
  background: transparent;
  color: #667085;
  font-size: 13px;
  box-shadow: none;
}

.tab:hover {
  background: #eef5ff;
  color: #1554b0;
  box-shadow: none;
}

.tab.active {
  background: #102a43;
  border-color: #102a43;
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 42, 67, .16);
}

.progress {
  border-color: #bfe3d9;
  background: #effaf7;
  color: #087f70;
}

.progress span {
  border-color: #c6eee5;
  border-top-color: #087f70;
}

.empty {
  min-height: 118px;
  display: grid;
  place-items: center;
  border-color: #ccd8e6;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, .045), transparent 45%),
    #fbfdff;
  color: #667085;
  text-align: center;
}

.competitor,
.history-item {
  border-color: #dfe7f1;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .045);
}

.competitor:hover,
.history-item:hover {
  border-color: #bdd3ef;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .075);
}

.tag {
  border: 1px solid #cfe2ff;
  background: #edf5ff;
  color: #1554b0;
}

.listing-table,
.product-progress-table,
.product-management-table,
.art-sheet-table,
.art-standards-table {
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .045);
}

.listing-table th,
.product-progress-table th,
.product-management-table th,
.art-sheet-table th,
.art-standards-table th {
  background: #f1f5f9;
  color: #344054;
  font-weight: 900;
}

.listing-table td,
.product-progress-table td,
.product-management-table td,
.art-sheet-table td,
.art-standards-table td {
  background-clip: padding-box;
}

.listing-col-en {
  width: 49%;
}

.listing-col-cn {
  width: 35%;
}

.listing-row-title {
  background: #f3f8ff;
}

.listing-row-highlight {
  background: #f0faf7;
}

.listing-row-bullet {
  background: #fff8ec;
}

.listing-row-description {
  background: #f7f3ff;
}

.listing-row-title td:first-child {
  border-left-color: var(--blue);
}

.listing-row-highlight td:first-child {
  border-left-color: var(--green);
}

.listing-row-bullet td:first-child {
  border-left-color: var(--amber);
}

.listing-row-description td:first-child {
  border-left-color: var(--violet);
}

.listing-cell {
  padding-right: 76px;
}

.copy-cell,
.rewrite-row {
  background: rgba(255, 255, 255, .9);
  border-color: #cbd8e7;
  color: #344054;
}

.copy-cell:hover,
.rewrite-row:hover {
  background: #edf5ff;
  border-color: #9cc2f7;
  color: #1554b0;
}

.profit-mode-tabs,
.product-progress-actions,
.art-editor-actions,
.teambition-launch-actions {
  gap: 8px;
}

.profit-mode-tab.active,
.art-editor-actions .active {
  background: #102a43;
  border-color: #102a43;
  color: #fff;
}

.profit-result-panel,
.product-progress-detail {
  border-color: #dfe7f1;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.profit-result-hero {
  background: linear-gradient(135deg, #102a43, #1769e0);
  border: 0;
  color: #fff;
}

.profit-result-hero * {
  color: inherit;
}

.product-progress-stats > div,
.product-management-stats > div,
.profit-result-metrics > div,
.standard-kpi {
  border-color: #dfe7f1;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .045);
}

.modal-backdrop {
  background: rgba(16, 24, 40, .42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.history-modal-card,
.modal-card.art-image-viewer-card,
.modal-card.art-standards-card {
  box-shadow: 0 30px 80px rgba(16, 24, 40, .22);
}

pre {
  padding: 14px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #fbfdff;
  color: #344054;
}

@media (max-width: 980px) {
  .module-nav {
    top: auto;
    position: static;
  }

  .layout {
    height: auto;
    padding: 12px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .account {
    width: 100%;
    align-items: stretch;
  }

  .account button,
  .model-button {
    width: 100%;
  }
}
