:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #687384;
  --line: #d9dee7;
  --primary: #1769aa;
  --primary-dark: #0f4f82;
  --success: #17824d;
  --danger: #b83232;
}

.auth-body {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(145deg, #edf4fa, #f8fafc 48%, #eaf4ef);
  place-items: center;
}

.auth-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid rgba(217, 222, 231, .9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(31, 41, 51, .14);
}

.auth-card-wide { width: min(540px, 100%); }
.auth-brand { margin-bottom: 22px; text-align: center; }
.auth-brand > span { color: var(--primary); font-weight: 700; letter-spacing: .08em; }
.auth-brand h1 { margin: 8px 0; font-size: 26px; }
.auth-brand p { margin: 0; color: var(--muted); line-height: 1.6; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; font-weight: 600; }
.auth-form > a { text-align: center; }
.totp-qrcode { display: grid; width: 244px; min-height: 244px; margin: 18px auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; place-items: center; }
.totp-secret { display: block; margin: 10px 0 18px; padding: 10px; overflow-wrap: anywhere; border-radius: 6px; background: #f2f5f7; text-align: center; }
.totp-manual { margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; }
.totp-manual ol { margin: 10px 0 14px; padding-left: 22px; color: var(--muted); line-height: 1.8; }
.totp-copy-row { display: grid; margin-top: 7px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.totp-copy-row input { font-family: monospace; letter-spacing: .08em; }

.user-list { display: grid; gap: 14px; }
.user-editor { display: grid; gap: 16px; }
.user-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-editor-head > div { display: flex; align-items: center; gap: 9px; }
.user-editor-head small { color: var(--muted); }
.user-active { display: flex; align-items: center; gap: 6px; }
.permission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.permission-grid label { display: flex; min-height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; align-items: center; gap: 8px; }
.permission-grid input { width: auto; min-height: 0; }

@media (max-width: 760px) {
  .auth-card { padding: 22px 18px; }
  .permission-grid { grid-template-columns: 1fr; }
  .user-editor-head, .user-editor-head > div { align-items: flex-start; flex-direction: column; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

body.pjt-body {
  background: #f3f3f3;
  color: #333;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  overscroll-behavior: none;
}

body.pjt-body a {
  text-decoration: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.muted {
  margin: 6px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.button[disabled],
button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.button.secondary {
  background: #fff;
  color: var(--primary);
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.inventory-wizard {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
  backdrop-filter: blur(10px);
}

.inventory-wizard-head,
.inventory-wizard-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-wizard-head > div:first-child {
  min-width: 185px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.inventory-wizard-head > div strong {
  font-size: 16px;
}

.inventory-wizard-head > div span {
  color: var(--muted);
  font-size: 12px;
}

.inventory-wizard-head > div span.is-saved {
  color: var(--success);
}

.inventory-wizard-steps {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.inventory-wizard-steps li {
  position: relative;
}

.inventory-wizard-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 2px;
  background: var(--line);
}

.inventory-wizard-steps li.is-complete::after {
  background: var(--success);
}

.inventory-wizard-steps button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  justify-items: center;
  gap: 5px;
}

.inventory-wizard-steps button b {
  display: grid;
  width: 31px;
  height: 31px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  place-items: center;
}

.inventory-wizard-steps li.is-active button,
.inventory-wizard-steps li.is-complete button {
  color: var(--primary);
}

.inventory-wizard-steps li.is-active button b {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.inventory-wizard-steps li.is-complete button b {
  border-color: var(--success);
  color: var(--success);
}

.inventory-wizard-actions {
  position: sticky;
  bottom: 12px;
  z-index: 35;
  display: grid;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.15);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.inventory-wizard-actions > span {
  color: var(--muted);
  text-align: center;
}

.upload-angle-grid.is-sequential {
  display: block;
  max-width: 520px;
  margin: 0 auto;
}

.upload-angle-grid.is-sequential .upload-tile {
  width: 100%;
  min-height: 380px;
}

.upload-angle-grid.is-sequential .upload-tile[hidden] {
  display: none !important;
}

.upload-angle-grid.is-sequential .upload-tile-preview {
  min-height: 290px;
}

.angle-upload-navigation {
  display: grid;
  max-width: 520px;
  margin: 14px auto 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.angle-upload-navigation strong {
  color: var(--text);
  text-align: center;
}

[data-inventory-step][hidden],
.inventory-wizard-actions [hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .inventory-wizard {
    margin-right: -12px;
    margin-left: -12px;
    padding: 10px 8px;
    border-radius: 0 0 10px 10px;
  }

  .inventory-wizard-head {
    display: block;
  }

  .inventory-wizard-head > div:first-child {
    min-width: 0;
    margin: 0 6px 9px;
    flex-direction: row;
    justify-content: space-between;
  }

  .inventory-wizard-steps button span {
    font-size: 10px;
    white-space: nowrap;
  }

  .inventory-wizard-steps button b {
    width: 27px;
    height: 27px;
  }

  .inventory-wizard-steps li:not(:last-child)::after {
    top: 13px;
  }

  .inventory-wizard-actions {
    bottom: 8px;
  }

  .upload-angle-grid.is-sequential .upload-tile {
    min-height: 300px;
  }

  .upload-angle-grid.is-sequential .upload-tile-preview {
    min-height: 220px;
  }

  .angle-upload-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .angle-upload-navigation strong {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

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

.cloud-drafts-panel {
  margin-top: 16px;
}

.cloud-drafts-head,
.cloud-draft-link,
.cloud-draft-meta,
.cloud-draft-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cloud-drafts-head h2,
.cloud-drafts-head p {
  margin: 0;
}

.cloud-drafts-head p {
  margin-top: 5px;
  color: var(--muted);
}

.cloud-drafts-head > span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--primary);
  white-space: nowrap;
}

.cloud-drafts-empty {
  margin-top: 14px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cloud-drafts-list {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cloud-draft-card {
  display: grid;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  gap: 12px;
}

.cloud-draft-summary {
  display: grid;
  gap: 4px;
}

.cloud-draft-summary strong {
  font-size: 15px;
}

.cloud-draft-summary span,
.cloud-draft-meta {
  color: var(--muted);
  font-size: 12px;
}

.cloud-draft-progress > div b {
  color: var(--primary);
}

.cloud-draft-progress > i {
  display: block;
  height: 7px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf0;
}

.cloud-draft-progress > i > em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.cloud-draft-link code {
  max-width: calc(100% - 110px);
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .cloud-drafts-list {
    grid-template-columns: 1fr;
  }

  .cloud-draft-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat strong {
  font-size: 22px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 160px 120px;
  gap: 10px;
}

.inline-edit-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.serial-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.serial-camera-button {
  min-height: 38px;
  gap: 6px;
  white-space: nowrap;
}

.serial-camera-button i {
  position: relative;
  width: 17px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.serial-camera-button i::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.serial-camera-button i::after {
  content: '';
  position: absolute;
  left: 3px;
  top: -4px;
  width: 6px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}

.serial-camera-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.serial-ocr-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(15, 23, 32, 0.76);
  backdrop-filter: blur(6px);
}

.serial-ocr-modal[hidden] {
  display: none;
}

.serial-ocr-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  padding: 16px;
  overflow-y: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.serial-ocr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.serial-ocr-head > div {
  display: grid;
  gap: 4px;
}

.serial-ocr-head strong {
  font-size: 17px;
}

.serial-ocr-head span {
  color: var(--muted);
  font-size: 11px;
}

.serial-ocr-head > button {
  width: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border-color: var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 22px;
}

.serial-crop-stage {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #121820;
  place-items: center;
}

.serial-crop-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 58vh;
  cursor: crosshair;
  touch-action: none;
}

.serial-ocr-progress {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dce5ed;
  border-radius: 7px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
}

.serial-ocr-progress[hidden] {
  display: none;
}

.serial-ocr-progress i {
  width: 16px;
  height: 16px;
  border: 2px solid #c5d3df;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: serial-ocr-spin 700ms linear infinite;
}

@keyframes serial-ocr-spin {
  to { transform: rotate(360deg); }
}

.serial-ocr-result {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #cfe0ec;
  border-radius: 7px;
  background: #f5f9fc;
}

.serial-ocr-result[hidden] {
  display: none;
}

.serial-ocr-result p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.serial-ocr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

body.serial-ocr-open {
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  min-height: 38px;
  padding: 8px 10px;
  font: inherit;
}

input.ocr-autofilled,
select.ocr-autofilled {
  border-color: var(--success);
  background: #f1fbf5;
  box-shadow: 0 0 0 3px rgba(23, 130, 77, 0.1);
}

.preupload-status {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
}

.is-preuploading .preupload-status {
  color: var(--primary);
}

.is-preuploaded .preupload-status {
  color: var(--success);
}

.is-preupload-error .preupload-status {
  color: var(--danger);
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

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

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: #fafbfc;
}

.thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f2f4f7;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #e8f2fb;
  color: var(--primary-dark);
}

.badge.sold {
  background: #e7f6ee;
  color: var(--success);
}

.profit {
  color: var(--success);
  font-weight: 700;
}

.loss {
  color: var(--danger);
  font-weight: 700;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.has-suggestions {
  position: relative;
}

.input-suggestions {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.input-suggestions[hidden] {
  display: none;
}

.input-suggestion-item {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.input-suggestion-item:hover,
.input-suggestion-item:focus {
  background: #f2f6fb;
  outline: none;
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  font-weight: 400;
}

.checkbox-item input {
  flex: 0 0 auto;
}

.function-check-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.function-check-card .checkbox-item {
  border: 0;
  border-radius: 0;
}

.function-image-upload {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-top: 1px solid #edf0f4;
  background: #f8fafc;
}

.function-image-upload img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 7px;
  object-fit: cover;
}

.function-image-upload input[type="file"] {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}

.section-title {
  margin: 22px 0 12px;
  font-size: 18px;
}

.condition-grade-field {
  min-width: 0;
}

.condition-grade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.condition-grade-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.condition-grade-scale {
  display: flex;
  gap: 8px;
  padding: 2px 1px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b7c6d3 transparent;
  -webkit-overflow-scrolling: touch;
}

.condition-grade-scale::-webkit-scrollbar {
  height: 4px;
}

.condition-grade-scale::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #b7c6d3;
}

.condition-grade-option {
  position: relative;
  flex: 0 0 104px;
  scroll-snap-align: center;
  cursor: pointer;
}

.condition-grade-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.condition-grade-option > span {
  display: grid;
  min-height: 68px;
  padding: 10px 8px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.condition-grade-option b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #edf1f5;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.condition-grade-option strong {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.condition-grade-option input:checked + span {
  border-color: var(--primary);
  background: #eef6fc;
  color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(23, 105, 170, 0.12);
}

.condition-grade-option input:checked + span b {
  background: var(--primary);
  color: #fff;
}

.condition-grade-option input:focus-visible + span {
  outline: 2px solid rgba(23, 105, 170, 0.3);
  outline-offset: 2px;
}

.condition-grade-range {
  display: grid;
  grid-template-columns: auto minmax(50px, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.condition-grade-range i {
  height: 1px;
  background: linear-gradient(90deg, #b7c0c8, var(--primary));
}

.battery-health-field {
  --battery-accent: #d77878;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff3f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 14px rgba(31, 41, 51, 0.05);
  transition: background-color 260ms ease, border-color 260ms ease;
}

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

.battery-health-title {
  display: grid;
  gap: 2px;
}

.battery-health-title small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.battery-health-editor {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  min-width: 72px;
  padding: 2px 7px 3px 9px;
  border-bottom: 1px solid var(--battery-accent);
  color: #24313b;
  cursor: text;
  transition: border-color 260ms ease;
}

.battery-health-editor input[type="number"] {
  width: 48px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}

.battery-health-editor input[type="number"]::-webkit-inner-spin-button,
.battery-health-editor input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.battery-health-editor span {
  font-size: 14px;
  font-weight: 650;
}

.battery-health-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 -16px 14px;
  padding: 12px 16px;
  border-top: 1px solid rgba(104, 115, 132, 0.13);
  border-bottom: 1px solid rgba(104, 115, 132, 0.13);
  background: rgba(255, 255, 255, 0.42);
}

.battery-health-icon {
  position: relative;
  display: block;
  width: 36px;
  height: 20px;
  padding: 3px;
  border: 1.5px solid #6f7b85;
  border-radius: 5px;
}

.battery-health-icon::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 6px;
  width: 3px;
  height: 7px;
  border-radius: 0 2px 2px 0;
  background: #6f7b85;
}

.battery-health-icon i {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: 2px;
  background: var(--battery-accent);
  transition: width 260ms ease, background-color 260ms ease;
}

.battery-health-status > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.battery-health-status strong {
  color: #26313a;
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
}

.battery-health-status em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 15px;
}

input.battery-health-range {
  --battery-progress: 50%;
  width: 100%;
  height: 30px;
  min-height: 30px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: linear-gradient(90deg, var(--battery-accent) 0 var(--battery-progress), rgba(145, 157, 166, 0.28) var(--battery-progress) 100%);
  background-position: center;
  background-size: 100% 5px;
  background-repeat: no-repeat;
  cursor: grab;
  appearance: none;
  -webkit-appearance: none;
  touch-action: none;
}

input.battery-health-range:active {
  cursor: grabbing;
}

input.battery-health-range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--battery-accent);
  box-shadow: 0 2px 7px rgba(70, 78, 84, 0.24);
  appearance: none;
  -webkit-appearance: none;
}

input.battery-health-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--battery-accent);
  box-shadow: 0 2px 7px rgba(15, 79, 130, 0.28);
}

input.battery-health-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(23, 105, 170, 0.2), 0 2px 7px rgba(15, 79, 130, 0.28);
}

.battery-health-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.battery-health-field p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.preview {
  display: grid;
  gap: 8px;
}

.preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f2f4f7;
}

.upload-panel {
  overflow: hidden;
}

.upload-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.upload-section-head .section-title {
  margin: 0 0 5px;
}

.upload-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.upload-section-head > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.upload-angle-grid {
  gap: 12px;
}

.upload-tile {
  position: relative;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.upload-tile:hover,
.upload-tile:focus-within {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(25, 76, 117, 0.1);
  transform: translateY(-1px);
}

.upload-tile-label {
  padding: 9px 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.upload-tile-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f6f8fa;
  color: var(--muted);
}

.upload-tile-preview img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.upload-tile-preview i,
.detail-upload-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid #b8c2cc;
  border-radius: 50%;
}

.upload-tile-preview i::before,
.upload-tile-preview i::after,
.detail-upload-icon::before,
.detail-upload-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1px;
  background: #7c8995;
  transform: translate(-50%, -50%);
}

.upload-tile-preview i::after,
.detail-upload-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.upload-tile-preview em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.upload-tile input[type="file"],
.detail-upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-tile-action {
  padding: 8px 10px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.detail-upload-zone {
  position: relative;
  display: grid;
  min-height: 150px;
  padding: 22px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #9eb1c1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.detail-upload-zone:hover,
.detail-upload-zone.is-dragging {
  border-color: var(--primary);
  background: #f1f7fb;
}

.detail-upload-zone strong {
  color: var(--text);
  font-size: 14px;
}

.detail-upload-zone em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

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

.detail-selection[hidden] {
  display: none;
}

.detail-selection figure {
  min-width: 0;
  margin: 0;
}

.detail-selection img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.detail-selection figcaption {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.notice {
  border-left: 4px solid var(--primary);
  background: #eef6fc;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.view-layout {
  max-width: 1180px;
}

.view-topbar {
  align-items: flex-start;
}

.back-link {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.product-media,
.product-summary,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-media {
  min-height: 420px;
  overflow: hidden;
}

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

.product-media-empty {
  display: grid;
  min-height: 420px;
  place-items: center;
  color: var(--muted);
  background: #f3f5f8;
  font-weight: 700;
}

.product-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-heading strong {
  color: var(--muted);
  font-size: 13px;
}

.product-summary h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-tags span,
.repair-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  padding: 5px 9px;
  font-weight: 700;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.price-grid div {
  display: grid;
  gap: 7px;
  min-height: 78px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.price-grid span,
.detail-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price-grid strong {
  color: #111827;
  font-size: 20px;
}

.summary-meta {
  display: grid;
  gap: 9px;
  color: #475569;
  line-height: 1.55;
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.info-panel {
  padding: 18px;
  margin-bottom: 16px;
}

.view-grid .info-panel {
  margin-bottom: 0;
}

.info-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-item {
  display: grid;
  gap: 6px;
  min-height: 66px;
  border-bottom: 1px solid #edf1f5;
  padding: 4px 0 10px;
}

.detail-item strong,
.feature-text {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.repair-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-text {
  margin: 0;
}

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

.detail-asset-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.asset-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #f8fafc;
}

.asset-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.asset-card a {
  display: block;
  color: inherit;
}

.asset-card figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 700;
}

.pjt-page {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 24px;
  background: #f3f3f3;
}

.pjt-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.pjt-back {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.pjt-back::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
}

.pjt-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

.pjt-nav-actions a {
  color: #333;
}

.pjt-query-nav {
  padding-right: 14px;
  padding-left: 14px;
}

.pjt-query-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.pjt-query-brand strong {
  color: #111827;
  font-size: 16px;
  line-height: 22px;
}

.pjt-query-brand span {
  color: #6b7280;
  font-size: 12px;
}

.pjt-query-result {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 12px;
  background: #ecfdf3;
  color: #16803c;
  font-size: 11px;
  font-weight: 700;
}

.pjt-gallery {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.pjt-gallery-track {
  display: flex;
  touch-action: pan-y;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.pjt-gallery-track::-webkit-scrollbar {
  display: none;
}

.pjt-gallery-track[data-dragging="1"] {
  cursor: grabbing;
}

.pjt-gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  background: #f8f8f8;
}

.pjt-gallery-link {
  position: relative;
  display: block;
  color: inherit;
}

.pjt-gallery-slide img,
.pjt-gallery-empty {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8f8f8;
}

.pjt-gallery-empty {
  display: grid;
  place-items: center;
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

.pjt-gallery-slide figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(50% - 18px);
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pjt-gallery-more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 24px;
  padding: 5px 10px;
  border: 0;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  line-height: 14px;
}

#detail-images {
  scroll-margin-top: 56px;
}

.pjt-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}

.pjt-gallery-dots span {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: background 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.pjt-gallery-dots span.active {
  background: #fff;
  opacity: 1;
  transform: scale(1.55);
}

.pjt-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.92);
  touch-action: pan-y;
  user-select: none;
}

.pjt-image-viewer[hidden] {
  display: none;
}

.pjt-image-viewer img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  pointer-events: none;
}

body.pjt-viewer-open {
  overflow: hidden;
}

.pjt-image-viewer-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  min-height: 26px;
  padding: 6px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pjt-image-viewer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  min-height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.5);
  color: #fff;
  padding: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pjt-image-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.5);
  color: transparent;
  font-size: 0;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pjt-image-viewer-nav::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.pjt-image-viewer-prev {
  left: 14px;
}

.pjt-image-viewer-prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.pjt-image-viewer-next {
  right: 14px;
}

.pjt-image-viewer-next::before {
  transform: translateX(-2px) rotate(45deg);
}

.pjt-image-viewer-close:active,
.pjt-image-viewer-nav:active {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(0.94);
}

.pjt-image-viewer-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.pjt-image-viewer-count {
  position: absolute;
  top: 20px;
  left: 50%;
  min-width: 52px;
  padding: 5px 10px;
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pjt-card,
.pjt-report {
  margin-top: 8px;
  background: #fff;
}

.pjt-content-flow {
  margin-top: 8px;
  padding: 0 12px 6px;
  background: #fff;
}

.pjt-content-flow > .pjt-card,
.pjt-content-flow > .pjt-report {
  margin-top: 0;
}

.pjt-content-flow > .pjt-benefits {
  margin-right: 0;
  margin-left: 0;
}

.pjt-card {
  overflow: hidden;
}

.pjt-pricing {
  padding: 12px;
}

.pjt-price-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pjt-price-main {
  color: #ff3b2d;
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
}

.pjt-price-main span {
  font-size: 16px;
  margin-right: 1px;
}

.pjt-sale-state {
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #fff5f5;
  color: #ff542b;
  font-size: 11px;
  font-weight: 500;
}

.pjt-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 7px;
  color: #999;
  font-size: 11px;
}

.pjt-basic {
  margin-right: -12px;
  margin-left: -12px;
  padding: 16px 16px 15px;
  border-bottom: 1px solid #ece9e6;
}

.pjt-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 20px;
}

.pjt-grade {
  position: relative;
  top: 1px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(270deg, #fe7d65, #ff3b2d);
  color: #fff;
  font-style: normal;
}

.pjt-grade em {
  padding: 2px 4px;
  font-size: 11px;
  font-style: normal;
  background: transparent;
  color: inherit;
  line-height: 12px;
}

.pjt-grade strong {
  max-width: 70px;
  padding: 2px 6px 2px 5px;
  background: #fff5f5;
  color: #ff5a30;
  font-size: 11px;
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pjt-sku {
  flex: 1;
  min-width: 0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.pjt-description {
  margin: 8px 0 0;
  color: #333;
  font-size: 12px;
  line-height: 18px;
}

.pjt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pjt-tags span {
  height: 17px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 87, 45, 0.3);
  border-radius: 2px;
  color: #ff3b2d;
  font-size: 11px;
  line-height: 12px;
}

.pjt-benefits {
  margin: 0;
  padding: 0 4px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #ece9e6;
  border-radius: 0;
  background: #fff;
}

.pjt-benefits-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 11px;
  border-bottom: 1px solid #ededed;
}

.pjt-benefits-head strong {
  color: #222;
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

.pjt-benefits-head span {
  color: #aaa;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.pjt-benefit-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px 0;
}

.pjt-benefit-row + .pjt-benefit-row {
  margin-top: 0;
  border-top: 1px solid #ededed;
}

.pjt-benefit-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 5px;
  align-items: baseline;
  padding-right: 11px;
  border-right: 1px solid #ddd;
}

.pjt-benefit-label b {
  color: #a65349;
  font-size: 9px;
  font-weight: 600;
}

.pjt-benefit-label strong {
  color: #333;
  font-size: 12px;
  font-weight: 600;
}

.pjt-benefit-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: #333;
  font-size: 11px;
}

.pjt-benefit-content span {
  position: relative;
  min-width: 0;
  padding-left: 14px;
  white-space: nowrap;
}

.pjt-benefit-content span::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 3px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #8d433a;
  border-bottom: 1.5px solid #8d433a;
  transform: rotate(-45deg);
}

.pjt-report {
  padding: 16px 0 4px;
}

.pjt-report-title,
.pjt-real-images h2 {
  margin: 0 0 12px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.pjt-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.pjt-summary div {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 78px;
  padding: 10px 4px;
  border-radius: 8px;
  background: #f8f8f8;
}

.pjt-summary span,
.pjt-property-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.pjt-summary .ok,
.pjt-property-icon.ok {
  position: relative;
  background: #22a660;
  box-shadow: 0 2px 5px rgba(34, 166, 96, 0.22);
}

.pjt-summary .ok::after,
.pjt-property-icon.ok::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.pjt-summary .warn,
.pjt-property-icon.warn {
  position: relative;
  background: #ff8a00;
  box-shadow: 0 2px 5px rgba(255, 138, 0, 0.22);
}

.pjt-summary .warn::before,
.pjt-property-icon.warn::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 2px;
  height: 7px;
  border-radius: 1px;
  background: #fff;
}

.pjt-summary .warn::after,
.pjt-property-icon.warn::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
}

.pjt-summary strong {
  max-width: 100%;
  color: #333;
  font-size: 13px;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pjt-summary em {
  color: #999;
  font-size: 11px;
  font-style: normal;
}

.pjt-device-overview {
  margin: 0;
  padding: 18px 16px 14px;
  border: 1px solid rgba(174, 106, 96, 0.34);
  border-radius: 8px;
  background-color: #fff9f8;
  background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 250, 249, 0.68)), url('../index/7447138e-b734-49f2-8570-48a68447e476.png');
  background-position: center top;
  background-size: cover;
  box-shadow: none;
}

.pjt-device-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pjt-device-overview-kicker {
  display: block;
  margin-bottom: 2px;
  color: #9a6a63;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.pjt-device-overview-head h2 {
  margin: 0;
  color: #241d1c;
  font-size: 20px;
  font-weight: 650;
  line-height: 28px;
}

.pjt-device-overview-status {
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(143, 63, 53, 0.45);
  border-radius: 0;
  background: transparent;
  color: #7d514b;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
}

.pjt-device-grade {
  margin-bottom: 0;
  padding: 20px 0 18px;
  overflow: hidden;
  border-top: 1px solid rgba(143, 63, 53, 0.18);
  border-bottom: 1px solid rgba(143, 63, 53, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pjt-device-grade span,
.pjt-device-grade em {
  display: block;
  color: #957771;
  font-size: 10px;
  font-style: normal;
  line-height: 14px;
}

.pjt-device-grade strong {
  display: block;
  margin: 4px 0 3px;
  color: #7e3028;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 40px;
}

.pjt-device-keyfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(143, 63, 53, 0.18);
}

.pjt-device-keyfacts div {
  min-width: 0;
  padding: 15px 12px 14px;
  border: 0;
  border-right: 1px solid rgba(143, 63, 53, 0.16);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.pjt-device-keyfacts div:first-child {
  padding-left: 0;
}

.pjt-device-keyfacts div:last-child {
  padding-right: 0;
  border-right: 0;
}

.pjt-device-keyfacts span {
  display: block;
  margin-bottom: 4px;
  color: #9b8581;
  font-size: 10px;
  line-height: 14px;
}

.pjt-device-keyfacts strong {
  display: block;
  color: #2d2523;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pjt-device-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  padding: 0 0 4px;
}

.pjt-device-overview-item {
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(143, 63, 53, 0.13);
  border-radius: 0;
  background: transparent;
}

.pjt-device-overview-item.is-wide {
  grid-column: 1 / -1;
  background: transparent;
}

.pjt-device-overview-item span {
  display: block;
  margin-bottom: 4px;
  color: #9b817d;
  font-size: 10px;
  line-height: 14px;
}

.pjt-device-overview-item strong {
  display: block;
  color: #2d2523;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.pjt-protection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
  padding-top: 17px;
  border-top: 1px solid rgba(143, 63, 53, 0.25);
}

.pjt-protection-head strong {
  color: #302524;
  font-size: 15px;
  line-height: 22px;
}

.pjt-protection-head span {
  color: #9b7e79;
  font-size: 10px;
}

.pjt-protection-list {
  border-top: 1px solid rgba(143, 63, 53, 0.13);
}

.pjt-protection-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(143, 63, 53, 0.13);
}

.pjt-protection-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(143, 63, 53, 0.38);
  border-radius: 50%;
  color: #843b32;
  font-size: 13px;
  font-weight: 650;
}

.pjt-protection-item > div {
  min-width: 0;
}

.pjt-protection-item > div > span,
.pjt-protection-item em {
  display: block;
  color: #987c77;
  font-size: 10px;
  font-style: normal;
  line-height: 15px;
}

.pjt-protection-item strong {
  display: block;
  margin: 3px 0;
  color: #2d2523;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.pjt-inspection-group {
  border-top: 1px solid #f0f0f0;
  padding: 12px 0;
}

.pjt-inspection-details {
  margin-top: 14px;
  padding: 4px 14px 6px;
  overflow: hidden;
  border: 1px solid rgba(210, 133, 122, 0.42);
  border-radius: 14px;
  background-color: #fffaf9;
  background-image: linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 250, 249, 0.58)), url('../index/c7c0c433-1448-4254-be12-390cc7fca95b.png');
  background-position: center top;
  background-size: cover;
  box-shadow: 0 8px 24px rgba(111, 55, 46, 0.1);
}

