:root {
  --primary: #5645d4;
  --primary-hover: #4534b3;
  --canvas: #ffffff;
  --surface: #f6f5f4;
  --surface-soft: #fafaf9;
  --surface-muted: #f0efed;
  --hairline: #e5e3df;
  --hairline-soft: #ede9e4;
  --hairline-strong: #c8c4be;
  --ink: #1a1a1a;
  --charcoal: #37352f;
  --slate: #5d5b54;
  --steel: #787671;
  --stone: #a4a097;
  --navy: #0a1530;
  --link-blue: #0075de;
  --radius-md: 8px;
  --radius-xl: 12px;
  --shadow-card: rgba(25, 25, 25, 0.027) 0 8px 12px, rgba(25, 25, 25, 0.02) 0 1px 2px;
  --shadow-frame: rgba(15, 15, 15, 0.16) 0 24px 64px -36px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--charcoal);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-frame {
  width: min(1120px, calc(100vw - 80px));
  height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 440px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--canvas);
  box-shadow: var(--shadow-frame);
}

.visual-panel {
  position: relative;
  display: block;
  min-width: 0;
  border-right: 1px solid var(--hairline);
  background: var(--surface);
}

.visual-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.88;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 21, 48, 0.7), rgba(10, 21, 48, 0.38), rgba(10, 21, 48, 0));
}

.visual-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  color: #ffffff;
}

.brand-line {
  position: absolute;
  top: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-line {
  font-size: 14px;
  font-weight: 500;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.brand-icon svg,
.input-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-icon svg {
  width: 16px;
  height: 16px;
}

.visual-copy {
  position: absolute;
  left: 40px;
  top: 258px;
  max-width: 520px;
}

.visual-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0;
}

.visual-description {
  max-width: 440px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--canvas);
}

.login-form {
  width: 100%;
  max-width: 336px;
}

.login-form h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.form-subtitle {
  margin: 8px 0 28px;
  color: var(--steel);
  font-size: 14px;
  line-height: 1.5;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 500;
}

.input-shell {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.input-shell:focus-within {
  border-color: var(--hairline-strong);
  box-shadow: 0 0 0 4px rgba(86, 69, 212, 0.1);
}

.input-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--stone);
}

.input-shell input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.input-shell input::placeholder {
  color: var(--stone);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: var(--steel);
  font-size: 13px;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.remember-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
}

.quiet-link {
  color: var(--slate);
  text-decoration: none;
}

.quiet-link:hover {
  color: var(--ink);
}

.login-button {
  width: 100%;
  height: 42px;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.login-button:hover {
  background: var(--primary-hover);
}

.login-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.form-message {
  min-height: 20px;
  margin: 0;
  padding-top: 16px;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.45;
}

.form-message[data-state="error"] {
  color: #b42318;
}

.form-message[data-state="success"] {
  color: #157347;
}

.dashboard-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(184px, 11.4vw, 232px) minmax(0, 1fr);
  background: var(--canvas);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 16px 14px;
  border-right: 1px solid var(--hairline);
  background: var(--surface-soft);
}

.side-brand {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.side-subtitle {
  margin: 5px 0 14px;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.5;
}

.side-hotel-card {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--canvas);
}

.side-hotel-card p {
  margin: 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.35;
}

.side-hotel-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.nav-list {
  display: grid;
  gap: 3px;
}

.nav-item {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-md);
  color: var(--slate);
  font-size: 14px;
  text-decoration: none;
}

.nav-item.active {
  position: relative;
  background: var(--canvas);
  color: var(--ink);
  font-weight: 500;
  box-shadow: rgba(25, 25, 25, 0.035) 0 1px 2px;
}

.nav-item.disabled,
.card-link.disabled {
  cursor: default;
  opacity: 0.55;
}

.side-account {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.side-account span {
  display: block;
  margin-bottom: 8px;
  color: var(--steel);
  font-size: 12px;
}

.side-account p {
  margin: 0 0 12px;
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.45;
}

.text-button,
.secondary-button,
.icon-button {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--charcoal);
  cursor: pointer;
  font-size: 13px;
}

.text-button {
  height: 30px;
  padding: 0 10px;
}

.secondary-button {
  height: 34px;
  padding: 0 13px;
  font-weight: 500;
}

.icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--slate);
  font-size: 20px;
  line-height: 1;
}

.text-button:hover,
.secondary-button:hover,
.icon-button:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-soft);
}

.text-button.danger-button {
  border-color: #ffd5cc;
  background: #fff7f5;
  color: #b42318;
}

.text-button.danger-button:hover:not(:disabled) {
  border-color: #fda29b;
  background: #fff1ee;
}

.text-button:disabled,
.secondary-button:disabled,
.icon-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.text-button:focus-visible,
.secondary-button:focus-visible,
.icon-button:focus-visible,
.login-button:focus-visible,
.nav-item:focus-visible,
.admin-tab:focus-visible,
.admin-hotel-item:focus-visible,
.admin-ops-row:focus-visible,
.admin-form input:focus-visible,
.admin-candidate-button:focus-visible {
  outline: 2px solid rgba(86, 69, 212, 0.54);
  outline-offset: 2px;
}

.dashboard-main {
  width: 100%;
  min-width: 0;
  padding: 12px 18px 20px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.dashboard-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}

.dashboard-subtitle {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge,
.mini-badge,
.date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge {
  height: 28px;
  padding: 0 11px;
  background: #eaf7ee;
  color: #176b2c;
}

.status-badge[data-state="warning"] {
  background: #fff4e8;
  color: #9a3d00;
}

.status-badge[data-state="loading"] {
  background: var(--surface);
  color: var(--steel);
}

.dashboard-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #ffd7b0;
  border-radius: var(--radius-md);
  background: #fff8f1;
  color: #8a3500;
  font-size: 13px;
}

.admin-toast-viewport {
  position: fixed;
  z-index: 80;
  top: 16px;
  right: 16px;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.admin-toast {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  color: var(--ink);
  pointer-events: auto;
  animation: admin-toast-in 160ms ease-out;
}

.admin-toast.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-toast-marker {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--steel);
}

.admin-toast.success {
  border-color: #bfe8c8;
  background: #f4fbf6;
}

.admin-toast.success .admin-toast-marker {
  background: #1f9d4c;
}

.admin-toast.error {
  border-color: #f7c0b8;
  background: #fff7f6;
}

.admin-toast.error .admin-toast-marker {
  background: #d1432f;
}

