:root {
  --primary: #2f75f6;
  --primary-dark: #1f5fd8;
  --success: #20c05c;
  --danger: #ff4d4f;
  --warning: #ff8a34;
  --text-title: #222222;
  --text-body: #666666;
  --text-sub: #999999;
  --disabled: #c0c0c0;
  --border: #eaeaee;
  --bg: #f5f6f8;
  --card: #ffffff;
  --tag-blue-bg: #edf4ff;
  --tag-green-bg: #eaf9f0;
  --tag-orange-bg: #fff3ec;
  --tag-gray-bg: #f0f2f5;
  --shadow: 0 6px 18px rgba(27, 54, 103, 0.04);
  --radius-card: 8px;
  --radius-btn: 8px;
  --radius-tag: 4px;
  --radius-modal: 16px;
  --page-width: 390px;
  --nav-height: 88px;
  --footer-pad: 120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text-title);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}

body {
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(47, 117, 246, 0.16), transparent 32%),
    linear-gradient(180deg, #edf3ff 0%, #f5f6f8 36%, #e9eef7 100%);
  overflow: hidden;
}

body.plain-browser-page {
  padding: 0;
  display: block;
  background: #ffffff;
  overflow: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.plain-browser-page .app-shell.plain-browser-shell {
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: #ffffff;
}

.demo-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-device {
  width: min(calc(var(--page-width) + 24px), 100%);
  padding: 12px;
  border-radius: 40px;
  background: linear-gradient(180deg, #1f2937 0%, #111827 50%, #0f172a 100%);
  box-shadow:
    0 32px 90px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.demo-device-screen {
  position: relative;
  width: 100%;
  height: min(844px, calc(100vh - 88px));
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.demo-device-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 26px;
  border-radius: 0 0 18px 18px;
  background: #0f172a;
  z-index: 50;
}

.demo-device-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 112px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  z-index: 50;
}

.topbar {
  z-index: 30;
  height: var(--nav-height);
  padding: 40px 16px 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(31, 95, 216, 0.16);
}

.topbar-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  flex: 1;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-side {
  min-width: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.ghost-chip,
.mini-btn,
.seg-btn,
.action-icon {
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.icon-btn:active,
.ghost-chip:active,
.mini-btn:active,
.seg-btn:active,
.action-icon:active,
.primary-btn:active,
.secondary-btn:active,
.danger-btn:active,
.list-row:active,
.customer-card:active,
.material-card:active,
.candidate-row:active,
.check-btn:active,
.footer-link:active,
.upload-tile:active {
  transform: scale(0.98);
}

.icon-btn {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
}

.page {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px var(--footer-pad);
  -webkit-overflow-scrolling: touch;
}

.section {
  margin-bottom: 12px;
}

.customer-tab-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.customer-tab {
  min-height: 38px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
}

.section-sub {
  font-size: 12px;
  color: var(--text-sub);
}

.customer-card {
  padding: 18px 8px 0;
  margin-bottom: 12px;
  overflow: hidden;
}

.customer-head,
.meta-row,
.space-title,
.toolbar,
.detail-main,
.price-line,
.modal-actions,
.footer-bar,
.bottom-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-name {
  padding: 0 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.meta-row,
.field-note,
.sub-line,
.empty-note,
.helper-text,
.list-subtitle {
  color: var(--text-sub);
  font-size: 12px;
}

.customer-card .meta-row {
  justify-content: flex-start;
  padding: 14px 18px 0;
  font-size: 13px;
}

.customer-info {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.35;
}

.progress-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: #e7edf7;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.card-actions {
  display: flex;
  align-items: center;
  margin: 0;
  border-top: 1px solid var(--border);
}

.customer-action {
  position: relative;
  flex: 1;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.customer-action + .customer-action::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--border);
}

.customer-action-icon {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.customer-action-icon.list-icon,
.customer-action-icon.change-icon {
  position: relative;
}

.customer-action-icon.list-icon {
  color: var(--primary);
  background: #eaf3ff;
}

.customer-action-icon.list-icon::before {
  content: "";
  width: 8px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  box-shadow: inset 0 3px 0 rgba(47, 117, 246, 0.12);
}

.customer-action-icon.list-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 4px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.customer-action-icon.change-icon {
  color: #ff7c45;
  background: #fff0e9;
}

.customer-action-icon.change-icon::before,
.customer-action-icon.change-icon::after {
  content: "";
  position: absolute;
}

.customer-action-icon.change-icon::before {
  width: 9px;
  height: 9px;
  border: 1.4px solid currentColor;
  border-radius: 3px;
  top: 5px;
  left: 5px;
}

.customer-action-icon.change-icon::after {
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  top: 7px;
  left: 7px;
  transform: rotate(45deg);
}

.primary-btn,
.secondary-btn,
.danger-btn,
.mini-btn {
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.primary-btn.is-disabled,
.primary-btn:disabled,
.ghost-chip.is-disabled,
.seg-btn.is-disabled {
  background: #dfe8f9;
  color: #8ea6d9;
  pointer-events: none;
}

.secondary-btn {
  border: 1px solid #b9cdf9;
  color: var(--primary);
  background: #fff;
}

.danger-btn {
  border: 1px solid #ffd4d5;
  color: var(--danger);
  background: #fff;
}

.pill-tag,
.type-tag,
.status-tag,
.inline-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-tag);
  font-size: 12px;
  white-space: nowrap;
}

.status-tag.confirmed {
  color: var(--success);
  background: var(--tag-green-bg);
}

.status-tag.submitted {
  color: var(--primary);
  background: var(--tag-blue-bg);
}

.status-tag.pending {
  color: var(--warning);
  background: var(--tag-orange-bg);
}

.type-tag.original {
  color: #7f8792;
  background: var(--tag-gray-bg);
}

.type-tag.new {
  color: var(--primary);
  background: var(--tag-blue-bg);
}

.type-tag.added {
  color: var(--success);
  background: var(--tag-green-bg);
}

.inline-tag.orange {
  color: var(--warning);
  background: var(--tag-orange-bg);
}

.inline-tag.gray {
  color: var(--text-sub);
  background: var(--tag-gray-bg);
}

.inline-tag.blue {
  color: var(--primary);
  background: var(--tag-blue-bg);
}

.search-row,
.series-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidate-quick-tags {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidate-quick-tag {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

.series-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.series-bar .series-row {
  flex: 1;
  min-width: 0;
}

.filter-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.search-box {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-title);
}

.search-box::placeholder,
.textarea::placeholder {
  color: #b0b7c2;
}

.search-btn {
  min-width: 72px;
  height: 40px;
}

.series-row {
  overflow-x: auto;
  padding-bottom: 2px;
}

.ghost-chip,
.seg-btn,
.mini-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-body);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.ghost-chip.is-active,
.seg-btn.is-active {
  border-color: rgba(47, 117, 246, 0.18);
  background: var(--tag-blue-bg);
  color: var(--primary);
}

.space-group {
  margin-bottom: 12px;
}

.space-title {
  padding: 10px 12px;
  border-radius: var(--radius-card);
  background: #edf4ff;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.space-title strong {
  font-size: 14px;
}

.space-add {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.list-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.list-row,
.candidate-row {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
}

.list-row {
  padding-right: 10px;
}

.list-row:last-child,
.candidate-row:last-child {
  border-bottom: 0;
}

.thumb,
.thumb-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  flex-shrink: 0;
}

.thumb {
  display: block;
  object-fit: cover;
  background: #f1f3f6;
}

.thumb-placeholder {
  background: linear-gradient(135deg, #f0f2f5, #e6ebf2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #95a0af;
  font-size: 12px;
}

.candidate-thumb-box {
  position: relative;
  width: 72px;
  flex-shrink: 0;
}

.candidate-state-chip {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px 0 7px 0;
  background: #eaf9f0;
  color: var(--success);
  font-size: 11px;
  line-height: 22px;
}

.row-body {
  flex: 1;
  min-width: 0;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.row-title strong {
  font-size: 15px;
  color: var(--text-title);
}

.row-line {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-body);
}

.row-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-sub);
  font-size: 12px;
}

.row-code-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.candidate-row .copy-btn {
  min-width: auto;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  line-height: 1;
}

.material-card .copy-btn {
  min-width: auto;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  line-height: 1;
}

.row-code-price {
  margin-left: auto;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.copy-btn,
.check-btn,
.select-dot,
.action-icon {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-btn {
  color: var(--primary);
  background: #eef4ff;
  font-size: 12px;
}

.row-ops {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: auto;
}

.action-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
}

.action-icon.swap {
  border-color: rgba(47, 117, 246, 0.22);
  color: var(--primary);
  background: #f7faff;
}

.action-icon.confirm {
  border-color: rgba(32, 192, 92, 0.22);
  color: var(--success);
  background: #f5fcf7;
}

.action-icon.confirm.is-confirmed {
  color: #87c89f;
  background: #eef8f1;
}

.bottom-sheet,
.modal-mask,
.quota-picker {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
}

.bottom-sheet.is-open,
.modal-mask.is-open,
.quota-picker.is-open {
  display: block;
}

.sheet-backdrop,
.modal-backdrop,
.quota-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px 20px;
}

.sheet-title,
.modal-title {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.sheet-subtitle,
.modal-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.5;
}

.sheet-actions {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.sheet-action {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-title);
  background: #fff;
}

.sheet-action strong {
  font-size: 15px;
}

.sheet-action span {
  font-size: 12px;
  color: var(--text-sub);
}

.quota-picker-panel {
  position: absolute;
  inset: 0;
  background: #fff;
}

.quota-picker-header {
  height: 56px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border-bottom: 1px solid #eef0f3;
}

.quota-picker-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #68707c;
  font-size: 22px;
}

.quota-picker-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.quota-picker-placeholder {
  width: 44px;
  height: 44px;
}

.quota-picker-body {
  padding: 16px 12px;
}

.quota-picker-item {
  width: 100%;
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid #f2f3f5;
}

.quota-picker-item:last-child {
  border-bottom: 0;
}

.quota-picker-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #2a2f36;
  line-height: 1.5;
}

