:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --lc-navy: #08214d;
  --lc-navy-2: #0e326f;
  --lc-page: #f3f6fa;
  --lc-surface: #ffffff;
  --lc-soft: #f7f9fc;
  --lc-border: #d9e1ec;
  --lc-border-strong: #bdc9d9;
  --lc-text: #17233d;
  --lc-subtle: #65738b;
  --lc-blue: #1166e8;
  --lc-blue-soft: #edf5ff;
  --lc-red: #ef261f;
  --lc-red-dark: #d81610;
  --lc-orange: #ff724c;
  --lc-green: #07844e;
  --lc-green-soft: #ebf8f1;
  --lc-amber: #b75a00;
  --lc-amber-soft: #fff7e8;
  --lc-danger-soft: #fff0ef;
  --lc-shadow: 0 1px 3px rgba(22, 37, 66, 0.08);
  --lc-radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--lc-page);
  color: var(--lc-text);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  border: 1px solid #c9d3e1;
  border-radius: 7px;
  color: var(--lc-text);
  font: inherit;
  min-height: 34px;
  outline: none;
  padding: 7px 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input,
select,
textarea {
  background: #fff;
  min-width: 0;
  width: 100%;
}

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

button {
  align-items: center;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: 6px;
  justify-content: center;
  white-space: nowrap;
}

button:hover:not(:disabled) {
  background: #f5f8fc;
  border-color: #8ea3bf;
}