.admin-toast.info {
  border-color: #bfdbfe;
  background: #f7fbff;
}

.admin-toast.info .admin-toast-marker {
  background: #2563eb;
}

.admin-toast-content {
  min-width: 0;
}

.admin-toast-content strong {
  display: block;
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.admin-toast-content p {
  margin: 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-toast-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--steel);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.admin-toast-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

@keyframes admin-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-strip {
  min-height: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
}

.status-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 12px;
  border-right: 1px solid var(--hairline);
}

.status-cell > div {
  min-width: 0;
}

.status-cell:last-child {
  border-right: 0;
}

.status-cell p {
  margin: 0 0 4px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 500;
}

.status-cell strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot,
.risk-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-dot.normal,
.risk-dot.normal {
  background: #1aae39;
}

.status-dot.warning,
.risk-dot.warning {
  background: #dd5b00;
}

.risk-dot.empty {
  background: var(--stone);
}

.status-dot.empty {
  background: var(--stone);
}

.overview-grid,
.price-grid,
.risk-grid,
.price-summary-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.overview-grid {
  grid-template-columns: 304px minmax(0, 1fr);
  align-items: stretch;
}

.price-grid {
  grid-template-columns: 1fr;
  align-content: start;
  margin-bottom: 0;
}

.risk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-summary-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) minmax(0, 1fr);
}

.metric-card,
.risk-card,
.trend-card,
.table-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
}

.metric-card {
  min-height: 88px;
  padding: 10px 13px 9px;
}

.prices-page .dashboard-main {
  padding-top: 10px;
}

.prices-page .status-strip,
.prices-page .price-summary-grid,
.prices-page .price-trend-panel {
  margin-bottom: 8px;
}

.prices-page .status-strip {
  min-height: 40px;
}

.prices-page .status-cell {
  padding: 6px 10px;
}

.prices-page .metric-card {
  min-height: 76px;
  display: grid;
  align-content: space-between;
  gap: 5px;
  padding: 10px 14px 9px;
}

.risk-card {
  min-height: 0;
  padding: 14px 18px 12px;
}

.business-page .dashboard-app,
.business-page .dashboard-main {
  background: var(--surface);
}

.business-section {
  display: grid;
  gap: 10px;
}

.business-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.business-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.business-section-head p {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.5;
}

.business-workbench-panel {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.business-summary-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}

.business-summary-banner strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.business-summary-banner p {
  margin: 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.summary-label,
.business-status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.summary-label {
  justify-self: start;
  padding: 0 10px;
}

.business-status-tag {
  padding: 0 8px;
}

.business-summary-banner[data-status="normal"] .summary-label,
.business-platform-lane[data-status="normal"] .business-status-tag {
  background: #eaf7ee;
  color: #176b2c;
}

.business-summary-banner[data-status="attention"] .summary-label,
.business-platform-lane[data-status="attention"] .business-status-tag {
  background: #fff4d8;
  color: #8a4a00;
}

.business-summary-banner[data-status="needs_action"] .summary-label,
.business-platform-lane[data-status="needs_action"] .business-status-tag {
  background: #fff0ee;
  color: #b42318;
}

.business-summary-banner[data-status="data_error"] .summary-label,
.business-platform-lane[data-status="data_error"] .business-status-tag {
  border: 1px solid #f1a4a4;
  background: #fff7f7;
  color: #9f1f1f;
}

.business-summary-banner[data-status="no_compare"] .summary-label,
.business-platform-lane[data-status="no_compare"] .business-status-tag {
  background: var(--surface-muted);
  color: var(--slate);
}

.business-summary-banner[data-status="not_updated"] .summary-label,
.business-summary-banner[data-status="loading"] .summary-label,
.business-platform-lane[data-status="not_updated"] .business-status-tag {
  background: #eef3f8;
  color: #425466;
}

.business-lane-table {
  display: grid;
}

.business-lane-header,
.business-platform-lane {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
}

.business-lane-header {
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-soft);
  color: var(--steel);
  font-size: 12px;
  font-weight: 650;
}

.business-lane-header-groups {
  gap: 18px;
}

.business-platform-lane {
  min-height: 136px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline-soft);
}

.business-platform-lane:last-child {
  border-bottom: 0;
}

.business-platform-lane[data-platform="meituan"][data-status="not_updated"],
.business-platform-lane[data-platform="meituan"][data-status="no_compare"],
.business-platform-lane[data-platform="meituan"][data-status="data_error"] {
  background: #f7f9fc;
}

.business-summary-lane {
  min-height: 112px;
  background: var(--surface-soft);
}

.business-platform-cell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-right: 18px;
}

.business-platform-cell strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.business-lane-groups {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.72fr) minmax(0, 1.08fr);
  gap: 18px;
}

.business-lane-group {
  min-width: 0;
}