.pjt-inspection-details .pjt-inspection-group:first-child {
  border-top: 0;
}

.pjt-inspection-details .pjt-inspection-group {
  border-color: rgba(185, 112, 101, 0.24);
}

.pjt-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.pjt-group-title span {
  color: #999;
  font-size: 12px;
  font-weight: 400;
}

.pjt-property-list {
  margin-top: 8px;
}

.pjt-function-grid .pjt-property-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.pjt-function-grid .pjt-property {
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  gap: 6px;
  min-width: 0;
}

.pjt-function-grid .pjt-property-name {
  min-width: 0;
}

.pjt-function-grid .pjt-property strong {
  white-space: nowrap;
}

.pjt-function-grid .pjt-property-compact {
  grid-template-columns: 18px minmax(0, 1fr) auto;
}

.pjt-function-thumb {
  display: block;
  width: 30px;
  height: 30px;
  align-self: center;
  overflow: hidden;
  border-radius: 7px;
  background: #f3f4f6;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

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

.pjt-function-grid .pjt-property-icon.ok ~ strong {
  display: none;
}

.pjt-property {
  display: grid;
  grid-template-columns: 18px 84px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 0;
  color: #333;
  line-height: 18px;
}

.pjt-property-name {
  color: #666;
  font-size: 12px;
}

.pjt-property strong {
  color: #333;
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.pjt-real-images {
  padding: 14px 12px;
}

.pjt-real-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pjt-real-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f8f8;
}

.pjt-real-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8f8f8;
}