button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--lc-blue);
  box-shadow: 0 0 0 3px rgba(17, 102, 232, 0.14);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input[type="checkbox"] {
  accent-color: var(--lc-blue);
  height: 16px;
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.lc-boot {
  align-items: center;
  color: var(--lc-subtle);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 100vh;
}

.lc-boot-spinner {
  animation: lc-spin 0.75s linear infinite;
  border: 2px solid #c8d2df;
  border-radius: 50%;
  border-top-color: var(--lc-navy);
  height: 20px;
  width: 20px;
}

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

.lc-topbar {
  align-items: center;
  background: linear-gradient(90deg, #061d46, #092657 68%, #061d46);
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px 18px;
  position: sticky;
  top: 0;
  z-index: 60;
}

.lc-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.lc-brand-name {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lc-brand-section {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: #eef4ff;
  font-size: 15px;
  font-weight: 800;
  padding-left: 14px;
}

.lc-brand-review-link {
  align-items: center;
  background: #172554;
  border: 1px solid #172554;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}

.lc-brand-review-link:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;
}

.lc-brand-review-link:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.85);
  outline-offset: 2px;
}

.lc-topbar-actions {
  align-items: center;
  display: flex;
  gap: 9px;
}

.lc-topbar-meta {
  color: #d5e1f4;
  font-size: 12px;
  margin-right: 6px;
}

.lc-topbar-link,
.lc-topbar-button {
  background: transparent;
  border-color: transparent;
  color: #f5f8ff;
  font-size: 12px;
  min-height: 31px;
  padding: 5px 8px;
  text-decoration: none;
}

.lc-topbar-link:hover,
.lc-topbar-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.lc-workspace {
  display: grid;
  gap: 10px;
  grid-template-columns: 292px minmax(590px, 1fr) 452px;
  height: calc(100vh - 56px);
  min-height: 720px;
  padding: 10px;
}

.lc-pane {
  background: var(--lc-surface);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  min-height: 0;
  overflow: hidden;
}

.lc-left,
.lc-right {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.lc-section {
  border-bottom: 1px solid #e5eaf1;
  padding: 12px;
}

.lc-section:last-child {
  border-bottom: 0;
}

.lc-section-title {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  justify-content: space-between;
  margin: 0 0 9px;
}

.lc-section-title small {
  color: var(--lc-subtle);
  font-size: 10px;
  font-weight: 600;
}

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

.lc-queue-card {
  border-color: var(--lc-border);
  display: block;
  min-height: 56px;
  padding: 7px 6px;
  text-align: center;
  white-space: normal;
}

.lc-queue-card strong,
.lc-queue-card span {
  display: block;
}

.lc-queue-card strong {
  font-size: 13px;
  margin-bottom: 2px;
}

.lc-queue-card span {
  color: #8792a5;
  font-size: 10px;
}

.lc-queue-card.is-active {
  background: var(--lc-blue-soft);
  border-color: #6aa2f5;
  color: var(--lc-blue);
}

.lc-queue-card.is-active span {
  color: var(--lc-blue);
  font-weight: 800;
}

.lc-field {
  margin-top: 9px;
}

.lc-field:first-child {
  margin-top: 0;
}

.lc-field label,
.lc-field-label {
  color: #34425a;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

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

.lc-check-grid {
  display: grid;
  gap: 7px 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 9px;
}

.lc-check {
  align-items: center;
  color: #33415a;
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 650;
  gap: 6px;
}

.lc-game-picker {
  border: 1px solid #c9d3e1;
  border-radius: 7px;
  min-height: 38px;
  padding: 5px;
}

.lc-game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lc-game-chip {
  background: var(--lc-blue-soft);
  border-color: #8eb9f7;
  color: #0b5acc;
  font-size: 10px;
  min-height: 25px;
  padding: 3px 7px;
}

.lc-game-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.lc-game-option {
  color: var(--lc-subtle);
  font-size: 10px;
  min-height: 25px;
  padding: 3px 7px;
}

.lc-notes-count {
  color: #8a95a8;
  float: right;
  font-size: 10px;
  margin-top: -18px;
  padding-right: 7px;
  position: relative;
}

.lc-next-button {
  border-color: #6a9ce9;
  color: var(--lc-blue);
  margin-top: 12px;
  min-height: 42px;
  width: 100%;
}

.lc-center {
  background: #eef2f7;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 14px;
  scrollbar-gutter: stable;
}

.lc-customer-sheet {
  background: #fff;
  min-height: 100%;
}

.lc-sheet-hero {
  background: linear-gradient(105deg, #ed1710, #ff7251);
  color: #fff;
  padding: 14px 14px 11px;
}

.lc-sheet-title {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-align: center;
}

.lc-sheet-title-input {
  background: transparent;
  border-color: transparent;
  border-radius: 6px;
  color: inherit;
  display: block;
  min-height: 36px;
  padding: 2px 8px;
}

.lc-sheet-title-input:hover {
  border-color: rgba(255, 255, 255, 0.52);
}

.lc-sheet-title-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.lc-sheet-brief {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 800;
  gap: 0;
  justify-content: center;
  margin-top: 10px;
  overflow: hidden;
}

.lc-sheet-brief span {
  border-right: 1px solid rgba(255, 255, 255, 0.46);
  padding: 5px 9px;
}

.lc-sheet-brief span:last-child {
  border-right: 0;
}

.lc-sheet-edit-toolbar {
  align-items: center;
  background: #f2f6fb;
  border-bottom: 1px solid #dce4ef;
  color: var(--lc-subtle);
  display: flex;
  font-size: 9px;
  gap: 8px;
  justify-content: space-between;
  padding: 5px 8px;
}

.lc-sheet-edit-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.lc-sheet-edit-toolbar button {
  border-color: #c8d5e5;
  border-radius: 5px;
  color: #34506f;
  font-size: 9px;
  min-height: 24px;
  padding: 2px 6px;
}

.lc-sheet-edit-toolbar button.is-danger {
  color: #b42318;
}

.lc-sheet-catalog-bar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dce4ef;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
}

.lc-sheet-catalog-bar .lc-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.lc-sheet-catalog-bar input {
  min-height: 30px;
  padding: 5px 8px;
}

.lc-sheet-catalog-bar > button {
  color: var(--lc-blue);
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 8px;
}

.lc-customer-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.lc-customer-table th,
.lc-customer-table td {
  border-bottom: 1px solid #e1e6ee;
  font-size: 11px;
  height: 31px;
  padding: 4px 7px;
  vertical-align: middle;
}

.lc-customer-table th {
  background: #f9fafc;
  color: #47556e;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
}

.lc-customer-table tr.is-selected td {
  background: #edf5ff;
  box-shadow: inset 0 1px #b4d2fb, inset 0 -1px #b4d2fb;
}

.lc-sheet-column-input,
.lc-sheet-cell-input {
  background: transparent;
  border-color: transparent;
  border-radius: 4px;
  min-height: 24px;
  padding: 2px 4px;
}

.lc-sheet-column-input {
  color: inherit;
  font-size: inherit;
  font-weight: 900;
}

.lc-sheet-column-input:hover,
.lc-sheet-cell-input:hover {
  border-color: #b9c6d8;
}

.lc-sheet-column-input:focus,
.lc-sheet-cell-input:focus {
  background: #fff;
  border-color: var(--lc-blue);
  box-shadow: 0 0 0 2px rgba(17, 102, 232, 0.13);
}

.lc-sheet-model-input {
  font-size: 12px;
  font-weight: 850;
}

.lc-sheet-category-input {
  font-weight: 850;
}

.lc-sheet-quantity-input {
  text-align: center;
}

.lc-sheet-price-input {
  color: var(--lc-red);
  font-size: 13px;
  font-weight: 950;
  text-align: right;
}

.lc-sheet-price-input.is-inquiry {
  color: var(--lc-red);
  font-size: 13px;
  font-weight: 950;
}

.lc-line-editor {
  align-items: center;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.lc-line-editor .lc-sheet-model-input {
  min-width: 0;
}

.lc-sheet-own-price {
  color: var(--lc-subtle);
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.lc-sheet-empty-row {
  color: var(--lc-subtle);
  padding: 14px !important;
  text-align: center;
}

.lc-customer-table th:nth-child(1),
.lc-customer-table td:nth-child(1) {
  width: 88px;
}

.lc-customer-table th:nth-child(3),
.lc-customer-table td:nth-child(3) {
  text-align: center;
  width: 45px;
}

.lc-customer-table th:nth-child(4),
.lc-customer-table td:nth-child(4) {
  text-align: right;
  width: 92px;
}

.lc-customer-table td:nth-child(4) {
  color: var(--lc-red);
  font-size: 13px;
  font-weight: 950;
}

.lc-customer-part {
  align-items: center;
  display: flex;
  gap: 7px;
}

.lc-part-thumb {
  border-radius: 3px;
  height: 22px;
  object-fit: cover;
  width: 26px;
}

.lc-part-image-preview {
  align-items: center;
  background: transparent;
  display: flex;
  justify-content: center;
  left: 0;
  max-height: calc(100vh - 24px);
  max-width: calc(100vw - 24px);
  padding: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  z-index: 1400;
}

.lc-part-image-preview[hidden] {
  display: none;
}

.lc-part-image-preview-panel {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: clamp(8px, 1.5vw, 16px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.38);
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.lc-part-image-preview-panel img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.lc-part-name {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-line-text {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.lc-condition-tag {
  background: #fff0ed;
  border: 1px solid #ffc5bc;
  border-radius: 3px;
  color: #b42318;
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.4;
  margin-right: 5px;
  padding: 0 3px;
  vertical-align: 1px;
}

.lc-service-strip {
  box-sizing: border-box;
  display: grid;
  gap: 6px;
  margin: 8px 10px;
  min-height: 0;
}

.lc-service-strip .lc-service-strip-address,
.lc-service-strip .lc-service-strip-secret {
  align-items: center;
  background: linear-gradient(135deg, #fff8e8 0%, #fff0c2 100%);
  border: 1px solid #e9b949;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(138, 97, 15, 0.12);
  color: #14213d;
  display: flex;
  font-family: inherit;
  font-size: 20px;
  font-weight: 950;
  justify-content: center;
  line-height: 1.25;
  min-height: 52px;
  overflow: hidden;
  padding: 7px 12px;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.lc-service-strip .lc-service-strip-secret {
  background: linear-gradient(135deg, #fffdf7 0%, #fff5d8 100%);
  font-size: 18px;
  min-height: 46px;
}

.lc-service-strip input.lc-service-strip-address:hover,
.lc-service-strip input.lc-service-strip-secret:hover {
  border-color: #c58a00;
}

.lc-service-strip input.lc-service-strip-address:focus,
.lc-service-strip input.lc-service-strip-secret:focus {
  background: rgba(255, 255, 255, 0.52);
  border-color: #c58a00;
  box-shadow: 0 0 0 3px rgba(233, 185, 73, 0.24);
  outline: 0;
}

.lc-performance-card {
  border: 1px solid #d9e1eb;
  border-radius: 8px;
  margin: 0 9px 7px;
  padding: 8px;
}

.lc-performance-head {
  align-items: baseline;
  display: flex;
  gap: 7px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lc-performance-head strong {
  font-size: 12px;
}

.lc-performance-head small {
  color: var(--lc-subtle);
  font-size: 9px;
}

.lc-overall-performance {
  align-items: center;
  background: #f5f7fb;
  border: 1px solid #d6deea;
  border-radius: 6px;
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(120px, auto) 1fr;
  margin-bottom: 6px;
  min-height: 48px;
  padding: 7px 10px;
}

.lc-overall-performance > div {
  display: grid;
}

.lc-overall-performance span {
  font-size: 12px;
  font-weight: 900;
}

.lc-overall-performance small {
  color: var(--lc-subtle);
  font-size: 9px;
  font-style: normal;
}

.lc-overall-performance strong {
  color: #f02520;
  font-size: 19px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.lc-overall-performance.is-unavailable strong {
  color: #77849a;
}

.lc-performance-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 5px;
  display: grid;
  font-size: 10px;
  gap: 8px;
  grid-template-columns: minmax(80px, 1fr) 86px 92px;
  margin-top: 4px;
  min-height: 27px;
  padding: 4px 7px;
}

.lc-performance-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-performance-row span:last-child {
  font-weight: 900;
  text-align: right;
}

.lc-performance-empty {
  color: var(--lc-subtle);
  font-size: 11px;
  padding: 8px;
  text-align: center;
}

.lc-sheet-summary {
  margin: 0 14px;
}

.lc-summary-line {
  align-items: center;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 4px;
}

.lc-summary-line strong {
  color: #14213c;
  font-size: 13px;
}

.lc-summary-line.is-discount strong {
  color: var(--lc-red);
}

.lc-final-price {
  align-items: center;
  border-top: 1px solid #d9e0e9;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 8px 0;
}

.lc-final-price span {
  font-size: 18px;
  font-weight: 950;
}

.lc-final-price span small {
  color: var(--lc-subtle);
  display: block;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
}

.lc-final-price strong {
  color: var(--lc-red);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 950;
  letter-spacing: 0.02em;
}

.lc-sheet-foot {
  border-top: 1px solid #e0e5ec;
  color: #4b5870;
  display: flex;
  flex-wrap: wrap;
  font-size: 9px;
  gap: 6px 13px;
  justify-content: center;
  margin: 0 14px 10px;
  padding-top: 8px;
}

.lc-right {
  display: flex;
  flex-direction: column;
}

.lc-right-heading {
  justify-content: flex-end;
  text-align: right;
}

.lc-private-banner {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.lc-private-banner strong {
  font-size: 16px;
}

.lc-private-banner small {
  color: var(--lc-green);
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
}

.lc-private-tag {
  background: var(--lc-green-soft);
  border: 1px solid #a7ddbf;
  border-radius: 12px;
  color: var(--lc-green);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
}

.lc-config-tools {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-bottom: 7px;
}

.lc-config-tools .lc-search-wrap {
  flex: 1 1 auto;
  position: relative;
}

.lc-tool-button {
  color: var(--lc-blue);
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 9px;
}

.lc-catalog-results {
  background: #fff;
  border: 1px solid #aab9cd;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(17, 35, 68, 0.18);
  left: 0;
  max-height: 270px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 70;
}

.lc-catalog-result {
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e4e9f0;
  border-radius: 0;
  display: grid;
  font-weight: 600;
  gap: 8px;
  grid-template-columns: 1fr auto;
  min-height: 48px;
  padding: 7px 9px;
  text-align: left;
  white-space: normal;
  width: 100%;
}

.lc-catalog-result:last-child {
  border-bottom: 0;
}

.lc-catalog-result:hover,
.lc-catalog-result.is-keyboard-active {
  background: #eaf3ff;
  box-shadow: inset 3px 0 0 var(--lc-blue);
}

.lc-catalog-result span,
.lc-catalog-result small {
  display: block;
}

.lc-catalog-result span {
  font-weight: 800;
}

.lc-catalog-result small {
  color: var(--lc-subtle);
  font-size: 9px;
  margin-top: 2px;
}

.lc-catalog-result small b {
  color: var(--lc-blue);
  font-weight: 900;
}

.lc-catalog-result em {
  color: var(--lc-blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.lc-catalog-empty {
  color: var(--lc-subtle);
  padding: 14px;
  text-align: center;
}

.lc-ledger-wrap {
  border: 1px solid #d7dfe9;
  border-radius: 7px;
  max-height: min(300px, 27vh);
  overflow: auto;
}

.lc-ledger {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.lc-ledger th,
.lc-ledger td {
  border-bottom: 1px solid #e0e6ee;
  border-right: 1px solid #e0e6ee;
  font-size: 10px;
  height: 30px;
  padding: 3px 5px;
}

.lc-ledger th:last-child,
.lc-ledger td:last-child {
  border-right: 0;
}

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

.lc-ledger th {
  background: #f5f7fa;
  color: #4c5870;
  font-weight: 900;
}

.lc-ledger th:nth-child(1) { width: auto; }
.lc-ledger th:nth-child(2) { width: 74px; }
.lc-ledger th:nth-child(3) { width: 68px; }
.lc-ledger th:nth-child(4) { width: 60px; }

.lc-ledger tr.is-selected {
  background: #edf5ff;
  outline: 1px solid #7baaf0;
  outline-offset: -1px;
}

.lc-ledger td:first-child {
  cursor: pointer;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-ledger-model-line {
  align-items: center;
  display: flex;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.lc-ledger-model-line > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-cost-verify {
  background: transparent;
  border: 0;
  color: #b42318;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.lc-cost-verify:hover {
  text-decoration: underline;
}

.lc-ledger input {
  border-color: transparent;
  border-radius: 4px;
  font-size: 10px;
  min-height: 25px;
  padding: 3px 4px;
  text-align: right;
}

.lc-ledger input:hover {
  border-color: #bdc9d7;
}

.lc-ledger input:focus {
  border-color: var(--lc-blue);
}

.lc-ledger-money {
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.lc-ledger-money.is-pending {
  color: var(--lc-amber);
  font-size: 9px;
}

.lc-ledger-money.is-inquiry {
  color: inherit;
  font-size: inherit;
  font-weight: 850;
}

.lc-difference {
  font-weight: 900;
  text-align: right;
}

.lc-difference.is-positive {
  color: var(--lc-red);
}

.lc-difference.is-negative {
  color: var(--lc-green);
}

.lc-selected-editor {
  background: #f8fafc;
  border: 1px solid #e0e6ee;
  border-radius: 7px;
  margin-top: 7px;
  padding: 5px 8px;
}

.lc-selected-editor.is-open {
  padding: 8px;
}

.lc-selected-editor-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.lc-selected-editor-head strong {
  font-size: 11px;
}

.lc-selected-editor-head > span {
  align-items: center;
  display: flex;
  gap: 5px;
}

.lc-selected-editor-head .lc-tool-button {
  font-size: 9px;
  min-height: 26px;
  padding: 3px 7px;
}

.lc-delete-button {
  border-color: #efb5b0;
  color: #b42318;
  font-size: 9px;
  min-height: 26px;
  padding: 3px 7px;
}

.lc-editor-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 68px;
}

.lc-editor-grid label {
  color: var(--lc-subtle);
  font-size: 9px;
}

.lc-editor-grid input,
.lc-editor-grid select {
  margin-top: 3px;
  min-height: 29px;
  padding: 5px 7px;
}

.lc-business-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.lc-business-box {
  background: #f9fbfd;
  border: 1px solid #d9e0ea;
  border-radius: 7px;
  padding: 7px;
}

.lc-business-box label {
  color: #59667c;
  display: block;
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 4px;
}

.lc-business-box input,
.lc-business-box select {
  background: transparent;
  border-color: #ccd6e3;
  font-size: 11px;
  min-height: 30px;
  padding: 5px 6px;
}

.lc-platform-fee-label {
  align-items: center;
  display: flex !important;
  gap: 4px;
  justify-content: space-between;
}

.lc-platform-fee-rate {
  align-items: center;
  color: var(--lc-text);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 10px;
  gap: 2px;
}

.lc-platform-fee-rate input {
  font-size: 10px;
  font-weight: 850;
  min-height: 22px;
  padding: 2px 4px;
  text-align: right;
  width: 38px;
}

.lc-business-output {
  align-items: center;
  background: transparent;
  border: 1px solid #ccd6e3;
  border-radius: 6px;
  color: var(--lc-text);
  display: flex;
  font-size: 11px;
  font-weight: 850;
  min-height: 30px;
  padding: 5px 6px;
}

.lc-deal-box {
  border: 1px solid #79a6ec;
  border-radius: 7px;
  margin-top: 8px;
  padding: 8px;
}

.lc-deal-box label {
  color: #4a5a74;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 4px;
}

.lc-deal-input {
  align-items: center;
  display: flex;
  gap: 6px;
}

.lc-deal-input span {
  color: var(--lc-navy);
  font-size: 18px;
  font-weight: 900;
}

.lc-deal-input input {
  border: 0;
  color: var(--lc-navy);
  font-size: 27px;
  font-weight: 950;
  min-height: 39px;
  padding: 0;
  text-align: center;
}

.lc-metric-row {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.lc-metric {
  background: #f9fbfd;
  border: 1px solid #d9e0ea;
  border-radius: 7px;
  padding: 8px 6px;
  text-align: center;
}

.lc-metric span,
.lc-metric strong {
  display: block;
}

.lc-metric span {
  color: var(--lc-subtle);
  font-size: 9px;
}

.lc-metric strong {
  font-size: 16px;
  margin-top: 2px;
}

.lc-metric.is-profit strong {
  color: var(--lc-red);
}

.lc-metric.is-profit.is-negative strong {
  color: var(--lc-green);
}

.lc-profit-floor {
  background: var(--lc-blue-soft);
  border: 1px solid #bdd3f5;
  border-radius: 6px;
  color: #305078;
  font-size: 9px;
  margin-top: 7px;
  padding: 6px 8px;
}

.lc-profit-floor.is-risk {
  background: var(--lc-danger-soft);
  border-color: #f0bbb6;
  color: #a62c24;
}

.lc-private-note {
  background: var(--lc-amber-soft);
  border: 1px solid #f1d7aa;
  border-radius: 6px;
  color: #77501d;
  font-size: 9px;
  margin-top: 7px;
  padding: 6px 8px;
}

.lc-action-row {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.lc-action-row button,
.lc-action-row a {
  align-items: center;
  border: 1px solid #c9d3e1;
  border-radius: 7px;
  color: var(--lc-text);
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 37px;
  padding: 7px 9px;
  text-decoration: none;
}

.lc-action-row .lc-deal-effect-toggle {
  background: #f7f9fc;
  color: #52647c;
}

.lc-action-row .lc-deal-effect-toggle.is-on {
  background: #eaf7ef;
  border-color: #79b98e;
  color: #08763b;
}

.lc-action-row .lc-deal-effect-toggle:hover {
  border-color: #6f8cab;
}

.lc-action-row .lc-deal-effect-toggle.is-on:hover {
  border-color: #479d68;
}

.lc-action-row a:hover {
  background: #f5f8fc;
  border-color: #8ea3bf;
}

.lc-primary-action {
  background: var(--lc-blue);
  border-color: var(--lc-blue);
  color: #fff;
}

.lc-primary-action:hover:not(:disabled) {
  background: #0c59ce;
  border-color: #0c59ce;
}

.lc-publish-status {
  color: var(--lc-green);
  font-size: 9px;
  font-weight: 800;
  margin-top: 5px;
  text-align: right;
}

.lc-publish-status.is-risk {
  color: var(--lc-red);
}

.lc-library-layer {
  align-items: center;
  background: rgba(7, 20, 43, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 110;
}

.lc-library-dialog {
  background: #fff;
  border: 1px solid #b9c7d9;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(6, 22, 49, 0.28);
  max-height: min(760px, calc(100vh - 48px));
  max-width: 940px;
  overflow: hidden;
  width: 100%;
}

.lc-library-dialog > header {
  align-items: flex-start;
  background: #f6f8fb;
  border-bottom: 1px solid #dce4ef;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.lc-library-dialog h2,
.lc-library-dialog h3,
.lc-library-dialog p {
  margin: 0;
}

.lc-library-dialog h2 {
  color: var(--lc-navy);
  font-size: 18px;
}

.lc-library-dialog h3 {
  font-size: 13px;
  margin-bottom: 10px;
}

.lc-library-dialog p {
  color: var(--lc-subtle);
  font-size: 10px;
  margin-top: 4px;
}

.lc-library-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  max-height: calc(100vh - 150px);
  overflow: hidden;
}

.lc-library-form,
.lc-library-products {
  min-height: 0;
  padding: 14px 16px;
}

.lc-library-form {
  border-right: 1px solid #e0e6ef;
  overflow-y: auto;
}

.lc-library-form > label,
.lc-library-money-grid label {
  color: #4d5b72;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 9px;
}

.lc-library-form input {
  margin-top: 4px;
}

.lc-library-money-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.lc-library-form-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 14px;
}

.lc-library-products {
  display: flex;
  flex-direction: column;
}

.lc-library-products h3 {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.lc-library-products h3 small {
  color: var(--lc-subtle);
  font-size: 9px;
}

.lc-library-list {
  min-height: 0;
  overflow-y: auto;
}

.lc-library-product {
  align-items: center;
  border-bottom: 1px solid #e4e9f0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 2px;
}

.lc-library-product > div:first-child {
  min-width: 0;
}

.lc-library-product strong,
.lc-library-product span {
  display: block;
}

.lc-library-product strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-library-product span {
  color: var(--lc-subtle);
  font-size: 9px;
  margin-top: 3px;
}

.lc-library-product > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.lc-library-product button {
  font-size: 9px;
  min-height: 27px;
  padding: 3px 6px;
}

.lc-library-product button.is-danger {
  color: #b42318;
}

.lc-library-empty {
  color: var(--lc-subtle);
  padding: 30px 12px;
  text-align: center;
}

.lc-login-page {
  align-items: center;
  background: linear-gradient(135deg, #eef4fb, #fff3ed);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.lc-login-card {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(20, 36, 67, 0.14);
  max-width: 400px;
  padding: 28px;
  width: 100%;
}

.lc-login-card h1 {
  color: var(--lc-navy);
  font-size: 24px;
  margin: 0;
}

.lc-login-card p {
  color: var(--lc-subtle);
  margin: 7px 0 20px;
}

.lc-login-error {
  background: var(--lc-danger-soft);
  border: 1px solid #efbbb6;
  border-radius: 7px;
  color: #a52b23;
  margin-bottom: 12px;
  padding: 8px 10px;
}

.lc-login-card .lc-field {
  margin-top: 12px;
}

.lc-login-submit {
  background: var(--lc-navy);
  border-color: var(--lc-navy);
  color: #fff;
  margin-top: 16px;
  min-height: 42px;
  width: 100%;
}

.lc-wechat-login-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--lc-navy);
  border-radius: 6px;
  color: var(--lc-navy);
  display: flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 10px;
  min-height: 42px;
  text-decoration: none;
  width: 100%;
}

.lc-demo-link {
  color: var(--lc-blue);
  display: block;
  font-size: 11px;
  margin-top: 12px;
  text-align: center;
}

.lc-toast {
  background: #152541;
  border-radius: 7px;
  bottom: 22px;
  box-shadow: 0 10px 30px rgba(10, 25, 50, 0.25);
  color: #fff;
  left: 50%;
  max-width: min(420px, calc(100vw - 30px));
  padding: 9px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 120;
}

.lc-toast.is-success {
  background: #087647;
}

.lc-toast.is-error {
  background: #a52b23;
}

.lc-toast.is-hidden {
  display: none;
}

.lc-display-body {
  background: #eef2f7;
  min-width: 280px;
}

.lc-display-root {
  margin: 0 auto;
  max-width: 720px;
  min-height: 100vh;
}

.lc-display-root .lc-customer-sheet {
  box-shadow: 0 12px 36px rgba(20, 35, 63, 0.16);
  min-height: 100vh;
}

.lc-display-waiting {
  align-items: center;
  color: var(--lc-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  min-height: 100vh;
}

.lc-display-waiting strong {
  color: var(--lc-navy);
  font-size: 20px;
}

.lc-display-connection {
  background: rgba(8, 33, 77, 0.9);
  border-radius: 0 0 0 7px;
  color: #fff;
  font-size: 9px;
  padding: 4px 7px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.lc-display-connection.is-stale {
  background: #a05b10;
}

@media (max-width: 1390px) {
  .lc-workspace {
    grid-template-columns: 252px minmax(500px, 1fr) 400px;
  }

  .lc-right .lc-section {
    padding: 10px;
  }
}

@media (max-width: 1206px) {
  .lc-workspace {
    grid-template-columns: 280px minmax(560px, 1fr);
    height: auto;
  }

  .lc-right {
    grid-column: 1 / -1;
    max-height: none;
  }

  .lc-center {
    max-height: calc(100vh - 76px);
  }
}

@media (max-width: 884px) {
  .lc-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    position: static;
  }

  .lc-topbar-actions {
    flex-wrap: wrap;
  }

  .lc-brand {
    flex-wrap: wrap;
  }

  .lc-topbar-meta {
    display: none;
  }

  .lc-workspace {
    display: block;
    height: auto;
    min-height: 0;
  }

  .lc-pane {
    margin-bottom: 10px;
  }

  .lc-center {
    max-height: none;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  .lc-library-layer {
    align-items: flex-start;
    padding: 8px;
  }

  .lc-library-dialog {
    max-height: calc(100vh - 16px);
  }

  .lc-library-layout {
    display: block;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
  }

  .lc-library-form {
    border-bottom: 1px solid #e0e6ef;
    border-right: 0;
  }

  .lc-library-products {
    max-height: 380px;
  }
}

@media (max-width: 520px) {
  .lc-brand-name {
    font-size: 19px;
  }

  .lc-field-grid,
  .lc-business-grid,
  .lc-metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .lc-action-row {
    grid-template-columns: 1fr;
  }

  .lc-sheet-title {
    font-size: 20px;
  }

  .lc-sheet-edit-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lc-sheet-edit-toolbar > div {
    justify-content: flex-start;
  }

  .lc-sheet-catalog-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .lc-sheet-catalog-bar > button {
    width: 100%;
  }

  .lc-customer-table th:nth-child(1),
  .lc-customer-table td:nth-child(1) {
    width: 78px;
  }

  .lc-customer-table th:nth-child(3),
  .lc-customer-table td:nth-child(3) {
    width: 34px;
  }

  .lc-customer-table th:nth-child(4),
  .lc-customer-table td:nth-child(4) {
    width: 78px;
  }

  .lc-performance-row {
    grid-template-columns: 1fr 72px 82px;
  }

  .lc-customer-part {
    gap: 4px;
  }

  .lc-part-thumb {
    height: 18px;
    width: 18px;
  }
}

/* 直播清屏第二版：中间配置单承担主要录入，固定画幅使用大字号。 */
.lc-workspace {
  grid-template-columns: 210px minmax(720px, 1fr) 420px;
}

.lc-queue-guide p {
  color: var(--lc-subtle);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}

.lc-sheet-requirements {
  background: #fff;
  border-bottom: 1px solid #cfd8e5;
  padding: 10px 12px 11px;
}

.lc-requirements-head {
  align-items: baseline;
  display: flex;
  gap: 9px;
  margin-bottom: 8px;
}

.lc-requirements-head strong {
  color: var(--lc-navy);
  font-size: 14px;
  font-weight: 950;
}

.lc-requirements-head span,
.lc-requirements-games > span {
  color: var(--lc-subtle);
  font-size: 10px;
}

.lc-requirements-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: 1.05fr 1.3fr 0.8fr 0.8fr 0.8fr 0.9fr 1fr 0.8fr;
}

.lc-requirements-grid label,
.lc-requirements-notes,
.lc-requirements-checks label {
  color: #4b5870;
  font-size: 9px;
  font-weight: 850;
}

.lc-requirements-grid input,
.lc-requirements-grid select {
  font-size: 11px;
  margin-top: 3px;
  min-height: 29px;
  padding: 4px 6px;
}

.lc-requirements-notes {
  display: block;
  margin-top: 7px;
  position: relative;
}

.lc-requirements-notes textarea {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 3px;
  min-height: 54px;
  padding: 7px 44px 7px 8px;
  resize: vertical;
}

.lc-requirements-notes > span {
  bottom: 7px;
  color: #8490a4;
  font-size: 9px;
  position: absolute;
  right: 8px;
}

.lc-requirements-checks {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 7px;
}

.lc-requirements-checks label {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.lc-requirements-checks label:last-child {
  flex: 1 1 190px;
}

.lc-requirements-checks label:last-child input {
  margin-left: 4px;
  max-width: 160px;
  min-height: 28px;
  padding: 4px 6px;
}

.lc-requirements-games {
  border-top: 1px solid #e2e7ef;
  margin-top: 8px;
  padding-top: 8px;
}

.lc-requirements-games > strong {
  color: var(--lc-navy);
  font-size: 11px;
  margin-right: 7px;
}

.lc-game-picker {
  border: 0;
  min-height: 0;
  padding: 0;
}

.lc-game-chips {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 7px;
}

.lc-game-choice {
  border: 2px solid transparent;
  min-width: 0;
  position: relative;
}

.lc-game-choice.is-active {
  border-color: var(--lc-blue);
}

.lc-game-choice > button:first-child {
  border: 0;
  border-radius: 0;
  display: block;
  min-height: 58px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.lc-game-choice img {
  display: block;
  height: 62px;
  object-fit: cover;
  width: 100%;
}

.lc-game-choice > button:first-child span {
  background: linear-gradient(90deg, rgba(4, 14, 32, 0.92), rgba(4, 14, 32, 0.34));
  bottom: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  left: 0;
  padding: 4px 7px;
  position: absolute;
  right: 0;
  text-align: left;
}

.lc-game-remove {
  background: rgba(7, 20, 43, 0.8);
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 13px;
  min-height: 22px;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
}

.lc-game-options {
  margin-top: 6px;
}

.lc-game-option {
  border-radius: 4px;
}

.lc-customer-table-wrap {
  overflow: visible;
  position: relative;
}

.lc-workbench-table th,
.lc-workbench-table td {
  font-size: 14px;
  height: 42px;
  padding: 5px 8px;
}

.lc-workbench-table th {
  background: #eceeef;
  color: #232a35;
  font-size: 12px;
}

.lc-workbench-table tbody tr:nth-child(even):not(.is-selected) td {
  background: #f5f5f5;
}

.lc-workbench-table .lc-sheet-model-input {
  font-size: 15px;
  font-weight: 950;
}

.lc-workbench-table .lc-sheet-category-input {
  font-size: 14px;
  font-weight: 950;
}

.lc-workbench-table .lc-sheet-price-input {
  font-size: 16px;
}

.lc-workbench-table .lc-part-thumb {
  height: 28px;
  width: 32px;
}

.lc-workbench-table th:nth-child(1),
.lc-workbench-table td:nth-child(1) {
  width: 116px;
}

.lc-workbench-table th:nth-child(3),
.lc-workbench-table td:nth-child(3) {
  width: 54px;
}

.lc-workbench-table th:nth-child(4),
.lc-workbench-table td:nth-child(4) {
  width: 124px;
}

.lc-row-search-wrap {
  position: relative;
}

.lc-row-link-button {
  border: 0;
  color: var(--lc-blue);
  flex: 0 0 auto;
  font-size: 10px;
  min-height: 27px;
  padding: 2px 4px;
}

.lc-row-catalog-results {
  left: 0;
  max-height: 290px;
  max-width: none;
  min-width: 0;
  right: auto;
  top: calc(100% + 4px);
  width: 100%;
  z-index: 90;
}

.lc-price-editor {
  align-items: center;
  display: flex;
  gap: 3px;
}

.lc-price-editor input {
  flex: 1 1 auto;
  min-width: 0;
}

.lc-price-editor button,
.lc-price-editor span {
  border: 0;
  color: var(--lc-blue);
  flex: 0 0 28px;
  font-size: 8px;
  font-weight: 900;
  min-height: 24px;
  padding: 0;
  text-align: center;
}

.lc-price-editor span {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.lc-customer-table tfoot td {
  background: #222;
  border-bottom: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  height: 42px;
}

.lc-customer-table tfoot td:first-child strong,
.lc-customer-table tfoot td:first-child span {
  display: block;
}

.lc-customer-table tfoot td:first-child span {
  color: #c9d0dc;
  font-size: 8px;
  font-weight: 650;
}

.lc-customer-table tfoot td:last-child {
  color: #ffd633;
  font-size: 20px;
  text-align: right;
}

.lc-game-performance-preview {
  background: #111827;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(180px, 42%) 1fr;
  min-height: 112px;
}

.lc-game-performance-preview img {
  height: 112px;
  object-fit: cover;
  width: 100%;
}

.lc-game-performance-preview > div {
  align-content: center;
  display: grid;
  padding: 10px 13px;
}

.lc-game-performance-preview span {
  color: #a9b5c8;
  font-size: 9px;
}

.lc-game-performance-preview strong {
  font-size: 18px;
  margin-top: 2px;
}

.lc-game-performance-preview em {
  color: #d9e2ef;
  font-size: 11px;
  font-style: normal;
  margin-top: 2px;
}

.lc-game-performance-preview b {
  color: #ffd633;
  font-size: 22px;
  line-height: 1.05;
  margin-top: 7px;
}

.lc-performance-tabs {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 5px;
}

.lc-performance-tabs button,
.lc-performance-tabs > div {
  align-items: stretch;
  background: #fff;
  border: 1px solid #c9d3e1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-height: 36px;
  padding: 4px 6px;
  text-align: left;
}

.lc-performance-tabs button.is-active,
.lc-performance-tabs > div.is-active {
  background: var(--lc-blue-soft);
  border-color: var(--lc-blue);
}

.lc-performance-tabs span {
  font-size: 9px;
}

.lc-performance-tabs b {
  font-size: 10px;
  margin-top: 1px;
}

.lc-final-price strong {
  align-items: center;
  display: flex;
  gap: 3px;
}

.lc-final-price input {
  background: transparent;
  border: 0;
  color: var(--lc-red);
  font-size: inherit;
  font-weight: 950;
  min-height: 44px;
  padding: 0;
  text-align: right;
  width: 210px;
}

.lc-right-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 9px;
}

.lc-right-title-row .lc-right-heading {
  margin: 0;
}

.lc-right-title-row > button {
  color: var(--lc-blue);
  font-size: 9px;
  min-height: 28px;
  padding: 4px 7px;
}

.lc-display-root {
  max-width: 760px;
}

.lc-display-root .lc-customer-sheet {
  background: #fff;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
  min-height: 0;
}

.lc-display-root .lc-sheet-hero {
  background: #222;
  padding: 10px 16px 8px;
}

.lc-display-root .lc-sheet-title {
  color: #ffd633;
  font-size: clamp(25px, 5.5vw, 42px);
  font-weight: 1000;
  line-height: 1;
}

.lc-display-root .lc-sheet-brief {
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: clamp(10px, 2.1vw, 16px);
  margin-top: 7px;
}

.lc-display-root .lc-customer-table th {
  background: #d4d4d4;
  color: #222;
}

.lc-display-root .lc-customer-table th,
.lc-display-root .lc-customer-table td {
  border-bottom-color: #fff;
  color: #202020;
  font-size: clamp(13px, 2.7vw, 21px);
  height: clamp(35px, 7.3vw, 55px);
  padding: 4px clamp(6px, 1.6vw, 12px);
}

.lc-display-root .lc-customer-table tbody tr:nth-child(odd) td {
  background: #e5e5e5;
}

.lc-display-root .lc-customer-table tbody tr:nth-child(even) td {
  background: #fff;
}

.lc-display-root .lc-part-thumb {
  display: none;
}

.lc-display-root .lc-part-name,
.lc-display-root .lc-line-text {
  color: #222;
  font-size: inherit;
  font-weight: 1000;
  line-height: 1.12;
}

.lc-display-root .lc-line-text {
  -webkit-line-clamp: 1;
  white-space: nowrap;
}

.lc-display-root .lc-customer-table th:nth-child(1),
.lc-display-root .lc-customer-table td:nth-child(1) {
  width: 18%;
}

.lc-display-root .lc-customer-table th:nth-child(3),
.lc-display-root .lc-customer-table td:nth-child(3) {
  width: 8%;
}

.lc-display-root .lc-customer-table th:nth-child(4),
.lc-display-root .lc-customer-table td:nth-child(4) {
  font-size: clamp(15px, 3vw, 23px);
  font-weight: 1000;
  width: 19%;
}

.lc-display-root .lc-customer-table tfoot td {
  background: #222;
  color: #fff;
  font-size: clamp(12px, 2.5vw, 19px);
}

.lc-display-root .lc-customer-table tfoot td:last-child {
  color: #ffd633;
  font-size: clamp(19px, 4.6vw, 34px);
}

.lc-display-root .lc-service-strip {
  gap: 5px;
  margin: 0 10px 8px;
}

.lc-display-root .lc-service-strip .lc-service-strip-address {
  font-size: clamp(16px, 3vw, 21px);
  min-height: clamp(44px, 7vw, 54px);
}

.lc-display-root .lc-service-strip .lc-service-strip-secret {
  font-size: clamp(15px, 2.7vw, 19px);
  min-height: clamp(40px, 6vw, 48px);
}

.lc-display-root .lc-performance-card {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 5px 0 0;
}

.lc-display-root .lc-performance-head {
  padding: 0 9px;
}

.lc-display-root .lc-overall-performance {
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  grid-template-columns: minmax(130px, auto) 1fr;
  margin-bottom: 5px;
  padding-left: 12px;
  padding-right: 12px;
}

.lc-display-root .lc-overall-performance span {
  font-size: clamp(12px, 2.4vw, 18px);
}

.lc-display-root .lc-overall-performance strong {
  font-size: clamp(20px, 4vw, 31px);
}

.lc-display-root .lc-overall-performance small {
  font-size: clamp(9px, 1.7vw, 13px);
}

.lc-display-root .lc-game-performance-preview {
  min-height: 96px;
}

.lc-display-root .lc-game-performance-preview img {
  height: 96px;
}

.lc-display-root .lc-performance-tabs {
  padding: 0 6px;
}

.lc-display-root .lc-sheet-summary {
  background: #222;
  color: #fff;
  margin: 5px 0 0;
  padding: 6px 12px 8px;
}

.lc-display-root .lc-summary-line strong {
  color: #fff;
}

.lc-display-root .lc-final-price {
  border-top-color: #555;
  margin-top: 4px;
  padding-bottom: 0;
}

.lc-display-root .lc-final-price span {
  color: #fff;
}

.lc-display-root .lc-final-price strong {
  color: #ffd633;
  font-size: clamp(38px, 10vw, 74px);
}

.lc-display-root .lc-sheet-foot {
  background: #222;
  border-top-color: #444;
  color: #fff;
  margin: 0;
  padding: 6px 8px 9px;
}

@media (max-width: 1390px) {
  .lc-workspace {
    grid-template-columns: 180px minmax(620px, 1fr) 370px;
  }

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

@media (max-width: 1206px) {
  .lc-workspace {
    grid-template-columns: 170px minmax(660px, 1fr);
  }

  .lc-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 884px) {
  .lc-requirements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-game-chips,
  .lc-performance-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .lc-workbench-table {
    min-width: 650px;
  }

  .lc-customer-table-wrap {
    overflow-x: auto;
  }

  .lc-game-performance-preview {
    grid-template-columns: 42% 1fr;
  }

  .lc-overall-performance {
    grid-template-columns: minmax(105px, auto) 1fr;
  }

  .lc-final-price input {
    width: 160px;
  }
}

/* 客户档案：当前信息、快捷需求与已保存配置保持清晰分区。 */
.lc-left-details {
  padding: 10px;
}

.lc-record-header {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 7px;
}

.lc-record-header h2 {
  color: var(--lc-navy);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
  white-space: nowrap;
}

.lc-record-header p,
.lc-record-storage-note {
  color: #748197;
  font-size: 9px;
  line-height: 1.45;
  margin: 3px 0 0;
}

.lc-record-header > strong {
  align-items: center;
  background: #eaf3ff;
  border: 1px solid #bfd7fb;
  border-radius: 999px;
  color: #1769d2;
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
  line-height: 1;
  min-height: 25px;
  padding: 0 7px;
  white-space: nowrap;
}

.lc-customer-header-import {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

.lc-customer-header-import textarea {
  background: #fff;
  font-size: 8px;
  line-height: 1.2;
  min-height: 25px;
  overflow: hidden;
  padding: 4px 6px;
  resize: none;
  white-space: nowrap;
}

.lc-customer-header-import button {
  background: #eef5ff;
  border-color: #a9c9f3;
  color: #1769d2;
  font-size: 8px;
  font-weight: 900;
  min-height: 25px;
  padding: 4px 6px;
}

.lc-current-customer {
  background: linear-gradient(145deg, #f8fbff, #f2f7fd);
  border: 1px solid #d7e3f2;
  border-radius: 12px;
  padding: 7px;
}

.lc-current-customer.is-previewing {
  background: linear-gradient(145deg, #fffaf0, #fff5dd);
  border-color: #e8bd5c;
  box-shadow: inset 3px 0 0 #d89200;
}

.lc-current-customer.is-previewing input[readonly] {
  background: rgba(255, 255, 255, .72);
  color: #30405a;
  cursor: default;
}

.lc-current-customer-heading,
.lc-left-subheading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.lc-current-customer-heading > span,
.lc-left-subheading > strong {
  color: var(--lc-navy);
  font-size: 11px;
  font-weight: 950;
}

.lc-current-customer-heading output,
.lc-left-subheading > span {
  color: #718097;
  font-size: 8px;
  font-weight: 750;
}

.lc-current-customer-heading output {
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-customer-contact-grid label,
.lc-customer-quick-grid label,
.lc-left-notes,
.lc-left-checks label {
  color: #536078;
  font-size: 9px;
  font-weight: 850;
}

.lc-customer-contact-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 5px;
}

.lc-customer-contact-grid label {
  min-width: 0;
}

.lc-customer-contact-grid label > span {
  display: block;
}

.lc-customer-address-field {
  grid-column: 1 / -1;
}

.lc-customer-contact-grid input,
.lc-customer-quick-grid input,
.lc-customer-quick-grid select {
  background: #fff;
  font-size: 10px;
  margin-top: 2px;
  min-height: 27px;
  padding: 3px 6px;
}

.lc-customer-contact-grid input[data-requirement="customerName"] {
  font-size: 11px;
  font-weight: 850;
}

.lc-customer-contact-import {
  border-top: 1px solid #dce5f1;
  display: grid;
  gap: 4px 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 6px;
  padding-top: 5px;
}

.lc-customer-contact-import > label {
  align-items: baseline;
  color: #536078;
  display: flex;
  font-size: 9px;
  font-weight: 900;
  gap: 6px;
  grid-column: 1 / -1;
  justify-content: space-between;
}

.lc-customer-contact-import > label small {
  color: #8792a5;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.25;
  min-width: 0;
  text-align: right;
}

.lc-customer-contact-import textarea {
  font-size: 9px;
  line-height: 1.35;
  min-height: 36px;
  padding: 5px 6px;
  resize: none;
}

.lc-customer-contact-import button {
  align-self: stretch;
  background: #eef5ff;
  border-color: #a9c9f3;
  color: #1769d2;
  font-size: 9px;
  font-weight: 900;
  min-height: 36px;
  padding: 5px 7px;
}

.lc-customer-switch-note {
  align-items: flex-start;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #efd18c;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding: 6px 7px;
}

.lc-customer-switch-note strong {
  color: #7c5100;
  font-size: 9px;
}

.lc-customer-switch-note span {
  color: #7f6b46;
  font-size: 8px;
  line-height: 1.35;
}

.lc-customer-quick-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.lc-customer-quick-grid label:last-child {
  grid-column: 1 / -1;
}

.lc-left-notes {
  display: block;
  margin-top: 8px;
  position: relative;
}

.lc-left-notes > span {
  display: block;
}

.lc-left-notes textarea {
  background: #fff;
  font-size: 10px;
  line-height: 1.45;
  margin-top: 4px;
  min-height: 62px;
  padding: 7px 8px 18px;
  resize: vertical;
}

.lc-left-notes > small {
  bottom: 5px;
  color: #8792a5;
  font-size: 8px;
  position: absolute;
  right: 7px;
}

.lc-left-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.lc-left-checks label {
  align-items: center;
  background: #fff;
  border: 1px solid #d6e0ec;
  border-radius: 999px;
  display: flex;
  gap: 3px;
  padding: 4px 6px;
}

.lc-left-checks input {
  height: 13px;
  margin: 0;
  min-height: 0;
  width: 13px;
}

.lc-left-games {
  border-bottom: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  margin-top: 11px;
  padding: 10px 0;
}

.lc-left-games .lc-game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.lc-left-games .lc-game-choice {
  border: 1px solid #c5d3e5;
  border-radius: 7px;
  display: flex;
  overflow: hidden;
}

.lc-left-games .lc-game-choice.is-active {
  border-color: var(--lc-blue);
  box-shadow: 0 0 0 1px rgba(23, 105, 210, .1);
}

.lc-left-games .lc-game-choice > button:first-child {
  background: #fff;
  min-height: 27px;
  padding: 3px 7px;
}

.lc-left-games .lc-game-choice img {
  display: none;
}

.lc-left-games .lc-game-choice > button:first-child span {
  background: transparent;
  color: #42516a;
  font-size: 9px;
  padding: 0;
  position: static;
}

.lc-left-games .lc-game-remove {
  background: #f7f9fc;
  color: #8792a5;
  font-size: 11px;
  min-height: 25px;
  position: static;
  width: 21px;
}

.lc-left-games .lc-game-options {
  gap: 5px;
  margin-top: 6px;
}

.lc-left-games .lc-game-option {
  border-radius: 7px;
  font-size: 9px;
  min-height: 27px;
  padding: 3px 7px;
}

.lc-customer-record-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  margin-top: 7px;
}

.lc-customer-record-actions button {
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
  min-height: 32px;
  padding: 5px;
}

.lc-save-customer {
  background: #1769d2;
  border-color: #1769d2;
  color: #fff;
}

.lc-new-customer {
  background: #fff;
  border-color: #9fc1ef;
  color: #1769d2;
}

.lc-confirm-customer-switch {
  background: #d89200;
  border-color: #d89200;
  color: #fff;
}

.lc-cancel-customer-switch {
  background: #fff;
  border-color: #d8b76f;
  color: #75520b;
}

.lc-saved-customer-section {
  margin-top: 10px;
}

.lc-customer-record-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.lc-customer-record-pagination {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 7px;
}

.lc-customer-record-pagination button {
  font-size: 8px;
  min-height: 25px;
  padding: 3px 6px;
}

.lc-customer-record-pagination button:last-child {
  justify-self: stretch;
}

.lc-customer-record-pagination span {
  color: #718097;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.lc-right-game-section {
  padding-bottom: 11px;
}

.lc-right-game-heading {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.lc-right-game-heading span {
  color: #718097;
  font-size: 8px;
  text-align: right;
}

.lc-game-display-settings {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.lc-game-display-settings label {
  color: #536078;
  font-size: 9px;
  font-weight: 850;
}

.lc-game-display-settings select {
  background: #fff;
  font-size: 10px;
  margin-top: 3px;
  min-height: 29px;
  padding: 3px 6px;
}

.lc-right-game-section .lc-game-chips {
  margin-top: 8px;
}

.lc-right-game-section .lc-game-choice > button:first-child {
  min-height: 48px;
}

.lc-right-game-section .lc-game-choice img {
  height: 52px;
}

.lc-customer-record {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.lc-customer-record.is-active {
  background: #f3f8ff;
  border-color: #79adf2;
  box-shadow: inset 3px 0 0 #1769d2;
}

.lc-customer-record.is-pending-switch {
  background: #fff9e9;
  border-color: #dfad3a;
  box-shadow: inset 3px 0 0 #d89200;
}

.lc-customer-record.is-dragging {
  opacity: 0.5;
}

.lc-customer-record.is-drop-before::after,
.lc-customer-record.is-drop-after::after {
  background: #1769d2;
  content: "";
  height: 3px;
  left: 4px;
  pointer-events: none;
  position: absolute;
  right: 4px;
  z-index: 3;
}

.lc-customer-record.is-drop-before::after {
  top: 0;
}

.lc-customer-record.is-drop-after::after {
  bottom: 0;
}

.lc-customer-record-drag {
  align-items: center;
  color: #8a9ab0;
  cursor: grab;
  display: flex;
  font-size: 11px;
  font-weight: 950;
  justify-content: center;
  letter-spacing: -3px;
  touch-action: none;
  user-select: none;
}

.lc-customer-record-drag:active {
  cursor: grabbing;
}

.lc-customer-record-drag[draggable="false"] {
  cursor: default;
  opacity: 0.35;
}

.lc-customer-record-main {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 8px 7px 8px 10px;
  text-align: left;
}

.lc-customer-record-name {
  color: var(--lc-navy);
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-customer-record-main em {
  background: #1769d2;
  border-radius: 999px;
  color: #fff;
  font-size: 7px;
  font-style: normal;
  padding: 2px 5px;
}

.lc-customer-record-main em.is-pending {
  background: #d89200;
}

.lc-customer-record-main small,
.lc-customer-record-main b {
  display: block;
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-customer-record-main small {
  color: #8792a5;
  font-size: 8px;
}

.lc-customer-record-main b {
  color: #546177;
  font-size: 8px;
  font-weight: 750;
}

.lc-customer-record-delete {
  background: transparent;
  border: 0;
  border-left: 1px solid #e4e9f0;
  border-radius: 0;
  color: #9a5d5d;
  font-size: 8px;
  min-width: 35px;
  padding: 4px;
}

.lc-customer-record-confirm {
  align-items: center;
  background: #fff4f2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 1 / -1;
  padding: 7px 9px;
}

.lc-customer-record-confirm span {
  color: #9c4138;
  flex: 1 0 100%;
  font-size: 8px;
  font-weight: 800;
}

.lc-customer-record-confirm button {
  font-size: 8px;
  min-height: 24px;
  padding: 3px 8px;
}

.lc-record-storage-note {
  border-top: 1px solid #e0e6ee;
  margin: 11px 0 0;
  padding-top: 9px;
}

.lc-customer-archive-panel {
  border-top: 1px solid #e0e7f0;
  margin-top: 10px;
  padding-top: 9px;
}

.lc-archive-placeholder {
  align-items: center;
  background: #f7f9fc;
  border: 1px dashed #becbdd;
  border-radius: 9px;
  color: #77849a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
  min-height: 116px;
  padding: 14px;
  text-align: center;
}

.lc-archive-placeholder strong {
  color: #536078;
  font-size: 10px;
}

.lc-archive-placeholder span {
  font-size: 8px;
  line-height: 1.5;
}

.lc-archive-preview-button {
  background: #fff;
  border: 1px solid #b7c7dc;
  border-radius: 9px;
  display: block;
  margin-top: 6px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  white-space: normal;
  width: 100%;
}

.lc-archive-preview-button:hover:not(:disabled) {
  background: #fff;
  border-color: #4d8fe3;
  box-shadow: 0 0 0 2px rgba(23, 105, 210, .1);
}

.lc-archive-open-hint {
  background: #edf5ff;
  color: #1769d2;
  display: block;
  font-size: 8px;
  font-weight: 900;
  padding: 5px 7px;
  text-align: center;
}

.lc-archive-shot {
  background: #f7f9fc;
  border: 1px solid #d7e0ec;
  color: #17233d;
  overflow: hidden;
}

.lc-archive-shot.is-compact {
  border: 0;
}

.lc-archive-shot-header {
  align-items: center;
  background: #202020;
  color: #fff;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.lc-archive-shot-header > div {
  align-items: baseline;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.lc-archive-shot-header span {
  font-size: 14px;
  font-weight: 900;
}

.lc-archive-shot-header strong {
  color: #ffd326;
  font-size: 21px;
  font-weight: 950;
}

.lc-archive-shot-header time {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.lc-archive-customer-line {
  align-items: center;
  background: #edf1f6;
  display: flex;
  gap: 14px;
  min-height: 34px;
  padding: 7px 12px;
}

.lc-archive-customer-line strong {
  color: #0b2453;
  font-size: 12px;
}

.lc-archive-customer-line span {
  color: #65738b;
  font-size: 9px;
}

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

.lc-archive-section {
  background: #fff;
  border: 1px solid #d9e1ec;
  min-width: 0;
  overflow: hidden;
}

.lc-archive-section h3 {
  background: #e8eef7;
  border-bottom: 1px solid #d9e1ec;
  color: #0b2453;
  font-size: 11px;
  font-weight: 950;
  margin: 0;
  padding: 7px 8px;
  text-align: center;
}

.lc-archive-section.is-ledger h3 {
  background: #fff3ce;
  color: #6d4a00;
}

.lc-archive-table-wrap {
  overflow-x: auto;
}

.lc-archive-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.lc-archive-table th,
.lc-archive-table td {
  border-bottom: 1px solid #d9e1ec;
  border-right: 1px solid #d9e1ec;
  padding: 7px 8px;
  text-align: right;
  vertical-align: middle;
}

.lc-archive-table th {
  background: #172554;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.lc-archive-table td {
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.lc-archive-config-table th:first-child,
.lc-archive-config-table td:first-child {
  text-align: left;
  width: 15%;
}

.lc-archive-config-table th:nth-child(2),
.lc-archive-config-table td:nth-child(2) {
  overflow-wrap: anywhere;
  text-align: left;
  width: 55%;
}

.lc-archive-config-table th:nth-child(3),
.lc-archive-config-table td:nth-child(3) {
  text-align: center;
  width: 10%;
}

.lc-archive-config-table th:nth-child(4),
.lc-archive-config-table td:nth-child(4) {
  width: 20%;
}

.lc-archive-ledger-table th:first-child,
.lc-archive-ledger-table td:first-child {
  overflow-wrap: anywhere;
  text-align: left;
  width: 55%;
}

.lc-archive-ledger-table th:not(:first-child),
.lc-archive-ledger-table td:not(:first-child) {
  width: 15%;
}

.lc-archive-config-table td:first-child strong {
  color: #0b2453;
  font-size: 9px;
}

.lc-archive-table .is-negative,
.lc-archive-metrics .is-negative strong {
  color: #07844e;
}

.lc-archive-table .is-positive,
.lc-archive-metrics .is-positive strong {
  color: #e11d22;
}

.lc-archive-empty-row td,
.lc-archive-more-row td {
  color: #7b879a;
  padding: 18px 8px;
  text-align: center !important;
}

.lc-archive-more-row td {
  background: #f5f8fc;
  padding: 7px 8px;
}

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

.lc-archive-metrics > div {
  background: #fff;
  padding: 10px 8px;
  text-align: center;
}

.lc-archive-metrics span,
.lc-archive-metrics strong {
  display: block;
}

.lc-archive-metrics span {
  color: #718097;
  font-size: 8px;
}

.lc-archive-metrics strong {
  color: #0b2453;
  font-size: 13px;
  margin-top: 2px;
}

.lc-archive-detail-footer {
  background: #edf2f8;
  color: #536078;
  display: flex;
  flex-wrap: wrap;
  font-size: 9px;
  gap: 8px 18px;
  padding: 9px 12px;
}

.lc-archive-shot.is-compact .lc-archive-shot-header {
  padding: 6px 7px;
}

.lc-archive-shot.is-compact .lc-archive-shot-header > div {
  display: block;
}

.lc-archive-shot.is-compact .lc-archive-shot-header span,
.lc-archive-shot.is-compact .lc-archive-shot-header time {
  font-size: 5px;
}

.lc-archive-shot.is-compact .lc-archive-shot-header strong {
  display: block;
  font-size: 9px;
}

.lc-archive-shot.is-compact .lc-archive-customer-line {
  gap: 5px;
  min-height: 20px;
  padding: 3px 5px;
}

.lc-archive-shot.is-compact .lc-archive-customer-line strong,
.lc-archive-shot.is-compact .lc-archive-customer-line span,
.lc-archive-shot.is-compact .lc-archive-table th,
.lc-archive-shot.is-compact .lc-archive-table td,
.lc-archive-shot.is-compact .lc-archive-config-table td:first-child strong {
  font-size: 5px;
}

.lc-archive-shot.is-compact .lc-archive-sections {
  gap: 4px;
  grid-template-columns: 1fr;
  padding: 4px;
}

.lc-archive-shot.is-compact .lc-archive-section h3 {
  font-size: 6px;
  padding: 3px 4px;
}

.lc-archive-shot.is-compact .lc-archive-table th,
.lc-archive-shot.is-compact .lc-archive-table td {
  padding: 3px;
}

.lc-archive-shot.is-compact .lc-archive-metrics > div {
  padding: 4px 2px;
}

.lc-archive-shot.is-compact .lc-archive-metrics span {
  font-size: 5px;
}

.lc-archive-shot.is-compact .lc-archive-metrics strong {
  font-size: 6px;
  margin-top: 1px;
}

.lc-archive-dialog-layer {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 160;
}

.lc-archive-dialog-backdrop {
  background: rgba(5, 17, 38, .76);
  border: 0;
  border-radius: 0;
  inset: 0;
  min-height: 0;
  padding: 0;
  position: absolute;
}

.lc-archive-dialog-backdrop:hover:not(:disabled) {
  background: rgba(5, 17, 38, .76);
  border: 0;
}

.lc-archive-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  max-height: calc(100vh - 48px);
  max-width: 1180px;
  overflow: auto;
  padding: 16px;
  position: relative;
  width: min(1180px, calc(100vw - 48px));
  z-index: 1;
}

.lc-archive-dialog > header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lc-archive-dialog h2 {
  color: #08214d;
  font-size: 20px;
  margin: 0;
}

.lc-archive-dialog p {
  color: #718097;
  font-size: 11px;
  margin: 3px 0 0;
}

.lc-archive-dialog > header > button {
  border-radius: 999px;
  font-size: 22px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

@media (max-width: 760px) {
  .lc-archive-dialog-layer {
    padding: 10px;
  }

  .lc-archive-dialog {
    max-height: calc(100vh - 20px);
    padding: 10px;
    width: calc(100vw - 20px);
  }

  .lc-archive-shot:not(.is-compact) {
    min-width: 760px;
  }

  .lc-archive-sections {
    grid-template-columns: 1fr;
  }
}

.lc-sheet-hero {
  padding-bottom: 12px;
}

.lc-sheet-summary-line {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin: 5px auto 0;
  min-height: 34px;
  padding: 5px 12px;
  text-align: center;
  width: calc(100% - 28px);
}

.lc-sheet-summary-line::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.lc-sheet-summary-line:hover,
.lc-sheet-summary-line:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.lc-sheet-edit-toolbar {
  justify-content: flex-end;
  min-height: 43px;
}

.lc-row-search-wrap .lc-sheet-model-input {
  padding-right: 8px;
}

.lc-catalog-result-with-price {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 0;
  min-height: 38px;
  padding: 8px 0 8px 10px;
  text-align: left;
  width: 100%;
}

.lc-catalog-result-with-price + .lc-catalog-result-with-price {
  border-top: 1px solid #e2e7ef;
}

.lc-catalog-result-model {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding-right: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-catalog-result .lc-catalog-reference-price {
  align-items: center;
  color: #b42318;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  line-height: 1.15;
  margin-left: var(--lc-catalog-quantity-width, 38px);
  min-width: 0;
  width: var(--lc-catalog-price-width, 68px);
  text-align: center;
  white-space: nowrap;
}

.lc-catalog-reference-price small {
  color: #7a8799;
  font-size: 9px;
  font-weight: 700;
  margin: 0 0 2px;
}

.lc-catalog-reference-price strong {
  font-size: 13px;
  font-weight: 950;
}

.lc-catalog-reference-price.is-inquiry {
  color: #c2410c;
}

.lc-catalog-reference-price.is-missing {
  color: #7a8799;
}

.lc-workbench-table th:nth-child(4),
.lc-workbench-table td:nth-child(4) {
  width: 104px;
}

.lc-customer-table tfoot td {
  height: 72px;
}

.lc-total-label {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 86px 1fr;
}

.lc-total-label strong {
  color: #ffd633;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.lc-customer-table tfoot td:first-child .lc-total-label span {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.lc-customer-table tfoot td:last-child {
  font-size: 36px;
  font-weight: 950;
}

.lc-ledger-wrap {
  border-radius: 0;
  max-height: none;
  overflow: visible;
}

.lc-ledger th,
.lc-ledger td {
  font-size: 11px;
  height: 42px;
  padding: 5px 6px;
}

.lc-ledger td:first-child {
  font-size: 12px;
  font-weight: 900;
}

.lc-ledger-section {
  padding-top: 10px;
}

.lc-display-root .lc-customer-table tfoot td {
  height: clamp(72px, 9vw, 96px);
}

.lc-display-root .lc-total-label strong {
  font-size: clamp(26px, 4.8vw, 38px);
}

.lc-display-root .lc-customer-table tfoot td:first-child .lc-total-label span {
  font-size: clamp(20px, 3.7vw, 30px);
}

.lc-display-root .lc-customer-table tfoot td:last-child {
  font-size: clamp(36px, 6.4vw, 52px);
}

/* 直播工作台细节收敛：三栏独立调宽、紧凑明细和清晰总价。 */
@media (min-width: 1207px) {
  html,
  body,
  #live-config-app {
    height: 100%;
    overflow: hidden;
  }

  .lc-workspace {
    gap: 0;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    grid-template-columns:
      var(--lc-left-width, 210px)
      14px
      minmax(520px, 1fr)
      14px
      var(--lc-right-width, 420px);
    min-height: 0;
    overflow: hidden;
  }
}

.lc-layout-resizer {
  cursor: col-resize;
  min-width: 14px;
  outline: 0;
  position: relative;
  touch-action: none;
}

.lc-layout-resizer::before {
  background: rgba(21, 101, 216, 0.06);
  border-radius: 999px;
  content: "";
  inset: 8px 3px;
  position: absolute;
  transition: background 0.15s;
}

.lc-layout-resizer::after {
  background: #cad5e4;
  border-radius: 999px;
  content: "";
  height: 72px;
  left: 5px;
  position: absolute;
  top: calc(50% - 36px);
  transition: background 0.15s, left 0.15s, width 0.15s;
  width: 4px;
}

.lc-layout-resizer:hover::before,
.lc-layout-resizer:focus-visible::before,
.lc-is-resizing-layout .lc-layout-resizer::before {
  background: rgba(21, 101, 216, 0.13);
}

.lc-layout-resizer:hover::after,
.lc-layout-resizer:focus-visible::after,
.lc-is-resizing-layout .lc-layout-resizer::after {
  background: var(--lc-blue);
  left: 4px;
  width: 6px;
}

.lc-is-resizing-layout {
  cursor: col-resize;
  user-select: none;
}

.lc-workbench-table th,
.lc-workbench-table td,
.lc-ledger th,
.lc-ledger td {
  height: 36px;
  padding-bottom: 3px;
  padding-top: 3px;
}

.lc-workbench-table .lc-part-thumb {
  height: 24px;
  width: 28px;
}

.lc-workbench-table .lc-sheet-model-input {
  font-size: 14px;
}

.lc-workbench-table .lc-sheet-category-input {
  font-size: 13px;
}

.lc-sheet-quantity-input {
  font-size: 15px;
  font-weight: 950;
}

.lc-sheet-quantity-input,
.lc-sheet-price-input,
.lc-final-price input,
[data-business-number],
[data-requirement-number] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.lc-sheet-quantity-input::-webkit-inner-spin-button,
.lc-sheet-quantity-input::-webkit-outer-spin-button,
.lc-sheet-price-input::-webkit-inner-spin-button,
.lc-sheet-price-input::-webkit-outer-spin-button,
.lc-final-price input::-webkit-inner-spin-button,
.lc-final-price input::-webkit-outer-spin-button,
[data-business-number]::-webkit-inner-spin-button,
[data-business-number]::-webkit-outer-spin-button,
[data-requirement-number]::-webkit-inner-spin-button,
[data-requirement-number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lc-customer-table tfoot td {
  height: 78px;
  text-align: center;
}

.lc-total-label {
  gap: 0;
  grid-template-columns: minmax(92px, 28%) 1fr;
  justify-items: center;
  width: 100%;
}

.lc-total-label strong {
  font-size: 32px;
  text-align: center;
  width: 100%;
}

.lc-customer-table tfoot td:first-child .lc-total-label span {
  font-size: 25px;
  text-align: center;
  width: 100%;
}

.lc-customer-table tfoot td:last-child {
  font-size: 38px;
  text-align: center;
}

.lc-display-root .lc-customer-table th,
.lc-display-root .lc-customer-table td {
  height: clamp(32px, 6.2vw, 47px);
  padding-bottom: 2px;
  padding-top: 2px;
}

.lc-display-root .lc-customer-table td:nth-child(3) {
  font-weight: 1000;
}

.lc-display-root .lc-customer-table tfoot td {
  height: clamp(72px, 8vw, 90px);
}

.lc-display-root .lc-total-label strong {
  font-size: clamp(30px, 5.2vw, 42px);
}

.lc-display-root .lc-customer-table tfoot td:first-child .lc-total-label span {
  font-size: clamp(23px, 4vw, 33px);
}

.lc-display-root .lc-customer-table tfoot td:last-child {
  font-size: clamp(38px, 6.7vw, 56px);
  text-align: center;
}

@media (max-width: 1206px) {
  .lc-layout-resizer {
    display: none;
  }

  .lc-workspace {
    gap: 10px;
  }
}

/* 客户成单区：总价留白、砍价收口与可编辑补充说明。 */
.lc-total-bar {
  align-items: center;
  background: #222;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
  color: #fff;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(82px, 20%) minmax(210px, 1fr) minmax(150px, 26%);
  height: 38px;
  margin: 6px 10px 0;
  min-height: 38px;
  overflow: hidden;
  padding: 3px 12px;
  text-align: center;
}

.lc-total-bar strong {
  color: #ffd633;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.lc-total-bar span {
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
}

.lc-total-bar b {
  color: #d7d7d7;
  font-size: 22px;
  font-weight: 950;
  justify-self: end;
  line-height: 1;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
}

.lc-right-edit-toolbar {
  background: transparent;
  border: 0;
  justify-content: flex-end;
  min-height: 0;
  padding: 4px 0 10px;
}

.lc-right-edit-toolbar > div {
  gap: 7px;
  justify-content: flex-end;
}

.lc-right-edit-toolbar button {
  background: #fff;
  border-color: #b7c8dc;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(14, 43, 76, 0.08);
  color: #24415f;
  font-size: 12px;
  font-weight: 850;
  min-height: 36px;
  padding: 7px 11px;
}

.lc-right-edit-toolbar button:hover:not(:disabled) {
  background: #edf5ff;
  border-color: #78a9e5;
}

.lc-right-edit-toolbar button[data-action="item-add"] {
  background: #edf5ff;
  border-color: #75a9ea;
  color: #075fc5;
}

.lc-right-edit-toolbar button.is-danger {
  background: #fff7f6;
  border-color: #e5aaa5;
  color: #b42318;
}

.lc-right-clear-notice {
  align-items: center;
  border: 1px solid #e6b7b1;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 750;
  gap: 7px 10px;
  justify-content: flex-end;
  margin: -2px 0 10px auto;
  max-width: 100%;
  padding: 7px 9px;
  text-align: right;
  width: fit-content;
}

.lc-right-clear-notice.is-confirm {
  background: #fff7f6;
  color: #8f241c;
}

.lc-right-clear-actions {
  display: inline-flex;
  gap: 6px;
}

.lc-right-clear-notice button {
  background: #fff;
  border-color: currentColor;
  color: inherit;
  font-size: 10px;
  min-height: 27px;
  padding: 4px 8px;
}

.lc-right-clear-notice button.is-danger {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.lc-final-price-section {
  background: #222;
  border-radius: 0 0 10px 10px;
  margin: 0 10px 8px;
  overflow: hidden;
}

.lc-final-price {
  border-bottom: 0;
  border-top: 1px solid #444;
  box-sizing: border-box;
  color: #fff;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(82px, 20%) minmax(210px, 1fr) minmax(150px, 26%);
  height: 48px;
  margin-top: 0;
  min-height: 48px;
  padding: 1px 12px;
}

.lc-final-price > span {
  color: #f1f1f1;
  font-family: inherit;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 0;
}

.lc-final-price strong {
  align-self: center;
  color: #ffd633;
  font-size: 40px;
  grid-column: 2;
  justify-content: center;
  justify-self: center;
  margin-left: 0;
  padding-right: 0;
  width: 100%;
}

.lc-final-price input {
  background: transparent;
  border: 0;
  box-shadow: none;
  caret-color: #ffd633;
  color: #ffd633;
  font-size: inherit;
  line-height: 1;
  min-height: 44px;
  padding: 0;
  text-align: center;
  width: 200px;
}

.lc-final-price input:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 0;
}

.lc-customer-note-editor,
.lc-customer-note-output {
  margin: 10px 14px 16px;
}

.lc-customer-note-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  margin-top: 7px;
  width: 100%;
}

.lc-customer-note-tools > label:first-child {
  align-items: center;
  color: var(--lc-subtle);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
}

.lc-customer-note-tools select {
  min-height: 29px;
  padding: 3px 24px 3px 7px;
  width: 80px;
}

.lc-note-image-button,
.lc-customer-note-tools > button {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d3e1;
  border-radius: 6px;
  color: #34506f;
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
  min-height: 29px;
  padding: 4px 9px;
}

.lc-note-image-button:focus-within {
  border-color: var(--lc-blue);
  box-shadow: 0 0 0 3px rgba(17, 102, 232, 0.14);
}

.lc-note-image-button input {
  height: 1px;
  min-height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.lc-customer-note-input {
  border-color: #cfd8e5;
  min-height: 82px;
  resize: vertical;
}

.lc-customer-note-image {
  border-radius: 8px;
  display: block;
  margin: 8px auto 0;
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
}

.lc-customer-note-copy {
  line-height: 1.6;
  white-space: pre-wrap;
}

.lc-display-root .lc-total-bar {
  border-radius: 8px 8px 0 0;
  grid-template-columns: minmax(70px, 18%) minmax(180px, 1fr) minmax(140px, 25%);
  height: 38px;
  margin: 6px 10px 0;
  min-height: 38px;
  padding: 3px clamp(8px, 1.5vw, 12px);
}

.lc-display-root .lc-total-bar strong {
  font-size: clamp(22px, 4vw, 27px);
}

.lc-display-root .lc-total-bar span {
  font-size: clamp(17px, 3vw, 21px);
}

.lc-display-root .lc-total-bar b {
  font-size: clamp(20px, 3.4vw, 24px);
}

.lc-display-root .lc-final-price-section {
  background: #222;
  border-radius: 0 0 8px 8px;
  margin: 0 10px 8px;
  overflow: hidden;
}

.lc-display-root .lc-final-price {
  border: 0;
  grid-template-columns: minmax(70px, 18%) minmax(180px, 1fr) minmax(140px, 25%);
  height: 48px;
  min-height: 48px;
  padding: 1px clamp(8px, 1.5vw, 12px);
}

.lc-display-root .lc-final-price > span {
  color: #fff;
  font-size: clamp(21px, 4vw, 25px);
  font-weight: 950;
}

.lc-display-root .lc-final-price strong {
  color: #ffd633;
  font-size: clamp(34px, 6vw, 42px);
  grid-column: 2;
  padding-right: 0;
}

.lc-display-root .lc-customer-note-output {
  border: 1px solid #d9e1eb;
  border-radius: 8px;
  color: #222;
  padding: 10px 12px;
}

@media (max-width: 620px) {
  .lc-total-bar,
  .lc-display-root .lc-total-bar {
    gap: 4px;
    grid-template-columns: 72px minmax(155px, 1fr) minmax(120px, 26%);
    margin-left: 6px;
    margin-right: 6px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .lc-final-price,
  .lc-display-root .lc-final-price {
    gap: 4px;
    grid-template-columns: 72px minmax(155px, 1fr) minmax(120px, 26%);
    padding-left: 7px;
    padding-right: 7px;
  }

  .lc-final-price-section,
  .lc-display-root .lc-final-price-section {
    margin-left: 6px;
    margin-right: 6px;
  }

  .lc-total-bar strong {
    font-size: 23px;
  }

  .lc-total-bar span {
    font-size: 17px;
  }

  .lc-total-bar b {
    font-size: 21px;
  }

  .lc-final-price > span {
    font-size: 22px;
  }

  .lc-final-price strong {
    font-size: 38px;
  }
}

/* 中央配置单与主播账本逐行对齐；右侧所有常用操作收进同一行。 */
.lc-ledger-section {
  padding-top: 8px;
}

.lc-right-control-strip {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
  padding: 2px 0 8px;
  white-space: nowrap;
}

.lc-right-control-strip > button,
.lc-right-control-strip .lc-right-edit-toolbar button {
  background: #fff;
  border-color: #b7c8dc;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(14, 43, 76, 0.08);
  color: #24415f;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 850;
  min-height: 36px;
  padding: 7px 10px;
}

.lc-right-control-strip > button:hover:not(:disabled),
.lc-right-control-strip .lc-right-edit-toolbar button:hover:not(:disabled) {
  background: #edf5ff;
  border-color: #78a9e5;
}

.lc-right-control-strip > button:first-child,
.lc-right-control-strip .lc-right-edit-toolbar button[data-action="item-add"] {
  background: #edf5ff;
  border-color: #75a9ea;
  color: #075fc5;
}

.lc-right-control-strip button.is-danger {
  background: #fff7f6;
  border-color: #e5aaa5;
  color: #b42318;
}

.lc-right-control-strip .lc-right-edit-toolbar,
.lc-right-control-strip .lc-right-edit-toolbar > div {
  display: contents;
}

.lc-right-control-strip .lc-right-heading {
  flex: 0 0 auto;
  font-size: 16px;
  margin: 0 0 0 5px;
}

@media (max-width: 1420px) {
  .lc-right-control-strip {
    gap: 4px;
  }

  .lc-right-control-strip > button,
  .lc-right-control-strip .lc-right-edit-toolbar button {
    font-size: 11px;
    min-height: 34px;
    padding: 6px;
  }

  .lc-right-control-strip .lc-right-heading {
    font-size: 15px;
    margin-left: 2px;
  }
}

/* 直播截图表头：左名称、中标题与需求、右日期。 */
.lc-sheet-hero {
  align-items: center;
  background: #222;
  color: #fff;
  display: grid;
  gap: 8px 16px;
  grid-template-columns: minmax(100px, 1fr) minmax(260px, 2.2fr) minmax(110px, 1fr);
  min-height: 78px;
  padding: 10px 18px;
}

.lc-sheet-header-center {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.lc-sheet-brand,
.lc-sheet-brand-input,
.lc-sheet-date {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.lc-sheet-brand-input {
  background: transparent;
  border-color: transparent;
  min-height: 31px;
  padding: 3px 5px;
  text-align: left;
  width: 100%;
}

.lc-sheet-brand-input:hover,
.lc-sheet-brand-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.lc-sheet-title {
  color: #ffd633;
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
}

.lc-sheet-title-input {
  background: transparent;
  border-color: transparent;
  color: #ffd633;
  margin: 0;
  min-height: 34px;
  padding: 1px 6px;
  text-align: center;
  width: 100%;
}

.lc-sheet-title-input:hover,
.lc-sheet-title-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.lc-sheet-summary-line {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 750;
  margin: 0;
  min-height: 22px;
  padding: 2px 6px;
  text-align: center;
  width: 100%;
}

.lc-sheet-summary-line::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.lc-sheet-date {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.lc-sheet-brief {
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.92);
  display: block;
  font-size: 10px;
  font-weight: 750;
  margin: 2px 0 0;
  min-height: 13px;
  text-align: center;
}

.lc-sheet-brief span {
  border: 0;
  padding: 0;
}

.lc-final-price-note {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none;
  color: #fff;
  display: block;
  font-size: 11px;
  font-weight: 900;
  height: 16px;
  line-height: 16px;
  min-height: 16px;
  padding: 0 8px;
  text-align: center;
  width: 100%;
}

.lc-final-price-note:hover,
.lc-final-price-note:focus {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  box-shadow: none;
  outline: 0;
}

.lc-final-price-note-output {
  font-size: clamp(10px, 1.8vw, 13px);
}

.lc-display-root .lc-sheet-hero {
  background: #222;
  gap: 8px clamp(8px, 2vw, 16px);
  grid-template-columns: minmax(90px, 1fr) minmax(220px, 2.2fr) minmax(100px, 1fr);
  padding: 10px clamp(12px, 2.2vw, 18px);
}

.lc-display-root .lc-sheet-brand {
  font-size: clamp(13px, 2.6vw, 20px);
}

.lc-display-root .lc-sheet-title {
  color: #ffd633;
  font-size: clamp(26px, 5.5vw, 42px);
}

.lc-display-root .lc-sheet-date {
  font-size: clamp(12px, 2.4vw, 18px);
}

@media (max-width: 620px) {
  .lc-sheet-hero,
  .lc-display-root .lc-sheet-hero {
    gap: 5px 7px;
    grid-template-columns: minmax(72px, 1fr) minmax(150px, 2.1fr) minmax(78px, 1fr);
    padding: 8px;
  }

  .lc-sheet-brand,
  .lc-sheet-brand-input,
  .lc-sheet-date {
    font-size: 11px;
  }

  .lc-sheet-title {
    font-size: 24px;
  }

  .lc-final-price-note {
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* 直播截图精排：圆角收口、紧凑表头与手机画面可读字号。 */
.lc-center {
  padding: 0 16px 0 0;
  scrollbar-gutter: auto;
  scrollbar-width: thin;
}

.lc-center::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.lc-center > .lc-customer-frame {
  background: #eef2f7;
  border: 1px solid #ffb099;
  border-radius: 10px;
  flex: 0 0 auto;
  padding: 8px;
  width: 100%;
}

.lc-center > .lc-customer-frame > .lc-customer-sheet {
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.lc-sheet-hero {
  gap: 2px 10px;
  grid-template-columns: minmax(96px, 0.8fr) minmax(260px, 2.5fr) minmax(96px, 0.8fr);
  min-height: 70px;
  padding: 6px 14px;
}

.lc-sheet-header-center {
  gap: 0;
}

.lc-sheet-brand,
.lc-sheet-brand-input,
.lc-sheet-date {
  font-size: 17px;
}

.lc-sheet-title {
  font-size: 38px;
}

.lc-sheet-title-input {
  min-height: 40px;
  padding: 0 4px;
}

.lc-sheet-summary-line {
  font-size: 9px;
  line-height: 1;
  min-height: 14px;
  padding: 0 4px;
}

.lc-workbench-table th,
.lc-workbench-table td {
  height: 32px;
  padding-left: 5px;
  padding-bottom: 1px;
  padding-right: 5px;
  padding-top: 1px;
}

.lc-workbench-table .lc-sheet-column-input,
.lc-workbench-table .lc-sheet-category-input,
.lc-workbench-table .lc-sheet-model-input,
.lc-workbench-table .lc-sheet-quantity-input,
.lc-workbench-table .lc-sheet-price-input {
  line-height: 1;
  min-height: 28px;
  padding-bottom: 0;
  padding-top: 0;
}

.lc-workbench-table .lc-part-thumb {
  height: 20px;
  width: 23px;
}

.lc-ledger th,
.lc-ledger td {
  height: 32px;
  padding-bottom: 1px;
  padding-top: 1px;
}

.lc-ledger input {
  line-height: 1;
  min-height: 28px;
  padding-bottom: 0;
  padding-top: 0;
}

.lc-workbench-table thead th:nth-child(1) .lc-sheet-column-input {
  font-size: 18px;
}

.lc-workbench-table thead th:nth-child(2) .lc-sheet-column-input {
  font-size: 16px;
}

.lc-workbench-table .lc-sheet-category-input {
  font-size: 19px;
}

.lc-workbench-table .lc-sheet-model-input {
  font-size: 18px;
}

.lc-workbench-table .lc-sheet-quantity-input {
  font-size: 17px;
  text-align: center;
}

.lc-workbench-table .lc-sheet-price-input {
  color: #151b26;
  font-size: 20px;
  text-align: center;
}

/* 价格列按数字宽度设计；详询状态保持同字号，仅收紧四字横向占用，避免窄画幅裁字。 */
.lc-workbench-table .lc-sheet-price-input.is-inquiry {
  letter-spacing: -0.12em;
  padding-left: 0;
  padding-right: 0;
}

.lc-workbench-table th:nth-child(1),
.lc-workbench-table td:nth-child(1) {
  width: 22%;
}

.lc-workbench-table th:nth-child(3),
.lc-workbench-table td:nth-child(3) {
  text-align: center;
  width: 48px;
}

.lc-workbench-table th:nth-child(4),
.lc-workbench-table td:nth-child(4) {
  color: #151b26;
  text-align: center;
  width: 86px;
}

.lc-customer-part {
  gap: 3px;
}

.lc-display-root .lc-sheet-hero {
  gap: 2px clamp(6px, 1.2vw, 10px);
  grid-template-columns: minmax(82px, 0.8fr) minmax(210px, 2.5fr) minmax(88px, 0.8fr);
  min-height: 70px;
  padding: 6px clamp(9px, 1.6vw, 14px);
}

.lc-display-root .lc-sheet-brand {
  font-size: clamp(15px, 2.8vw, 22px);
}

.lc-display-root .lc-sheet-title {
  font-size: clamp(32px, 6.2vw, 48px);
}

.lc-display-root .lc-sheet-brief {
  font-size: clamp(8px, 1.5vw, 12px);
  line-height: 1;
  margin-top: 0;
  min-height: 11px;
}

.lc-display-root .lc-customer-table th,
.lc-display-root .lc-customer-table td {
  height: clamp(27px, 4.8vw, 34px);
  padding-bottom: 1px;
  padding-left: clamp(4px, 1vw, 7px);
  padding-right: clamp(4px, 1vw, 7px);
  padding-top: 1px;
}

.lc-display-root .lc-customer-table th:nth-child(1),
.lc-display-root .lc-customer-table td:nth-child(1) {
  font-size: clamp(17px, 3.2vw, 25px);
  width: 20%;
}

.lc-display-root .lc-customer-table th:nth-child(2),
.lc-display-root .lc-customer-table td:nth-child(2) {
  font-size: clamp(16px, 3vw, 24px);
}

.lc-display-root .lc-customer-table th:nth-child(3),
.lc-display-root .lc-customer-table td:nth-child(3) {
  text-align: center;
  width: 8%;
}

.lc-display-root .lc-customer-table th:nth-child(4),
.lc-display-root .lc-customer-table td:nth-child(4) {
  color: #151b26;
  font-size: clamp(18px, 3.5vw, 28px);
  text-align: center;
  width: 14%;
}

@media (max-width: 884px) {
  .lc-center {
    padding: 0 14px 0 0;
  }
}

@media (max-width: 620px) {
  .lc-sheet-hero,
  .lc-display-root .lc-sheet-hero {
    gap: 1px 5px;
    grid-template-columns: minmax(68px, 0.8fr) minmax(160px, 2.5fr) minmax(72px, 0.8fr);
    min-height: 62px;
    padding: 5px 7px;
  }

  .lc-sheet-brand,
  .lc-sheet-brand-input,
  .lc-sheet-date {
    font-size: 12px;
  }

  .lc-sheet-title,
  .lc-display-root .lc-sheet-title {
    font-size: 32px;
  }

  .lc-sheet-summary-line,
  .lc-display-root .lc-sheet-brief {
    font-size: 8px;
    min-height: 10px;
  }
}

/* 配置栏显隐与窄画幅精排：隐藏只影响中间客户视图，不改变配置数据或主播账本。 */
.lc-center > .lc-customer-frame {
  container-name: live-config-sheet;
  container-type: inline-size;
}

.lc-workbench-table.is-config-list-hidden {
  display: none;
}

.lc-config-list-toggle.is-active {
  background: #e7f2ff !important;
  border-color: #5d9fe9 !important;
  color: #075fc5 !important;
}

.lc-workbench-table thead th:nth-child(1) .lc-sheet-column-input,
.lc-workbench-table thead th:nth-child(3) .lc-sheet-column-input,
.lc-workbench-table thead th:nth-child(4) .lc-sheet-column-input,
.lc-workbench-table .lc-sheet-category-input,
.lc-workbench-table .lc-sheet-quantity-input,
.lc-workbench-table .lc-sheet-price-input {
  text-align: center;
}

.lc-workbench-table th,
.lc-workbench-table td {
  padding-left: clamp(3px, 0.6cqw, 8px);
  padding-right: clamp(3px, 0.6cqw, 8px);
}

.lc-workbench-table .lc-sheet-category-input {
  font-size: clamp(16px, 3cqw, 19px);
  min-width: 0;
}

.lc-workbench-table .lc-sheet-model-input {
  font-size: clamp(16px, 3cqw, 18px);
}

.lc-workbench-table th:nth-child(1),
.lc-workbench-table td:nth-child(1) {
  width: 24%;
}

.lc-workbench-table th:nth-child(3),
.lc-workbench-table td:nth-child(3) {
  width: clamp(38px, 7cqw, 48px);
}

.lc-workbench-table th:nth-child(4),
.lc-workbench-table td:nth-child(4) {
  width: clamp(68px, 13cqw, 86px);
}

@container live-config-sheet (max-width: 700px) {
  .lc-total-bar {
    gap: clamp(4px, 1.2cqw, 7px);
    grid-template-columns: minmax(62px, 19%) minmax(0, 1fr) minmax(86px, 24%);
    margin-left: 10px;
    margin-right: 10px;
    padding-left: clamp(9px, 2.2cqw, 13px);
    padding-right: clamp(12px, 2.8cqw, 18px);
  }

  .lc-total-bar strong {
    font-size: clamp(20px, 4.6cqw, 23px);
  }

  .lc-total-bar span {
    font-size: clamp(15px, 3.4cqw, 18px);
  }

  .lc-total-bar b {
    font-size: clamp(19px, 4.2cqw, 22px);
  }

  .lc-final-price-section {
    margin-left: 10px;
    margin-right: 10px;
  }

  .lc-final-price {
    gap: clamp(4px, 1.2cqw, 7px);
    grid-template-columns: minmax(62px, 19%) minmax(0, 1fr) minmax(86px, 24%);
    padding-left: clamp(9px, 2.2cqw, 13px);
    padding-right: clamp(12px, 2.8cqw, 18px);
  }

  .lc-final-price > span {
    font-size: clamp(20px, 4.4cqw, 23px);
  }

  .lc-final-price strong {
    font-size: clamp(34px, 7.4cqw, 39px);
    min-width: 0;
  }

  .lc-final-price input {
    max-width: 100%;
    width: 100%;
  }

  .lc-service-strip {
    gap: 5px;
    min-height: 0;
  }

  .lc-service-strip .lc-service-strip-address {
    font-size: clamp(14px, 3.2cqw, 17px);
    min-height: 46px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .lc-service-strip .lc-service-strip-secret {
    font-size: clamp(14px, 3cqw, 16px);
    min-height: 42px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .lc-workbench-table th,
  .lc-workbench-table td {
    padding-left: 3px;
    padding-right: 3px;
  }

  .lc-workbench-table th:nth-child(1),
  .lc-workbench-table td:nth-child(1) {
    width: 24%;
  }

  .lc-workbench-table th:nth-child(3),
  .lc-workbench-table td:nth-child(3) {
    width: 38px;
  }

  .lc-workbench-table th:nth-child(4),
  .lc-workbench-table td:nth-child(4) {
    width: 68px;
  }

  .lc-workbench-table .lc-part-thumb {
    height: 18px;
    width: 18px;
  }

  .lc-workbench-table .lc-customer-part {
    gap: 2px;
  }

  .lc-workbench-table thead th:nth-child(1) .lc-sheet-column-input,
  .lc-workbench-table .lc-sheet-category-input {
    font-size: 15px;
    padding-left: 1px;
    padding-right: 1px;
  }

  .lc-workbench-table thead th:nth-child(2) .lc-sheet-column-input,
  .lc-workbench-table .lc-sheet-model-input {
    font-size: 16px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .lc-workbench-table .lc-sheet-quantity-input {
    font-size: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .lc-workbench-table .lc-sheet-price-input {
    font-size: 18px;
    padding-left: 1px;
    padding-right: 1px;
  }
}

/* 砍一刀礼物动效：滤除黑底后叠加在配置单上，不越过下方服务分隔栏。 */
.lc-profit-gift-effect {
  background: transparent;
  border-radius: 12px;
  contain: layout paint;
  display: block;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 160;
}

.lc-profit-gift-effect[hidden] {
  display: none !important;
}

.lc-profit-gift-effect::before {
  content: none;
}

.lc-profit-gift-video {
  height: 100%;
  inset: 0;
  mix-blend-mode: screen;
  object-fit: cover;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.lc-profit-gift-video[hidden] {
  display: none !important;
}