.business-lane-group h3 {
  margin: 0 0 8px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.business-lane-metrics {
  display: grid;
  gap: 7px;
}

.business-lane-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.business-lane-label {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.business-lane-label span {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-lane-label small {
  overflow: hidden;
  color: var(--steel);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-lane-value {
  min-width: 48px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.business-lane-empty {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.45;
}

.conversion-section {
  margin-top: 8px;
}

.conversion-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.conversion-mode-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.conversion-mode-button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--steel);
  font-size: 13px;
  cursor: pointer;
}

.conversion-mode-button.active {
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.conversion-date-control {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--steel);
  font-size: 12px;
}

.conversion-date-control input {
  width: 128px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.conversion-panel {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.conversion-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
}

.conversion-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.conversion-panel-head p {
  margin: 6px 0 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.45;
}

.conversion-legend {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--steel);
  font-size: 12px;
  white-space: nowrap;
}

.conversion-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.conversion-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.conversion-dot.own {
  background: #2563eb;
}

.conversion-dot.avg {
  background: #9aa4b2;
}

.conversion-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.conversion-platform-card {
  min-width: 0;
  padding: 22px 24px;
}

.conversion-platform-card + .conversion-platform-card {
  border-left: 1px solid var(--hairline);
}

.conversion-platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.conversion-platform-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.conversion-platform-head span {
  color: var(--steel);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.conversion-platform-body {
  display: grid;
  gap: 18px;
}

.conversion-group {
  display: grid;
  gap: 12px;
}

.conversion-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.conversion-group-title::after {
  height: 1px;
  flex: 1;
  background: var(--hairline);
  content: "";
}

.conversion-stages {
  display: grid;
  gap: 12px;
}

.conversion-stage {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.conversion-stage.has-rank {
  grid-template-columns: 92px minmax(0, 1fr) 82px 98px;
}

.conversion-stage-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.conversion-bars {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.conversion-bar-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  min-height: 20px;
}

.conversion-bar-name {
  color: var(--steel);
  font-size: 12px;
  white-space: nowrap;
}

.conversion-track {
  height: 14px;
  overflow: hidden;
  background: var(--surface-muted);
}

.conversion-fill {
  height: 100%;
  min-width: 0;
}

.conversion-fill.own {
  background: #2563eb;
}

.conversion-fill.avg {
  background: #9aa4b2;
}

.conversion-value {
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.conversion-ratio,
.conversion-rank {
  display: grid;
  gap: 4px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.conversion-ratio strong,
.conversion-rank strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.conversion-ratio span,
.conversion-rank span {
  color: var(--steel);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.conversion-rank {
  padding-left: 14px;
  border-left: 1px solid var(--hairline);
}

.conversion-empty {
  margin: 0;
  padding: 16px;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.45;
}

.trend-section {
  min-width: 0;
  display: flex;
}

.trend-card {
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 12px;
}

.trend-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.trend-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.trend-header p {
  margin: 5px 0 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.5;
}

.trend-actions {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.trend-controls {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.competitor-trigger-button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px 0 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--charcoal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  box-shadow: rgba(25, 25, 25, 0.05) 0 1px 3px;
}

.competitor-trigger-button::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.competitor-trigger-button:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-muted);
}

.range-button {
  min-width: 64px;
  height: 26px;
  border: 0;
  border-right: 1px solid var(--hairline);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  font-size: 13px;
}

.range-button:last-child {
  border-right: 0;
}

.range-button.active {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 600;
  box-shadow: rgba(25, 25, 25, 0.04) 0 1px 2px;
}

.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.trend-summary-item {
  min-width: 0;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.trend-summary-item p {
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--steel);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-summary-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-summary-item:first-child strong {
  color: #2f63e7;
}

.trend-summary-item:nth-child(2) strong {
  color: var(--primary);
}

.trend-summary-item:nth-child(3) strong {
  color: #dd5b00;
}

.trend-summary-item span {
  display: block;
  margin-top: 4px;
  color: var(--steel);
  font-size: 12px;
}

.trend-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
  color: var(--slate);
  font-size: 12px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-line {
  width: 22px;
  height: 0;
  display: inline-block;
  border-top: 2px solid var(--primary);
}

.legend-line.ctrip {
  border-top-color: rgba(86, 69, 212, 0.72);
  border-top-style: dashed;
}

.legend-line.meituan {
  border-top-color: rgba(221, 91, 0, 0.72);
  border-top-style: dashed;
}

.trend-channel-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--slate);
  font-size: 12px;
  white-space: nowrap;
}

.trend-chart-shell {
  position: relative;
  flex: 1 1 168px;
  min-height: 132px;
  margin-top: 4px;
  overflow: hidden;
}

.trend-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.trend-grid-line {
  stroke: var(--hairline-soft);
  stroke-width: 1;
}

.trend-axis-label {
  fill: var(--stone);
  font-size: 11px;
}

.trend-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line.total {
  stroke: #315fe8;
  stroke-width: 2.6;
}

.trend-line.ctrip {
  stroke: rgba(86, 69, 212, 0.48);
  stroke-width: 1.6;
  stroke-dasharray: 4 6;
}

.trend-line.meituan {
  stroke: rgba(221, 91, 0, 0.45);
  stroke-width: 1.6;
  stroke-dasharray: 4 6;
}

.trend-hover-point {
  fill: transparent;
  stroke: transparent;
}

.trend-empty {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--steel);
  font-size: 13px;
}

.trend-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 168px;
  padding: 10px 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  color: var(--slate);
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
  transform: translate(10px, -50%);
}

.trend-tooltip strong,
.trend-tooltip span {
  display: block;
}

.trend-tooltip strong {
  color: var(--ink);
  font-weight: 600;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.prices-page .card-title-row h2 {
  font-size: 15px;
}

.mini-badge,
.date-badge {
  min-height: 24px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--slate);
  font-size: 12px;
  border: 1px solid var(--hairline-soft);
}

.mini-badge.success {
  background: #eaf7ee;
  color: #176b2c;
  border-color: #cae8d2;
}

.mini-badge.danger {
  background: #fff0ed;
  color: #b42318;
  border-color: #ffd3cb;
}

.mini-badge.muted {
  color: var(--steel);
}

.metric-value,
.main-number {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.prices-page .metric-value {
  margin: 4px 0 2px;
  font-size: 22px;
}

.metric-value small,
.main-number small {
  margin-left: 5px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 400;
}

.prices-page .metric-value small {
  font-size: 13px;
}

.metric-copy {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  line-height: 1.5;
}

.prices-page .metric-copy {
  font-size: 12px;
  line-height: 1.35;
}

.metric-copy.success {
  color: #176b2c;
}

.metric-copy.danger {
  color: #b42318;
}

.card-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--link-blue);
  font-size: 13px;
  text-decoration: none;
}

.risk-list {
  display: grid;
  margin-top: 8px;
  border-top: 1px solid var(--hairline-soft);
}

.risk-row {
  min-height: 31px;
  display: grid;
  grid-template-columns: 8px minmax(84px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--hairline-soft);
}

.risk-row p {
  margin: 0;
  color: var(--charcoal);
  font-size: 13px;
}

.risk-row strong {
  justify-self: end;
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.empty-state {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--steel);
  font-size: 13px;
}

.table-card {
  overflow: hidden;
}

.price-trend-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 2px 0 0;
}

.trend-panel-header,
.competitor-modal-header,
.trend-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.trend-panel-header {
  padding: 0 2px;
}

.trend-panel-header h2,
.trend-card-header h3,
.competitor-modal h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.trend-panel-header h2 {
  font-size: 15px;
}

.trend-card-header h3 {
  font-size: 13px;
}

.competitor-modal h2 {
  font-size: 18px;
}

.trend-panel-header p,
.trend-card-header p,
.competitor-modal p {
  margin: 3px 0 0;
  color: var(--steel);
  font-size: 11px;
  line-height: 1.35;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(26, 26, 26, 0.24);
}

.competitor-modal {
  width: min(680px, calc(100vw - 48px));
  max-height: min(680px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--canvas);
  box-shadow: var(--shadow-frame);
}

.competitor-modal-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--hairline);
}

.competitor-actions {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.competitor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 16px 20px;
}