.quota-picker-item-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #8d95a3;
}

.quota-picker-badge {
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9ec3ff;
  border-radius: 6px;
  color: #6f9df4;
  background: #f8fbff;
  font-size: 12px;
}

.add-material-panel {
  bottom: 0;
  padding: 0;
  height: 372px;
  max-height: calc(100% - 96px);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.add-material-header {
  height: 92px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  border-bottom: 1px solid #edf0f3;
}

.add-material-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #20242c;
}

.add-material-placeholder {
  width: 36px;
  height: 36px;
}

.add-material-close {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-material-close::before,
.add-material-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #30343b;
  transform-origin: center;
}

.add-material-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.add-material-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.add-material-close span {
  display: none;
}

.add-material-body {
  flex: 1;
  min-height: 0;
  padding: 24px 20px 0;
}

.add-material-search-field {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: #f7faff;
}

.add-material-scan-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.add-material-scan-icon::before,
.add-material-scan-icon::after {
  content: "";
  position: absolute;
  inset: 0;
}

.add-material-scan-icon::before {
  background:
    linear-gradient(#2f3e56, #2f3e56) left top / 10px 2.5px no-repeat,
    linear-gradient(#2f3e56, #2f3e56) left top / 2.5px 10px no-repeat,
    linear-gradient(#2f3e56, #2f3e56) right top / 10px 2.5px no-repeat,
    linear-gradient(#2f3e56, #2f3e56) right top / 2.5px 10px no-repeat,
    linear-gradient(#2f3e56, #2f3e56) left bottom / 10px 2.5px no-repeat,
    linear-gradient(#2f3e56, #2f3e56) left bottom / 2.5px 10px no-repeat,
    linear-gradient(#2f3e56, #2f3e56) right bottom / 10px 2.5px no-repeat,
    linear-gradient(#2f3e56, #2f3e56) right bottom / 2.5px 10px no-repeat;
  border-radius: 4px;
}

.add-material-divider {
  width: 1px;
  height: 24px;
  margin: 0 14px 0 16px;
  background: #dde3eb;
  flex-shrink: 0;
}

.add-material-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #2b3038;
  font-size: 14px;
}

.add-material-input:focus {
  outline: none;
}

.add-material-input::placeholder {
  color: #c5c9d0;
}

.add-material-footer {
  padding: 20px 20px 24px;
  border-top: 1px solid #edf0f3;
}

.add-material-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(180deg, #3c86fb 0%, #2f75f6 100%);
}

.modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 40px);
  max-width: 340px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: var(--radius-modal);
  padding: 22px 18px 16px;
}

.modal-actions {
  gap: 10px;
  margin-top: 18px;
}

.modal-actions > button {
  flex: 1;
}

.toast-wrap {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 168px;
  max-width: min(300px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34, 34, 34, 0.92);
  color: #fff;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.floating-switch-socket {
  position: absolute;
  right: 12px;
  bottom: 104px;
  z-index: 55;
  width: 78px;
  height: 54px;
  border-radius: 18px;
  background: radial-gradient(circle at 58% 38%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.2) 22%, rgba(67, 158, 255, 0.82) 23%, #4b92ff 62%, #2f74f6 100%);
  box-shadow:
    0 10px 22px rgba(47, 116, 246, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.floating-switch-socket-plus {
  position: absolute;
  left: -4px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: #4b92ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(47, 116, 246, 0.26);
}

.floating-switch-socket-orb {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(201, 228, 255, 0.72) 100%);
  box-shadow:
    0 3px 10px rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(91, 148, 233, 0.22);
}

.floating-switch-socket-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(28, 78, 166, 0.35);
}

.switch-socket-page {
  padding-left: 0;
  padding-right: 0;
  background: #f5f6f8;
}

.switch-tip-bar {
  min-height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff6ef;
  color: #ff7e33;
  font-size: 12px;
}

.switch-tip-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.switch-socket-card {
  padding: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.switch-socket-title {
  position: relative;
  min-height: 48px;
  padding: 0 16px 0 14px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #2a2f36;
}

.switch-socket-title::before {
  content: "";
  width: 3px;
  height: 16px;
  margin-right: 8px;
  border-radius: 999px;
  background: #2f75f6;
}

.switch-socket-block {
  padding: 0 16px 16px;
}

.switch-socket-label {
  margin-bottom: 14px;
  color: #31363f;
  font-size: 14px;
}

.switch-brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}

.switch-brand-chip {
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #eceff3;
  border-radius: 2px;
  background: #f4f5f7;
  color: #6f7785;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.switch-brand-chip.is-active {
  border-color: #bfd7ff;
  background: #eef5ff;
  color: #2f75f6;
}

.switch-upload-grid {
  padding: 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.switch-upload-photo,
.switch-upload-add {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 4px;
  flex-shrink: 0;
}

.switch-upload-photo {
  overflow: hidden;
  background: #f1f3f6;
}

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

.switch-upload-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 34, 34, 0.8);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

.switch-upload-add {
  border: 1px dashed #d8dce3;
  background: #fafbfc;
  color: #97a0af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
}

.switch-upload-add-icon {
  font-size: 18px;
  line-height: 1;
}

.switch-remark {
  margin: 14px 16px 16px;
  min-height: 108px;
  border: 0;
  border-radius: 4px;
  background: #f7f8fa;
}

.footer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  gap: 10px;
}

.footer-actions {
  display: flex;
  gap: 8px;
  flex: 1;
}

.footer-link {
  flex: 1;
  min-height: 44px;
  border-radius: var(--radius-btn);
  background: #eef4ff;
  color: var(--primary);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.footer-link.is-disabled {
  background: #f0f2f5;
  color: #a5adba;
  pointer-events: none;
}

.footer-link .badge,
.badge {
  position: absolute;
  top: -4px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-main {
  position: relative;
}

.footer-main {
  flex: 1.2;
}

.helper-card,
.empty-state,
.upload-box,
.config-card,
.price-card,
.detail-card,
.toolbar-card {
  padding: 16px;
}

.empty-state {
  text-align: center;
  color: var(--text-sub);
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf2fb, #e4ebf8);
  color: #90a0b5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

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

.field-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.field-value {
  font-size: 14px;
  color: var(--text-title);
  line-height: 1.5;
}

.price-card {
  background: #f8fbff;
  border: 1px solid #dce9ff;
  border-radius: 12px;
}

.detail-card .detail-main {
  align-items: flex-start;
  gap: 16px;
}

.detail-price-inline {
  margin: 12px 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.detail-spec-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-spec-price span {
  min-width: 0;
  flex: 1;
}

.price-line {
  gap: 16px;
}

.price-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: right;
}

.price-adjust {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.price-adjust strong {
  font-size: 16px;
  color: var(--text-title);
}

.price-adjust.is-up strong {
  color: var(--danger);
}

.price-adjust.is-down strong {
  color: var(--success);
}

.choice-row {
  display: grid;
  gap: 10px;
}

.choice-card,
.config-row,
.upload-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.choice-card {
  padding: 14px;
}

.choice-card.is-active {
  border-color: rgba(47, 117, 246, 0.28);
  background: #f7faff;
}

.choice-card strong {
  display: block;
  font-size: 15px;
}

.choice-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-sub);
}

.config-row {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  width: 100%;
  text-align: left;
}

.config-row strong {
  font-size: 14px;
}

.config-row .value {
  font-size: 13px;
  color: #a1a9b5;
  padding-right: 14px;
  position: relative;
  max-width: 72%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.config-row .value::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #c0c7d4;
}

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

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

.upload-tile {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--text-sub);
}

.upload-tile.is-filled {
  background: #f7fafc;
  border-style: dashed;
}

.upload-tile strong {
  color: var(--text-title);
  font-size: 13px;
}

.textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  resize: none;
  background: #fff;
  color: var(--text-title);
}

.candidate-row.is-current {
  background: #f8fbff;
}

.candidate-row.is-selected {
  outline: 2px solid rgba(47, 117, 246, 0.18);
  outline-offset: -2px;
}

.price-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

.list-header {
  margin-bottom: 8px;
}

.toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toolbar-link {
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.toolbar-link.is-muted {
  color: #aeb5c2;
}

.material-card {
  position: relative;
  padding: 14px 12px;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.material-pair-card {
  padding-top: 12px;
  padding-bottom: 12px;
}

.space-group > .material-card {
  border-bottom: 1px solid #f0f2f5;
}

.space-group > .material-card:last-child {
  border-bottom: 0;
}

.material-pair-block + .material-pair-block {
  margin-top: 0;
}

.material-pair-divider {
  height: 1px;
  margin: 12px 0;
  background: #edf0f3;
}

.material-check {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.check-btn {
  width: 22px;
  height: 22px;
  border: 1.5px solid #bfd1f8;
  color: transparent;
  background: #fff;
}

.check-btn.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.material-top {
  display: flex;
  gap: 10px;
}

.material-media {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.material-type-side {
  padding-top: 2px;
  flex-shrink: 0;
}

.material-type-side .type-tag {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.material-meta {
  flex: 1;
  min-width: 0;
}

.tag-row,
.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.delta.minus {
  color: var(--success);
}

.delta.plus {
  color: var(--danger);
}

.delta {
  font-size: 13px;
  font-weight: 600;
}

.bottom-select {
  gap: 12px;
  flex: 1;
}

.select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  font-size: 14px;
}

.summary-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.summary-box strong {
  font-size: 16px;
}

.notice-strip {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8ec;
  color: #a86d1e;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #ffe2b3;
}

.submitted-change-page {
  padding-left: 0;
  padding-right: 0;
  background: #f7f8fa;
}

.submitted-change-page #listContainer {
  margin-top: -8px;
}

.submitted-time {
  padding: 8px 18px 10px;
  text-align: right;
  color: #9ba1aa;
  font-size: 12px;
  background: #fff;
}

.submitted-space-group {
  margin-bottom: 14px;
  background: #fff;
}

.submitted-space-title {
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #e2f1ff 0%, #f0f8ff 100%);
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 700;
}

.submitted-record-list {
  padding: 0 12px;
}

.submitted-record {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

.submitted-record:last-child {
  border-bottom: 0;
}

.submitted-record .material-top {
  padding-right: 58px;
}

.submitted-sync-badge {
  position: absolute;
  top: 0;
  right: -12px;
  min-width: 58px;
  height: 28px;
  padding: 0 10px 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 0 10px;
  background: #31c477;
  color: #fff;
  font-size: 12px;
  line-height: 28px;
}

.submitted-sync-badge.is-unsynced {
  background: #8f99a8;
}

.submitted-change-page .material-pair-divider {
  margin: 12px 0;
}

.submitted-change-page .copy-btn {
  min-width: auto;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  line-height: 1;
}

.mini-btn {
  min-width: 68px;
  border-radius: 8px;
}

.mini-btn.is-active {
  border-color: rgba(47, 117, 246, 0.18);
  background: var(--tag-blue-bg);
  color: var(--primary);
}

.muted {
  color: var(--text-sub);
}

.detail-page {
  padding: 14px 0 var(--footer-pad);
}

.detail-search-section,
.detail-series-section {
  margin-left: 0;
  margin-right: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.detail-search-section {
  padding-top: 4px;
  padding-bottom: 4px;
  margin-bottom: 0;
  background: #fff;
}

.detail-series-section {
  padding-top: 8px;
  padding-bottom: 8px;
  background: #fff;
  border-bottom: 1px solid #f2f3f5;
}

.detail-search-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 2px solid #2f80ff;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.detail-search-field {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 14px;
}

.detail-search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid #d0d4dc;
  border-radius: 50%;
  flex-shrink: 0;
}

.detail-search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #d0d4dc;
  transform: rotate(45deg);
  transform-origin: center;
}

.detail-search-field .search-box {
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  color: #2d3138;
}

.detail-search-field .search-box:focus {
  outline: none;
}

.detail-search-field .search-box::placeholder {
  color: #c6c8cd;
}

.detail-search-bar .search-btn {
  min-width: 84px;
  height: 38px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0;
  background: linear-gradient(180deg, #4f95ff 0%, #2f75f6 100%);
}

.detail-filter-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.detail-filter-btn {
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7a7e86;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.detail-filter-btn.is-active {
  color: #2f80ff;
}

.detail-filter-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  flex-shrink: 0;
}

.detail-filter-btn span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-page .space-group {
  margin-bottom: 14px;
}

.detail-page .space-title {
  padding: 0 0 0 16px;
  min-height: 56px;
  border-radius: 8px 8px 0 0;
  background: #edf4ff;
  color: var(--text-title);
  margin-bottom: 0;
  border: 1px solid #e8eef8;
  border-bottom: 0;
}

.detail-page .space-title strong {
  font-size: 16px;
  font-weight: 600;
}

.detail-page .space-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}

.space-add-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: 0 1px 3px rgba(47, 117, 246, 0.16);
}

.space-add-icon::before,
.space-add-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.space-add-icon::after {
  width: 2px;
  height: 10px;
}

.detail-page .list-wrap {
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}

.detail-page .list-row {
  gap: 14px;
  padding: 14px 16px;
  align-items: flex-start;
}

.detail-page .list-row:last-child {
  border-bottom: 0;
}

.row-thumb-box {
  position: relative;
  width: 72px;
  flex-shrink: 0;
}

.detail-state-chip {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px 0 7px 0;
  font-size: 11px;
  line-height: 22px;
}

.detail-state-chip.pending {
  background: #edf4ff;
  color: var(--primary);
}

.detail-state-chip.confirmed {
  background: #eaf9f0;
  color: var(--success);
}

.detail-state-chip.submitted {
  background: #fff3ec;
  color: var(--warning);
}

.detail-page .row-title {
  display: block;
  margin-bottom: 6px;
}

.row-title-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.detail-page .row-title strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.row-title-meta {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-sub);
}

.detail-page .row-line {
  font-size: 13px;
  line-height: 1.45;
}

.row-line-spec {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.detail-page .row-code {
  display: inline-flex;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #8e95a3;
}

.detail-copy-btn {
  min-width: 16px;
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.detail-copy-btn::before,
.detail-copy-btn::after {
  content: "";
  position: absolute;
  border: 1.5px solid #b0b7c2;
  border-radius: 2px;
  background: #fff;
}

.detail-copy-btn::before {
  width: 8px;
  height: 8px;
  left: 5px;
  top: 2px;
}

.detail-copy-btn::after {
  width: 8px;
  height: 8px;
  left: 2px;
  top: 5px;
}

.detail-biz-tags {
  margin-top: 10px;
}

.row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 72px;
  gap: 8px;
}

.detail-confirm-btn,
.detail-swap-btn {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}

.detail-confirm-btn {
  background: transparent;
  color: inherit;
}

.detail-confirm-btn.is-confirmed {
  background: transparent;
}

.detail-confirm-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.85);
  opacity: 0.7;
}

.detail-confirm-btn.is-confirmed .detail-confirm-icon {
  filter: none;
  opacity: 1;
}

.detail-swap-btn {
  background: transparent;
  color: inherit;
}

.detail-swap-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.row-confirm-link {
  font-size: 12px;
  color: var(--primary);
  line-height: 1;
}

.row-confirm-link.is-confirmed {
  color: var(--success);
}

.detail-footer-bar {
  padding-top: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
}

.detail-footer-bar .footer-actions {
  gap: 12px;
  flex: 0 0 auto;
}

.post-detail-page {
  padding-top: 12px;
  background:
    radial-gradient(circle at top right, rgba(47, 117, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f9fd 0%, #f3f5f9 100%);
}

.post-detail-page .detail-search-section,
.post-detail-page .detail-series-section {
  margin: 0 12px;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  box-shadow: none;
}

.post-detail-page .detail-search-section {
  padding-top: 6px;
  padding-bottom: 4px;
  border: 0;
  border-radius: 0;
}

.post-detail-page .detail-series-section {
  padding-top: 4px;
  padding-bottom: 8px;
  border: 0;
  border-radius: 0;
}

.post-detail-page .detail-search-bar {
  border-width: 1px;
  border-color: #d7e2f5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(24, 51, 98, 0.04);
}

.post-detail-page .detail-search-field {
  height: 40px;
  padding-left: 12px;
}

.post-detail-page .detail-search-icon {
  width: 15px;
  height: 15px;
  margin-right: 8px;
}

.post-detail-page .detail-search-field .search-box {
  font-size: 13px;
}

.post-detail-page .detail-search-bar .search-btn {
  min-width: 78px;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
}

.post-detail-page .detail-filter-row {
  min-height: 36px;
  gap: 8px;
}

.post-detail-page .detail-filter-btn {
  height: 36px;
  border: 1px solid #dde5f2;
  border-radius: 12px;
  background: #fff;
  color: #6c7585;
}

.post-detail-page .detail-filter-btn.is-active {
  border-color: rgba(47, 117, 246, 0.22);
  background: #f4f8ff;
  color: var(--primary);
}

.post-detail-hint {
  margin-top: 6px;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #8f98a7;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: none;
}

.post-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.post-detail-stat {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e3e9f3;
  min-width: 0;
  box-shadow: none;
}

.post-detail-stat-label {
  display: block;
  color: #97a0ae;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-detail-stat-value {
  display: block;
  margin-top: 2px;
  color: #263246;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.post-detail-stat-value.is-pending {
  color: #e14b4b;
}

.post-detail-group {
  margin: 0 12px 10px;
}

.post-detail-title {
  min-height: 44px;
  padding-right: 16px;
  padding-left: 14px;
  background: linear-gradient(180deg, #eef4ff 0%, #e8f0ff 100%);
  border-color: #dde8fb;
}

.post-detail-list {
  overflow: hidden;
  border: 1px solid #e8edf6;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 51, 98, 0.05);
}

.post-detail-row {
  padding: 13px 16px 11px;
  border-top: 1px solid #eef2f7;
  color: var(--text-title);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 252, 254, 0.98) 100%);
}

.post-detail-row-main,
.post-detail-row-mid,
.post-detail-row-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-detail-row-mid,
.post-detail-row-sub {
  margin-top: 6px;
}

.post-detail-material,
.post-detail-brand,
.post-detail-metric,
.post-detail-area {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-detail-material {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2530;
  letter-spacing: 0.1px;
}

.post-detail-brand {
  flex-shrink: 0;
  color: #6c7585;
  font-size: 13px;
}

.post-detail-brand-btn {
  padding: 0;
  color: #7f8898;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-radius: 999px;
}

.post-detail-brand-btn.is-pending {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(225, 75, 75, 0.18);
  background: #fff2f2;
  color: #e14b4b;
  text-decoration: none;
}

.post-detail-area {
  color: #7d8797;
  font-size: 13px;
  flex: 1;
}

.post-detail-metric {
  color: #7d8797;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.main-material-page {
  padding: 0 12px 16px;
  background: #ffffff;
}

.main-material-shell {
  background: #fff;
}

.main-material-summary {
  margin-bottom: 8px;
  padding: 14px 12px 10px;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.main-material-table {
  padding: 0;
}

.main-material-list-panel {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: #ffffff;
}

.main-material-brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.main-material-page-title {
  font-size: 18px;
  font-weight: 600;
  color: #23262d;
  line-height: 1.3;
}

.main-material-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(242, 140, 40, 0.16);
}

.main-material-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 20px;
  margin-bottom: 0;
}

.main-material-meta-item {
  font-size: 12px;
  line-height: 1.45;
  color: #434a55;
}

.main-material-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 36px;
  column-gap: 10px;
  align-items: center;
}

.main-material-header {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 8px 16px 8px 12px;
  background: #565d68;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
  width: 100%;
}

.main-material-header span:nth-child(2),
.main-material-header span:nth-child(3) {
  text-align: right;
  justify-self: end;
}

.main-material-space {
  padding: 10px 16px;
  border-bottom: 1px solid #dadfe7;
  background: #f4f5f7;
  color: #4a515c;
  font-size: 14px;
  font-weight: 600;
}

.main-material-row {
  padding: 10px 12px 9px;
  border-bottom: 1px solid #e5e8ee;
}

.main-material-row:nth-child(even) {
  background: #fbfcff;
}

.main-material-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 36px;
  column-gap: 10px;
  align-items: start;
}

.main-material-row-left {
  min-width: 0;
}

.main-material-row-title {
  font-size: 14px;
  line-height: 1.35;
  color: #22262d;
  font-weight: 600;
  padding-right: 4px;
  word-break: break-word;
}

.main-material-row-meta {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 64px 36px;
  column-gap: 10px;
  align-items: start;
  align-self: start;
  padding-top: 2px;
}

.main-material-row-area {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.main-material-area-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d5e3fb;
  font-size: 11px;
  line-height: 1.35;
  color: #6780a8;
  white-space: nowrap;
}

.main-material-area-tag.is-hall {
  background: #eef4ff;
  border: 1px solid #d5e3fb;
  color: #6780a8;
}

.main-material-area-tag.is-room {
  background: #eef4ff;
  border: 1px solid #d5e3fb;
  color: #5f7cab;
}

.main-material-area-tag.is-bath {
  background: #eef4ff;
  border: 1px solid #d5e3fb;
  color: #6780a8;
}

.main-material-area-tag.is-kitchen {
  background: #eef4ff;
  border: 1px solid #d5e3fb;
  color: #6780a8;
}

.main-material-area-tag.is-balcony {
  background: #eef4ff;
  border: 1px solid #d5e3fb;
  color: #6780a8;
}

.main-material-area-tag.is-other {
  background: #eef4ff;
  border: 1px solid #d5e3fb;
  color: #6780a8;
}

.main-material-row-meta span {
  font-size: 12px;
  line-height: 1.35;
  color: #4e5560;
  text-align: right;
  justify-self: end;
  white-space: nowrap;
}

.main-material-row-spec {
  margin-top: 5px;
  max-width: 235px;
  font-size: 11px;
  line-height: 1.55;
  color: #6f7785;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.detail-footer-bar .footer-link {
  flex-direction: column;
  gap: 4px;
  min-width: 88px;
  min-height: 52px;
  background: transparent;
  color: var(--text-body);
  font-size: 13px;
}

.detail-footer-bar .footer-link.is-disabled {
  background: transparent;
  color: #c0c6d2;
}

.footer-link-icon {
  position: relative;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.footer-link-icon::before,
.footer-link-icon::after {
  content: "";
  position: absolute;
}

.footer-link-icon.start::before {
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.footer-link-icon.start::after {
  right: 1px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--primary);
  border-left: 0;
  border-radius: 0 6px 6px 0;
}

.footer-link-icon.end::before {
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.footer-link-icon.end::after {
  left: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
}

.detail-footer-bar .footer-main {
  min-height: 48px;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.detail-footer-bar .badge {
  top: -6px;
  right: -8px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border: 3px solid #fff;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 520px) {
  body {
    padding: 0;
    background: var(--bg);
    overflow: auto;
  }

  .demo-device {
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .demo-device-screen {
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .demo-device-screen::before,
  .demo-device-screen::after {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar-side {
    min-width: 56px;
  }

  .footer-bar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .detail-search-bar .search-btn {
    min-width: 76px;
  }

  .detail-search-section,
  .detail-series-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .detail-filter-btn {
    font-size: 13px;
    gap: 6px;
  }

  .detail-footer-bar .footer-actions {
    gap: 6px;
  }

  .detail-footer-bar .footer-link {
    min-width: 72px;
  }

}
