:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #172033;
  background: #f4f6f8;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(33, 105, 120, .12), rgba(136, 90, 64, .10)),
    #f3f7f7;
}

.login-box {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #dce3e7;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, .12);
  padding: 28px;
}

.brand-block,
.topbar-title,
.user-area,
.row-actions,
.toolbar,
.status-line,
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #216978;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.brand-block p,
.topbar-title span,
.muted,
.form-message,
.detail-head span {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

label {
  display: block;
  margin: 14px 0 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd6dd;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  padding: 9px 10px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #216978;
  box-shadow: 0 0 0 3px rgba(33, 105, 120, .12);
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.btn,
.icon-btn {
  border: 1px solid #cbd5dd;
  background: #fff;
  color: #172033;
  border-radius: 6px;
  padding: 8px 12px;
}

.btn.primary {
  background: #216978;
  border-color: #216978;
  color: #fff;
}

.btn.danger {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.btn.subtle {
  background: #f8fafb;
}

.btn.wide {
  width: 100%;
  margin-top: 18px;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.form-message {
  min-height: 20px;
  margin-top: 10px;
  color: #b42318;
}

.app-view {
  min-height: 100vh;
}

.topbar {
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #dfe6eb;
}

.topbar-title strong {
  display: block;
}

.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
}

.side-nav {
  position: sticky;
  top: 60px;
  align-self: start;
  height: calc(100vh - 60px);
  border-right: 1px solid #dfe6eb;
  background: #fff;
  padding: 14px 10px;
  overflow-y: auto;
}

.nav-btn {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475467;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 4px;
}

.nav-btn.active {
  background: #e7f1f3;
  color: #165766;
  font-weight: 750;
}

.content {
  padding: 18px 20px 40px;
  min-width: 0;
}

.page-header {
  margin-bottom: 14px;
}

.page-header h2 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: 0;
}

.panel {
  background: #fff;
  border: 1px solid #dfe6eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.stat strong {
  display: block;
  font-size: 26px;
}

.stat span {
  color: #667085;
  font-size: 13px;
}

.stat.done strong {
  color: #087443;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.pipeline-step {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
  min-height: 76px;
}

.pipeline-step.has-count {
  border-color: #b8dfe6;
  background: #f0fafb;
}

.pipeline-step strong {
  display: block;
  font-size: 24px;
  color: #216978;
}

.pipeline-step span {
  color: #475467;
  font-size: 13px;
}

.people-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.person-card {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.person-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.person-head strong {
  font-size: 15px;
}

.person-head span {
  color: #667085;
  font-size: 13px;
}

.person-work {
  margin: 8px 0 6px;
  color: #172033;
  font-weight: 650;
}

.today-done-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toolbar .filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}

.toolbar .filters > div {
  width: min(230px, 100%);
}

.segmented-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.leaderboard-summary-grid {
  margin-top: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #eef2f4;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #f8fafb;
  color: #475467;
  font-weight: 750;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.listing-record-thumb {
  width: 96px;
}

.listing-record-thumb .thumb-slot {
  width: 76px;
  height: 76px;
  border-radius: 6px;
}

.listing-record-thumb .thumb-slot img {
  object-fit: cover;
}

.nowrap {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e8eef8;
  color: #31507f;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.badge.ready {
  background: #e5f5e8;
  color: #206a38;
}

.badge.locked {
  background: #fff1cf;
  color: #8a5a00;
}

.badge.done {
  background: #eee9fb;
  color: #57419a;
}

.badge.reject {
  background: #fde8e6;
  color: #a33225;
}

.badge.todo {
  background: #e5f2f7;
  color: #216978;
}

.task-card {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.task-card h3 {
  margin: 0;
  font-size: 15px;
}

.task-card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  color: #667085;
  font-size: 13px;
}

.task-card form {
  margin-top: 10px;
}

.style-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.listing-pool-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.image-review-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.style-card {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}

.style-card-image {
  height: 180px;
  background: #f6f8fa;
}

.style-card-image .thumb-slot {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

#stylesTable > .style-card-grid > .style-card .style-card-image {
  height: auto;
  aspect-ratio: 1 / 1;
}

#stylesTable > .style-card-grid > .style-card .style-card-image .thumb-slot img {
  object-fit: cover;
}

#stylesTable > .style-card-grid > .style-card.milk-tea-style-card .style-card-image {
  aspect-ratio: 3 / 4;
}

#stylesTable > .style-card-grid > .style-card.milk-tea-style-card .style-card-image .thumb-slot img {
  object-fit: contain;
  background: #fff;
}