.competitor-option {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--charcoal);
  cursor: pointer;
  font-size: 13px;
}

.competitor-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
}

.competitor-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-exclusion {
  padding: 0 20px 14px;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.5;
}

.competitor-exclusion p {
  margin: 0 0 6px;
  color: var(--charcoal);
  font-weight: 700;
}

.competitor-exclusion ul {
  margin: 0;
  padding-left: 18px;
}

.competitor-exclusion li + li {
  margin-top: 4px;
}

.competitor-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--hairline);
}

.trend-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 8px;
}

.price-trend-card,
.rank-trend-card {
  min-height: 198px;
  padding: 9px 12px 8px;
}

.prices-page .trend-chart-shell {
  flex-basis: 122px;
  min-height: 106px;
}

.legend-line.own {
  border-top-color: #315fe8;
}

.legend-line.average {
  border-top-color: rgba(221, 91, 0, 0.72);
  border-top-style: dashed;
}

.legend-line.rank {
  border-top-color: var(--primary);
}

.trend-line.own {
  stroke: #315fe8;
  stroke-width: 2.6;
}

.trend-line.average {
  stroke: rgba(221, 91, 0, 0.72);
  stroke-width: 2.2;
  stroke-dasharray: 5 6;
}

.trend-line.rank {
  stroke: var(--primary);
  stroke-width: 2.6;
}

.table-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid var(--hairline);
}

.table-card-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.table-card-header p {
  margin: 3px 0 0;
  color: var(--steel);
  font-size: 12px;
}

.price-date-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 720px;
}

.segmented-control {
  display: inline-flex;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segment-button {
  min-width: 56px;
  border: 0;
  border-right: 1px solid var(--hairline);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  font-size: 12px;
}

.segment-button:last-child {
  border-right: 0;
}

.segment-button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.segment-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.date-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: var(--steel);
  font-size: 12px;
  white-space: nowrap;
}

.date-control select {
  min-width: 126px;
  height: 28px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--charcoal);
  font-size: 12px;
}

.date-control select:disabled {
  background: var(--surface-soft);
  color: var(--steel);
}

.date-range-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.table-scroll {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.price-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.34;
  text-align: left;
  vertical-align: middle;
}

.price-table th {
  background: var(--surface-soft);
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
}

.price-table th:first-child,
.price-table td:first-child {
  width: 68px;
  color: var(--slate);
  white-space: nowrap;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2) {
  min-width: 270px;
}

.price-table th:nth-child(3),
.price-table td:nth-child(3),
.price-table th:nth-child(4),
.price-table td:nth-child(4),
.price-table th:nth-child(5),
.price-table td:nth-child(5),
.price-table th:nth-child(6),
.price-table td:nth-child(6) {
  white-space: nowrap;
}

.price-table th:nth-child(3),
.price-table td:nth-child(3),
.price-table th:nth-child(4),
.price-table td:nth-child(4) {
  text-align: right;
}

.price-table th:nth-child(5),
.price-table td:nth-child(5),
.price-table th:nth-child(6),
.price-table td:nth-child(6) {
  color: var(--slate);
}

.price-table td:nth-child(3) {
  color: var(--ink);
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.own-hotel-row td {
  background: #f7f5ff;
  color: var(--ink);
  font-weight: 600;
}

.average-row td {
  background: #f8fafc;
  color: var(--slate);
  font-weight: 600;
}

.average-row td:first-child {
  color: var(--stone);
}

.average-row td:nth-child(2) {
  color: var(--charcoal);
}

.row-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin-left: 10px;
  padding: 0 8px;
  border: 1px solid #d8d2ff;
  border-radius: 99px;
  background: #ffffff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.table-positive {
  color: #b42318 !important;
}

.table-negative {
  color: #176b2c !important;
}

.price-change {
  display: inline-block;
  min-width: 42px;
  margin-right: 3px;
  font-weight: 700;
  text-align: right;
}

.price-change.up {
  color: #b42318;
}

.price-change.down {
  color: #176b2c;
}

.table-empty {
  margin: 16px 18px;
  padding: 18px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--steel);
  font-size: 13px;
  text-align: center;
}

.admin-main {
  min-height: 100vh;
  padding: clamp(9px, 0.9vw, 16px) clamp(14px, 1vw, 20px) 18px;
  background: var(--surface-soft);
}

.admin-page .dashboard-header {
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}

.admin-title-group {
  flex: 0 0 clamp(218px, 14.4vw, 288px);
  min-width: 198px;
}

.admin-summary-grid {
  display: grid;
  flex: 0 1 auto;
  grid-template-columns: repeat(4, clamp(94px, 6.5vw, 135px));
  gap: 7px;
  justify-content: start;
}

.admin-summary-item {
  min-height: 52px;
  padding: 7px 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
}

.admin-summary-item p {
  margin: 0;
  color: var(--steel);
  font-size: 11px;
  line-height: 1.35;
}

.admin-summary-item strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(252px, 25%) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.admin-panel-header,
.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 13px 10px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}

.admin-panel-header h2,
.admin-section-head h3,
.admin-form h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.admin-panel-header p {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.45;
}

.admin-inline-field {
  display: grid;
  gap: 6px;
  min-width: 160px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 650;
}

.admin-inline-field input,
.admin-inline-field select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-hotel-list {
  display: grid;
  gap: 7px;
  max-height: calc(100vh - 248px);
  overflow: auto;
  padding: 9px;
}

.admin-hotel-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-hotel-item:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-soft);
}

.admin-hotel-item.active {
  border-color: rgba(93, 77, 221, 0.42);
  background: #f6f4ff;
  box-shadow: inset 0 0 0 1px rgba(93, 77, 221, 0.12);
}

.admin-hotel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-hotel-top strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.admin-hotel-item p {
  margin: 5px 0 0;
  color: var(--steel);
  font-size: 12px;
}

.mini-badge.warning {
  border-color: #f0d9a7;
  background: #fff8e8;
  color: #915b00;
}

.mini-badge.loading {
  border-color: #d8d2ff;
  background: #f6f4ff;
  color: var(--primary);
}

.admin-ops-panel {
  margin: 9px 0 12px;
}

.admin-ops-table {
  min-width: 936px;
}