.pjt-real-grid a {
  display: block;
  color: inherit;
}

.pjt-real-grid figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
}

.pjt-action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 58px 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 430px;
  min-height: 58px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.pjt-action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
}

.pjt-action-minor {
  color: #333;
}

.pjt-action-cart {
  background: #fff4ee;
  color: #ff542a;
}

.pjt-action-buy {
  background: linear-gradient(270deg, #ff5e40, #ff3b2d);
  color: #fff;
}

.error {
  border-left-color: var(--danger);
  background: #fff0f0;
}

.print-page {
  background: #fff;
}

.print-sheet {
  display: flex;
  flex-direction: column;
  width: 50mm;
  height: 40mm;
  margin: 0 auto;
  padding: 2mm;
  overflow: hidden;
}

.print-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.print-card {
}

.print-row {
  display: grid;
  grid-template-columns: 11mm minmax(0, 1fr);
  min-height: 5.8mm;
}

.print-row:last-child {
  border-bottom: 0;
}

.print-row span,
.print-row strong {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.7mm 1mm;
  line-height: 1.08;
}

.print-row span {
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.print-row strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 800;
}

.print-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
  padding-top: 1mm;
  text-align: center;
}

.print-code div {
  max-width: 100%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media print {
  @page {
    size: 50mm 40mm;
    margin: 0;
  }

  html,
  body {
    width: 50mm;
    height: 40mm;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-sheet {
    position: fixed;
    inset: 0;
    width: 50mm;
    height: 40mm;
    margin: 0;
    padding: 2mm;
    overflow: hidden;
  }

  .print-actions {
    display: none;
  }
}

@media (max-width: 900px) {
  .stats,
  .form-grid,
  .image-grid,
  .gallery,
  .filters,
  .checkbox-list,
  .product-hero,
  .view-grid,
  .detail-grid,
  .asset-grid,
  .detail-asset-grid {
    grid-template-columns: 1fr;
  }

  .layout {
    padding: 14px;
  }

  .view-topbar {
    display: grid;
  }

  .product-media,
  .product-media-empty {
    min-height: 320px;
  }

  .product-summary {
    padding: 16px;
  }

  .product-summary h2 {
    font-size: 24px;
  }

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

  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  body {
    min-width: 0;
  }

  .layout {
    width: 100%;
    padding: 12px;
  }

  .topbar {
    display: grid;
    align-items: start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 2px 2px 0;
  }

  .topbar h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .actions,
  .print-actions {
    width: 100%;
  }

  .actions .button,
  .actions button,
  .print-actions .button,
  .print-actions button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
  }

  .panel,
  .info-panel {
    padding: 14px;
    border-radius: 8px;
  }

  .panel .section-title:first-child,
  .upload-section-head .section-title {
    margin-top: 0;
  }

  .section-title {
    margin: 8px 0 12px;
    font-size: 17px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }

  input[type="checkbox"] {
    min-height: auto;
  }

  .form-grid > label,
  .form-grid > .field {
    min-width: 0;
  }

  .serial-input-row {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .serial-camera-button {
    min-height: 44px;
    padding: 0;
  }

  .serial-camera-button span {
    display: none;
  }

  .serial-ocr-modal {
    padding: 0;
    align-items: end;
  }

  .serial-ocr-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 14px;
    border-radius: 14px 14px 0 0;
  }

  .serial-crop-stage {
    min-height: 220px;
  }

  .serial-ocr-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: sticky;
    bottom: -14px;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    background: #fff;
  }

  .serial-ocr-actions button:last-child {
    grid-column: 1 / -1;
  }

  .upload-section-head {
    display: grid;
    gap: 10px;
  }

  .upload-section-head > span {
    justify-self: start;
  }

  .upload-tile-label {
    padding: 8px;
    font-size: 11px;
  }

  .upload-tile-action {
    padding: 8px 5px;
  }

  .detail-upload-zone {
    min-height: 138px;
    padding: 18px 12px;
  }

  form > .panel:last-child > .actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 18px -14px -14px !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 18px rgba(31, 41, 51, 0.08);
    backdrop-filter: blur(8px);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat {
    padding: 10px;
  }

  .stat strong {
    font-size: 18px;
  }

  .filters,
  .form-grid,
  .checkbox-list {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .inventory-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .inventory-table {
    display: block;
    min-width: 0;
    overflow: visible;
  }

  .inventory-table thead {
    display: none;
  }

  .inventory-table tbody {
    display: grid;
    gap: 12px;
  }

  .inventory-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(31, 41, 51, 0.05);
  }

  .inventory-table td {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 9px 12px;
    border-bottom: 1px solid #edf0f4;
    overflow-wrap: anywhere;
  }

  .inventory-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
  }

  .inventory-table td:not(.inventory-media) {
    grid-column: 1 / -1;
  }

  .inventory-table .inventory-media {
    grid-column: 1 / 2;
    grid-template-columns: 1fr;
    grid-row: span 2;
    padding: 12px;
  }

  .inventory-table .inventory-media::before {
    display: none;
  }

  .inventory-table .inventory-media .thumb {
    width: 100%;
    max-width: 112px;
    height: 112px;
    border-radius: 8px;
    object-fit: cover;
  }

  .inventory-table td[data-label="系统编号"] {
    grid-column: 2 / 3;
    grid-template-columns: 1fr;
    align-content: start;
    padding: 14px 12px 7px 0;
    border-bottom: 0;
  }

  .inventory-table td[data-label="系统编号"]::before {
    margin-bottom: 3px;
  }

  .inventory-table td[data-label="手机序列号"] {
    grid-column: 2 / 3;
    grid-template-columns: 1fr;
    padding: 7px 12px 12px 0;
  }

  .inventory-table td[data-label="手机序列号"]::before {
    margin-bottom: 3px;
  }

  .inventory-table .inventory-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-bottom: 0;
  }

  .inventory-table .inventory-actions::before,
  .inventory-table .inventory-actions br {
    display: none;
  }

  .inventory-table .inventory-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px;
    border: 1px solid #cbd8e3;
    border-radius: 6px;
    background: #f7fafc;
    font-size: 12px;
    font-weight: 600;
  }

  .inventory-table .inventory-empty {
    display: block;
  }

  .inventory-table .inventory-empty td {
    display: block;
    padding: 28px;
    text-align: center;
  }

  .inventory-table .inventory-empty td::before {
    display: none;
  }

  th,
  td {
    padding: 9px 8px;
  }

  .pjt-page {
    max-width: none;
  }

  .pjt-nav {
    width: 100%;
  }

  .pjt-gallery-slide figcaption {
    left: 10px;
    bottom: 10px;
    max-width: 38%;
  }

  .pjt-gallery-more {
    right: 10px;
    bottom: 10px;
    max-width: 38%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pjt-gallery-dots {
    bottom: 28px;
    max-width: 48%;
  }

  .pjt-title {
    flex-wrap: wrap;
  }

  .pjt-sku {
    flex-basis: 100%;
  }

  .pjt-benefits {
    margin-left: 8px;
    margin-right: 8px;
  }

  .pjt-benefit-content {
    scrollbar-width: none;
  }

  .pjt-benefit-content::-webkit-scrollbar {
    display: none;
  }

  .pjt-summary {
    gap: 6px;
  }

  .pjt-property {
    grid-template-columns: 16px 72px minmax(0, 1fr);
    gap: 6px;
  }

  .pjt-action-bar {
    max-width: none;
    grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr);
    padding-left: 8px;
    padding-right: 8px;
  }

  .pjt-action-bar a {
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .pjt-price-main {
    font-size: 26px;
  }

  .pjt-property {
    grid-template-columns: 14px 64px minmax(0, 1fr);
  }

  .pjt-action-bar {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  .pjt-action-bar a {
    font-size: 12px;
  }
}