.listing-pool-card .style-card-image {
  height: auto;
  aspect-ratio: 1 / 1;
}

.image-review-card .style-card-image {
  height: auto;
  aspect-ratio: 1 / 1;
}

.listing-pool-card .style-card-image .thumb-slot img {
  object-fit: cover;
}

.image-review-card .style-card-image .thumb-slot img {
  object-fit: cover;
}

.style-card-body {
  padding: 12px;
}

.style-card-head,
.asset-detail-head,
.asset-group-head,
.blocker-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.style-card-head h3,
.asset-detail-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.card-meta,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #667085;
  font-size: 13px;
}

.card-meta {
  margin: 9px 0;
}

.completeness {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.completeness span {
  border: 1px solid #dfe6eb;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  color: #667085;
  background: #f8fafb;
}

.completeness .ok {
  color: #206a38;
  border-color: #b9dfc2;
  background: #eef9f1;
}

.completeness .miss {
  color: #8a5a00;
  border-color: #f0d99a;
  background: #fff8e6;
}

.download-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions {
  margin-top: 10px;
}

.note-box {
  border: 1px solid #eef2f4;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 8px;
  margin: 8px 0;
}

.note-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.note-box p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  white-space: pre-wrap;
}

.row-actions {
  flex-wrap: wrap;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #f8fafb;
  color: #475467;
  font-size: 14px;
}

.pagination-bar .row-actions {
  margin-left: auto;
}

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  width: min(900px, 100vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid #dfe6eb;
  box-shadow: -18px 0 40px rgba(23, 32, 51, .15);
  display: flex;
  flex-direction: column;
}

.detail-head {
  height: 60px;
  border-bottom: 1px solid #dfe6eb;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-head strong,
.detail-head span {
  display: block;
}

.detail-body {
  padding: 14px;
  overflow: auto;
}

.detail-block {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.detail-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.kv {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 12px;
  margin-top: 10px;
}

.asset-group {
  border-top: 1px solid #eef2f4;
  padding-top: 12px;
  margin-top: 12px;
}

.asset-group:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.asset-group-head {
  align-items: center;
  margin-bottom: 10px;
}

.asset-group-head h4 {
  margin: 0;
  font-size: 14px;
}

.asset-group-head h4 span {
  color: #667085;
  font-weight: 500;
}

.blocker-list {
  display: grid;
  gap: 10px;
}

.blocker-card {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  align-items: center;
}

.blocker-card .thumb-slot {
  flex: 0 0 86px;
  width: 86px;
  height: 64px;
}

.claim-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-bottom: 12px;
}

.claim-card .style-card-image {
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.claim-card .style-card-image .thumb-slot img {
  object-fit: cover;
}

.optimize-card form {
  margin-top: 10px;
}

.file-row,
.log-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eef2f4;
  padding: 8px 0;
}

.file-row:last-child,
.log-row:last-child {
  border-bottom: 0;
}

.thumb-slot {
  width: 68px;
  height: 52px;
  border: 1px solid #dfe6eb;
  border-radius: 6px;
  background: #f6f8fa;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  font-size: 12px;
}

.thumb-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-slot.thumb-empty {
  cursor: default;
}

.task-thumb-row {
  margin-bottom: 10px;
}

.task-thumb-row .thumb-slot {
  width: 100%;
  height: 132px;
}

.review-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.review-card-grid .task-card {
  margin-bottom: 0;
}

.review-task-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-task-card .task-thumb-row .thumb-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}

.review-task-card .task-thumb-row .thumb-slot img {
  object-fit: cover;
}

.review-actions .btn {
  flex: 1 1 calc(50% - 5px);
  padding-left: 8px;
  padding-right: 8px;
}

.main-task-product-card {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
}