.admin-ops-row {
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.admin-ops-row:hover td,
.admin-ops-row.active td {
  background: var(--surface-soft);
}

.admin-ops-row td:first-child strong {
  display: block;
}

.admin-ops-row td:first-child strong {
  color: var(--ink);
  font-weight: 650;
}

.admin-row-status {
  min-height: 18px;
  margin-top: 4px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 16px;
}

.admin-ops-table td {
  white-space: nowrap;
}

.admin-ops-table .mini-badge + .mini-badge {
  margin-left: 4px;
}

.admin-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 153px;
}

.admin-row-action-button {
  height: 25px;
  padding: 0 7px;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  background: var(--canvas);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.admin-row-action-button:hover:not(:disabled),
.admin-row-action-button:focus-visible {
  border-color: rgba(84, 68, 214, 0.38);
  background: #f3f1ff;
  color: var(--accent);
}

.admin-row-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-preview-panel {
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}

.admin-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px 8px;
}

.admin-preview-metric {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--hairline-soft);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-preview-grid > .empty-state {
  grid-column: 1 / -1;
  margin-top: 0;
}

.admin-preview-metric p {
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--steel);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-preview-metric strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-preview-meta {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 12px 10px;
  color: var(--steel);
  font-size: 12px;
}

.admin-alert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 480px;
}

.admin-alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #f0d9a7;
  border-radius: 99px;
  background: #fff8e8;
  color: #7c4b00;
  font-size: 12px;
  white-space: nowrap;
}

.admin-tabs {
  display: flex;
  gap: 3px;
  margin: 10px 12px 0;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.admin-tab {
  min-width: 68px;
  height: 29px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab.active {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 650;
  box-shadow: rgba(25, 25, 25, 0.04) 0 1px 2px;
}

.admin-tab-panel {
  padding: 10px 12px 13px;
}

.admin-table-shell {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--charcoal);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: var(--surface-soft);
  color: var(--steel);
  font-size: 11px;
  font-weight: 650;
}

.admin-table tbody tr:hover td {
  background: var(--surface-soft);
}

.admin-table .table-empty {
  padding: 18px;
  background: var(--canvas);
  color: var(--steel);
  text-align: center;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-config-grid .admin-form {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.admin-collector-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
}

.admin-collector-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 12px;
}

.admin-run-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--slate);
  font-size: 12px;
}

.admin-run-banner strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
}

.admin-run-banner span {
  min-width: 260px;
  flex: 1 1 420px;
  line-height: 1.5;
}

.admin-run-banner[data-state="loading"] {
  border-color: #d8d2ff;
  background: #f6f4ff;
  color: var(--primary);
}

.admin-run-banner[data-state="success"] {
  border-color: #badfca;
  background: #f1fbf5;
  color: #24613d;
}

.admin-run-banner[data-state="warning"] {
  border-color: #f0d9a7;
  background: #fff8e8;
  color: #7c4b00;
}

.admin-collect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-collect-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
}

.admin-collect-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.admin-collect-card p {
  margin: 7px 0 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.5;
}

.admin-collect-card p[data-state="success"] {
  color: #24613d;
}

.admin-collect-card p[data-state="warning"] {
  color: #7c4b00;
}

.admin-collect-card p[data-state="loading"] {
  color: var(--primary);
}

.admin-collect-button {
  margin-top: 0;
}

.admin-config-note {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--charcoal);
  font-size: 12px;
  line-height: 1.55;
}

.admin-config-note strong {
  color: var(--ink);
  font-size: 13px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 12px;
}

.admin-form input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--charcoal);
  font-size: 13px;
}

.admin-form input:disabled {
  background: var(--surface-soft);
  color: var(--steel);
}

.admin-form input:focus {
  border-color: rgba(86, 69, 212, 0.42);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(86, 69, 212, 0.1);
}

.admin-check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--charcoal) !important;
}

.admin-check-row input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--primary);
}

.form-help {
  color: var(--steel);
  font-size: 12px;
  line-height: 1.45;
}

.form-help-block {
  margin: -2px 0 2px;
}

.admin-detect-button {
  width: 100%;
  min-height: 34px;
}

.admin-detect-result {
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--steel);
  font-size: 12px;
  line-height: 1.5;
}

.admin-detect-result[data-state="success"] {
  border-color: #badfca;
  background: #f1fbf5;
  color: #24613d;
}

.admin-detect-result[data-state="warning"] {
  border-color: #f0d9a7;
  background: #fff8e8;
  color: #7c4b00;
}

.admin-detect-result p {
  margin: 0;
}

.ctrip-public-module {
  --ctrip-panel: oklch(98.6% 0.006 83);
  --ctrip-panel-strong: oklch(96.2% 0.012 82);
  --ctrip-line: oklch(89.5% 0.013 82);
  --ctrip-text-muted: oklch(47% 0.018 75);
  --ctrip-accent: oklch(45% 0.13 250);
  --ctrip-accent-soft: oklch(96.5% 0.026 250);
  --ctrip-success-soft: oklch(96.8% 0.035 152);
  --ctrip-warning-soft: oklch(96.5% 0.045 82);
  --admin-type-title: 22px;
  --admin-type-section: 15px;
  --admin-type-body: 13px;
  --admin-type-small: 12px;
  --admin-weight-title: 600;
  --admin-weight-strong: 600;
  display: grid;
  gap: 16px;
  font-size: var(--admin-type-body);
}

.ctrip-public-header {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(620px, 1.14fr);
  align-items: end;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--ctrip-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--ctrip-panel), var(--canvas));
  box-shadow: var(--shadow-card);
}

.ctrip-public-title {
  max-width: 520px;
  min-width: 220px;
}

.ctrip-public-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 7px;
  padding: 0 8px;
  border: 1px solid oklch(85% 0.035 250);
  border-radius: 999px;
  background: var(--ctrip-accent-soft);
  color: var(--ctrip-accent);
  font-size: var(--admin-type-small);
  font-weight: var(--admin-weight-strong);
}

.ctrip-public-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--admin-type-title);
  font-weight: var(--admin-weight-title);
  line-height: 1.2;
}

.ctrip-public-module .dashboard-subtitle,
.ctrip-public-module .admin-panel-header p,
.ctrip-public-module .form-help {
  color: var(--ctrip-text-muted);
  font-size: var(--admin-type-body);
  line-height: 1.45;
}

.ctrip-public-module .admin-panel-header h2 {
  font-size: var(--admin-type-section);
  font-weight: var(--admin-weight-title);
}

.ctrip-public-toolbar {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(150px, 0.76fr) minmax(220px, 1fr) minmax(220px, 0.9fr);
  grid-template-areas:
    "hotel profile actions"
    "options options actions";
  column-gap: 10px;
  row-gap: 8px;
  align-items: end;
}

