: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: 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);
}

.customs-page { min-height: calc(100vh - 180px); padding: 28px 30px 44px; background: #f4f7fb; color: #102a43; }
.customs-head { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; padding:28px 30px; background:#102a43; color:#fff; border-radius:10px; box-shadow:0 16px 34px rgba(16,42,67,.16); }
.customs-eyebrow { font-size:11px; color:#8fd3c8; font-weight:700; }
.customs-head h1 { margin:8px 0 6px; font-size:28px; letter-spacing:0; }
.customs-head p { margin:0; color:#cbd9e8; font-size:14px; }
.customs-actions { display:grid; grid-template-columns:repeat(2, minmax(152px, 1fr)); gap:10px; }
.customs-actions button, .customs-table-footer button { min-height:46px; display:inline-flex; align-items:center; justify-content:center; padding:0 18px; white-space:nowrap; font-size:14px; line-height:1; }
.customs-toolbar { display:flex; align-items:center; gap:14px; margin:16px 0 12px; }
.customs-search { display:flex; align-items:center; gap:8px; flex:1; max-width:560px; height:42px; padding:0 14px; background:#fff; border:1px solid #dfe7f1; border-radius:8px; }
.customs-search span { font-size:22px; color:#6b8299; }
.customs-search input { width:100%; border:0; outline:0; font-size:14px; color:#102a43; }
.customs-count { color:#70859a; font-size:13px; }
.customs-table-wrap { overflow:auto; background:#fff; border:1px solid #dfe7f1; border-radius:8px; box-shadow:0 8px 20px rgba(16,24,40,.05); }
.customs-table { width:100%; min-width:1680px; border-collapse:separate; border-spacing:0; }
.customs-table th { position:sticky; top:0; z-index:1; padding:13px 12px; text-align:left; white-space:nowrap; background:#eef4f8; border-bottom:1px solid #dfe7f1; color:#486581; font-size:12px; font-weight:700; }
.customs-table th span { color:#c05640; margin-left:2px; }
.customs-table td { padding:8px; border-bottom:1px solid #edf2f7; vertical-align:middle; }
.customs-input { width:100%; min-width:110px; height:36px; padding:0 8px; border:1px solid transparent; border-radius:5px; color:#243b53; background:transparent; outline:0; font-size:13px; }
.customs-input:hover, .customs-input:focus { border-color:#9cc2f7; background:#f8fbff; }
.customs-code-input { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:700; color:#1554b0; }
.customs-row-actions { white-space:nowrap; }
.customs-row-actions button { height:34px; padding:0 9px; margin-right:5px; border:1px solid #dfe7f1; border-radius:5px; background:#fff; color:#486581; font-size:12px; cursor:pointer; }
.customs-row-actions .customs-copy:hover { border-color:#79c2b6; color:#13766b; background:#f0fbf8; }
.customs-row-actions .customs-lock { border-color:#9dc5b8; color:#13766b; }
.customs-row-actions .customs-delete:hover { border-color:#e7b8ae; color:#b64a39; background:#fff5f2; }
.customs-row-actions button:disabled, .customs-image-cell button:disabled { cursor:not-allowed; opacity:.45; }
.customs-locked-row { background:#f7fafb; }
.customs-locked-row .customs-input { color:#6b8299; cursor:not-allowed; }
.customs-image-cell { position:relative; display:flex; align-items:center; justify-content:center; width:76px; height:76px; padding:4px; border:1px dashed #b9cbdb; border-radius:6px; background:#fbfdff; cursor:paste; }
.customs-image-cell:focus { outline:2px solid #9cc2f7; outline-offset:1px; }
.customs-image-empty { min-width:130px; }
.customs-image-filled { cursor:default; border-style:solid; }
.customs-thumb-link { display:block; width:100%; height:100%; cursor:zoom-in; }
.customs-thumb { display:block; width:100%; height:100%; object-fit:cover; border-radius:4px; }
.customs-image-placeholder { display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:#486581; font-size:12px; line-height:1.35; text-align:center; border-radius:4px; background:#fff; }
.customs-image-clear { position:absolute; top:-8px; right:-8px; z-index:1; display:flex; align-items:center; justify-content:center; width:24px; height:24px; padding:0; border:2px solid #fff; border-radius:50%; background:#d64545; color:#fff; font-size:18px; line-height:1; cursor:pointer; box-shadow:0 2px 5px rgba(126, 31, 31, .25); }
.customs-image-clear:hover:not(:disabled) { background:#b92f35; }
.customs-image-clear:focus-visible { outline:2px solid #1554b0; outline-offset:2px; }
.customs-table-footer { display:flex; align-items:center; flex-wrap:wrap; gap:10px 12px; padding:14px 16px; border:1px solid #dfe7f1; border-top:0; border-radius:0 0 8px 8px; background:#fff; color:#6b8299; font-size:12px; }
.customs-table-footer button { flex:0 0 auto; }
.customs-empty { padding:48px!important; text-align:center; color:#829ab1; }
.customs-note { margin-top:12px; color:#6b8299; font-size:12px; }
.customs-note span { display:inline-block; margin-right:6px; color:#13766b; font-weight:700; }
@media (max-width: 980px) { .customs-page { padding:16px 12px 32px; } .customs-head { flex-direction:column; padding:22px; } .customs-actions { width:100%; } .customs-table-footer { align-items:stretch; } }
@media (max-width: 560px) { .customs-actions { grid-template-columns:1fr; } .customs-table-footer button { width:100%; } }

/* Keyword library: compact operational workspace with filterable, locally stored research data. */
.keyword-page { min-height:calc(100vh - 180px); padding:28px 30px 48px; background:#f6f8fb; color:#132b3d; }
.keyword-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:28px 30px; background:#14354a; color:#fff; border-radius:8px; box-shadow:0 16px 34px rgba(17,48,71,.14); }
.keyword-eyebrow { color:#a9ded3; font-size:11px; font-weight:700; }
.keyword-head h1 { margin:8px 0 6px; font-size:28px; line-height:1.15; letter-spacing:0; }
.keyword-head p { max-width:680px; margin:0; color:#cfdfeb; font-size:14px; line-height:1.6; }
.keyword-head-actions { display:flex; gap:10px; flex:0 0 auto; }
.keyword-head-actions button { min-height:44px; padding:0 17px; white-space:nowrap; }
.keyword-head-actions .ghost { border-color:rgba(255,255,255,.42); background:rgba(255,255,255,.06); color:#fff; }
.keyword-head-actions .ghost:hover { background:rgba(255,255,255,.15); }
.keyword-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:18px 0; }
.keyword-metric { min-height:126px; padding:18px; border:1px solid #dbe4eb; border-top:3px solid #386a8e; border-radius:7px; background:#fff; box-shadow:0 4px 12px rgba(14,37,58,.035); }
.keyword-metric-core { border-top-color:#0f766e; }
.keyword-metric-priority { border-top-color:#a16207; }
.keyword-metric-pending { border-top-color:#775c9e; }
.keyword-metric span { display:block; color:#587186; font-size:13px; font-weight:600; }
.keyword-metric strong { display:block; margin:5px 0 4px; color:#122c40; font-size:28px; line-height:1.1; font-variant-numeric:tabular-nums; }
.keyword-metric small { display:block; color:#7890a2; font-size:12px; line-height:1.45; }
.keyword-workspace { display:grid; grid-template-columns:212px minmax(0,1fr); min-height:520px; border:1px solid #dbe4eb; border-radius:7px; background:#fff; box-shadow:0 8px 20px rgba(14,37,58,.045); overflow:hidden; }
.keyword-sidebar { padding:18px 12px; border-right:1px solid #e3eaf0; background:#fbfcfd; }
.keyword-sidebar-title { display:flex; align-items:center; justify-content:space-between; padding:0 7px 12px; color:#3d596e; font-size:12px; font-weight:700; }
.keyword-sidebar-title button, .keyword-text-button { padding:0; border:0; background:transparent; color:#187368; font:inherit; cursor:pointer; }
.keyword-sidebar-title button:hover, .keyword-text-button:hover { color:#0e514b; text-decoration:underline; }
.keyword-category-list { display:grid; gap:3px; }
.keyword-category { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:38px; padding:0 8px; border:0; border-radius:5px; background:transparent; color:#486479; font-size:13px; text-align:left; cursor:pointer; transition:background .16s ease,color .16s ease; }
.keyword-category:hover { background:#edf4f7; color:#163b53; }
.keyword-category.active { background:#dceeea; color:#105d56; font-weight:700; }
.keyword-category b { min-width:24px; color:inherit; font-size:12px; font-weight:600; text-align:right; font-variant-numeric:tabular-nums; }
.keyword-sidebar-note { display:grid; gap:5px; margin:20px 7px 0; padding:13px 0 0; border-top:1px solid #e3eaf0; color:#73889a; font-size:12px; line-height:1.55; }
.keyword-sidebar-note b { color:#456176; font-size:12px; }
.keyword-table-area { min-width:0; padding:18px; }
.keyword-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.keyword-toolbar > label { display:grid; gap:5px; color:#60788a; font-size:12px; font-weight:600; }
.keyword-toolbar select, .keyword-search { height:40px; border:1px solid #d7e2e9; border-radius:5px; background:#fff; color:#173b54; font:inherit; }
.keyword-toolbar select { min-width:112px; padding:0 9px; cursor:pointer; }
.keyword-search { display:flex; align-items:center; gap:9px; width:min(410px,100%); padding:0 11px; }
.keyword-search span { color:#5a7387; font-size:12px; font-weight:700; }
.keyword-search input { min-width:0; flex:1; height:100%; border:0; outline:0; color:#173b54; font-size:14px; background:transparent; }
.keyword-toolbar select:focus, .keyword-search:focus-within { border-color:#377294; box-shadow:0 0 0 3px rgba(55,114,148,.14); }
.keyword-result-count { margin-left:auto; padding-bottom:10px; color:#71889a; font-size:12px; font-variant-numeric:tabular-nums; }
.keyword-batch-bar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 12px; padding:9px 12px; border:1px solid #b9d7d1; border-radius:5px; background:#f0faf7; color:#195f58; font-size:13px; }
.keyword-batch-bar > span { font-weight:700; }
.keyword-batch-bar label { display:flex; align-items:center; gap:7px; margin-left:8px; }
.keyword-batch-bar select { height:32px; min-width:120px; padding:0 7px; border:1px solid #a7cec5; border-radius:4px; color:#174f4a; background:#fff; }
.keyword-batch-bar .ghost { min-height:32px; padding:0 12px; border-color:#9bbfb7; color:#155c55; background:#fff; }
.keyword-table-wrap { overflow:auto; border:1px solid #dbe4eb; border-radius:6px; }
.keyword-table { width:100%; min-width:1180px; border-collapse:separate; border-spacing:0; }
.keyword-table th { position:sticky; top:0; z-index:1; padding:12px 10px; border-bottom:1px solid #dbe4eb; background:#eff4f7; color:#587186; font-size:12px; font-weight:700; text-align:left; white-space:nowrap; }
.keyword-table td { padding:10px; border-bottom:1px solid #edf1f4; color:#3b586c; font-size:13px; vertical-align:middle; }
.keyword-table tbody tr:last-child td { border-bottom:0; }
.keyword-table tbody tr:hover { background:#f8fbfc; }
.keyword-check-col { width:34px; text-align:center !important; }
.keyword-check-col input { width:15px; height:15px; accent-color:#15766d; cursor:pointer; }
.keyword-term { min-width:185px; }
.keyword-term strong, .keyword-term span { display:block; overflow-wrap:anywhere; }
.keyword-term strong { color:#183d56; font-size:13px; font-weight:700; }
.keyword-term span { margin-top:3px; color:#8094a2; font-size:12px; }
.keyword-number, .keyword-date { color:#4a6477; font-variant-numeric:tabular-nums; white-space:nowrap; }
.keyword-category-badge, .keyword-status, .keyword-relevance, .keyword-tags span { display:inline-flex; align-items:center; min-height:22px; padding:0 7px; border-radius:4px; font-size:11px; font-weight:700; white-space:nowrap; }
.keyword-category-badge { color:#42647a; background:#edf3f6; }
.keyword-relevance-high { color:#10675f; background:#e0f2ee; }
.keyword-relevance-medium { color:#966310; background:#fff1d6; }
.keyword-relevance-low { color:#6b7280; background:#edf0f3; }
.keyword-status-pending { color:#75569d; background:#f0eafa; }
.keyword-status-saved { color:#2a647e; background:#e4f0f7; }
.keyword-status-priority { color:#93600e; background:#fff0ce; }
.keyword-status-disabled { color:#687786; background:#eef1f3; }
.keyword-tags { min-width:126px; }
.keyword-tags span { margin:2px 3px 2px 0; color:#397169; background:#e5f3ef; font-weight:600; }
.keyword-tags .keyword-tag-empty { color:#8aa0af; background:#f1f4f6; font-weight:500; }
.keyword-actions { white-space:nowrap; }
.keyword-actions button { min-height:30px; padding:0 7px; border:0; background:transparent; color:#236b83; font-size:12px; cursor:pointer; }
.keyword-actions button:hover { color:#104b64; text-decoration:underline; }
.keyword-actions button:last-child { color:#a5423d; }
.keyword-empty { padding:52px 18px !important; text-align:center; }
.keyword-empty b, .keyword-empty span { display:block; }
.keyword-empty b { color:#4b667a; font-size:14px; }
.keyword-empty span { margin-top:7px; color:#8aa0af; font-size:12px; }
.keyword-editor-card { width:min(720px,calc(100vw - 30px)); max-height:calc(100vh - 30px); overflow:auto; }
.keyword-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:4px 0 8px; }
.keyword-form-grid label { display:grid; gap:6px; min-width:0; color:#526d81; font-size:12px; font-weight:700; }
.keyword-form-grid label > span b { color:#b8433f; }
.keyword-form-grid input, .keyword-form-grid select, .keyword-form-grid textarea { width:100%; box-sizing:border-box; border:1px solid #d4e0e8; border-radius:5px; padding:9px 10px; background:#fff; color:#1a3a50; font:inherit; font-size:14px; line-height:1.4; outline:0; }
.keyword-form-grid input, .keyword-form-grid select { min-height:40px; }
.keyword-form-grid textarea { resize:vertical; }
.keyword-form-grid input:focus, .keyword-form-grid select:focus, .keyword-form-grid textarea:focus { border-color:#377294; box-shadow:0 0 0 3px rgba(55,114,148,.14); }
.keyword-form-wide { grid-column:1 / -1; }
.keyword-editor-actions { margin-top:12px; }
@media (max-width: 1080px) { .keyword-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .keyword-workspace { grid-template-columns:184px minmax(0,1fr); } }
@media (max-width: 780px) { .keyword-page { padding:16px 12px 32px; } .keyword-head { flex-direction:column; padding:22px; } .keyword-head-actions { width:100%; } .keyword-head-actions button { flex:1; } .keyword-workspace { display:block; overflow:visible; } .keyword-sidebar { border-right:0; border-bottom:1px solid #e3eaf0; } .keyword-category-list { display:flex; gap:5px; overflow:auto; padding-bottom:3px; } .keyword-category { flex:0 0 auto; width:auto; gap:8px; } .keyword-sidebar-note { display:none; } .keyword-table-area { padding:12px; } .keyword-toolbar { align-items:stretch; } .keyword-search { width:100%; max-width:none; } .keyword-result-count { margin-left:0; padding:3px 0 0; } }
@media (max-width: 520px) { .keyword-metrics { grid-template-columns:1fr 1fr; gap:8px; } .keyword-metric { min-height:112px; padding:14px; } .keyword-metric strong { font-size:24px; } .keyword-head h1 { font-size:25px; } .keyword-toolbar > label { flex:1; } .keyword-toolbar select { width:100%; min-width:0; } .keyword-batch-bar label { width:100%; margin-left:0; } .keyword-batch-bar select { flex:1; } .keyword-form-grid { grid-template-columns:1fr; } .keyword-form-wide { grid-column:auto; } }
@media (prefers-reduced-motion: reduce) { .keyword-category { transition:none; } }

/* Product-first keyword library overrides. */
.keyword-head-actions { margin-left:auto; }
.keyword-workspace { grid-template-columns:244px minmax(0,1fr); }
.keyword-sidebar { padding:18px 14px; }
.keyword-sidebar-title { padding:0 5px 13px; text-transform:none; }
.keyword-sidebar-title b { color:#7d93a2; font-size:12px; font-variant-numeric:tabular-nums; }
.keyword-product-list { display:grid; gap:4px; }
.keyword-product-item { position:relative; }
.keyword-product { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:54px; padding:8px 9px; border:1px solid transparent; border-radius:5px; background:transparent; color:#3f5b70; text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,color .16s ease; }
.keyword-product:hover { border-color:#d3e3e7; background:#f0f7f7; color:#174b61; }
.keyword-product.active { border-color:#a7d5cc; background:#e5f4ef; color:#0b5e56; }
.keyword-product > span { min-width:0; display:grid; gap:3px; }
.keyword-product b { overflow-wrap:anywhere; color:inherit; font-size:13px; font-weight:700; line-height:1.2; }
.keyword-product em { color:#7791a1; font-size:11px; font-style:normal; }
.keyword-product i { display:grid; min-width:25px; height:25px; place-items:center; border-radius:50%; background:#edf2f5; color:#587186; font-size:11px; font-style:normal; font-weight:700; font-variant-numeric:tabular-nums; }
.keyword-product.active i { background:#bfe3d9; color:#0f635a; }
.keyword-product-delete { position:absolute; top:50%; right:39px; height:25px; transform:translateY(-50%); border:1px solid #e5c1bf; border-radius:4px; padding:0 5px; background:#fff7f6; color:#a4443e; font:inherit; font-size:10px; font-weight:700; opacity:0; cursor:pointer; transition:opacity .14s ease,background .14s ease; }
.keyword-product-item:hover .keyword-product-delete, .keyword-product-delete:focus-visible { opacity:1; }
.keyword-product-delete:hover { border-color:#d99a96; background:#fff0ef; }
.keyword-product-removal { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin:4px 4px 8px; padding:7px; border:1px solid #ead2cf; border-radius:4px; background:#fff8f7; color:#9a4944; font-size:11px; }
.keyword-product-removal span { width:100%; }
.keyword-product-removal button { height:25px; border:1px solid #e3c2bf; border-radius:4px; padding:0 6px; background:#fff0ef; color:#9a4944; font:inherit; font-size:11px; cursor:pointer; }
.keyword-product-removal button:last-child { border-color:#cbd9e1; background:#f8fbfc; color:#38627a; }
.keyword-new-product { margin:15px 5px 0; padding-top:15px; border-top:1px solid #e2eaf0; }
.keyword-new-product > label { display:block; margin-bottom:6px; color:#526d81; font-size:12px; font-weight:700; }
.keyword-new-product > div { display:flex; gap:6px; }
.keyword-new-product input { min-width:0; flex:1; height:35px; padding:0 8px; border:1px solid #d5e1e7; border-radius:4px; color:#193b52; font-size:12px; outline:0; }
.keyword-new-product input:focus { border-color:#27708a; box-shadow:0 0 0 3px rgba(39,112,138,.12); }
.keyword-new-product button { width:35px; height:35px; flex:0 0 35px; border:1px solid #13756b; border-radius:4px; background:#13756b; color:#fff; font-size:21px; line-height:1; cursor:pointer; }
.keyword-new-product button:hover { background:#0c5e57; }
.keyword-table-area { padding:20px; }
.keyword-toolbar { display:grid; grid-template-columns:minmax(260px,1fr) 112px 112px 112px auto; align-items:end; gap:10px; margin-bottom:14px; }
.keyword-table-heading { grid-column:1 / -1; display:flex; align-items:baseline; gap:10px; min-width:0; padding:0 1px 3px; }
.keyword-table-heading span { color:#7090a1; font-size:10px; font-weight:800; }
.keyword-table-heading b { overflow-wrap:anywhere; color:#173c54; font-size:18px; line-height:1.25; }
.keyword-search { position:relative; width:auto; max-width:none; height:44px; gap:0; padding:0 12px; border:1px solid #b9ccd9; border-radius:6px; background:#fff; box-shadow:inset 0 1px 1px rgba(18,54,78,.03); }
.keyword-toolbar > label.keyword-search { display:flex; align-items:center; gap:0; }
.keyword-search-symbol { position:relative; width:16px; height:16px; flex:0 0 16px; margin-right:9px; border:2px solid #46748d; border-radius:50%; box-sizing:border-box; }
.keyword-search-symbol::after { position:absolute; right:-5px; bottom:-3px; width:7px; height:2px; border-radius:2px; background:#46748d; content:""; transform:rotate(45deg); transform-origin:left center; }
.keyword-search-label { flex:0 0 auto; margin-right:8px; color:#385e76; font-size:12px; font-weight:800; }
.keyword-search input { min-width:0; font-size:13px; }
.keyword-search input::placeholder { color:#9aabb7; }
.keyword-toolbar select { height:44px; min-width:0; padding:0 8px; border-color:#c9d7e0; border-radius:6px; color:#36556b; font-size:13px; }
.keyword-toolbar > label { gap:6px; }
.keyword-toolbar > label > span:not(.keyword-search-symbol):not(.keyword-search-label) { padding-left:1px; }
.keyword-lock-filled { height:44px; align-self:end; padding:0 13px; border:1px solid #0f6b62; border-radius:6px; background:#e9f6f2; color:#0e6058; font-size:12px; font-weight:700; white-space:nowrap; cursor:pointer; }
.keyword-lock-filled:hover { background:#d4eee7; }
.keyword-result-count { grid-column:1 / -1; margin:0; padding:0 1px; color:#748b9b; font-size:12px; }
.keyword-table { min-width:1280px; }
.keyword-table th { padding:11px 8px; }
.keyword-table td { padding:7px 6px; }
.keyword-table th:nth-child(1) { min-width:170px; }
.keyword-table th:nth-child(2) { min-width:138px; }
.keyword-table th:nth-child(3), .keyword-table th:nth-child(4), .keyword-table th:nth-child(7), .keyword-table th:nth-child(8) { min-width:92px; }
.keyword-table th:nth-child(5), .keyword-table th:nth-child(6) { min-width:82px; }
.keyword-table th:nth-child(9) { min-width:142px; }
.keyword-table th:nth-child(10) { min-width:110px; }
.keyword-table th:nth-child(11) { min-width:116px; }
.keyword-inline-input, .keyword-inline-select { width:100%; height:34px; box-sizing:border-box; border:1px solid transparent; border-radius:4px; outline:0; color:#25465d; font:inherit; font-size:12px; background:transparent; }
.keyword-inline-input { padding:0 7px; }
.keyword-inline-select { padding:0 4px; cursor:pointer; }
.keyword-inline-input:hover, .keyword-inline-select:hover { border-color:#c1d4df; background:#f9fcfd; }
.keyword-inline-input:focus, .keyword-inline-select:focus { border-color:#287491; background:#fff; box-shadow:0 0 0 3px rgba(40,116,145,.13); }
.keyword-option-cell { min-width:0; }
.keyword-option-select-wrap { display:flex; min-width:0; gap:4px; }
.keyword-option-select-wrap .keyword-inline-select { min-width:0; flex:1; }
.keyword-option-remove { flex:0 0 auto; height:34px; border:1px solid #e5c1bf; border-radius:4px; padding:0 6px; background:#fff7f6; color:#a4443e; font:inherit; font-size:11px; cursor:pointer; }
.keyword-option-remove:hover { border-color:#d99a96; background:#fff0ef; }
.keyword-option-editor { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:4px; margin-top:5px; }
.keyword-option-editor-input { min-width:0; height:28px; box-sizing:border-box; border:1px solid #a9c7d5; border-radius:4px; padding:0 6px; outline:0; color:#25465d; font:inherit; font-size:11px; background:#fff; }
.keyword-option-editor-input:focus { border-color:#287491; box-shadow:0 0 0 3px rgba(40,116,145,.13); }
.keyword-option-editor button { height:28px; border:1px solid #c7d8df; border-radius:4px; padding:0 6px; background:#f8fbfc; color:#38627a; font:inherit; font-size:11px; cursor:pointer; }
.keyword-option-editor button:first-of-type { border-color:#a4cfc5; background:#eef8f5; color:#126258; }
.keyword-option-editor button:hover { filter:brightness(.985); }
.keyword-option-removal { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-top:5px; color:#9a4944; font-size:11px; }
.keyword-option-removal button { height:26px; border:1px solid #e3c2bf; border-radius:4px; padding:0 6px; background:#fff7f6; color:#9a4944; font:inherit; font-size:11px; cursor:pointer; }
.keyword-option-removal button:first-of-type { border-color:#d99b96; background:#fff0ef; }
.keyword-option-removal button:last-of-type { border-color:#cbd9e1; background:#f8fbfc; color:#38627a; }
.keyword-inline-term { color:#123e5d; font-weight:700; }
.keyword-term-cell { position:relative; min-width:0; }
.keyword-term-cell .keyword-inline-input { padding-right:40px; }
.keyword-copy-button { position:absolute; top:4px; right:4px; display:grid; width:26px; height:26px; place-items:center; padding:0; border:0; border-radius:4px; background:#e8f4f5; color:#176a68; font-size:0; opacity:0; cursor:pointer; transition:opacity .14s ease,background .14s ease; }
.keyword-copy-button::before, .keyword-copy-button::after { position:absolute; width:10px; height:11px; border:1.5px solid currentColor; border-radius:2px; content:""; }
.keyword-copy-button::before { transform:translate(-2px,-2px); opacity:.58; }
.keyword-copy-button::after { transform:translate(2px,2px); background:#e8f4f5; }
.keyword-term-cell:hover .keyword-copy-button, .keyword-copy-button:focus, .keyword-copy-button.copied { opacity:1; }
.keyword-copy-button:hover, .keyword-copy-button:focus { background:#d4ece9; outline:0; }
.keyword-copy-button:focus-visible { box-shadow:0 0 0 3px rgba(20,113,105,.28); }
.keyword-copy-button.copied { width:auto; min-width:48px; padding:0 7px; font-size:10px; font-weight:700; }
.keyword-copy-button.copied::before, .keyword-copy-button.copied::after { display:none; }
.keyword-relevance-select { border-width:1px; border-style:solid; font-weight:700; }
.keyword-relevance-select-high { border-color:#9bd0c4; background:#e2f3ee; color:#106357; }
.keyword-relevance-select-medium { border-color:#e4c57f; background:#fff3d6; color:#895b08; }
.keyword-relevance-select-low { border-color:#e9b4b0; background:#fff0ef; color:#a5403a; }
.keyword-relevance-select:hover { filter:brightness(.985); }
.keyword-locked-row { background:#fafcfd; }
.keyword-locked-row .keyword-inline-input, .keyword-locked-row .keyword-inline-select { color:#7c909e; cursor:not-allowed; }
.keyword-locked-row .keyword-relevance-select-high { border-color:#9bd0c4; background:#e2f3ee; color:#106357; }
.keyword-locked-row .keyword-relevance-select-medium { border-color:#e4c57f; background:#fff3d6; color:#895b08; }
.keyword-locked-row .keyword-relevance-select-low { border-color:#e9b4b0; background:#fff0ef; color:#a5403a; }
.keyword-actions { min-width:112px; }
.keyword-actions button { min-height:30px; margin:0 2px 0 0; padding:0 7px; border:1px solid #cbd9e1; border-radius:4px; background:#fff; color:#38627a; font-weight:600; text-decoration:none; }
.keyword-actions button:hover:not(:disabled) { border-color:#98b8c9; background:#f4fafb; color:#1d566f; text-decoration:none; }
.keyword-actions .keyword-row-lock.locked { border-color:#a2cabf; background:#eef8f5; color:#126258; }
.keyword-actions .keyword-row-delete { color:#a64b44; }
.keyword-actions button:disabled { cursor:not-allowed; opacity:.42; }
.keyword-add-row { display:flex; align-items:center; justify-content:center; width:100%; min-height:54px; gap:8px; margin-top:10px; border:1px dashed #97b5c5; border-radius:6px; background:#f8fbfc; color:#285b75; cursor:pointer; }
.keyword-add-row:hover { border-color:#14766e; background:#f0faf7; color:#12645c; }
.keyword-add-row span { display:grid; width:24px; height:24px; place-items:center; border-radius:50%; background:#dceef0; color:#176a68; font-size:20px; line-height:1; }
.keyword-add-row b { font-size:13px; }
.keyword-add-row em { color:#7892a3; font-size:12px; font-style:normal; }
@media (max-width: 1080px) { .keyword-workspace { grid-template-columns:210px minmax(0,1fr); } .keyword-toolbar { grid-template-columns:minmax(220px,1fr) 104px 104px; } .keyword-lock-filled { grid-column:1 / span 2; justify-self:start; } }
@media (max-width: 780px) { .keyword-product-list { display:flex; overflow:auto; padding-bottom:4px; } .keyword-product { width:168px; flex:0 0 168px; } .keyword-product-delete { opacity:1; } .keyword-new-product { display:none; } .keyword-toolbar { grid-template-columns:1fr 1fr; } .keyword-table-heading, .keyword-search { grid-column:1 / -1; } .keyword-lock-filled { grid-column:auto; width:100%; } .keyword-result-count { grid-column:1 / -1; } }
@media (max-width: 520px) { .keyword-toolbar { grid-template-columns:1fr 1fr; } .keyword-search-label { display:none; } .keyword-search-symbol { margin-right:10px; } .keyword-lock-filled { grid-column:1 / -1; } .keyword-add-row em { display:none; } }
.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;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  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: "";
  width: 30px;
  height: 30px;
  display: inline-block;
  flex: 0 0 30px;
  background: url("/static/favicon.png") center / contain no-repeat;
}

.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;
}

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

.stock-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px; }
.stock-head h1 { margin:0; color:#101828; font-size:24px; }
.stock-head p { margin:7px 0 0; color:#697586; font-size:14px; }
.stock-head-actions { display:flex; gap:8px; flex-wrap:wrap; }
.stock-head-actions button { height:36px; padding:0 14px; border-radius:7px; font-size:13px; font-weight:800; }
.stock-params { display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)) minmax(280px,2fr); gap:10px; align-items:end; margin-bottom:14px; }
.stock-params label { position:relative; padding:10px 12px; background:#fff; border:1px solid #dfe7f1; border-radius:7px; }
.stock-params label span { display:block; color:#697586; font-size:12px; font-weight:700; }
.stock-params input { width:100%; height:30px; margin-top:5px; border:1px solid #dfe7f1; border-radius:5px; padding:0 8px; text-align:right; color:#172b4d; }
.stock-params label em { position:absolute; right:20px; bottom:17px; color:#98a2b3; font-size:12px; font-style:normal; }
.stock-formula { min-height:52px; padding:10px 14px; border:1px solid #cfe4ff; border-radius:7px; background:#f2f8ff; color:#315f8e; font-size:12px; line-height:1.6; }
.stock-formula strong { display:block; color:#1769e0; font-size:13px; }
.stock-stats { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:10px; margin-bottom:14px; }
.stock-stats div { padding:12px 14px; border:1px solid #dfe7f1; border-radius:7px; background:#fff; }
.stock-stats b { display:block; color:#102a43; font-size:21px; font-variant-numeric:tabular-nums; }
.stock-stats span { display:block; margin-top:3px; color:#697586; font-size:12px; font-weight:700; }
.stock-stats .warn b { color:#d97706; }
.stock-toolbar { display:flex; align-items:center; gap:10px; padding:11px 12px; margin-bottom:10px; border:1px solid #dfe7f1; border-radius:7px; background:#fff; }
.stock-toolbar select,.stock-toolbar input { height:34px; border:1px solid #dfe7f1; border-radius:6px; padding:0 10px; color:#344054; font-size:13px; }
.stock-toolbar input { flex:1; min-width:180px; }
.stock-toolbar span { color:#98a2b3; font-size:12px; }
.stock-table-wrap { overflow:auto; border:1px solid #dfe7f1; border-radius:7px; background:#fff; }
.stock-table { width:100%; min-width:1450px; border-collapse:collapse; color:#344054; font-size:12px; }
.stock-table th { padding:11px 9px; background:#f5f8fb; border-bottom:1px solid #dfe7f1; color:#697586; font-weight:800; text-align:left; white-space:nowrap; }
.stock-table td { padding:7px 8px; border-bottom:1px solid #edf1f6; vertical-align:middle; }
.stock-table tr:hover { background:#f7fbff; }
.stock-input,.stock-status { width:100%; min-width:70px; height:31px; border:1px solid transparent; border-radius:4px; background:transparent; padding:0 6px; color:#344054; }
.stock-input:focus,.stock-status:focus { border-color:#b7d7ff; background:#fff; outline:none; box-shadow:0 0 0 2px #edf6ff; }
.stock-status { border-color:#dfe7f1; background:#fff; }
.stock-suggested { display:block; min-width:74px; color:#157347; font-size:14px; text-align:right; font-variant-numeric:tabular-nums; }
.stock-suggested.is-warn { color:#d97706; }
.stock-delete { border:0; background:transparent; color:#b42318; cursor:pointer; font-size:12px; }
.stock-empty { padding:44px; color:#98a2b3; text-align:center; }
.stock-note { margin:10px 2px 0; color:#98a2b3; font-size:12px; }
@media (max-width:760px) { .stock-page { margin:12px; padding:14px; } .stock-head { align-items:flex-start; flex-direction:column; } .stock-params { grid-template-columns:repeat(2,minmax(120px,1fr)); } .stock-formula { grid-column:1/-1; } .stock-stats { grid-template-columns:repeat(2,1fr); } .stock-toolbar { align-items:stretch; flex-direction:column; } }

.packing-page {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100vh - 180px);
  background: #eef2f6;
}

.packing-history { padding: 20px 16px; border-right: 1px solid #d8e0e8; background: #f8fafc; }
.packing-history-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 2px 2px 16px; border-bottom: 1px solid #d8e0e8; }
.packing-history h2 { margin: 0; color: #172b4d; font-size: 17px; }
.packing-history p { margin: 5px 0 0; color: #697586; font-size: 12px; line-height: 1.5; }
.packing-new-button { min-height: 36px; flex: 0 0 auto; border: 1px solid #9fb9d4; border-radius: 5px; background: #fff; color: #243b53; padding: 0 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.packing-new-button:hover { background: #edf5ff; border-color: #7aa9df; }
.packing-record-list { display: grid; gap: 8px; padding-top: 16px; }
.packing-record { position: relative; border: 1px solid #d8e0e8; border-radius: 6px; background: #fff; overflow: hidden; box-shadow: 0 1px 1px rgba(24, 39, 75, .02); }
.packing-record.selected { border-color: #2f80c9; box-shadow: 0 0 0 2px #dcecff; }
.packing-record-open { display: grid; gap: 4px; width: 100%; min-width: 0; min-height: 62px; padding: 11px 70px 11px 12px; border: 0; background: #fff; color: #334e68; text-align: left; cursor: pointer; }
.packing-record-open:hover { background: #f4f8fc; }
.packing-record-open:focus-visible, .packing-record-delete:focus-visible, .packing-new-button:focus-visible { outline: 2px solid #2f80c9; outline-offset: -2px; }
.packing-record b { overflow-wrap: anywhere; color: #172b4d; font-size: 14px; line-height: 1.3; }
.packing-record time { color: #829ab1; font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.packing-record-delete { position: absolute; top: 9px; right: 9px; min-width: 46px; min-height: 28px; border: 1px solid #f1bbb7; border-radius: 4px; background: #fff; color: #b42318; padding: 0 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.packing-record-delete:hover { background: #fff1f1; }
.packing-record-empty { padding: 22px 8px; color: #829ab1; font-size: 12px; line-height: 1.6; text-align: center; }
.packing-workspace { min-width: 0; padding: 20px; }
.packing-workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: 1420px; margin: 0 auto 14px; }
.packing-workspace-head h1 { margin: 0; color: #172b4d; font-size: 23px; letter-spacing: 0; }
.packing-workspace-head p { margin: 5px 0 0; color: #697586; font-size: 12px; }
.packing-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.packing-actions button { min-height: 36px; padding: 0 13px; border-radius: 5px; font-size: 13px; font-weight: 800; }
.packing-sheet { max-width: 1420px; margin: 0 auto; padding: 24px 28px 30px; border: 1px solid #bdc8d4; background: #fff; box-shadow: 0 2px 8px rgba(24, 39, 75, .08); }
.packing-title-row { display: flex; justify-content: center; min-height: 48px; }
.packing-title-row input { width: min(620px, 100%); border: 0; background: transparent; color: #111827; font-family: "Microsoft YaHei", sans-serif; font-size: 25px; font-weight: 800; text-align: center; outline: none; }
.packing-title-row input:focus { box-shadow: inset 0 -2px #89b8e7; }
.packing-meta-row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #293742; border-bottom: 0; }
.packing-meta-row label { display: flex; align-items: center; min-height: 41px; padding: 0 12px; border-right: 1px solid #293742; color: #111827; font-size: 15px; font-weight: 800; }
.packing-meta-row label:last-child { border-right: 0; justify-content: center; }
.packing-meta-row input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 0 7px; color: #111827; font: inherit; outline: none; }
.packing-meta-row input:focus { background: #f0f7ff; }
.packing-table-frame { width: 100%; overflow: hidden; }
.packing-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #111827; font-family: "Microsoft YaHei", sans-serif; font-size: 13px; }
.packing-table th, .packing-table td { height: 39px; border: 1px solid #293742; padding: 0; text-align: center; vertical-align: middle; }
.packing-table thead th { height: 43px; background: #f8fafc; font-size: 13px; font-weight: 700; }
.packing-table th:nth-child(1) { width: 14%; } .packing-table th:nth-child(2) { width: 30%; } .packing-table th:nth-child(3) { width: 14%; } .packing-table th:nth-child(4) { width: 9%; } .packing-table th:nth-child(5) { width: 9%; } .packing-table th:nth-child(6) { width: 11%; } .packing-table th:nth-child(n+7):nth-child(-n+10) { width: 3.25%; }
.packing-input { width: 100%; height: 38px; border: 0; background: transparent; padding: 0 6px; color: #111827; font: inherit; text-align: center; outline: none; }
.packing-input:focus { background: #eff7ff; box-shadow: inset 0 0 0 2px #8dbbe8; }
.packing-input[readonly] { color: #243b53; cursor: default; }
.packing-weight { background: #f8fbfd; font-variant-numeric: tabular-nums; }
.packing-table tfoot th, .packing-table tfoot td { height: 42px; background: #f8fafc; font-weight: 800; }
.packing-table tfoot td { font-variant-numeric: tabular-nums; }
.packing-table .stock-delete { min-width: 42px; border: 0; background: transparent; color: #b42318; cursor: pointer; font-size: 12px; }
.packing-hint { max-width: 1420px; margin: 11px auto 0; color: #697586; font-size: 12px; }
@media (max-width: 900px) { .packing-page { display:block; } .packing-history { border-right:0; border-bottom:1px solid #d8e0e8; } .packing-record-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .packing-workspace { padding:14px; } .packing-workspace-head { align-items:start; flex-direction:column; } .packing-actions { justify-content:start; } .packing-sheet { padding:16px 12px 20px; } }
@media (max-width: 560px) { .packing-record-list { grid-template-columns:1fr; } .packing-meta-row { grid-template-columns:1fr; } .packing-meta-row label { border-right:0; border-bottom:1px solid #293742; } .packing-meta-row label:last-child { border-bottom:0; justify-content:start; } .packing-title-row input { font-size:20px; } .packing-table { font-size:9px; } .packing-table th, .packing-table td { height:33px; } .packing-input { height:32px; padding:0 2px; font-size:10px; } }
@media print { body * { visibility:hidden; } #stockPrintableArea, #stockPrintableArea * { visibility:visible; } #stockPrintableArea { position:absolute; inset:0; width:100%; margin:0; padding:0; border:0; box-shadow:none; } .packing-table { font-size:10pt; } .packing-table th, .packing-table td { height:31px; } .packing-input { height:30px; } }

.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%;
  }
}

/* Desktop workspace shell: keep the existing module views intact while moving navigation into a sidebar. */
@media (min-width: 981px) {
  .app-workspace {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    min-height: calc(100vh - 72px);
    align-items: start;
  }

  .module-nav {
    position: sticky;
    top: 86px;
    height: calc(100vh - 100px);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 14px 0 14px 14px;
    padding: 24px 14px;
    overflow-y: auto;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .80), rgba(247, 252, 255, .52)),
      rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 18px;
    box-shadow:
      0 18px 44px rgba(16, 24, 40, .10),
      inset 0 1px 0 rgba(255, 255, 255, .90);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    isolation: isolate;
    z-index: 8;
  }

  .module-nav-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 10px 22px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .module-nav-group {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
  }

  .module-nav-label {
    display: block;
    width: 100%;
    height: 26px;
    margin: 0 0 7px;
    padding: 0 10px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-align: left;
  }

  .module-nav-items {
    display: grid;
    gap: 2px;
  }

  .module-tab {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 42px;
    justify-content: flex-start;
    gap: 10px;
    margin: 2px 0;
    padding: 0 12px 0 14px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    box-shadow: none;
    transform: none;
    z-index: 2;
  }

  .module-tab-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: #7b8794;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
    transition: stroke .18s ease, color .18s ease, transform .18s ease;
  }

  .module-tab:hover .module-tab-icon,
  .module-tab.active .module-tab-icon {
    stroke: #64748b;
  }

  .module-tab:hover .module-tab-icon {
    transform: translateX(1px);
  }

  .module-tab:hover {
    color: #087f70;
    background: transparent;
    border-color: transparent;
    transform: none;
  }

  .module-tab.active {
    background: transparent;
    border-color: transparent;
    color: #087f70;
    box-shadow: none;
  }

  .module-tab.active::before {
    display: none;
  }

  .module-nav-slider {
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: var(--slider-h, 42px);
    border: 1px solid rgba(148, 163, 184, .48);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(241, 245, 249, .70), rgba(226, 232, 240, .48));
    box-shadow:
      0 8px 20px rgba(71, 85, 105, .10),
      inset 0 1px 0 rgba(255, 255, 255, .86);
    transform: translateY(var(--slider-y, 0px));
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), height .18s ease;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
  }

  .workspace-collapse-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 54px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 7px;
    background: rgba(255, 255, 255, .48);
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
  }

  .workspace-collapse-button:hover,
  .workspace-collapse-button:focus-visible {
    border-color: rgba(100, 116, 139, .52);
    background: rgba(255, 255, 255, .82);
    color: #344054;
    box-shadow: none;
  }

  .workspace-collapse-icon {
    position: relative;
    width: 12px;
    height: 10px;
    flex: 0 0 auto;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
  }

  .workspace-collapse-icon::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 8px;
    border-top: 1.5px solid currentColor;
  }

  .module-content {
    min-width: 0;
    min-height: calc(100vh - 72px);
    overflow: hidden;
  }

  .module-content > .module-view > .layout {
    height: calc(100vh - 88px);
  }

  .module-content > .module-view > .layout,
  .module-content > .module-view > .module-placeholder,
  .module-content > .module-view > .product-progress,
  .module-content > .module-view > .profit-page,
  .module-content > .module-view > .product-management-page,
  .module-content > .module-view > .stock-page,
  .module-content > .module-view > .shipping-fee-page,
  .module-content > .module-view > .customs-page,
  .module-content > .module-view > .keyword-page {
    max-width: none;
  }

  .app-workspace.workspace-collapsed {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .workspace-collapsed .module-nav {
    padding-right: 10px;
    padding-left: 10px;
  }

  .workspace-collapsed .module-nav-heading {
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
  }

  .workspace-collapsed .module-nav-heading > span:first-child,
  .workspace-collapsed .module-nav-label > span:first-child {
    display: none;
  }

  .workspace-collapsed .module-nav-label {
    display: none;
  }

  .workspace-collapsed .workspace-collapse-button {
    min-width: 38px;
    width: 38px;
    padding: 0;
  }

  .workspace-collapsed .workspace-collapse-text {
    display: none;
  }

  .workspace-collapsed .module-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 52px;
    padding: 4px 3px;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.1;
  }

  .workspace-collapsed .module-tab-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .workspace-collapsed .module-tab::after {
    content: attr(data-short) !important;
    display: block !important;
    color: currentColor;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }

  .workspace-collapsed .module-tab-label {
    display: none;
  }

  .workspace-collapsed .module-nav-group {
    margin-bottom: 12px;
  }

  .workspace-collapsed .module-nav-items {
    gap: 4px;
  }
}

@media (max-width: 980px) {
  .module-nav-slider {
    display: none;
  }
}

/* Navigation labels stay clean on every breakpoint; the active state is carried by the slider. */
.module-tab::before,
.module-tab-mark {
  content: none !important;
  display: none !important;
}

/* Keep the expanded navigation in one vertical column at every viewport size. */
.module-nav {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

.module-nav-group,
.module-nav-items {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

.module-tab {
  display: flex;
  align-items: center;
}

.module-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.module-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 980px) {
  .module-nav {
    position: static;
    width: calc(100% - 24px);
    margin: 12px;
    padding: 18px 14px;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 16px;
  }
}

/* Unified action buttons: keep the workspace navigation and card-like selectors independent. */
button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row) {
  border: 2px solid #616467;
  border-radius: var(--button-radius, 8px);
  text-align: center;
  background: transparent;
  color: #20252b;
  font-weight: 600;
  letter-spacing: normal;
  box-shadow: inset 0 0 0 0 #616467;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row):hover:not(:disabled),
button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row):focus-visible {
  border-color: #616467;
  background: #616467;
  color: #fff;
  box-shadow: 0 7px 16px rgba(97, 100, 103, .18);
  outline: none;
  transform: translateY(-1px);
}

button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row):active:not(:disabled) {
  transform: translateY(0);
}

button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row).primary {
  border-color: #616467;
  background: transparent;
  color: #20252b;
  box-shadow: inset 0 0 0 0 #616467;
}

button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row).ghost {
  border-color: #616467;
  background: transparent;
  color: #20252b;
}

button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row).danger {
  border-color: #b4534b;
  background: transparent;
  color: #9f3029;
}

button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row).danger:hover:not(:disabled),
button:not(.module-tab):not(.workspace-collapse-button):not(.model-option):not(.art-type-option):not(.art-aplus-module-option):not(.teambition-project-card):not(.packing-record-open):not(.keyword-product):not(.keyword-add-row).danger:focus-visible {
  border-color: #b4534b;
  background: #b4534b;
  color: #fff;
}

button:not(.module-tab):not(.workspace-collapse-button):disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
}

/* Compact controls keep their working dimensions instead of growing into large pills. */
button.icon-button,
button.mind-collapse,
button.mind-outline-toggle,
.mindmap-zoom-float button,
button.customs-image-clear,
button.art-remove-image,
button.art-remove-research-image,
button.keyword-copy-button,
button.keyword-create-product,
button.keyword-new-product,
button.progressAddRowBtn,
button[id="progressAddRowBtn"] {
  border-radius: 8px;
}

button.icon-button,
button.mind-collapse,
button.mind-outline-toggle,
button.customs-image-clear,
button.art-remove-image,
button.art-remove-research-image,
button.keyword-copy-button,
button[id="progressAddRowBtn"] {
  letter-spacing: 0;
}

.mindmap-zoom-float button {
  border-width: 0;
  border-radius: 0;
  box-shadow: none;
  letter-spacing: 0;
}

.mindmap-zoom-float button:hover:not(:disabled) {
  border-color: transparent;
  border-radius: 0;
  background: #616467;
  color: #fff;
  box-shadow: none;
}

.keyword-actions button,
.customs-row-actions button,
button.art-paste-mini,
.keyword-option-editor button,
.keyword-option-removal button,
.keyword-product-removal button,
button.stock-delete,
button.packing-record-delete,
button.progress-delete-row {
  min-height: 30px;
  height: auto;
  padding: 4px 9px;
  border-radius: 8px;
  letter-spacing: 0;
  font-size: 12px;
}

.keyword-actions button:hover:not(:disabled),
.customs-row-actions button:hover:not(:disabled),
button.art-paste-mini:hover:not(:disabled),
.keyword-option-editor button:hover:not(:disabled),
.keyword-option-removal button:hover:not(:disabled),
.keyword-product-removal button:hover:not(:disabled),
button.stock-delete:hover:not(:disabled),
button.packing-record-delete:hover:not(:disabled),
button.progress-delete-row:hover:not(:disabled) {
  text-decoration: none;
}

/* Dark section headers need a light outline so their actions remain readable. */
.keyword-head button:not(.module-tab),
.customs-head button:not(.module-tab) {
  border-color: rgba(255, 255, 255, .72);
  background: transparent;
  color: #fff;
}

.keyword-head button:not(.module-tab):hover:not(:disabled),
.customs-head button:not(.module-tab):hover:not(:disabled),
.keyword-head button:not(.module-tab):focus-visible,
.customs-head button:not(.module-tab):focus-visible {
  border-color: #fff;
  background: #fff;
  color: #102a43;
}

/* These are selectable cards, not action buttons. */
button.model-option,
button.art-type-option,
button.art-aplus-module-option,
button.teambition-project-card,
button.packing-record-open,
button.keyword-product,
button.keyword-add-row {
  border-radius: 8px;
  letter-spacing: normal;
}

/* Center action labels without changing navigation/card layout or hidden states. */
button:not(:where(.hidden, [hidden], .module-tab, .workspace-collapse-button, .model-option, .art-type-option, .art-aplus-module-option, .teambition-project-card, .packing-record-open, .keyword-product, .keyword-add-row, .mind-node, .mind-outline-row)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teambition-launch-actions button {
  height: auto;
  min-height: 42px;
  padding: 10px 18px;
}

/* Fixed-size icon controls need no text-button padding. */
button:is(.icon-button, .mind-collapse, .mind-outline-toggle, .customs-image-clear, .art-remove-image, .art-remove-research-image, .keyword-copy-button),
.mindmap-zoom-float button {
  padding: 0;
}

button.keyword-copy-button.copied {
  padding: 0 7px;
}

.source-card select,
.source-card textarea {
  font-size: 14px;
}

.mindmap-appbar,
.mindmap-toolbar-groups,
.mindmap-tool-group {
  flex-wrap: wrap;
}

.mind-tool-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mindmap-appbar {
  height: auto;
  min-height: 58px;
  flex-basis: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  row-gap: 8px;
}

button.mind-outline-toggle,
button.mind-collapse {
  --button-radius: 4px;
  line-height: 1;
}

.mind-reset-button {
  flex-shrink: 0;
  min-height: 32px;
}

/* Compact spreadsheet styling scoped to the product management module. */
.product-management-sheet { min-width:0; margin:16px 18px 22px; padding:16px; border:1px solid #d7e0e8; background:#f5f7f9; color:#243b53; }
.product-sheet-toolbar { padding:0 0 12px; }
.product-sheet-toolbar h1 { margin:0; color:#172b4d; font-size:22px; line-height:1.25; }
.product-sheet-toolbar p { margin:5px 0 0; color:#697586; font-size:12px; }
.product-sheet-toolbar > div > div:first-child > div span { padding:2px 7px; border:1px solid #b8dfd4; background:#e7f6f1; color:#157a6e; font-size:11px; font-weight:700; }
.product-sheet-actions { display:flex; flex-wrap:wrap; gap:7px; }
.product-sheet-actions button { height:32px; padding:0 11px; border:1px solid #b9c8d6; border-radius:4px; background:#fff; color:#334e68; font-size:12px; font-weight:700; cursor:pointer; }
.product-sheet-actions button:first-child { border-color:#2b8a78; background:#2b8a78; color:#fff; }
.product-sheet-actions button:hover:not(:disabled) { border-color:#2b8a78; background:#eef9f6; }
.product-sheet-actions button:first-child:hover:not(:disabled) { background:#237565; color:#fff; }
.product-parameter-strip { display:grid; grid-template-columns:minmax(520px,1.25fr) minmax(430px,1fr); gap:10px; align-items:stretch; margin-top:14px; }
.product-parameter-fields { display:grid; grid-template-columns:repeat(4,minmax(115px,1fr)); gap:7px; }
.product-parameter-fields label { display:grid; gap:4px; padding:7px 8px; border:1px solid #b8dfd4; border-radius:3px; background:#eaf8f3; }
.product-parameter-fields label span { color:#39776d; font-size:11px; font-weight:700; white-space:nowrap; }
.product-parameter-fields input { width:100%; height:27px; border:1px solid #91cbbd; border-radius:2px; background:#fff; color:#172b4d; padding:0 6px; text-align:right; font:700 12px/1 "Consolas",monospace; }
.product-sheet-stats { display:grid; grid-template-columns:repeat(3,minmax(90px,1fr)); gap:7px; }
.product-sheet-stats > div { min-width:0; border:1px solid #d5dde5; border-radius:3px; background:#fff; padding:7px 9px; }
.product-sheet-stats b { display:block; font-size:17px; line-height:1.1; }
.product-sheet-stats span { display:block; margin-top:3px; font-size:10px; white-space:nowrap; }
.product-sheet-filter { display:flex; justify-content:flex-end; padding:0 0 9px; }
.product-sheet-filter > div { display:flex; flex-wrap:wrap; gap:6px; width:min(100%,560px); }
.product-sheet-filter select,.product-sheet-filter input { height:31px; border:1px solid #c3ced8; border-radius:3px; background:#fff; color:#334e68; padding:0 8px; font-size:12px; }
.product-sheet-filter select { width:120px; }
.product-sheet-filter input { min-width:220px; flex:1; }
.product-table-frame { overflow:hidden; border:1px solid #aebdca; background:#fff; }
.product-table-scroll { overflow-x:auto; overflow-y:visible; }
.product-data-grid { width:100%; min-width:2180px; table-layout:fixed; border-collapse:collapse; color:#334e68; font-size:12px; }
.product-data-grid col.col-status { width:76px; }.product-data-grid col.col-image { width:44px; }.product-data-grid col.col-parent { width:105px; }.product-data-grid col.col-sku { width:125px; }.product-data-grid col.col-name { width:145px; }.product-data-grid col.col-fnsku { width:125px; }.product-data-grid col.col-asin { width:125px; }.product-data-grid col.col-dimension { width:78px; }.product-data-grid col.col-money { width:96px; }.product-data-grid col.col-weight { width:86px; }.product-data-grid col.col-freight { width:105px; }.product-data-grid col.col-fba { width:105px; }.product-data-grid col.col-profit { width:105px; }.product-data-grid col.col-margin { width:82px; }.product-data-grid col.col-actions { width:148px; }
.product-data-grid th,.product-data-grid td { border-right:1px solid #d7e0e8; border-bottom:1px solid #d7e0e8; }
.product-data-grid th:last-child,.product-data-grid td:last-child { border-right:0; }
.product-data-grid th { height:31px; padding:5px 7px; color:#26445c; font-weight:800; line-height:1.2; white-space:nowrap; text-align:center; }
.product-data-grid .product-group-row th { height:30px; border-color:#a9bbc7; font-size:12px; }
.product-data-grid .product-group-row th:nth-child(1) { background:#cbeee6; color:#16665c; }.product-data-grid .product-group-row th:nth-child(2) { background:#dcefd8; color:#3d6b39; }.product-data-grid .product-group-row th:nth-child(3) { background:#e7def4; color:#67478b; }.product-data-grid .product-group-row th:last-child { background:#e8edf2; color:#526273; }
.product-data-grid .product-field-row th { position:sticky; top:0; z-index:2; background:#edf2f6; font-size:11px; }
.product-data-grid td { height:40px; padding:0; vertical-align:middle; background:#fff; }
.product-data-grid .product-data-row:hover td { background:#f8fbfd; }.product-data-grid .product-data-row.is-locked td { background:#f2f4f6; }
.product-data-grid .product-edit-control { background:#fff; color:#1d5146; }.product-data-grid .product-edit-control:focus { background:#fff; box-shadow:inset 0 0 0 1px #4aa995; }.product-data-grid .product-edit-control:disabled { background:#e8ecef; color:#98a2b3; }
.product-data-grid .product-status-control { width:100%; height:40px; border:0; padding:0 5px; text-align:center; font-size:11px; }
.product-data-grid .product-output-cell { display:block; height:40px; padding:11px 7px 0; background:#eef1f3; color:#526273; font-size:11px; line-height:1.2; }
.product-data-grid .product-image-table-cell { width:44px; height:40px; padding:2px; background:#fff; }
.product-image-cell { position:relative; display:flex; align-items:center; justify-content:center; width:36px; height:36px; margin:auto; border:1px dashed #b8c5cf; background:#fff; }
.product-image-cell:focus { outline:2px solid #4aa995; outline-offset:-2px; }
.product-image-empty { cursor:paste; }
.product-image-empty span { color:#7a8a99; font-size:8px; line-height:1.15; text-align:center; }
.product-image-filled { border-style:solid; }
.product-image-preview-trigger { display:block; width:100%; height:100%; min-width:0; padding:0; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; cursor:zoom-in; transform:none!important; }
.product-image-filled img { display:block; width:100%; height:100%; object-fit:contain; background:#fff; }
.product-image-clear { position:absolute; top:1px; right:1px; z-index:1; display:flex; align-items:center; justify-content:center; width:18px; height:18px; min-width:18px!important; min-height:18px; padding:0!important; border:1px solid #fff!important; border-radius:50%!important; background:#b64a39!important; color:#fff!important; font-size:14px!important; line-height:1; cursor:pointer; }
.product-image-preview { position:fixed; inset:0; z-index:1000; display:block; background:rgba(15,23,42,0); cursor:zoom-out; transition:background-color 300ms ease; }
.product-image-preview.hidden { display:none; }
.product-image-preview.is-open { background:rgba(15,23,42,.66); }
.product-image-preview img { position:fixed; display:block; max-width:none; max-height:none; object-fit:contain; border-radius:0; background:#fff; box-shadow:0 0 0 rgba(0,0,0,0); cursor:default; transition:left 350ms cubic-bezier(.22,.75,.22,1),top 350ms cubic-bezier(.22,.75,.22,1),width 350ms cubic-bezier(.22,.75,.22,1),height 350ms cubic-bezier(.22,.75,.22,1),border-radius 350ms ease,box-shadow 350ms ease; will-change:left,top,width,height; }
.product-image-preview.is-open img { border-radius:6px; box-shadow:0 24px 70px rgba(0,0,0,.38); }
@media (prefers-reduced-motion:reduce) { .product-image-preview,.product-image-preview img { transition-duration:1ms; } }
.product-data-grid .product-actions-cell { padding:4px; }.product-data-grid .product-actions-cell button { min-width:0; height:29px; border-radius:3px; font-size:11px; }
.product-empty-cell { height:86px; padding:20px; color:#829ab1; text-align:center; }
@media (max-width:920px) { .product-management-sheet { margin:10px; padding:11px; }.product-parameter-strip { grid-template-columns:1fr; }.product-sheet-toolbar > div { gap:12px; }.product-sheet-actions { width:100%; }.product-sheet-actions button { flex:1 1 auto; } }
@media (max-width:640px) { .product-parameter-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }.product-sheet-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }.product-sheet-filter { justify-content:stretch; }.product-sheet-filter > div { width:100%; }.product-sheet-filter select { flex:0 0 112px; }.product-sheet-filter input { min-width:0; } }