.main-task-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toolbar-form {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-form label {
  width: 100%;
  margin: 0 0 -4px;
}

.toolbar-form input[name="q"],
.toolbar-form input[name="style_keyword"] {
  width: min(360px, 72vw);
}

.toolbar-form input[name="count"] {
  width: 96px;
}

.main-task-toolbar-tip {
  flex: 1 1 220px;
}

.rejected-fix-card {
  border-color: #f2c4bc;
}

.reject-note {
  border: 1px solid #f2c4bc;
  border-radius: 6px;
  background: #fff6f4;
  color: #9f1c12;
  padding: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.main-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.main-task-item {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.main-task-item.done {
  border-color: #b9dfc2;
  background: #f7fcf8;
}

.main-task-item.white3d-reference {
  border-color: #f3c86b;
  background: #fffaf0;
}

.white3d-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #fff0c2;
  color: #8a5a00;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.main-task-thumb {
  aspect-ratio: 1 / 1;
  background: #f6f8fa;
}

.main-task-thumb .thumb-slot {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.main-task-meta {
  display: grid;
  gap: 6px;
  padding: 9px;
  font-size: 13px;
}

.main-reupload-form {
  display: grid;
  gap: 6px;
}

.main-reupload-form input[type="file"] {
  min-width: 0;
  font-size: 12px;
}

.is-uploading {
  opacity: 0.72;
  pointer-events: none;
}

.main-task-actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.main-task-actions {
  border-top: 1px solid #eef2f4;
  margin-top: 12px;
  padding-top: 12px;
}

.inline-form label {
  width: 100%;
  margin: 0 0 -4px;
}

.inline-form input[type="number"] {
  width: 110px;
}

.wide-inline-form {
  flex: 1 1 360px;
}

.wide-inline-form input[type="file"] {
  flex: 1 1 240px;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.file-card {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  background: #fff;
}

.file-card.historical-file {
  background: #fbfcfd;
  opacity: .72;
}

.file-revision-tag {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  margin-left: 6px;
  padding: 2px 7px;
  vertical-align: middle;
}

.file-revision-tag.latest {
  background: #e8f7ef;
  color: #087443;
}

.file-revision-tag.old {
  background: #f2f4f7;
  color: #667085;
}

.historical-files {
  border-top: 1px dashed #d0d5dd;
  margin-top: 12px;
  padding-top: 12px;
}

.file-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #dfe6eb;
  border-radius: 6px;
  background: #f6f8fa;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 8px;
}

.file-thumb.image {
  cursor: zoom-in;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.file-icon {
  flex-direction: column;
  gap: 6px;
}

.file-icon strong {
  color: #172033;
  font-size: 20px;
}

.file-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
}

.file-meta span {
  color: #667085;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-failed {
  color: #b42318;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 32, 51, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.image-modal-card {
  width: min(980px, 96vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.image-modal-head {
  min-height: 54px;
  border-bottom: 1px solid #dfe6eb;
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.image-modal-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-modal-body {
  min-height: 280px;
  max-height: calc(92vh - 56px);
  padding: 14px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f8fa;
}

.image-modal-body img {
  max-width: 100%;
  max-height: calc(92vh - 88px);
  object-fit: contain;
  display: block;
}

.preview-error {
  color: #b42318;
  background: #fff;
  border: 1px solid #f1b7b0;
  border-radius: 8px;
  padding: 12px 14px;
}

.listing-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
}

.video-task-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.video-info {
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
  margin: 10px 0;
}

.video-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.video-info a {
  color: #216978;
  overflow-wrap: anywhere;
}

.check-row {
  min-height: 38px;
}

.check-row input {
  width: auto;
}

.empty {
  color: #667085;
  padding: 14px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 420px;
  background: #172033;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(23, 32, 51, .25);
}

.sku-editor {
  border: 1px solid #dfe6eb;
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
  background: #f8fbfc;
}

.plate-board-list {
  display: grid;
  gap: 14px;
}

.plate-board-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid #dfe6eb;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.plate-board-preview .thumb-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}

.plate-board-main {
  min-width: 0;
}

.plate-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.plate-board-head h3 {
  margin: 0 0 6px;
}

.plate-board-form {
  margin-top: 10px;
}

.plate-board-upload {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 12px;
}

.sku-editor-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.sku-editor-grid,
.sku-editor-row {
  display: grid;
  grid-template-columns: 120px 88px 88px 88px 76px minmax(150px, 1fr) 160px auto;
  gap: 8px;
  align-items: center;
}

.sku-editor-labels {
  color: #667085;
  font-size: 12px;
  margin-bottom: 6px;
}

.sku-editor-row {
  margin-bottom: 8px;
}

.sku-code-preview {
  background: #eef7f8;
  border: 1px solid #cbe7ea;
  border-radius: 999px;
  color: #216978;
  font-size: 12px;
  padding: 7px 10px;
  white-space: nowrap;
}

.sku-summary-wrap {
  margin: 10px 0;
}

.sku-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sku-summary span,
.sku-summary.empty-sku {
  background: #f3f7f8;
  border: 1px solid #dfe6eb;
  border-radius: 999px;
  color: #172033;
  font-size: 12px;
  padding: 6px 9px;
}

.sku-summary.empty-sku {
  color: #667085;
}

.sku-table-wrap table th,
.sku-table-wrap table td {
  white-space: nowrap;
}

.private-material-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.private-material-form .full {
  grid-column: 1 / -1;
}

.private-material-form textarea {
  min-height: 92px;
}

.private-material-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.private-material-card {
  border: 1px solid #dfe6eb;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.private-material-main {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.private-material-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.private-material-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid #dfe6eb;
  border-radius: 6px;
  background: #f6f8fa;
  color: #667085;
  overflow: hidden;
  padding: 0;
}

.private-material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.private-material-copy {
  min-width: 0;
}

.copy-box {
  margin: 10px 0;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #dfe6eb;
  background: #f8fbfc;
  color: #172033;
  white-space: pre-wrap;
  line-height: 1.7;
  max-height: 180px;
  overflow: auto;
}

.private-material-actions {
  margin-top: 12px;
  justify-content: flex-end;
}

.private-material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.private-summary-panel {
  margin-bottom: 14px;
}

.private-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.warning-line,
.publish-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.warning-tag {
  border-radius: 999px;
  background: #fff4e5;
  border: 1px solid #ffd59a;
  color: #9a5b00;
  font-size: 12px;
  padding: 4px 8px;
}

.publish-info {
  border-top: 1px dashed #dfe6eb;
  padding-top: 8px;
  color: #344054;
}

.inline-workflow-form {
  width: 100%;
  margin-top: 8px;
}

.inline-workflow-form summary {
  cursor: pointer;
  color: #146c7c;
  font-weight: 700;
  margin-bottom: 8px;
}

.inline-workflow-form form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #dfe6eb;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}

.inline-workflow-form .full {
  grid-column: 1 / -1;
}

.inline-workflow-form textarea {
  min-height: 76px;
}

.feedback-list {
  margin-top: 12px;
  border-top: 1px solid #dfe6eb;
  padding-top: 10px;
}

.feedback-row {
  display: grid;
  gap: 4px;
  border: 1px solid #dfe6eb;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
  margin-bottom: 8px;
}

.compact-table {
  margin-top: 12px;
}

.compact-empty {
  padding: 20px;
}

@media (max-width: 980px) {
  .listing-pool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #dfe6eb;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
  }

  .nav-btn {
    width: auto;
    white-space: nowrap;
    margin: 0 4px 0 0;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
    gap: 10px;
  }

  .content {
    padding: 14px;
  }

  .claim-card {
    grid-template-columns: 1fr;
  }

  .claim-card .style-card-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .plate-board-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .plate-board-upload {
    grid-template-columns: 1fr;
  }

  .sku-editor-grid,
  .sku-editor-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .private-material-form,
  .private-material-main,
  .inline-workflow-form form {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .listing-pool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar .filters,
  .toolbar .filters > div,
  .toolbar .btn {
    width: 100%;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .plate-board-card {
    grid-template-columns: 1fr;
  }

  .sku-editor-grid,
  .sku-editor-row {
    grid-template-columns: 1fr;
  }
}