.ctrip-public-toolbar > label:first-child {
  grid-area: hotel;
}

.ctrip-public-toolbar > label:nth-child(2) {
  grid-area: profile;
}

.ctrip-public-toolbar label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--ctrip-text-muted);
  font-size: var(--admin-type-small);
  font-weight: var(--admin-weight-strong);
}

.ctrip-public-run-options {
  grid-area: options;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--ctrip-line);
  border-radius: 6px;
  background: #f8fafc;
}

.ctrip-public-actions {
  grid-area: actions;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.ctrip-public-toolbar .ctrip-public-run-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: var(--admin-type-small);
  font-weight: var(--admin-weight-strong);
  white-space: nowrap;
}

.ctrip-public-run-options input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.ctrip-public-toolbar input,
.ctrip-public-toolbar select,
.ctrip-public-target-table input,
.ctrip-public-target-table select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--ctrip-line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.ctrip-public-toolbar input:focus-visible,
.ctrip-public-toolbar select:focus-visible,
.ctrip-public-target-table input:focus-visible,
.ctrip-public-target-table select:focus-visible {
  border-color: oklch(64% 0.11 250);
  outline: 0;
  box-shadow: 0 0 0 3px oklch(92% 0.035 250);
}

.ctrip-public-toolbar .login-button,
.ctrip-public-toolbar .secondary-button,
.ctrip-public-module .secondary-button {
  width: auto;
  min-width: 112px;
  margin-top: 0;
  font-size: var(--admin-type-body);
  font-weight: var(--admin-weight-strong);
  white-space: nowrap;
}

.ctrip-public-toolbar .login-button:disabled {
  background: var(--surface-muted);
  color: var(--steel);
  opacity: 1;
}

.ctrip-public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
  gap: 10px;
  align-items: start;
}

.ctrip-public-main {
  display: grid;
  gap: 14px;
}

.ctrip-public-state-panel {
  background: var(--ctrip-panel);
}

.ctrip-public-status {
  min-height: 76px;
  display: grid;
  align-items: center;
  padding: 12px 14px;
}

.ctrip-public-stage {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid oklch(86% 0.037 82);
  border-radius: 8px;
  background: var(--ctrip-warning-soft);
}

.ctrip-public-stage strong {
  color: oklch(36% 0.08 72);
  font-size: 13px;
  font-weight: var(--admin-weight-strong);
}

.ctrip-public-stage span {
  color: oklch(43% 0.043 72);
  font-size: 12px;
  line-height: 1.5;
}

.ctrip-public-summary {
  display: grid;
  margin: 9px;
  border: 1px solid var(--ctrip-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--canvas);
}

.ctrip-public-summary > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: var(--admin-type-small);
}

.ctrip-public-summary > div[data-summary="批次号"] {
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  align-items: start;
  padding: 11px 14px 12px;
  background: var(--surface-soft);
}

.ctrip-public-summary > div[data-summary="批次号"] span {
  justify-self: start;
  color: var(--ctrip-text-muted);
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.ctrip-public-summary > div[data-summary="批次号"] strong {
  align-self: start;
  overflow: visible;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ctrip-public-summary > div:last-child {
  border-bottom: 0;
}

.collection-schedule-module {
  display: grid;
  gap: 16px;
}

.collection-schedule-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
}

.collection-schedule-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.collection-schedule-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.collection-scheduler-status {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--muted);
  font-size: var(--admin-type-small);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.collection-scheduler-status.is-running {
  border-color: rgba(21, 128, 61, 0.22);
  background: #f0fdf4;
  color: #166534;
}

.collection-scheduler-status.is-paused {
  border-color: rgba(180, 83, 9, 0.24);
  background: #fffbeb;
  color: #92400e;
}

.collection-schedule-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(440px, 1.12fr);
  gap: 16px;
  align-items: start;
}

.collection-schedule-form {
  padding: 14px;
  gap: 13px;
}

.collection-schedule-form label {
  color: var(--slate);
  font-weight: 560;
}

.collection-schedule-form input,
.collection-schedule-form select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
}

.collection-schedule-form select {
  appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.collection-schedule-form input:disabled,
.collection-schedule-form select:disabled {
  background-color: var(--surface-soft);
  color: var(--steel);
}

.collection-schedule-form input:focus,
.collection-schedule-form select:focus {
  border-color: rgba(86, 69, 212, 0.42);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(86, 69, 212, 0.1);
}

.schedule-window-field {
  display: grid;
  gap: 8px;
}

.schedule-window-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 560;
}

.schedule-add-window-button {
  height: 30px;
  padding: 0 10px;
}

.schedule-window-editor {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-soft);
}

.schedule-window-rows {
  display: grid;
  gap: 8px;
}

.schedule-window-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
}

.schedule-window-row label {
  display: grid;
  gap: 4px;
  color: var(--steel);
  font-size: 11px;
  font-weight: 560;
}

.schedule-window-row input[type="time"] {
  height: 34px;
  padding: 0 9px;
  font-variant-numeric: tabular-nums;
}

.schedule-window-separator {
  align-self: center;
  color: var(--steel);
  font-size: 12px;
}

.schedule-window-remove {
  height: 34px;
  padding: 0 9px;
  border: 1px solid #ffd5cc;
  border-radius: 8px;
  background: #fff7f5;
  color: #b42318;
  cursor: pointer;
  font-size: 12px;
  font-weight: 560;
}

.schedule-window-remove:hover {
  border-color: #fda29b;
  background: #fff1ee;
}

.schedule-window-remove:focus-visible {
  outline: 2px solid rgba(180, 35, 24, 0.28);
  outline-offset: 2px;
}

.collection-schedule-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.collection-schedule-options .admin-check-row {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface-soft);
}

.collection-schedule-options .admin-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  padding: 0;
}

.collection-schedule-options .admin-check-row span {
  min-width: 0;
  line-height: 1.25;
}

.collection-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.collection-scope-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--hairline-soft);
  border-radius: 8px;
  background: var(--surface-soft);
}

.collection-scope-row {
  min-height: 30px;
  padding: 0;
}

.collection-schedule-table td:first-child strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.table-subtext {
  margin: 3px 0 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.35;
}

.ctrip-public-summary span {
  color: var(--ctrip-text-muted);
}

