:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #252525;
  background: #fff;
  --ink: #252525;
  --muted: #69696c;
  --line: #e7e7e9;
  --teal: #b51d28;
  --navy: #f6f6f7;
  --brand: #b51d28;
  --jade: #286657;
}
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
.shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { background: #f6f6f7; color: var(--ink); padding: 24px 14px 18px; border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); padding: 0 0 24px; }
.brand-logo { display: block; width: 184px; height: 90px; object-fit: cover; object-position: center 43%; }
.brand > span { font-size: 11px; font-weight: 500; color: var(--muted); }
.navigation { gap: 6px; margin-top: 24px; }
.navigation button { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #58585d; font-size: 13px; font-weight: 500; border-radius: 7px; padding: 10px 14px; }
.navigation button.active { background: #f1e6e7; color: #a91823; box-shadow: none; font-weight: 650; }
.navigation button:hover { background: #eaeaec; color: var(--ink); }
.navigation button.active:hover { color: #a91823; background: #eedfe1; }
.navigation button svg, .sidebar-foot > svg { flex: 0 0 18px; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 20px 10px 0; color: var(--muted); }
.sidebar-foot strong { color: var(--ink); font-weight: 550; overflow-wrap: anywhere; }
.sidebar-foot span { color: var(--muted); }
.topbar { min-height: 72px; padding: 16px 36px; gap: 16px; background: #ffffffed; border-color: var(--line); }
.topbar-context { display: flex; align-items: center; gap: 14px; min-width: 0; }
.desktop-context, .breadcrumb-divider { font-size: 12px; color: var(--muted); }
.breadcrumb-divider { color: #b8b8bd; }
.topbar h1 { font-size: 13px; font-weight: 550; margin: 0; line-height: 1.5; }
.mobile-brand { display: none; }
.top-actions { flex-shrink: 0; }
.top-actions .secondary { border-color: transparent; background: transparent; color: var(--muted); }
.content { max-width: 1440px; padding: 32px 36px 64px; min-height: calc(100vh - 72px); }
.section-head { gap: 16px; margin-bottom: 24px; align-items: center; }
.section-head h2 { font-size: 26px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.section-head h3 { font-size: 18px; }
.button { gap: 7px; min-height: 38px; padding: 9px 14px; border-radius: 6px; font-size: 12px; font-weight: 550; max-width: 100%; white-space: normal; line-height: 1.45; transition: background .15s, border-color .15s, box-shadow .15s; }
.button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.primary:hover { background: #9a1822; border-color: #9a1822; }
.button.secondary { color: #404045; border-color: #dcdce0; background: #fff; }
.button.secondary:hover { background: #f5f5f7; border-color: #bcbcc3; }
.button:active:not(:disabled) { box-shadow: inset 0 1px 3px #00000015; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #347bcb; outline-offset: 3px; }
.catalog-overview { display: flex; align-items: center; gap: 44px; padding: 0 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.catalog-overview > div { min-width: 76px; }
.catalog-overview > div > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.catalog-overview strong { font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.catalog-overview strong small { font-size: 11px; font-weight: 400; color: var(--muted); padding-left: 7px; }
.catalog-overview > .button { margin-left: auto; }
.catalog-toolbar { padding: 18px 0 24px; gap: 20px; }
.price-label { color: var(--muted); font-size: 12px; }
th { background: #f7f7f8; color: #6b6b70; font-size: 12px; font-weight: 500; padding-block: 12px; border-color: var(--line); }
td { color: #39393d; font-size: 13px; padding: 17px 12px; border-color: var(--line); }
td strong { font-weight: 550; line-height: 1.6; }
td small { color: #737378; font-size: 11px; margin-top: 5px; }
tbody tr:hover { background: #fafafa; }
.product-table td:nth-child(4) { font-variant-numeric: tabular-nums; color: var(--jade); font-weight: 550; }
.product-table td:last-child { text-align: right; }
.pagination { padding: 24px 0; }
.field { gap: 8px; margin-bottom: 18px; }
.field span, .fixed-field span { font-size: 13px; font-weight: 500; color: #45454a; line-height: 1.6; }
.field input, .field select, .field textarea, .price-input, .channel-setting select, #company-fitting-form select { min-height: 42px; padding: 10px 12px; background: #fdfdfd; border: 1px solid #d8d8dc; border-radius: 6px; color: var(--ink); font-size: 14px; }
.account-type-select { min-height: 36px; min-width: 112px; padding: 6px 10px; border: 1px solid #d8d8dc; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #adadb5; }
.field input[readonly] { background: #f5f5f7; }
.field input:disabled, .field select:disabled { color: #74747b; background: #f2f2f4; }
.form-grid { gap: 12px 24px; }
.panel { background: transparent; margin: 30px 0; border-top: 1px solid var(--line); }
.panel-head { padding: 20px 0 14px; border: 0; }
.panel-head h3 { font-size: 17px; font-weight: 600; line-height: 1.55; }
.panel-body { padding: 8px 0 12px; font-size: 13px; line-height: 1.8; }
.summary-line { font-size: 13px; padding: 13px 0; border-color: var(--line); }
.summary-line span { flex-basis: 150px; }
.summary-line strong { font-weight: 550; }
.eye-form { border-color: var(--line); border-radius: 6px; padding: 18px 18px 0; }
.eye-form legend { font-size: 13px; font-weight: 600; }
.notice { background: #faf7ef; border-color: #b79a54; color: #6b592e; border-radius: 0; padding: 12px 16px; font-size: 13px; line-height: 1.8; }
.subtle { color: var(--muted); font-size: 13px; }
.error { color: #b11b27; }
.badge { border-radius: 4px; font-weight: 550; line-height: 1.5; white-space: normal; }
.badge.green { background: #edf5f1; color: #286657; }
.badge.amber { background: #f8f1de; color: #785921; }
.badge.red { background: #fbecef; color: #a51e2c; }
.link { color: var(--brand); }
.metrics { gap: 0; border-block: 1px solid var(--line); margin: 0 0 26px; }
.metrics > div { padding: 24px 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.metrics > div:last-child { border: 0; }
.metrics strong { font-size: 30px; font-weight: 600; }
.metrics span { font-size: 12px; }
.catalog-toolbar.has-status { grid-template-columns: repeat(4,minmax(0,1fr)); }
.metrics.dashboard-metrics.finance-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dashboard-metrics > button { display: block; min-width: 0; padding: 24px 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; box-shadow: inset 0 -3px transparent; transition: background .15s, box-shadow .15s; }
.dashboard-metrics > button:last-child { border-right: 0; }
.dashboard-metrics .metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-metrics .metric-heading svg { flex: 0 0 16px; width: 16px; height: 16px; color: #909097; }
.dashboard-metrics > button:hover { background: #faf5f5; box-shadow: inset 0 -3px var(--brand); }
.dashboard-metrics > button:hover svg { color: var(--brand); }
.dashboard-metrics > button:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; background: #faf5f5; }
.aftersales-toolbar .field { width: min(100%,240px); margin: 0; }
.metrics.trial-filter-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trial-filter-metrics > button { display: block; min-width: 0; min-height: 120px; padding: 24px 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; box-shadow: inset 0 -3px transparent; transition: background .15s, box-shadow .15s; }
.trial-filter-metrics > button:last-child { border-right: 0; }
.trial-filter-metrics > button:hover { background: #f7f7f8; }
.trial-filter-metrics > button[aria-pressed="true"] { background: #fbf1f2; color: #a91823; box-shadow: inset 0 -3px var(--brand); }
.trial-filter-metrics > button[aria-pressed="true"] span { color: #a91823; }
.trial-summary { gap: 24px; padding: 0 0 22px; }
.trial-summary img { width: min(38%, 300px); height: auto; aspect-ratio: 1751 / 1280; object-fit: contain; }
.trial-summary > div { min-width: 0; }
.trial-summary strong { font-size: 15px; font-weight: 550; line-height: 1.8; }
.trial-summary p { font-size: 13px; }
.assessment-roadmap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.assessment-roadmap nav { display: flex; gap: 20px; flex-wrap: wrap; }
.assessment-roadmap button { border: 0; background: transparent; padding: 6px 0; color: #57575d; font-size: 12px; }
.assessment-roadmap button:hover { color: var(--brand); text-decoration: underline; }
#assessment-progress { min-width: 120px; font-size: 11px; color: var(--muted); }
#assessment-progress span { display: flex; justify-content: space-between; gap: 12px; }
#assessment-progress strong { color: var(--jade); font-weight: 550; }
progress { display: block; appearance: none; border: 0; width: 100%; height: 3px; margin-top: 8px; background: #e8e8eb; }
progress::-webkit-progress-bar { background: #e8e8eb; }
progress::-webkit-progress-value { background: var(--jade); }
progress::-moz-progress-bar { background: var(--jade); }
.experience-modes { margin-top: 28px; }
.mode-options { display: inline-flex; border: 0; padding: 3px; background: #efeff1; border-radius: 7px; max-width: 100%; }
.mode-options label { min-height: 38px; padding: 8px 16px; border: 0; border-radius: 5px; font-size: 13px; color: #55555b; }
.mode-options label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #00000012; }
.mode-options input { width: 14px; height: 14px; }
.experience-question { gap: 12px; padding: 18px 0 20px 8px; border-color: transparent transparent var(--line); }
.question-number { background: #f1f1f3; color: #74747c; font-size: 11px; }
.experience-question .field > span { min-height: 43px; font-size: 13px; padding-right: 8px; }
.experience-question.is-missing .field > span { padding-right: 45px; }
.posture-observations { padding: 26px 0 0; }
.posture-observations h4 { margin: 0; font-size: 15px; font-weight: 600; }
.posture-observations > p { margin: 8px 0 18px; }
.check-row { font-size: 13px; color: #45454a; }
.check-row input { width: 16px; height: 16px; }
.check-options .check-row { min-height: 42px; }
.candidate { border-color: var(--line); border-radius: 8px; padding: 22px; }
.candidate-head span { color: var(--brand); }
.candidate-head strong { font-size: 19px; font-weight: 600; }
.candidate p { font-size: 13px; }
.wearing-plan { padding: 28px 0; }
.channel-review-heading { display: flex; gap: 14px; align-items: flex-start; }
.channel-review-heading > svg { width: 24px; height: 24px; color: var(--jade); flex: 0 0 24px; margin-top: 2px; }
.channel-review-heading strong { font-size: 15px; font-weight: 600; }
.channel-review-heading p { margin: 6px 0 12px; }
.channel-observations .summary-line span { flex: 1 1 55%; }
.channel-observations .summary-line strong { flex: 0 1 45%; }
.review-actions { padding-left: 20px; color: #45454a; }
.form-actions { flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.login-wrap { max-width: 440px; margin: 7vh auto; padding: 32px; border: 0; border-radius: 0; }
.login-brand { margin-bottom: 28px; }
.login-wrap h1 { font-size: 25px; font-weight: 600; margin: 0 0 30px; }
.login-wrap #login-form > .button { width: 100%; min-height: 44px; margin: 12px 0 0; }
.login-wrap .form-actions { justify-content: flex-start; gap: 8px; margin-top: 18px; }
.login-wrap button { margin-right: 0; }
.toast { color: #fff; background: #303033; border-radius: 7px; box-shadow: 0 6px 24px #00000020; }
@supports (backdrop-filter: blur(16px)) {
  .topbar { backdrop-filter: blur(16px); }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: 202px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand-logo { width: 170px; height: 84px; }
  .content { padding: 28px 24px 56px; }
  .topbar { padding-inline: 24px; }
  .catalog-overview { gap: 28px; }
  .assessment-roadmap { align-items: flex-start; }
  .assessment-roadmap nav { gap: 10px 16px; }
}
@media (max-width: 820px) {
  .catalog-overview { flex-wrap: wrap; gap: 20px; }
  .catalog-overview > .button { margin-left: 0; }
  .metrics > div:nth-child(2), .dashboard-metrics > button:nth-child(2) { border-right: 0; }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; min-height: 76px; gap: 8px; }
  .desktop-context, .breadcrumb-divider { display: none; }
  .topbar h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mobile-brand { display: block; }
  .mobile-brand .brand-logo { width: 114px; height: 56px; }
  .top-actions { gap: 6px; max-width: 60%; }
  .top-actions .button { min-height: 36px; padding: 8px; font-size: 12px; }
  .mobile-navigation { padding: 5px 12px; gap: 8px; background: #fffffff5; backdrop-filter: blur(16px); }
  .mobile-navigation button { display: flex; align-items: center; gap: 7px; padding: 12px 9px; background: transparent; font-size: 12px; font-weight: 500; min-height: 44px; }
  .mobile-navigation button svg { width: 16px; height: 16px; flex: 0 0 16px; }
  .mobile-navigation button.active { color: var(--brand); border-color: var(--brand); }
  .content { padding: 26px 18px 44px; }
  .section-head { align-items: flex-start; gap: 8px; }
  .section-head h2 { font-size: 23px; }
  .catalog-overview { gap: 18px 28px; padding-bottom: 22px; }
  .catalog-overview > div { min-width: 60px; }
  .catalog-overview strong { font-size: 25px; }
  .catalog-overview > .button { margin: 0; }
  .catalog-toolbar, .catalog-toolbar.has-status { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .catalog-toolbar .field:last-child { grid-column: 1 / -1; }
  .catalog-toolbar .field { margin: 0; }
  .panel-head, .panel-body { padding-inline: 0; }
  .panel-head h3 { font-size: 16px; }
  .form-grid, .form-grid.two, .form-grid.three, .form-grid.five { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .summary-line span { flex-basis: 108px; }
  .trial-summary { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
  .trial-summary img { width: 100%; max-width: 320px; height: auto; }
  .trial-summary strong { font-size: 13px; }
  .trial-summary p { font-size: 12px; }
  .assessment-roadmap { flex-direction: column; gap: 10px; }
  #assessment-progress { width: 100%; }
  .assessment-roadmap nav { justify-content: space-between; gap: 8px 16px; }
  .experience-question { padding-left: 0; gap: 8px; }
  .experience-question .field > span { min-height: 0; }
  .experience-question select { font-size: 14px; }
  .posture-observations select { font-size: 14px; }
  .mode-options label { padding-inline: 10px; font-size: 12px; }
  .product-table td:nth-child(4) { color: var(--jade); }
  .metrics > div, .dashboard-metrics > button { padding: 20px 14px; }
  .metrics strong { font-size: 27px; }
  .trial-filter-metrics > button { min-height: 116px; padding: 18px 12px; }
  .trial-filter-metrics span { min-height: 36px; }
  .login-wrap { margin: 32px auto; padding: 20px; }
  .form-actions > .button { flex: 1 1 auto; }
  .field, [name="sceneIds"] { scroll-margin-top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .mobile-navigation { background: #fff; backdrop-filter: none; }
}
.site-filing { padding: 18px 16px 24px; text-align: center; background: #f6f7f6; font-size: 12px; }
.site-filing a { color: #676e6b; text-decoration: none; }
.site-filing a:hover { text-decoration: underline; }
.image-upload { border: 0; padding: 0; margin: 12px 0 20px; min-width: 0; }
.image-upload legend { margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.upload-select { position: relative; display: inline-flex; cursor: pointer; overflow: hidden; }
.upload-select input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-select:focus-within { outline: 3px solid #347bcb; outline-offset: 3px; }
.upload-limit { font-size: 12px; color: var(--muted); margin: 10px 0; }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 180px)); gap: 16px; margin-top: 16px; }
.image-item { position: relative; min-width: 0; margin: 0; }
.image-open { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 15 / 11; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #f7f7f8; }
.image-open img { width: 100%; height: 100%; object-fit: contain; }
.image-item figcaption { font-size: 12px; color: var(--muted); margin: 8px 0; overflow-wrap: anywhere; }
.image-remove { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; padding: 6px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); }
.image-remove svg { width: 18px; height: 18px; }
.image-download { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; }
.image-download svg { width: 15px; height: 15px; }
.order-filter-form { padding: 0 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.order-filter-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.order-list-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.order-list-tools > span { font-size: 14px; color: var(--muted); }
.order-list-tools .check-row { margin: 0; font-size: 14px; }
.order-row-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: pointer; color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
.icon-button:hover { background: #f3f4f6; }
.icon-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.order-list-table th, .order-list-table td { vertical-align: middle; }
.order-list-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.order-image-preview { padding: 0; width: min(850px,calc(100% - 24px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 70px #0003; }
.order-image-preview::backdrop { background: #15171b70; }
.order-image-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; position: sticky; top: 0; background: white; border-bottom: 1px solid var(--line); z-index: 1; }
.order-image-preview-head h2 { margin: 0; font-size: 18px; }
.order-image-preview-body { background: #f2f3f5; padding: 18px; }
.order-image-preview-body img { width: 100%; height: auto; display: block; }
@media(max-width:900px) { .order-filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .order-filter-fields { gap: 12px; } .order-filter-fields .field:last-child { grid-column: 1 / -1; } .order-list-tools .action-list { width: 100%; flex-wrap: wrap; } .order-image-preview-head { padding: 12px; gap: 8px; } .order-image-preview-body { padding: 6px; } }
@media (max-width: 400px) { .image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sms-row { display: flex; align-items: flex-end; gap: 12px; margin: 16px 0; }
.sms-row .field { flex: 1; min-width: 0; }
.sms-row .button { flex: 0 0 auto; min-height: 44px; margin-bottom: 0; }
.login-wrap .check-row { margin: 18px 0; line-height: 1.5; font-size: 13px; }
.field input:disabled, .field select:disabled { color: #85898b; background: #f2f3f4; }

.factory-shipment-list summary,.factory-shipment-list p { overflow-wrap: anywhere; }
