:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --line: #d8dedc;
  --text: #151a1f;
  --muted: #687178;
  --accent: #0f8b8d;
  --accent-dark: #09686a;
  --warn: #c77d00;
  --danger: #b42318;
  --shadow: 0 12px 32px rgba(21, 26, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.modalOpen {
  overflow: hidden;
}

body.authPage {
  min-height: 100vh;
  background: #f5f6f8;
}

body.authPage .shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.authPage .topbar,
body.authPage .statusBand,
body.authPage .view,
body.authPage .mobileBottomNav,
body.authPage .sideNav,
body.authPage .sideNavOverlay {
  display: none !important;
}

body.authPage #unlockPanel.hidden {
  display: none !important;
}

body.authPage #unlockPanel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 32px 22px;
  border: 0;
  border-radius: 0;
  background: #f5f6f8;
  box-shadow: none;
}

body.authPage #unlockPanel > * {
  width: min(100%, 380px);
  margin-left: auto;
  margin-right: auto;
}

body.authPage .mobileLoginBrand {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

body.authPage .mobileLoginBrand strong {
  color: #0b1220;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 900;
}

body.authPage .mobileLoginBrand span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

body.authPage #unlockPanel label {
  margin-bottom: 0;
  color: #374151;
  font-size: 12px;
}

body.authPage #unlockPanel input {
  min-height: 46px;
  border-color: #dfe4ea;
  border-radius: 8px;
  font-size: 14px;
}

body.authPage #unlockPanel .row {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}

body.authPage #unlockPanel button {
  min-height: 46px;
  border-color: #0f8b8d;
  background: #0f8b8d;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

body.authPage #unlockPanel .hint {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0 16px;
}

.titleBlock {
  flex: 1 1 auto;
  min-width: 0;
}

.menuToggleButton {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-color: #d4dfdc;
  background: rgba(255, 255, 255, 0.94);
}

.menuToggleButton span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-dark);
}

.sideNavOverlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.sideNavOverlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sideNav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: min(70vw, 248px);
  padding: calc(16px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid var(--line);
  box-shadow: 14px 0 34px rgba(15, 23, 42, 0.14);
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 0.2s ease;
}

.sideNav.open {
  transform: translateX(0);
}

.mobileLoginLoading {
  display: none;
}

.sideNavHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

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

.sideNavClose {
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.sideNav .tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.sideNav .tab {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.statusBand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 12px 0;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--warn);
  flex: 0 0 auto;
}

.dot.ok {
  background: var(--accent);
}