.ctrip-public-summary strong {
  min-width: 0;
  justify-self: start;
  overflow: hidden;
  color: var(--ink);
  font-weight: var(--admin-weight-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctrip-public-summary .mini-badge {
  min-height: 22px;
}

.ctrip-public-target-table th:first-child,
.ctrip-public-target-table td:first-child {
  width: 52px;
  text-align: center;
}

.ctrip-public-target-table {
  min-width: 920px;
}

.ctrip-public-target-table th,
.ctrip-public-target-table td {
  padding: 5px 7px;
}

.ctrip-public-target-table th,
.ctrip-public-result-table th {
  font-size: var(--admin-type-small);
  font-weight: var(--admin-weight-strong);
  white-space: nowrap;
}

.ctrip-public-target-table th:nth-child(2),
.ctrip-public-target-table td:nth-child(2) {
  width: 74px;
}

.ctrip-public-target-table th:nth-child(3),
.ctrip-public-target-table td:nth-child(3) {
  min-width: 220px;
}

.ctrip-public-target-table th:nth-child(4),
.ctrip-public-target-table td:nth-child(4) {
  width: 128px;
}

.ctrip-public-target-table th:nth-child(5),
.ctrip-public-target-table td:nth-child(5) {
  min-width: 250px;
}

.ctrip-public-target-table th:nth-child(6),
.ctrip-public-target-table td:nth-child(6) {
  width: 58px;
}

.ctrip-public-target-table th:nth-child(7),
.ctrip-public-target-table td:nth-child(7) {
  width: 118px;
}

.ctrip-public-target-table th:last-child,
.ctrip-public-target-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--canvas);
  box-shadow: -1px 0 0 var(--hairline-soft);
}

.ctrip-public-target-table th:last-child {
  z-index: 3;
  background: var(--surface-soft);
}

.ctrip-public-target-table tbody tr[data-target-type="served"] td:last-child {
  background: var(--ctrip-accent-soft);
}

.ctrip-public-target-table tbody tr[data-target-type="served"]:hover td:last-child {
  background: oklch(94.5% 0.032 250);
}

.ctrip-public-target-table input[type="checkbox"] {
  min-height: auto;
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--primary);
}

.ctrip-public-target-table input,
.ctrip-public-target-table select {
  width: 100%;
  height: 30px;
  min-height: 30px;
  padding: 0 8px;
  font-size: var(--admin-type-small);
}

.ctrip-public-target-table .ctrip-public-name-cell input {
  min-width: 180px;
  font-weight: var(--admin-weight-strong);
}

.ctrip-public-target-table tbody tr[data-target-type="served"] td {
  background: var(--ctrip-accent-soft);
}

.ctrip-public-target-table tbody tr[data-target-type="served"]:hover td {
  background: oklch(94.5% 0.032 250);
}

.ctrip-public-target-table input:disabled,
.ctrip-public-target-table select:disabled {
  background: var(--surface);
  color: var(--steel);
}

.ctrip-public-target-table .admin-row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.ctrip-public-target-table .admin-row-action-button {
  height: 28px;
  padding: 0 8px;
}

.ctrip-public-icon-action {
  width: 28px;
  padding: 0;
  font-size: var(--admin-type-body);
  line-height: 1;
}

.ctrip-public-module .admin-row-action-button,
.ctrip-public-module .mini-badge {
  font-size: var(--admin-type-small);
  font-weight: var(--admin-weight-strong);
}

.admin-row-action-button.danger {
  color: #b42318;
}

.ctrip-public-result-panel {
  min-width: 0;
}

.ctrip-public-result-table {
  min-width: 860px;
}

.ctrip-public-result-table td:nth-child(2),
.ctrip-public-result-table td:nth-child(4),
.ctrip-public-result-table td:nth-child(5),
.ctrip-public-result-table td:nth-child(7) {
  font-variant-numeric: tabular-nums;
}

.ctrip-public-result-table td[data-cell="price"] {
  color: var(--ink);
  font-weight: var(--admin-weight-strong);
}

.ctrip-public-result-table td[data-cell="source"] {
  color: var(--ctrip-accent);
  font-weight: var(--admin-weight-strong);
}

.ctrip-public-result-table td[data-cell="hotel"] {
  max-width: 220px;
  color: var(--ink);
  font-weight: var(--admin-weight-strong);
}

.admin-candidate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-candidate-button {
  max-width: 100%;
  min-height: 30px;
  padding: 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgba(29, 31, 38, 0.24);
}

.admin-drawer-panel {
  width: min(420px, 100vw);
  height: 100%;
  overflow-y: auto;
  padding: 0 18px 18px;
  border-left: 1px solid var(--hairline);
  background: var(--canvas);
  box-shadow: -12px 0 32px rgba(31, 35, 48, 0.12);
}

.admin-drawer-panel .admin-panel-header {
  margin: 0 -18px 16px;
}