.dot.off {
  background: var(--danger);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.tab,
.iconButton,
button,
.buttonLike {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.buttonLike {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.reportMenuPanel {
  display: grid;
  gap: 14px;
}

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

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

.reportMenuCard {
  min-height: 112px;
  padding: 14px;
  text-align: left;
  background: #fbfcfd;
  border-color: var(--line);
}

.reportMenuCard:active {
  border-color: var(--accent);
  background: var(--surface-2);
}

.reportMenuCard strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.reportMenuCard span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

textarea {
  width: 100%;
  min-height: 110px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.16);
}

.row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qtyLine {
  align-items: end;
}

.actionRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actionRow.queryAbortActive {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.queryCancelButton {
  min-width: 92px;
  border-color: #f0b4ae;
  background: #fff5f4;
  color: var(--danger);
  font-weight: 800;
}

.queryCancelButton.hidden {
  display: none !important;
}

#exportActivityTrackingBtn + .queryCancelButton {
  margin-top: 8px;
}

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

.fieldLabel {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.summaryBasisOption {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.summaryBasisOption input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  accent-color: var(--accent);
}

.summaryBasisOption:has(input:checked) {
  border-color: rgba(18, 148, 143, 0.45);
  background: var(--surface-2);
  color: var(--accent-strong);
}

.pushCheck {
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.pushActionGrid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.scopeCard {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.checkRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.checkRow input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

.inlineFieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.inlineFieldset legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pickerRow {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 8px;
}

.goodsPickerRow {
  grid-template-columns: 1fr 66px 66px;
}

.barcodeLookupBlock {
  margin-top: 8px;
}

.barcodeLookupRow {
  grid-template-columns: minmax(0, 1fr) 66px;
}

.barcodeLookupRow:has(button + button) {
  grid-template-columns: minmax(0, 1fr) 62px 62px;
}

.barcodeHint {
  min-height: 18px;
  color: var(--muted);
  font-weight: 600;
}

.barcodeHint.errorText {
  color: var(--danger);
}

.pickerButton {
  min-height: 48px;
  background: var(--surface-2);
  font-size: 14px;
}

input:disabled {
  background: #eef1f3;
  color: var(--muted);
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.primary:active,
.tab.active:active {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.secondary {
  background: var(--surface-2);
}

.danger {
  color: var(--danger);
}

.notice,
.hint {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hint {
  margin-top: 8px;
}

.fieldHint {
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.logList {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.resultPanel {
  display: none;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.resultPanel.active {
  display: block;
}

.resultHeader {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
}

.resultSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.openResultButton {
  min-width: 86px;
}

.tableScroller {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

th {
  background: #fbfcfd;
  color: var(--muted);
  font-weight: 700;
}

td {
  color: var(--text);
}

.thumbLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.thumbLink.missing {
  display: none;
}

.thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(21, 26, 31, 0.42);
}

.modal.hidden {
  display: none;
}

.dailyPickerRow {
  grid-template-columns: minmax(0, 1fr) 76px auto;
}

.compactButton {
  min-height: 34px;
  padding: 6px 10px;
  background: var(--surface-2);
  font-size: 12px;
}

.modal.modalOnTop {
  z-index: 140;
}

.modalPanel {
  width: min(100%, 680px);
  max-height: min(86vh, 720px);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.barcodeScannerPanel {
  width: min(100%, 520px);
  grid-template-rows: auto auto auto auto auto;
}

.barcodeScannerVideo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
  object-fit: cover;
}

.barcodeScannerStatus {
  margin-top: 0;
  color: var(--muted);
  font-weight: 600;
}

#selectorModal .modalPanel {
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr) auto;
}

.userReportPermPanel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.resultModal {
  align-items: center;
}

.confirmPanel {
  width: min(100%, 420px);
  max-height: none;
  grid-template-rows: auto auto auto;
}

.confirmText {
  margin: 0;
  padding: 10px 2px;
  color: var(--text);
  line-height: 1.6;
}

.imagePreviewModal {
  align-items: center;
  padding: 10px;
}

.imagePreviewPanel {
  width: min(100%, 960px);
  height: min(92vh, 900px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.imagePreviewStage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

.imagePreviewHint {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

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

.imagePreviewMeta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.imagePreviewMeta b {
  color: var(--muted);
  font-size: 12px;
}

.imagePreviewStage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.resultModalPanel {
  width: min(100%, 1120px);
  height: min(92vh, 780px);
  max-height: 92vh;
  grid-template-rows: auto auto 1fr auto;
}

.modalHeader.resultModalHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.resultViewSwitchSlot {
  min-width: 0;
}

.resultViewSwitchSlot:empty {
  display: block;
}

.resultViewSwitchSlot .resultViewSwitch {
  margin: 0;
  padding: 0;
}

#fieldModal .modalPanel {
  max-height: calc(100vh - 32px);
  grid-template-rows: auto auto auto auto;
  overflow: auto;
}

.resultMeta {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.resultTableWrap {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.resultTableWrap.cardResultWrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.resultScroller {
  height: 100%;
  max-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.resultZoomToolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 30px;
}

.resultZoomToolbar .compactButton {
  min-width: 34px;
  min-height: 30px;
  padding: 4px 7px;
  font-size: 12px;
}

.resultZoomToolbar [data-result-zoom="reset"] {
  min-width: 42px;
  padding-inline: 6px;
}

#resultZoomLabel {
  min-width: 38px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.resultHighlightHint {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resultHighlightHint.active {
  color: var(--accent-strong);
}

.panZoomScroller {
  overflow: auto;
  touch-action: none;
  cursor: grab;
  overscroll-behavior: contain;
  user-select: none;
}

.panZoomScroller:active {
  cursor: grabbing;
}

.panZoomScroller select,
.panZoomScroller button,
.panZoomScroller a,
.panZoomScroller input {
  touch-action: manipulation;
}

.resultPanZoomSurface {
  width: max-content;
  min-width: 100%;
  transform-origin: 0 0;
}

.layeredResultWrap {
  min-height: 0;
}

.layeredResultTable {
  --layered-key-width: 96px;
  --layered-row-height: 42px;
  --layered-header-height: 42px;
  --layered-filter-height: 44px;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--layered-key-width) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.layeredCorner {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: var(--layered-header-height) var(--layered-filter-height);
  border-right: 1px solid var(--line);
  background: #f0f7f7;
}

.layeredHeaderScroller {
  grid-column: 2;
  grid-row: 1 / span 2;
  overflow: hidden;
  background: #f0f7f7;
}

.layeredKeyScroller {
  grid-column: 1;
  grid-row: 3;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid var(--line);
}

.layeredBodyScroller {
  grid-column: 2;
  grid-row: 3;
  overflow: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.layeredHeaderRow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  width: max-content;
  min-width: 100%;
}

.layeredFilterRow {
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.layeredKeyBody {
  display: grid;
  width: max-content;
  min-width: 100%;
}

.layeredBody {
  display: grid;
  width: max-content;
  min-width: 100%;
}

.layeredRow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: stretch;
  min-height: var(--layered-row-height);
}

.layeredRow.summaryRow .layeredCell {
  background: #eef7f6;
}

.layeredCell {
  display: flex;
  align-items: center;
  min-height: var(--layered-row-height);
  padding: 6px 8px;
  border-bottom: 1px solid #eef2f7;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
}

.layeredCell > * {
  max-width: 100%;
}

.layeredHeaderScroller .layeredCell,
.layeredCorner .layeredCell {
  min-height: var(--layered-header-height);
  border-bottom: 1px solid var(--line);
  background: #f0f7f7;
}

.layeredCorner .layeredCell {
  border-right: 1px solid var(--line);
}

.layeredCorner .layeredCell:last-child {
  border-bottom: 0;
}

.layeredFilterCell {
  padding: 4px 6px;
}

.layeredResultTable .colChannel { width: 76px; }
.layeredResultTable .colPerson { width: 92px; }
.layeredResultTable .colText { width: 132px; }
.layeredResultTable .colCompact { width: 86px; }
.layeredResultTable .colSmallNumber { width: 68px; }
.layeredResultTable .colNumber { width: 88px; }
.layeredResultTable .colPercent { width: 72px; }
.layeredResultTable .colDateMetric { width: 96px; }
.layeredResultTable .colImage { width: 74px; }

.layeredCell.tableHighlightRow,
.layeredCell.tableHighlightCol {
  background: #eef9f8;
}

.layeredCell.tableHighlightCell {
  background: #d9f5f1;
}

.layeredEmpty {
  grid-column: 1 / -1;
  padding: 18px 12px;
}

.resultTable {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.resultTable col.colChannel {
  width: 76px;
}

.resultTable col.colPerson {
  width: 92px;
}

.resultTable col.colText {
  width: 132px;
}

.resultTable col.colImage {
  width: 82px;
}

.resultTable col.colNumber {
  width: 86px;
}

.resultTable col.colSmallNumber {
  width: 68px;
}

.resultTable col.colPercent,
.resultTable col.colDateMetric,
.resultTable col.colCompact {
  width: 78px;
}

.resultTable col.colActivityChannel {
  width: 150px;
}

.resultTable col.colActivityPerson {
  width: 108px;
}

.resultTable col.colActivityRate {
  width: 128px;
}

.resultTable col.colActivityNumber {
  width: 92px;
}

.resultTable col.colActivityDay {
  width: 78px;
}

.resultTable th,
.resultTable td {
  overflow: hidden;
  text-overflow: clip;
  box-sizing: border-box;
}

.resultTable .colChannel,
.resultTable .colPerson,
.resultTable .colText,
.resultTable .colActivityChannel,
.resultTable .colActivityPerson {
  white-space: normal;
  line-height: 1.35;
}

.resultTable td.colNumber,
.resultTable td.colSmallNumber,
.resultTable td.colPercent,
.resultTable td.colDateMetric,
.resultTable td.colActivityRate,
.resultTable td.colActivityNumber,
.resultTable td.colActivityDay {
  text-align: center;
  white-space: nowrap;
}

.resultTable th,
.resultTable td {
  text-align: center;
}

.resultTable .sortButton {
  justify-content: center;
  text-align: center;
}

.progressCell {
  display: block;
  min-width: 96px;
}

.progressTrack {
  position: relative;
  display: block;
  height: 20px;
  overflow: hidden;
  border: 1px solid #86a9d7;
  border-radius: 3px;
  background: #fff;
}

.progressBar {
  display: block;
  height: 100%;
  background: #5c91cf;
}

.progressCell b {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #17304c;
  font-size: 12px;
  font-weight: 800;
}

.resultTable thead th {
  position: sticky;
  z-index: 2;
  background: #f0f7f7;
}

.resultTable thead tr:first-child th {
  z-index: 3;
  top: 0;
  height: 42px;
  padding: 6px 8px;
  color: var(--text);
}

.resultTable .filterRow th {
  z-index: 4;
  top: 42px;
  height: 44px;
  padding: 6px 8px;
  background: #fbfcfd;
  overflow: visible;
  cursor: pointer;
}

.sortButton {
  min-height: 30px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.columnFilterWrap {
  position: relative;
  min-width: 0;
}

.columnFilterButton {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.columnFilterButton.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.columnFilterMenu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 30;
  width: max(178px, 100%);
  max-width: 260px;
  max-height: 260px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 35, 44, 0.18);
  color: var(--text);
  text-align: left;
}

.columnFilterMenu.hidden {
  display: none;
}

.columnFilterMenuHead,
.columnFilterMenuActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
}

.columnFilterMenuActions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.columnFilterMenuHead strong {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.columnFilterTextButton {
  min-height: 26px;
  padding: 3px 7px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.columnFilterOptionList {
  min-height: 0;
  overflow: auto;
  padding: 4px;
}

.columnFilterOption {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 6px;
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

.columnFilterOption:active {
  background: var(--surface-2);
}

.columnFilterOption input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.columnFilterOption span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.columnFilterEmpty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.columnFilterSheet {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.columnFilterSheetBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
}

.columnFilterSheetPanel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(72vh, 560px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.columnFilterSheetHead,
.columnFilterSheetActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.columnFilterSheetActions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.columnFilterSheetHead div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.columnFilterSheetHead strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.columnFilterSheetHead span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summaryRow td {
  background: #eef7f6;
  font-weight: 700;
}

.resultViewSwitch {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 2px;
}

.resultViewSwitch button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}

.resultViewSwitch button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.cardFilterBar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.cardFilter {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cardFilter select {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

.retailCardsScroller {
  height: auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.retailCardList {
  display: grid;
  gap: 10px;
}

.retailCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}

.retailCardHeader {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #f0f7f7;
  color: var(--text);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.retailCardHeader:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.retailCardTitle {
  min-width: 0;
  overflow-wrap: anywhere;
}

.retailCardSummaryMeta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.retailCardSummaryMeta small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.retailCardToggleText {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.retailCardToggleText::before {
  content: "展开";
}

.retailCard.expanded .retailCardToggleText::before {
  content: "收起";
}

.retailCardBody {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.retailCard.expanded .retailCardBody {
  max-height: var(--card-body-height, 1200px);
  opacity: 1;
}

.retailMetricGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  padding: 10px 12px;
}

.retailMetric {
  display: grid;
  gap: 3px;
  padding: 8px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.retailMetric span {
  color: var(--muted);
  font-size: 12px;
}

.retailMetric strong {
  color: var(--text);
  font-size: 15px;
  align-self: end;
}

.retailDetailList {
  border-top: 1px solid var(--line);
}

.retailDetailItem {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.retailDetailItem:last-child {
  border-bottom: 0;
}

.retailDetailTitle {
  font-weight: 800;
}

.retailDetailSub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.retailSectionTitle {
  padding: 12px 12px 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

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

.salespersonDetailList .retailMetricGrid {
  padding: 8px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.salespersonActivityLine {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.activityVariantTextarea {
  border-color: #b9dfdf;
  background: linear-gradient(180deg, #f7fdfc, #ffffff);
  color: #0f2f3c;
  font-family: "Consolas", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.activityVariantTextarea[readonly] {
  cursor: default;
}

#salespersonActivityGoodsVariantHint {
  margin-top: -4px;
  color: #0f7f7f;
  font-weight: 700;
}

.dailyCardHeading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dailyCardHeading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.dailyCard.summary {
  border-color: #d7c485;
  background: #fffdf5;
}

.dailyCard.summary .retailCardHeader {
  background: linear-gradient(180deg, #fff8dc, #f6efd0);
}

.operatorActivityScroller {
  padding: 8px 0 2px;
}

.operatorActivityDashboard {
  display: grid;
  gap: 12px;
  padding: 0 4px 8px;
}

.operatorOverviewCard {
  width: min(100%, 220px);
  margin: 0 auto 2px;
  padding: 18px 18px 16px;
  border: 1px solid #edf0e8;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 18% 4%, rgba(21, 168, 159, 0.13), transparent 34%);
  box-shadow: 0 14px 32px rgba(21, 42, 58, 0.08);
  text-align: center;
}

.operatorOverviewTitle {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.operatorOverviewTitle strong {
  color: #071827;
  font-size: 20px;
  line-height: 1.15;
}

.operatorOverviewTitle span {
  color: #64717d;
  font-size: 12px;
}

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

.operatorActivityMetric {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.operatorActivityMetric span {
  color: #687582;
  font-size: 12px;
}

.operatorActivityMetric strong {
  color: #061523;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.operatorProgressPanel {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #edf8f5;
}

.operatorProgressPanel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #46616b;
  font-size: 13px;
}

.operatorProgressPanel strong {
  color: #071827;
  font-size: 22px;
}

.operatorProgressPanel i,
.operatorLineProgress {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.operatorProgressPanel i::before,
.operatorLineProgress i {
  content: "";
  display: block;
  width: var(--operator-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25c7df, #14a692);
}

.operatorGapBadge {
  margin-top: 14px;
  padding: 10px 8px;
  border: 1px solid #ffd884;
  border-radius: 8px;
  background: #fff8e6;
  color: #9a5c00;
  font-size: 15px;
  font-weight: 800;
}

.operatorActivityList {
  display: grid;
  gap: 10px;
}

.operatorActivityItem {
  border: 1px solid #e5edf1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 40, 58, 0.04);
  overflow: visible;
}

.operatorActivitySummary {
  display: grid;
  gap: 12px;
  padding: 12px;
}

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

.operatorActivitySummaryTop > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.operatorActivitySummaryTop strong {
  color: #071827;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.operatorActivitySummaryTop small {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf8f5;
  color: #4c7074;
  font-size: 12px;
  font-weight: 800;
}

.operatorActivitySummaryTop em {
  flex: 0 0 auto;
  color: #071827;
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
}

.operatorStoreToggle {
  position: static;
  min-height: 40px;
  padding: 8px 12px;
  border-top: 1px solid #eef2f4;
  border-radius: 0 0 8px 8px;
  background: #fbfdfd;
}

.operatorStoreToggle > span:first-child {
  color: #275d63;
  font-size: 13px;
  font-weight: 900;
}

.operatorActivityHead {
  position: static;
  min-height: 52px;
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.operatorActivityHead > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.operatorActivityHead strong {
  color: #071827;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.operatorActivityHead small {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf8f5;
  color: #4c7074;
  font-size: 12px;
  font-weight: 800;
}

.operatorActivityHead em {
  color: #071827;
  font-style: normal;
  font-size: 16px;
  font-weight: 900;
}

.operatorActivityBody {
  display: grid;
  gap: 12px;
  padding: 12px;
}

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

.operatorActivityBody .operatorActivityMetric {
  padding: 0;
  text-align: left;
}

.operatorActivityBody .operatorActivityMetric strong {
  font-size: 16px;
}

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

.operatorStoreRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0 0;
  border-top: 1px solid #eef2f4;
}

.operatorStoreRow strong {
  display: block;
  color: #102333;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.operatorStoreRow p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px 0 0;
}

.operatorStoreRow p span {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f4f7f8;
  color: #67737e;
  font-size: 11px;
}

.operatorStoreRow b {
  color: #071827;
  font-size: 17px;
}

.dailyCard .retailMetricGrid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.subSectionTitle {
  margin: 18px 0 10px;
  color: var(--accent-strong);
  font-size: 17px;
}

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

.activityWindowButton {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.activityWindowContent {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activityWindowButton strong {
  color: var(--accent-strong);
  font-size: 17px;
}

.activityWindowButton span {
  color: var(--muted);
  font-size: 13px;
}

.activityWindowButton .activityWindowQuery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 800;
}

.retailCardEmpty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.resultTable.fixedKeyTable .stickyChannelCol {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 76px;
  max-width: 76px;
  background: #fff;
  white-space: normal;
  line-height: 1.3;
}

.resultTable.fixedKeyTable thead .stickyChannelCol {
  z-index: 5;
  background: #f0f7f7;
}

.resultTable.fixedKeyTable .filterRow .stickyChannelCol {
  z-index: 5;
  background: #fbfcfd;
}

.resultTable.fixedKeyTable .summaryRow .stickyChannelCol {
  background: #eef7f6;
}

.resultTable.fixedKeyTable .stickyFirstCol {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}

.resultTable.fixedKeyTable thead .stickyFirstCol {
  z-index: 6;
  background: #f0f7f7;
}

.resultTable.fixedKeyTable .filterRow .stickyFirstCol {
  z-index: 6;
  background: #fbfcfd;
}

.resultTable.fixedKeyTable .summaryRow .stickyFirstCol {
  background: #eef7f6;
}

.resultTable th.tableHighlightRow,
.resultTable td.tableHighlightRow {
  background: #fff7d6 !important;
}

.resultTable th.tableHighlightCol,
.resultTable td.tableHighlightCol {
  background: #e8f5f3 !important;
}

.resultTable th.tableHighlightCell,
.resultTable td.tableHighlightCell {
  background: #ffe9a8 !important;
  box-shadow: inset 0 0 0 2px rgba(15, 143, 136, 0.52);
}

.resultTable.fixedKeyTable .stickySalespersonCol {
  position: sticky;
  left: 76px;
  z-index: 4;
  min-width: 92px;
  max-width: 92px;
  background: #fff;
  white-space: normal;
  line-height: 1.3;
  box-shadow: -18px 0 0 #fff, -1px 0 0 var(--line), 1px 0 0 var(--line);
}

.goodsRankingBoardWrap {
  grid-template-rows: minmax(0, 1fr);
}

.goodsRankingBoardScroller {
  position: relative;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.goodsRankingBoardList {
  display: grid;
  gap: 12px;
}

.goodsRankingBoardToolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 245, 243, 0.96);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
}

.goodsRankingBoardToolbar span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.goodsRankingBackTop {
  position: sticky;
  z-index: 8;
  right: 10px;
  bottom: 10px;
  width: max-content;
  min-height: 36px;
  margin: 10px 10px 0 auto;
  padding: 7px 11px;
  border-color: rgba(15, 143, 136, 0.42);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(13, 35, 37, 0.12);
}

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

.goodsRankingGroupHeader {
  position: sticky;
  top: 45px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 245, 243, 0.97);
}

.goodsRankingGroupHeader h3 {
  min-width: 0;
  margin: 0;
  color: var(--accent-strong);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.goodsRankingStorePickerPanel {
  position: sticky;
  top: 44px;
  z-index: 7;
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #cddfdb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(13, 35, 37, 0.16);
}

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

.goodsRankingStorePickerHead strong {
  color: var(--accent-strong);
  font-size: 15px;
}

.goodsRankingStoreSearch {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
}

.goodsRankingStoreOptions {
  display: grid;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
}

.goodsRankingStoreOptions button {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fbfcfd;
  text-align: left;
}

.goodsRankingStoreOptions button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.goodsRankingStoreOptions button.hidden {
  display: none;
}

.goodsRankingStoreOptions span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.goodsRankingStoreOptions small {
  color: var(--muted);
  font-size: 12px;
}

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

.goodsRankingBoardItem {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 112px;
  align-items: start;
  gap: 8px;
  min-height: 154px;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.goodsRankingLeft {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.goodsRankingRank {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  justify-self: start;
  padding-left: 4px;
}

.goodsRankingMedia {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.goodsRankingImage {
  width: 82px;
  height: 92px;
}

.goodsRankingImage .thumbLink {
  width: 82px;
  height: 92px;
  min-height: 92px;
  background: #f7fbfa;
}

.goodsRankingImage .thumb {
  object-fit: contain;
  background: #f7fbfa;
}

.goodsRankingImage span {
  width: 82px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: 12px;
}

.goodsRankingInfo {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding-top: 1px;
}

.goodsRankingName {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.goodsRankingSub {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.goodsRankingGoodsNo {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.goodsRankingColorTag {
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.goodsRankingTags {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.goodsRankingTags span {
  min-height: 22px;
  padding: 3px 6px;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.goodsRankingTags .goodsRankingDateTag {
  display: block;
  width: fit-content;
  font-size: 11px;
}

.goodsRankingTimeTags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 0;
}

.goodsRankingTimeTags i {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 5px;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.goodsRankingTimeTags .goodsRankingDateSplit {
  display: grid;
  gap: 1px;
  align-items: start;
  line-height: 1.12;
  white-space: nowrap;
}

.goodsRankingDateSplit span {
  display: block;
}

.goodsRankingBreakdowns {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.goodsRankingBreakdown {
  display: grid;
  gap: 3px;
}

.goodsRankingBreakdown b {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

.goodsRankingBreakdown b small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.goodsRankingBreakdown div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.goodsRankingBreakdown span {
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.goodsRankingBreakdown.stock b {
  color: #7a6422;
}

.goodsRankingBreakdown.stock span {
  border-color: #e5d8a7;
  background: #fffaf0;
  color: #6f5b1e;
}

.goodsRankingMetrics {
  display: grid;
  align-self: start;
  gap: 14px;
  min-width: 0;
  padding-top: 2px;
}

.goodsRankingMetric {
  display: grid;
  gap: 5px;
}

.goodsRankingMetric b {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.goodsRankingMetric b strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

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

.goodsRankingMetric span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 19px;
  padding: 2px 4px;
  border: 1px solid #dce7e5;
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.goodsRankingMetric.stock b {
  color: #7a6422;
}

.goodsRankingMetric.stock span {
  border-color: #e5d8a7;
  background: #fffaf0;
  color: #6f5b1e;
}

.goodsRankingQty {
  display: grid;
  gap: 3px;
  justify-items: end;
  align-self: start;
  padding-top: 4px;
}

.goodsRankingQty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.goodsRankingQty strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.resultTable.fixedKeyTable thead .stickySalespersonCol {
  z-index: 6;
  background: #f0f7f7;
  box-shadow: -18px 0 0 #f0f7f7, -1px 0 0 var(--line), 1px 0 0 var(--line);
}

.resultTable.fixedKeyTable .filterRow .stickySalespersonCol {
  z-index: 6;
  background: #fbfcfd;
  box-shadow: -18px 0 0 #fbfcfd, -1px 0 0 var(--line), 1px 0 0 var(--line);
}

.resultTable.fixedKeyTable .summaryRow .stickySalespersonCol {
  background: #eef7f6;
  box-shadow: -18px 0 0 #eef7f6, -1px 0 0 var(--line), 1px 0 0 var(--line);
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modalHeader h2 {
  margin: 0;
  font-size: 18px;
}

.selectorSearch {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 8px;
}

.selectorLimitRow {
  display: grid;
  grid-template-columns: 1fr 132px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.selectorLimitRow select {
  min-height: 42px;
}

.selectorBulkRow {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6fbfa;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.selectorBulkRow input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.selectorBulkRow small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.selectedBar {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.selectorResults {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fieldResults {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-height: 0;
  max-height: none;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.selectorItem {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
}

.selectorItem:last-child {
  border-bottom: 0;
}

.selectorItem input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

.selectorItem strong,
.selectorItem small {
  display: block;
}

.selectorItem small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.fieldItem {
  display: grid;
  grid-template-columns: 24px 1fr 38px 38px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.fieldItem input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

.fieldChip {
  appearance: none;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.fieldChip.selected {
  background: rgba(18, 148, 143, 0.12);
  border-color: var(--accent);
  color: var(--text);
  cursor: grab;
  touch-action: none;
}

.fieldChip.dragging {
  opacity: 0.62;
  cursor: grabbing;
  box-shadow: 0 8px 20px rgba(20, 28, 34, 0.18);
}

.fieldChipPlaceholder {
  display: inline-block;
  flex: 0 0 auto;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  background: rgba(18, 148, 143, 0.08);
}

.miniButton {
  min-height: 34px;
  border-radius: 8px;
  padding: 0;
  font-size: 14px;
}

.miniButton:disabled {
  opacity: 0.35;
  cursor: default;
}

.fieldActions {
  grid-template-columns: 1fr 1fr 1fr;
}

.emptyState {
  padding: 18px 12px;
  color: var(--muted);
  text-align: center;
}

.modalActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.selectorSelectedWrap {
  position: relative;
}

.selectorSelectedList {
  min-height: 42px;
  max-height: 138px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.selectorSelectedListTitle {
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

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

.selectorSelectedListEmpty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.selectorSelectedToggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.selectorSelectedAction {
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.selectorSelectedPopover {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 190px;
  overflow: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.selectorSelectedPopoverHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
}

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

.selectorSelectedChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.selectorSelectedChip span {
  overflow-wrap: anywhere;
}

.selectorSelectedChip button {
  min-height: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 16px;
  line-height: 1;
}

.selectorSelectedEmpty {
  color: var(--muted);
  font-size: 12px;
}

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

.resultLoadMore {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.imagePreviewActions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 40px;
  align-items: center;
}

.imagePreviewActions .hidden {
  display: none;
}

.imagePreviewActions .hidden + button {
  grid-column: 1 / -1;
}

.imagePreviewActions button {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-height: 40px;
  box-sizing: border-box;
  justify-content: center;
  align-self: center;
  min-height: 40px;
  height: 40px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.1;
}

.logItem {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  font-size: 13px;
}

.logItem strong {
  display: block;
  margin-bottom: 4px;
}

.settingsList {
  margin: 0;
}

.settingsList div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.settingsList div:first-child {
  padding-top: 0;
}

.settingsList div:last-child {
  border-bottom: 0;
}

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

.settingsConfigCard {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.settingsConfigCard strong {
  color: var(--accent-strong);
  font-size: 16px;
}

.settingsConfigCard span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.settingsConfigCard:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sectionTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.collapsiblePanel {
  display: none;
}

.collapsiblePanel.settingsModalOpen {
  display: block;
  position: fixed;
  inset: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  z-index: 80;
  overflow: auto;
  margin: 0;
  padding: 0 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.28);
}

.collapsiblePanel summary {
  list-style: none;
  cursor: pointer;
}

.collapsiblePanel.settingsModalOpen summary {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 56px;
  margin: 0 -14px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.collapsiblePanel summary::-webkit-details-marker {
  display: none;
}

.collapsiblePanel summary::after {
  content: "打开";
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.collapsiblePanel[open] summary::after {
  content: "关闭";
}

.collapsibleBody {
  margin-top: 10px;
}

.collapsiblePanel.settingsModalOpen .collapsibleBody {
  margin-top: 0;
}

.sectionTitleRow h2 {
  margin: 0;
  font-size: 16px;
}

.sectionTitleRow span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filterTagList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filterTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.filterTag button {
  min-height: 22px;
  width: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 148, 143, 0.12);
  color: var(--accent-strong);
}


.userAdminGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.userAdminSearchRow {
  margin: 10px 0 12px;
}

.userAdminSearchRow input {
  min-height: 42px;
}

.userEditPanel {
  max-height: min(88vh, 760px);
  overflow: auto;
}

.userAdminGrid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.userAdminGrid .wide {
  grid-column: 1 / -1;
}

.userChannelNameField .pickerRow {
  margin-top: 5px;
}

.userChannelNameField .pickerButton {
  min-height: 48px;
}

.permissionGrid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.permissionGrid label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(18, 148, 143, 0.42);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.permissionGrid label:has(input:checked) {
  background: rgba(18, 148, 143, 0.10);
}

.permissionGrid input {
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0;
  accent-color: var(--accent);
}

.userPermissionActions button {
  min-height: 34px;
}

.reportPermissionList {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.userReportPermBody {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.reportPermissionBulk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 8px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(18, 148, 143, 0.36);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
}

.reportPermissionBulk input {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  accent-color: var(--accent);
}

.reportPermissionItem {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.reportPermissionView {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

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

.reportScopeOptions label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(18, 148, 143, 0.32);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.resultTitleMain,
.resultTitlePeriod,
.resultMetaMain,
.resultMetaPeriod {
  display: block;
}

.resultTitleMain {
  line-height: 1.16;
}

.resultTitlePeriod {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
  white-space: normal;
}

.resultMetaMain {
  line-height: 1.35;
}

.resultMetaPeriod {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

.reportPermissionItem input {
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  accent-color: var(--accent);
}

.userAdminList {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin-top: 12px;
  overflow: auto;
}

.userAdminItem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.userAdminItem span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.userAdminItem em {
  color: var(--accent-strong);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  display: none;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.hidden {
  display: none;
}

.performanceCards {
  display: grid;
  gap: 10px;
}

.performanceCard {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.performanceCard.total {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(15, 139, 141, 0.12);
}

.performanceCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--soft);
}

.performanceCard.total .performanceCardHeader {
  background: var(--primary);
  color: #fff;
}

.performanceCardHeader h3 {
  margin: 0;
  font-size: 17px;
}

.performanceCardHeader small {
  color: var(--muted);
  white-space: nowrap;
}

.performanceCard.total .performanceCardHeader small {
  color: rgba(255, 255, 255, 0.85);
}

.performanceMetricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.performanceMetric {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfc;
}

.performanceMetric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.performanceMetric strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

@media (min-width: 680px) {
  .shell {
    padding-top: 28px;
  }

  h1 {
    font-size: 30px;
  }
}

@media (max-width: 380px) {
  .grid2 {
    grid-template-columns: 1fr;
  }

  .tabs {
    gap: 4px;
  }

  .tab,
  button {
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .resultModal {
    align-items: stretch;
    padding: 8px;
  }

  .resultModalPanel {
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
  }

  .resultModalPanel {
    padding: 12px;
  }

  .resultMeta {
    font-size: 14px;
  }

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

  .resultModalHeader h2 {
    white-space: normal;
    min-width: 0;
  }

  .resultViewSwitchSlot .resultViewSwitch {
    gap: 6px;
  }

  .resultViewSwitchSlot .resultViewSwitch button {
    min-height: 40px;
    padding: 0 8px;
  }

  .resultViewSwitch button {
    min-height: 44px;
  }

  .resultViewSwitchSlot .resultViewSwitch button {
    min-height: 40px;
  }

  .userAdminGrid {
    grid-template-columns: 1fr;
  }

  .cardFilterBar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .cardFilter {
    min-width: 148px;
  }

  .retailCardsScroller {
    height: auto;
  }

  .retailMetricGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .retailDetailItem .retailMetricGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 0 0;
  }

  .retailMetric {
    padding: 7px;
  }

  .retailMetric strong {
    font-size: 14px;
  }

  .performanceMetricGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .performanceMetric strong {
    font-size: 15px;
  }

  .resultTable {
    min-width: 100%;
  }

  .resultTable.fixedKeyTable .stickyChannelCol {
    min-width: 76px;
    max-width: 76px;
  }
}

/* UI refresh: cleaner mobile workspace layout and reusable report components. */
:root {
  --bg: #f2f5f4;
  --surface-2: #edf5f3;
  --surface-3: #f8fbfa;
  --accent: #0f8f88;
  --accent-dark: #086b67;
  --accent-strong: #075e5b;
  --accent-soft: #e4f4f1;
  --line: #d8e3e0;
  --shadow: 0 14px 34px rgba(13, 35, 37, 0.08);
  --shadow-soft: 0 8px 22px rgba(13, 35, 37, 0.06);
}

body {
  background:
    radial-gradient(circle at 50% -120px, rgba(15, 143, 136, 0.12), transparent 320px),
    linear-gradient(180deg, #f8faf9 0%, var(--bg) 38%, #eef2f1 100%);
}

.shell {
  width: min(100%, 780px);
  padding: 14px 14px 30px;
}

.topbar {
  padding: 10px 2px 12px;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 800;
}

.topbar h1 {
  font-size: 28px;
  letter-spacing: 0;
}

.statusBand {
  margin: 8px 0 10px;
  border-color: #d2e5e1;
  background: rgba(236, 246, 244, 0.92);
  box-shadow: var(--shadow-soft);
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border-color: #d4dfdc;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  text-align: left;
}

.tab.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, #159f99, var(--accent));
  box-shadow: 0 9px 18px rgba(15, 143, 136, 0.18);
}

.panel,
.resultPanel,
.modalPanel {
  border-color: #dce7e5;
  box-shadow: var(--shadow);
}

.panel {
  padding: 16px;
}

.scopeCard,
.inlineFieldset {
  border-color: #dce7e5;
  background: var(--surface-3);
}

.scopeCard:has(input:checked),
.inlineFieldset:has(input:checked) {
  border-color: rgba(15, 143, 136, 0.35);
  background: linear-gradient(180deg, #fbfdfc, #f0f8f6);
}

.checkRow {
  gap: 10px;
}

input,
select,
textarea {
  border-color: #d5dfdd;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 143, 136, 0.12);
  outline: none;
}

.primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, #159f99, var(--accent));
  box-shadow: 0 8px 18px rgba(15, 143, 136, 0.18);
}

.secondary,
.pickerButton,
.buttonLike {
  background: #edf5f3;
}

button:active,
.buttonLike:active {
  transform: translateY(1px);
}

.notice,
.hint {
  padding-left: 10px;
  border-left: 3px solid #c5d8d4;
}

.resultSummary,
.resultMeta {
  border-color: #d7e5e2;
  background: var(--surface-2);
}

.openResultButton {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.modal {
  background: rgba(13, 23, 26, 0.48);
  backdrop-filter: blur(2px);
}

.modalPanel {
  border: 1px solid rgba(216, 227, 224, 0.95);
}

.resultModalPanel {
  overflow: hidden;
}

.resultViewSwitch {
  gap: 8px;
  margin-bottom: 10px;
}

.resultViewSwitch button {
  background: #edf5f3;
  font-weight: 800;
}

.resultViewSwitch button.active {
  background: linear-gradient(180deg, #159f99, var(--accent));
  box-shadow: 0 8px 18px rgba(15, 143, 136, 0.14);
}

.cardFilterBar {
  border-color: #dce7e5;
  background: #f7fbfa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.retailCard {
  overflow: hidden;
  border-color: #d9e5e2;
  box-shadow: var(--shadow-soft);
}

.retailCardHeader {
  background: linear-gradient(180deg, #f0f8f6, #e9f3f1);
}

.retailCardToggleText {
  color: var(--accent-strong);
}

.retailMetric {
  border-color: #dce7e5;
  background: #fff;
}

.fieldResults {
  border-color: #dce7e5;
  background: #fbfdfc;
  padding: 10px;
}

.fieldChip {
  min-height: 34px;
  padding: 7px 12px;
  border-color: var(--accent);
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.fieldChip.selected {
  background: var(--accent-soft);
  color: var(--text);
}

.permissionGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.permissionGrid label {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 143, 136, 0.36);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.permissionGrid label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

@media (min-width: 681px) {
  .tabs {
    overflow: visible;
  }

  .tab {
    flex: 0 0 auto;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .shell {
    padding: 10px 10px 24px;
  }

  .topbar h1 {
    font-size: 25px;
  }

  .tabs {
    margin: 0;
    padding: 0;
  }

  .tab {
    min-width: 0;
  }

  .panel {
    padding: 12px;
  }

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

  .pickerRow {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .dailyPickerRow {
    grid-template-columns: minmax(0, 1fr) 70px auto;
  }

  .goodsPickerRow {
    grid-template-columns: minmax(0, 1fr) 70px 76px;
  }

  .resultModal {
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .resultModalPanel {
    height: calc(var(--visual-viewport-height, 100dvh) - 16px - env(safe-area-inset-bottom));
    max-height: calc(var(--visual-viewport-height, 100dvh) - 16px - env(safe-area-inset-bottom));
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .resultActions {
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
  }

  #userReportPermModal {
    align-items: flex-end;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .userReportPermPanel {
    width: 100%;
    height: calc(var(--visual-viewport-height, 100dvh) - 16px - env(safe-area-inset-bottom));
    max-height: calc(var(--visual-viewport-height, 100dvh) - 16px - env(safe-area-inset-bottom));
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .userReportPermPanel .modalActions {
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
  }

  .modalHeader.resultModalHeader {
    grid-template-columns: minmax(0, 1fr) auto 48px;
    align-items: center;
  }

  .resultViewSwitchSlot .resultViewSwitch button {
    min-height: 38px;
    font-size: 14px;
  }

  .cardFilterBar {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cardFilterBar::-webkit-scrollbar {
    display: none;
  }
}

body.mobileVisualMode {
  --mobile-bg: #f5f7fa;
  --mobile-card: #ffffff;
  --mobile-line: #e5e7eb;
  --mobile-text: #0f172a;
  --mobile-muted: #64748b;
  --mobile-soft: #f8fafc;
  --mobile-primary: #0f9b9b;
  --mobile-primary-dark: #0f8b8d;
  background: var(--mobile-bg);
  color: var(--mobile-text);
}

body.mobileVisualMode .shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0 0 74px;
}

body.mobileVisualMode .topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  margin: 0;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--mobile-line);
  backdrop-filter: blur(10px);
}

body.mobileVisualMode .titleBlock {
  min-width: 0;
}

body.mobileVisualMode .titleBlock .eyebrow {
  display: none;
}

body.mobileVisualMode .titleBlock h1 {
  color: var(--mobile-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

body.mobileVisualMode .menuToggleButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--mobile-line);
  border-radius: 50%;
  background: var(--mobile-card);
  box-shadow: none;
}

body.mobileVisualMode .menuToggleButton span {
  width: 16px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #0f172a;
}

body.mobileVisualMode .iconButton {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: var(--mobile-line);
  border-radius: 50%;
  background: var(--mobile-card);
  box-shadow: none;
}

body.mobileVisualMode .iconButton svg {
  width: 18px;
  height: 18px;
}

body.mobileVisualMode .statusBand {
  display: none;
}

body.mobileVisualMode .view {
  padding: 10px 12px 0;
  background: var(--mobile-bg);
}

body.mobileVisualMode .panel,
body.mobileVisualMode .resultPanel,
body.mobileVisualMode .modalPanel {
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  background: var(--mobile-card);
  box-shadow: none;
}

body.mobileVisualMode .panel {
  padding: 12px;
}

body.mobileVisualMode .sideNav {
  width: min(74vw, 280px);
}

body.mobileVisualMode .sideNav .tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

body.mobileVisualMode .sideNav .tab {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  box-shadow: none;
}

body.mobileVisualMode .sideNav .tab.active {
  border-color: #dbeafe;
  background: #f8fafc;
  color: #0f172a;
}

body.mobileVisualMode .sideNav.mineOnly .tab:not([data-tab="settings"]):not([data-tab="logs"]):not([data-tab="about"]) {
  display: none !important;
}

body.mobileVisualMode .mobileHome {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

body.mobileVisualMode .mobileHomeTop {
  display: none;
}

body.mobileVisualMode .mobileHomeTitle h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

body.mobileVisualMode .mobileHomeBell {
  width: 38px;
  height: 38px;
  min-height: 38px;
}

body.mobileVisualMode .mobileHomeFilters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.mobileVisualMode .mobileFilterChip {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

body.mobileVisualMode .mobileSection {
  display: grid;
  gap: 8px;
}

body.mobileVisualMode .mobileSectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.mobileVisualMode .mobileSectionHead strong {
  font-size: 14px;
}

body.mobileVisualMode .mobileMoreText {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

body.mobileVisualMode .mobileMetricGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

body.mobileVisualMode .mobileMetricCard {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 8px 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #0b1220;
  text-align: left;
}

body.mobileVisualMode .mobileMetricCard span {
  color: #6b7280;
  font-size: 11px;
}

body.mobileVisualMode .mobileMetricCard strong {
  font-size: 15px;
  line-height: 1.1;
}

body.mobileVisualMode .mobileMetricCard em {
  color: #16a34a;
  font-size: 11px;
  font-style: normal;
}

body.mobileVisualMode .mobileMetricCard em.negative {
  color: #dc2626;
}

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

body.mobileVisualMode .mobileWarningCard {
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 8px 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

body.mobileVisualMode .mobileWarningCard.warn span {
  color: #f97316;
}

body.mobileVisualMode .mobileWarningCard span {
  font-size: 12px;
  color: #374151;
}

body.mobileVisualMode .mobileWarningCard strong {
  font-size: 19px;
  line-height: 1;
}

body.mobileVisualMode .mobileShortcutGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

body.mobileVisualMode .mobileShortcutCard {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 76px;
  padding: 8px 5px 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.mobileVisualMode .mobileShortcutIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
}

body.mobileVisualMode .mobileShortcutIcon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mobileVisualMode .mobileShortcutCard.more .mobileShortcutIcon {
  background: #d1d5db;
  color: #4b5563;
}

body.mobileVisualMode .mobileShortcutCard strong {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

body.mobileVisualMode .mobileHotList {
  display: grid;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

body.mobileVisualMode .mobileHotItem {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid #eef2f7;
}

body.mobileVisualMode .mobileHotItem:first-child {
  border-top: 0;
}

body.mobileVisualMode .mobileHotItem .rank {
  color: #f97316;
  font-size: 12px;
  font-weight: 800;
}

body.mobileVisualMode .mobileHotItem b {
  display: block;
  font-size: 13px;
}

body.mobileVisualMode .mobileHotItem small {
  color: #6b7280;
  font-size: 11px;
}

body.mobileVisualMode .mobileHotItem strong {
  font-size: 13px;
  font-weight: 800;
}

body.mobileVisualMode .mobileBottomNav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

body.mobileVisualMode .mobileBottomNav .mobileNavItem {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
}

body.mobileVisualMode .mobileBottomNav .mobileNavItem svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.mobileVisualMode .mobileBottomNav .mobileNavItem.active {
  color: #2563eb;
  background: transparent;
}

body.mobileVisualMode .reportMenuPanel {
  display: none;
}

body.mobileVisualMode .resultModal {
  align-items: stretch;
  padding: 0;
  background: #f5f6f8;
}

body.mobileVisualMode .resultModalPanel {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.mobileVisualMode .resultHeader {
  background: #fff;
}

body.mobileVisualMode .resultViewSwitch {
  gap: 6px;
}

body.mobileVisualMode .resultViewSwitch button {
  min-height: 32px;
  border: 1px solid #dbe3e7;
  border-radius: 6px;
  background: #fff;
}

body.mobileVisualMode .resultViewSwitch button.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

body.mobileVisualMode .resultMeta {
  border-radius: 8px;
  background: #fff;
}

body.mobileVisualMode .resultZoomToolbar {
  gap: 6px;
}

body.mobileVisualMode .resultZoomToolbar .compactButton {
  min-height: 28px;
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff;
}

body.mobileVisualMode .resultHighlightHint {
  font-size: 11px;
}

body.mobileVisualMode .performanceCard,
body.mobileVisualMode .retailCard,
body.mobileVisualMode .goodsRankingBoardItem,
body.mobileVisualMode .settingsConfigCard,
body.mobileVisualMode .logItem,
body.mobileVisualMode .activityWindowButton,
body.mobileVisualMode .userAdminItem,
body.mobileVisualMode .reportPermissionItem {
  border-radius: 8px;
  box-shadow: none;
}

body.mobileVisualMode .goodsRankingBoardItem {
  grid-template-columns: 56px minmax(0, 1fr) 112px;
  gap: 8px;
  padding: 8px;
}

body.mobileVisualMode .goodsRankingImage {
  width: 48px;
}

body.mobileVisualMode .goodsRankingImage .thumbLink {
  width: 48px;
  height: 68px;
  min-height: 68px;
}

body.mobileVisualMode .goodsRankingName {
  font-size: 14px;
}

body.mobileVisualMode .goodsRankingMetrics {
  gap: 10px;
}

body.mobileVisualMode .goodsRankingMetric b strong {
  font-size: 16px;
}

body.mobileVisualMode .goodsRankingTimeTags {
  justify-content: flex-start;
}

/* UI refresh v4: mobile dashboard polish */
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  padding-top: calc(10px + env(safe-area-inset-top));
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.96), rgba(246, 248, 251, 0.72));
}

.menuToggleButton,
.iconButton {
  background: linear-gradient(180deg, #ffffff, #f4f8fb);
  box-shadow: var(--shadow-soft);
}

.statusBand {
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5faf9);
  box-shadow: var(--shadow-soft);
}

.tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 0 14px;
  border-radius: 999px;
  border-color: #d7e0e4;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  box-shadow: var(--shadow-soft);
}

.tab.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, #159f99, var(--accent));
  box-shadow: 0 10px 20px rgba(15, 143, 136, 0.18);
}

.dashboardHero {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  border-color: rgba(15, 143, 136, 0.16);
  background: linear-gradient(135deg, rgba(15, 143, 136, 0.1), rgba(255, 255, 255, 0.98));
}

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

.dashboardHero h2 {
  font-size: 22px;
  line-height: 1.18;
}

.dashboardHeroText {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboardHeroBadge {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 143, 136, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

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

.dashboardHeroStats div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dbe4e1;
  border-radius: 8px;
  background: #fff;
}

.dashboardHeroStats strong {
  color: var(--accent-strong);
  font-size: 18px;
  line-height: 1;
}

.dashboardHeroStats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reportMenuPanel {
  gap: 12px;
}

.menuHeader h2 {
  font-size: 20px;
}

.reportMenuGrid {
  gap: 10px;
}

.reportMenuCard {
  position: relative;
  min-height: 112px;
  padding: 14px 13px 14px 15px;
  border: 1px solid #dce6e4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.reportMenuCard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(15, 143, 136, 0.25));
}

.reportMenuCard strong {
  font-size: 17px;
  margin-bottom: 8px;
}

.reportMenuCard span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.panel {
  border-color: #dbe4e1;
  background: linear-gradient(180deg, #ffffff, #fcfefe);
  box-shadow: var(--shadow);
}

.scopeCard,
.inlineFieldset,
.selectorBulkRow,
.selectedBar,
.fieldResults,
.cardFilterBar,
.goodsRankingStorePickerPanel,
.goodsRankingStoreOptions button,
.retailCard,
.activityWindowButton,
.settingsConfigCard,
.logItem,
.userAdminItem,
.reportPermissionItem,
.permissionGrid label,
.imagePreviewHint,
.imagePreviewMeta span,
.resultMeta,
.resultHeader {
  border-radius: 8px;
}

.scopeCard,
.inlineFieldset,
.cardFilterBar,
.permissionGrid,
.fieldResults,
.settingsConfigCard,
.logItem,
.userAdminItem,
.reportPermissionItem {
  background: #f7fbfa;
}

.pickerButton,
.secondary,
.buttonLike {
  background: #edf5f3;
}

.primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, #159f99, var(--accent));
  box-shadow: 0 8px 18px rgba(15, 143, 136, 0.18);
}

.notice,
.hint {
  padding-left: 10px;
  border-left: 3px solid #c8dad7;
}

.resultPanel {
  border-color: #dbe4e1;
  background: #fff;
  box-shadow: var(--shadow);
}

.resultHeader {
  background: linear-gradient(180deg, #f7fbfa, #eef6f4);
}

.resultViewSwitch {
  gap: 8px;
}

.resultViewSwitch button {
  border-radius: 8px;
  background: #edf5f3;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.resultViewSwitch button.active {
  background: linear-gradient(180deg, #159f99, var(--accent));
}

.resultZoomToolbar {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  padding: 2px 0 6px;
}

.resultHighlightHint {
  flex: 1 1 100%;
  order: 2;
}

.resultLoadMore {
  padding-top: 10px;
}

.retailCard {
  overflow: hidden;
  border-color: #dbe4e1;
  box-shadow: var(--shadow-soft);
}

.retailCardHeader {
  background: linear-gradient(180deg, #f0f8f6, #eaf3f0);
}

.retailMetric {
  background: #fff;
}

.performanceCards {
  gap: 12px;
}

.performanceCard {
  border-color: #dbe4e1;
  box-shadow: var(--shadow-soft);
}

.performanceCard.total {
  border-color: rgba(15, 143, 136, 0.5);
}

.performanceCardHeader {
  background: linear-gradient(180deg, #f4faf8, #eaf5f2);
}

.performanceCard.total .performanceCardHeader {
  background: linear-gradient(180deg, #159f99, var(--accent));
}

.performanceMetric {
  background: #fff;
}

.goodsRankingBoardWrap {
  gap: 10px;
}

.goodsRankingBoardScroller {
  padding-right: 0;
}

.goodsRankingBoardList {
  gap: 14px;
}

.goodsRankingBoardToolbar {
  border-radius: 8px;
  background: linear-gradient(180deg, #f5faf9, #eef7f5);
}

.goodsRankingStorePickerPanel {
  border-color: #d8e5e1;
  background: #fff;
  box-shadow: 0 16px 36px rgba(13, 35, 37, 0.14);
}

.goodsRankingBoardItem {
  grid-template-columns: 88px minmax(0, 1fr) 124px;
  gap: 10px;
  padding: 10px;
  border-color: #dbe4e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.goodsRankingRank {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 143, 136, 0.1);
}

.goodsRankingName {
  font-size: 16px;
}

.goodsRankingGoodsNo,
.goodsRankingSub,
.goodsRankingTags span,
.goodsRankingColorTag,
.goodsRankingTimeTags i,
.goodsRankingBreakdown span,
.goodsRankingMetric span {
  border-radius: 999px;
}

.goodsRankingTags {
  gap: 6px;
}

.goodsRankingTimeTags {
  justify-content: flex-start;
}

.goodsRankingMetrics {
  gap: 10px;
}

.goodsRankingMetric {
  gap: 4px;
}

.goodsRankingMetric b {
  font-size: 12px;
}

.goodsRankingMetric b strong {
  font-size: 18px;
}

.goodsRankingMetric div {
  gap: 6px;
}

.goodsRankingBackTop {
  min-height: 38px;
  padding-inline: 12px;
  border-radius: 999px;
  background: #fff;
}

.imagePreviewPanel {
  border-color: #dbe4e1;
  background: #fff;
}

.imagePreviewStage {
  border-radius: 8px;
  background: #0f172a;
}

.imagePreviewHint,
.imagePreviewMeta span {
  border-radius: 8px;
}

.barcodeScannerPanel {
  border-color: #dbe4e1;
  background: #fff;
}

.barcodeScannerVideo {
  border-radius: 8px;
}

.settingsList div {
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #dbe4e1;
  border-radius: 8px;
  background: #fff;
}

.settingsConfigHub {
  gap: 10px;
}

.settingsConfigCard {
  border-color: #dbe4e1;
  background: linear-gradient(180deg, #fff, #f7fbfa);
  box-shadow: var(--shadow-soft);
}

.logItem {
  border-color: #dbe4e1;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.activityWindowButton {
  border-color: #dbe4e1;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.selectorLimitRow,
.selectorBulkRow,
.selectedBar,
.fieldResults {
  border-color: #dbe4e1;
}

.selectorItem,
.fieldItem {
  border-radius: 8px;
}

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

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

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

  .goodsRankingBoardItem {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .goodsRankingMetrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goodsRankingQty {
    grid-column: 1 / -1;
    justify-items: start;
  }

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

  .resultModalPanel {
    border-radius: 8px;
  }
}

/* Mobile visual draft parity overrides. Keep this at the end so older refresh styles cannot leak into the mockup skin. */
@media (max-width: 680px) {
  body.mobileVisualMode {
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --line: #dfe4ea;
    --text: #0b1220;
    --muted: #6b7280;
    background: #f5f6f8;
  }

  body.mobileVisualMode .topbar {
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.mobileVisualMode .titleBlock h1 {
    font-size: 20px;
    font-weight: 800;
  }

  body.mobileVisualMode .view {
    padding-inline: 12px;
  }

  body.mobileVisualMode #home.view {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  body.mobileVisualMode .mobileSectionHead strong {
    color: #0b1220;
    font-size: 14px;
    font-weight: 800;
  }

  body.mobileVisualMode .mobileMetricCard,
  body.mobileVisualMode .mobileWarningCard,
  body.mobileVisualMode .mobileShortcutCard,
  body.mobileVisualMode .mobileHotList {
    border-color: #dfe4ea;
    background: #fff;
    box-shadow: none;
  }

  body.mobileVisualMode .mobileMetricCard strong,
  body.mobileVisualMode .mobileWarningCard strong,
  body.mobileVisualMode .mobileHotItem strong {
    color: #07111f;
    font-weight: 800;
  }

  body.mobileVisualMode .mobileShortcutCard {
    position: relative;
    min-height: 74px;
    padding: 8px 4px 7px;
    text-align: center;
    overflow: visible;
  }

  body.mobileVisualMode .mobileShortcutCard::before {
    display: none;
  }

  body.mobileVisualMode .mobileShortcutCard strong {
    font-size: 12px;
    font-weight: 800;
    margin: 0;
  }

  body.mobileVisualMode .mobileShortcutIcon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #1f57e7;
    color: #fff;
  }

  body.mobileVisualMode .mobileShortcutCard.more .mobileShortcutIcon {
    background: #d1d5db;
    color: #4b5563;
  }

  body.mobileVisualMode .mobileBottomNav {
    background: #fff;
    box-shadow: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.mobileVisualMode .mobileBottomNav .mobileNavItem {
    display: inline-flex !important;
    color: #6b7280;
  }

  body.mobileVisualMode .mobileBottomNav .mobileNavItem.active {
    color: #2563eb;
  }

  body.mobileVisualMode .toast {
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 160;
    left: 16px;
    right: 16px;
    max-width: none;
    border-radius: 10px;
    text-align: center;
  }

  body.mobileVisualMode .mobileHomeTabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: 34px;
    border-bottom: 1px solid #e5e7eb;
  }

  body.mobileVisualMode .mobileHomeTabs button {
    min-height: 34px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
  }

  body.mobileVisualMode .mobileHomeTabs button.active {
    color: #0f9b9b;
    border-bottom-color: #0f9b9b;
  }

  body.mobileVisualMode .mobileHomeSubbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #8a94a3;
    font-size: 11px;
  }

  body.mobileVisualMode .mobileHomeSubbar button {
    min-height: 26px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #0f9b9b;
    font-size: 11px;
    font-weight: 800;
  }

  body.mobileVisualMode .mobileMetricGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mobileVisualMode .mobileMetricCard {
    min-height: 112px;
    align-content: start;
    text-align: left;
    overflow: hidden;
  }

  body.mobileVisualMode .mobileMetricCard strong {
    color: #0f9b9b;
    font-size: 21px;
  }

  body.mobileVisualMode .mobileMetricCard span {
    min-height: 2.4em;
    color: #334155;
    font-size: 11px;
    line-height: 1.2;
  }

  body.mobileVisualMode .mobileMetricCard em {
    overflow: hidden;
    color: #64748b;
    font-size: 9.5px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobileVisualMode .mobileMetricCard em:last-child {
    color: #0f9b9b;
  }

  body.mobileVisualMode .mobileMetricCard em.negative {
    color: #dc2626;
  }

  body.mobileVisualMode .mobileRankList {
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
  }

  body.mobileVisualMode .mobileRankLine {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    border-top: 1px solid #eef2f7;
    border-radius: 0;
    background: #fff;
    color: #0b1220;
    text-align: left;
  }

  body.mobileVisualMode .mobileRankLine:first-child {
    border-top: 0;
  }

  body.mobileVisualMode .mobileRankLine .rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #eef2f7;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
  }

  body.mobileVisualMode .mobileRankLine:first-child .rank {
    background: #fbbf24;
    color: #fff;
  }

  body.mobileVisualMode .mobileRankLine b {
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobileVisualMode .mobileRankLine strong {
    color: #334155;
    font-size: 12px;
  }

  body.mobileVisualMode .mobileTargetLine {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    min-height: 52px;
  }

  body.mobileVisualMode .mobileTargetLine small {
    grid-column: 2 / 4;
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobileVisualMode .mobileTargetLine i {
    grid-column: 2 / 4;
    display: block;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #12a6a6, #0f8b8d);
  }

  body.mobileVisualMode .mobileTrendCard {
    padding: 10px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
  }

  body.mobileVisualMode .mobileTrendLegend {
    color: #6b7280;
    font-size: 11px;
  }

  body.mobileVisualMode .mobileTrendLegend span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 999px;
    background: #0f9b9b;
    vertical-align: 1px;
  }

  body.mobileVisualMode .mobileTrendBars {
    display: grid;
    gap: 7px;
    min-height: 96px;
    margin-top: 10px;
    padding: 0;
    border-bottom: 0;
  }

  body.mobileVisualMode .mobileTrendRow {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    position: relative;
  }

  body.mobileVisualMode .mobileTrendRow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
  }

  body.mobileVisualMode .mobileTrendRow:first-child span {
    background: #fbbf24;
    color: #fff;
  }

  body.mobileVisualMode .mobileTrendRow b {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobileVisualMode .mobileTrendRow strong {
    color: #0f9b9b;
    font-size: 12px;
    font-weight: 900;
  }

  body.mobileVisualMode .mobileTrendRow i {
    grid-column: 2 / 4;
    display: block;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #12a6a6, #0f8b8d);
  }

  body.mobileVisualMode .mobileTrendBars .mobileEmptyLine {
    grid-column: 1 / -1;
    align-self: center;
    padding: 0;
  }

  body.mobileVisualMode .mobileEmptyLine {
    padding: 12px;
    color: #8a94a3;
    font-size: 12px;
    text-align: center;
  }

  body.mobileVisualMode .view:not(#home) {
    padding: 8px 12px 90px;
    background: var(--mobile-bg);
  }

  body.mobileVisualMode .mobileQueryIntro {
    display: grid;
    gap: 4px;
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--mobile-line);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
  }

  body.mobileVisualMode .mobileQueryIntro strong {
    color: var(--mobile-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
  }

  body.mobileVisualMode .mobileQueryIntro span {
    color: var(--mobile-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
  }

  body.mobileVisualMode .view:not(#home) > form.panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--mobile-line);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: none;
  }

  body.mobileVisualMode .view:not(#home) > form.panel label {
    margin: 0;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
  }

  body.mobileVisualMode .view:not(#home) > form.panel input,
  body.mobileVisualMode .view:not(#home) > form.panel select {
    min-height: 40px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
  }

  body.mobileVisualMode .view:not(#home) > form.panel input::placeholder {
    color: #9aa4b2;
    font-weight: 600;
  }

  body.mobileVisualMode .view:not(#home) > form.panel input[readonly] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobileVisualMode .view:not(#home) > form.panel input:focus,
  body.mobileVisualMode .view:not(#home) > form.panel select:focus {
    border-color: #0f9b9b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 155, 155, 0.12);
    outline: none;
  }

  body.mobileVisualMode .view:not(#home) > form.panel .pickerRow {
    gap: 7px;
  }

  body.mobileVisualMode .view:not(#home) > form.panel .pickerButton,
  body.mobileVisualMode .view:not(#home) > form.panel .secondary {
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #dbe3e7;
    border-radius: 8px;
    background: #eef7f7;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    box-shadow: none;
    white-space: nowrap;
  }

  body.mobileVisualMode .view:not(#home) > form.panel .primary,
  body.mobileVisualMode .view:not(#home) > form.panel button[type="submit"] {
    min-height: 42px;
    border-color: #0f9b9b;
    border-radius: 8px;
    background: linear-gradient(180deg, #12a6a6, #0f8b8d);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(15, 143, 136, 0.14);
  }

  body.mobileVisualMode .view:not(#home) > form.panel .actionRow {
    gap: 8px;
    margin-top: 2px;
  }

  body.mobileVisualMode .view:not(#home) > form.panel .scopeCard,
  body.mobileVisualMode .view:not(#home) > form.panel .inlineFieldset,
  body.mobileVisualMode .view:not(#home) > form.panel .summaryBasisField,
  body.mobileVisualMode .view:not(#home) > form.panel .barcodeLookupBlock {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
  }

  body.mobileVisualMode .view:not(#home) > form.panel .checkRow,
  body.mobileVisualMode .view:not(#home) > form.panel .summaryBasisOption {
    min-height: 30px;
    padding: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
  }

  body.mobileVisualMode .view:not(#home) > form.panel input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    accent-color: #0f9b9b;
  }

  body.mobileVisualMode .view:not(#home) > form.panel legend,
  body.mobileVisualMode .view:not(#home) > form.panel .fieldLabel {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
  }

  body.mobileVisualMode .view:not(#home) .notice {
    margin: 8px 0 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    box-shadow: none;
    font-size: 12px;
    line-height: 1.5;
  }

  body.mobileVisualMode .view:not(#home) .resultPanel {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
  }

  body.mobileVisualMode .view:not(#home) > form.panel .grid2 {
    gap: 8px;
  }

  body.mobileVisualMode .view:not(#home) > form.panel .grid2 > div {
    display: grid;
    gap: 5px;
  }

  body.mobileVisualMode.mobileAuthPage {
    background: #f5f6f8;
  }

  body.mobileVisualMode.mobileAuthPage .topbar,
  body.mobileVisualMode.mobileAuthPage .view,
  body.mobileVisualMode.mobileAuthPage .mobileBottomNav,
  body.mobileVisualMode.mobileAuthPage .sideNav,
  body.mobileVisualMode.mobileAuthPage .sideNavOverlay {
    display: none !important;
  }

  body.mobileVisualMode #unlockPanel.hidden {
    display: none !important;
  }

  body.mobileVisualMode.mobileAuthPage #unlockPanel {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: #f5f6f8;
    box-shadow: none;
  }

  body.mobileVisualMode .mobileLoginBrand {
    display: grid;
    gap: 6px;
    margin: 0 0 8px;
  }

  body.mobileVisualMode .mobileLoginBrand strong {
    color: #0b1220;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 900;
  }

  body.mobileVisualMode .mobileLoginBrand span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
  }

  body.mobileVisualMode.mobileAuthPage #unlockPanel label {
    margin: 0;
    color: #374151;
    font-size: 12px;
  }

  body.mobileVisualMode.mobileAuthPage #unlockPanel input {
    min-height: 44px;
    border-radius: 8px;
    border-color: #dfe4ea;
    font-size: 14px;
  }

  body.mobileVisualMode.mobileAuthPage #unlockPanel .row {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
  }

  body.mobileVisualMode.mobileAuthPage #unlockPanel button {
    min-height: 44px;
    border-radius: 8px;
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }

  body.mobileVisualMode.mobileAuthPage #unlockPanel .hint {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
  }

  body.mobileVisualMode .mobileLoginLoading {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(245, 246, 248, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  body.mobileVisualMode .mobileLoginLoading.active {
    opacity: 1;
    pointer-events: auto;
  }

  body.mobileVisualMode .mobileLoginLoadingCard {
    display: grid;
    gap: 10px;
    width: min(100%, 320px);
    padding: 18px 16px 16px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  }

  body.mobileVisualMode .mobileLoginLoadingEyebrow {
    margin: 0;
    color: #0f9b9b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
  }

  body.mobileVisualMode .mobileLoginLoadingCard strong {
    color: #0b1220;
    font-size: 20px;
    line-height: 1.15;
  }

  body.mobileVisualMode .mobileLoginLoadingCard span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
  }

  body.mobileVisualMode .mobileLoginLoadingBar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
  }

  body.mobileVisualMode .mobileLoginLoadingBar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #0f9b9b;
    transition: width 0.18s ease;
  }

  body.mobileVisualMode .mobileLoginLoadingFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 11px;
  }

  body.mobileVisualMode .resultModal {
    background: #fff;
  }

  body.mobileVisualMode .resultModalPanel {
    height: 100%;
    background: #fff;
  }

  body.mobileVisualMode .resultHeader {
    min-height: 50px;
    padding: 8px 10px 6px;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    gap: 6px;
  }

  body.mobileVisualMode .resultModalHeader {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 42px;
    align-items: center;
  }

  body.mobileVisualMode #resultTitle {
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body.mobileVisualMode .resultTitleMain {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  body.mobileVisualMode .resultTitlePeriod {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
  }

  body.mobileVisualMode .resultViewSwitch {
    gap: 0;
    min-height: 34px;
    padding: 0;
    border-bottom: 0;
    background: #fff;
  }

  body.mobileVisualMode .resultViewSwitch button {
    min-width: 58px;
    min-height: 32px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
  }

  body.mobileVisualMode .resultViewSwitch button.active {
    border-color: #2563eb;
    background: transparent;
    color: #2563eb;
  }

  body.mobileVisualMode .resultMeta {
    margin: 6px 12px;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
  }

  body.mobileVisualMode .cardFilterBar {
    margin: 0 12px 8px;
    padding: 8px;
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    background: #f8fafc;
    gap: 8px;
  }

  body.mobileVisualMode .cardFilterBar label {
    margin: 0;
    font-size: 11px;
  }

  body.mobileVisualMode .cardFilterBar select {
    min-height: 32px;
    padding: 6px 28px 6px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
  }

  body.mobileVisualMode .retailCardsScroller {
    padding: 0 12px 86px;
  }

  body.mobileVisualMode .retailCardList {
    gap: 8px;
  }

  body.mobileVisualMode .retailCard {
    border-color: #dfe4ea;
    border-radius: 6px;
    box-shadow: none;
    overflow: hidden;
  }

  body.mobileVisualMode .retailCardHeader {
    position: static;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 0;
    background: #fff;
    font-size: 13px;
  }

  body.mobileVisualMode .retailCardSummaryMeta small {
    font-size: 11px;
  }

  body.mobileVisualMode .retailCardToggleText {
    min-width: 34px;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
  }

  body.mobileVisualMode .retailMetricGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px 10px;
  }

  body.mobileVisualMode .retailMetric {
    min-height: 64px;
    padding: 8px;
    border-color: #dfe4ea;
    border-radius: 6px;
    background: #fff;
  }

  body.mobileVisualMode .retailMetric span {
    font-size: 11px;
  }

  body.mobileVisualMode .retailMetric strong {
    font-size: 14px;
  }

  body.mobileVisualMode .resultActions {
    gap: 8px;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #eef2f7;
    background: #fff;
  }

  body.mobileVisualMode .resultActions button,
  body.mobileVisualMode .resultActions .buttonLike {
    min-height: 36px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
  }

  body.mobileVisualMode .goodsRankingBoardScroller {
    padding: 0 12px 86px;
  }

  body.mobileVisualMode .goodsRankingBoardToolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 36px;
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    background: #f8fafc;
    color: #374151;
    font-size: 12px;
  }

  body.mobileVisualMode .goodsRankingBoardItems {
    gap: 8px;
  }

  body.mobileVisualMode .goodsRankingBoardItem {
    grid-template-columns: 20px 56px minmax(0, 1fr);
    gap: 7px;
    min-height: 112px;
    padding: 8px;
    border-color: #dfe4ea;
    border-radius: 6px;
    box-shadow: none;
  }

  body.mobileVisualMode .goodsRankingLeft {
    display: contents;
  }

  body.mobileVisualMode .goodsRankingRank {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: center;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #ff5f15;
    font-size: 12px;
  }

  body.mobileVisualMode .goodsRankingImage {
    grid-column: 2;
    grid-row: 1;
    width: 52px;
    height: 70px;
  }

  body.mobileVisualMode .goodsRankingImage .thumbLink,
  body.mobileVisualMode .goodsRankingImage span {
    width: 52px;
    height: 70px;
    min-height: 70px;
    border-radius: 6px;
    font-size: 11px;
  }

  body.mobileVisualMode .goodsRankingTimeTags {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    gap: 3px;
    width: 52px;
  }

  body.mobileVisualMode .goodsRankingTimeTags i {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
  }

  body.mobileVisualMode .goodsRankingInfo {
    grid-column: 3;
    grid-row: 1;
    gap: 3px;
    min-width: 0;
    padding: 0;
  }

  body.mobileVisualMode .goodsRankingName {
    padding-right: 0;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body.mobileVisualMode .goodsRankingGoodsNo {
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  body.mobileVisualMode .goodsRankingSub,
  body.mobileVisualMode .goodsRankingTags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    text-align: left;
  }

  body.mobileVisualMode .goodsRankingColorTag,
  body.mobileVisualMode .goodsRankingTags span {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
  }

  body.mobileVisualMode .goodsRankingColorTag {
    color: #475569;
  }

  body.mobileVisualMode .goodsRankingMetrics {
    grid-column: 3;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-self: end;
    min-width: 0;
  }

  body.mobileVisualMode .goodsRankingMetric {
    gap: 4px;
  }

  body.mobileVisualMode .goodsRankingMetric b {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    color: #00615b;
    font-size: 11px;
  }

  body.mobileVisualMode .goodsRankingMetric.stock b {
    color: #7a5a10;
  }

  body.mobileVisualMode .goodsRankingMetric b strong {
    color: #07111f;
    font-size: 13px;
  }

  body.mobileVisualMode .goodsRankingMetric div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px 8px;
    text-align: left;
  }

  body.mobileVisualMode .goodsRankingMetric span {
    display: inline;
    min-height: 0;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f766e;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.mobileVisualMode .goodsRankingMetric.stock span {
    color: #9a6a08;
  }

  body.mobileVisualMode .goodsRankingBackTop {
    min-height: 34px;
    padding-inline: 12px;
    border-radius: 999px;
    font-size: 12px;
  }
}
label[for="pinInput"],
#pinInput {
  display: none !important;
}

.userLoginProtectionBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.userLoginProtectionBox.hidden {
  display: none !important;
}