@media (max-width: 980px) {
  .login-page {
    padding: 24px;
  }

  .login-frame {
    width: min(520px, calc(100vw - 48px));
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .visual-panel {
    display: none;
  }

  .form-panel {
    padding: 36px;
  }

  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid,
  .admin-layout,
  .admin-config-grid,
  .admin-collect-grid,
  .admin-preview-grid,
  .collection-schedule-grid,
  .collection-scope-grid,
  .ctrip-public-grid {
    grid-template-columns: 1fr;
  }

  .ctrip-public-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ctrip-public-title {
    max-width: none;
  }

  .ctrip-public-toolbar {
    flex: 0 1 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "hotel profile"
      "options actions";
  }

  .ctrip-public-actions {
    justify-content: flex-end;
  }

  .admin-page .dashboard-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-title-group {
    flex-basis: 100%;
  }

  .admin-page .admin-summary-grid {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-main {
    padding: 14px;
  }

  .admin-summary-item {
    min-height: 54px;
  }

  .admin-hotel-list {
    max-height: none;
  }

  .admin-tabs {
    overflow-x: auto;
  }

  .admin-tab {
    flex: 1 0 max-content;
    min-width: 84px;
  }

  .admin-panel-header,
  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-alert-list {
    max-width: none;
  }

  .side-nav {
    position: static;
    height: auto;
    min-height: 0;
    gap: 12px;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .dashboard-main {
    width: 100%;
    padding: 14px;
  }

  .prices-page .dashboard-main {
    padding: 12px;
  }

  .overview-grid,
  .price-grid,
  .risk-grid,
  .price-summary-grid,
  .trend-summary-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .business-summary-banner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .business-summary-banner p {
    white-space: normal;
  }

  .business-lane-header {
    display: none;
  }

  .business-platform-lane {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .business-platform-cell {
    align-items: center;
    padding-right: 0;
  }

  .business-lane-groups {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .business-lane-label span,
  .business-lane-label small {
    white-space: normal;
  }

  .business-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .conversion-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .conversion-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .conversion-platforms {
    grid-template-columns: 1fr;
  }

  .conversion-platform-card + .conversion-platform-card {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .price-grid {
    margin-bottom: 0;
  }

  .trend-header {
    flex-direction: column;
  }

  .trend-panel-header,
  .competitor-modal-header,
  .trend-card-header {
    flex-direction: column;
  }

  .trend-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .trend-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .trend-actions {
    width: 100%;
  }

  .range-button {
    flex: 1;
  }

  .modal-backdrop {
    align-items: end;
    padding: 16px;
  }

  .competitor-modal {
    width: 100%;
    max-height: calc(100vh - 32px);
  }

  .competitor-modal-actions {
    flex-wrap: wrap;
  }

  .trend-chart-grid {
    grid-template-columns: 1fr;
  }

  .prices-page .status-strip {
    grid-template-columns: 1fr;
  }

  .prices-page .metric-card {
    min-height: 74px;
  }

  .prices-page .price-trend-panel {
    padding-top: 0;
  }

  .prices-page .price-trend-card,
  .prices-page .rank-trend-card {
    min-height: 184px;
  }

  .prices-page .table-card-header {
    flex-direction: column;
  }

  .prices-page .price-date-controls {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .prices-page .segmented-control {
    flex: 1 1 190px;
  }

  .prices-page .segment-button {
    flex: 1;
  }

  .prices-page .date-control,
  .prices-page .date-range-controls {
    width: 100%;
  }

  .prices-page .date-range-controls .date-control {
    flex: 1 1 150px;
  }

  .prices-page .date-control select {
    flex: 1;
    min-width: 0;
  }

  .prices-page .price-table {
    min-width: 780px;
  }

  .status-cell {
    min-height: 44px;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .status-cell:last-child {
    border-bottom: 0;
  }

  .dashboard-page .side-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .dashboard-page .side-subtitle {
    margin-bottom: 8px;
  }

  .dashboard-page .side-hotel-card {
    min-height: 50px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .dashboard-page .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .admin-page .nav-list {
    grid-template-columns: 1fr;
  }

  .dashboard-page .nav-item {
    min-height: 36px;
    justify-content: center;
    padding: 0 6px;
    text-align: center;
  }

  .dashboard-page .side-account {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    padding-top: 10px;
  }

  .dashboard-page .side-account span,
  .dashboard-page .side-account p {
    margin: 0;
  }

  .dashboard-page .side-account .text-button {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .dashboard-page .dashboard-header {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .dashboard-page .header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-page .dashboard-subtitle {
    max-width: 220px;
  }

  .dashboard-page .status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 50px;
  }

  .dashboard-page .status-cell {
    min-height: 50px;
    gap: 6px;
    padding: 6px 8px;
    border-right: 1px solid var(--hairline);
    border-bottom: 0;
  }

  .dashboard-page .status-cell:last-child {
    border-right: 0;
  }

  .dashboard-page .status-cell p {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .dashboard-page .status-cell strong {
    font-size: 12px;
  }

  .dashboard-page .trend-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-page .trend-summary-item {
    min-height: 54px;
    padding: 8px;
  }

  .dashboard-page .trend-summary-item p,
  .dashboard-page .trend-summary-item span {
    font-size: 11px;
  }

  .dashboard-page .trend-summary-item strong {
    font-size: 16px;
  }

  .business-page .business-freshness {
    grid-template-columns: 1fr;
  }

  .business-page .business-freshness .status-cell {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .business-page .business-freshness .status-cell:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .collection-schedule-header {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-schedule-actions {
    width: 100%;
  }

  .collection-schedule-actions .secondary-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .schedule-window-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-window-separator {
    display: none;
  }

  .schedule-window-remove {
    width: 100%;
  }

  .collection-schedule-options {
    grid-template-columns: 1fr;
  }

  .business-page .dashboard-header {
    flex-direction: column;
  }

  .business-page .header-actions,
  .business-page .header-actions .secondary-button {
    width: 100%;
  }

  .business-page .header-actions {
    align-items: stretch;
  }

  .conversion-controls,
  .conversion-date-control,
  .conversion-date-control input {
    width: 100%;
  }

  .conversion-mode-tabs {
    width: 100%;
  }

  .conversion-mode-button {
    flex: 1;
  }

  .conversion-stage {
    grid-template-columns: 1fr;
  }

  .conversion-stage.has-rank {
    grid-template-columns: 1fr;
  }

  .conversion-ratio,
  .conversion-rank {
    text-align: left;
  }

  .conversion-rank {
    padding-left: 0;
    border-left: 0;
  }

  .prices-page .dashboard-header {
    flex-direction: column;
  }

  .prices-page .header-actions,
  .prices-page .header-actions .secondary-button {
    width: 100%;
  }

  .prices-page .header-actions {
    align-items: stretch;
  }

  .prices-page .status-strip,
  .prices-page .price-summary-grid,
  .prices-page .price-trend-panel {
    margin-bottom: 8px;
  }

  .prices-page .table-card-header {
    padding: 10px;
  }

  .prices-page .price-table th,
  .prices-page .price-table td {
    padding: 7px 9px;
  }

  .prices-page .price-table th:nth-child(2),
  .prices-page .price-table td:nth-child(2) {
    min-width: 220px;
  }

  .prices-page .price-change {
    min-width: 38px;
  }

  .admin-page .dashboard-header {
    flex-direction: column;
  }

  .ctrip-public-header {
    padding: 12px;
  }

  .ctrip-public-header h1 {
    font-size: 21px;
  }

  .ctrip-public-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hotel"
      "profile"
      "options"
      "actions";
  }

  .ctrip-public-actions {
    width: 100%;
  }

  .ctrip-public-toolbar .login-button,
  .ctrip-public-toolbar .secondary-button {
    width: 100%;
  }

  .admin-page .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .dashboard-subtitle {
    max-width: none;
  }

  .admin-page .header-actions,
  .admin-page .header-actions .secondary-button {
    width: 100%;
  }

  .admin-page .header-actions {
    align-items: stretch;
  }

  .admin-page .secondary-button,
  .admin-page .text-button,
  .admin-page .login-button,
  .admin-page .admin-tab {
    min-height: 40px;
  }

  .admin-drawer-panel {
    width: 100vw;
  }
}
