/* 携程竞品监控台 — 简洁中式后台 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #7a8699;
  --line: #e6ebf0;
  --line-strong: #d5dde5;
  --brand: #0f8a7c;
  --brand-2: #0a6f64;
  --brand-soft: #e8f6f3;
  --accent: #c9953a;
  --ok: #2a9a5b;
  --bad: #d6453d;
  --warn: #c4871a;
  --sidebar: #16343a;
  --sidebar-2: #1c4249;
  --shadow: 0 1px 2px rgba(22, 52, 58, 0.04), 0 8px 24px rgba(22, 52, 58, 0.05);
  --radius: 10px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef6f4 0%, var(--bg) 220px, var(--bg) 100%);
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: stretch;
}

/* —— Sidebar —— */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: #fff;
  padding: 18px 12px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar .brand {
  padding: 8px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}
.sidebar .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8fc9c0;
  margin-bottom: 8px;
}
.sidebar .brand-mark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd6c3;
}
.sidebar h1 {
  font-size: 17px;
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b7d4d0;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.sidebar nav a .nav-ico {
  width: 18px;
  text-align: center;
  opacity: 0.8;
  font-size: 12px;
}
.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
}
.sidebar nav a.active {
  background: rgba(15, 138, 124, 0.35);
  color: #fff;
  text-decoration: none;
  box-shadow: inset 3px 0 0 #3dd6c3;
}
.sidebar .nav-group {
  margin: 14px 10px 6px;
  font-size: 11px;
  color: #6a9a94;
  letter-spacing: 0.06em;
}
.mobile-topbar,
.nav-overlay,
.sidebar-close {
  display: none;
}

/* —— Content —— */
.content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 22px clamp(16px, 2vw, 36px) 40px;
}

.page-head {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.page-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.page-head .muted,
.page-desc,
.card > p.muted,
.card > .muted {
  margin: 0;
  max-width: none;
  width: 100%;
  line-height: 1.7;
}
.page-head code,
code {
  font-size: 12px;
  background: var(--brand-soft);
  color: var(--brand-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: Consolas, "Cascadia Mono", monospace;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card > h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  padding: 0 0 10px 10px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  color: var(--text);
  line-height: 1.2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  width: 100%;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  box-shadow: var(--shadow);
}
.stat .n {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-2);
  line-height: 1.1;
}
.stat .l {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }

table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 10px;
  text-align: left;
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  background: #f7faf9;
  white-space: nowrap;
}
th:first-child { border-radius: 8px 0 0 0; }
th:last-child { border-radius: 0 8px 0 0; }
tr:hover td { background: #f7fbfa; }
tbody tr:last-child td { border-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 72px;
  background: var(--brand);
  color: #fff !important;
  border: 0;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none !important;
  box-shadow: none;
  transition: background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-2); filter: none; box-shadow: none; }
.btn:active { transform: none; opacity: 0.92; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.secondary {
  background: #fff;
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
}
.btn.secondary:hover { background: #f5f8f7; border-color: #c5d0d8; }
.btn.danger {
  background: var(--bad);
}
.btn.danger:hover { background: #b93a33; }
.btn.small { padding: 4px 10px; font-size: 12px; min-width: 0; border-radius: 5px; }

form .row { margin-bottom: 12px; }
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 500;
}

input[type=text], input[type=number], input[type=time], input[type=password],
input[type=email], input[type=date], select, textarea {
  width: 100%;
  max-width: none;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  min-height: 36px;
  box-sizing: border-box;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type=password] {
  font-family: var(--font);
  letter-spacing: 0.06em;
}
input[type=password]::-ms-reveal,
input[type=password]::-ms-clear { display: none; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(15, 138, 124, 0.12);
}
textarea {
  min-height: 120px;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
}

/* 表单：字段多列，操作区左对齐紧凑按钮 */
.form-grid,
.cmp-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
  width: 100%;
}
.form-grid > .row,
.cmp-form > .row {
  margin-bottom: 0;
  min-width: 0;
}
.form-grid > .row-full,
.form-grid > .row-times,
.form-grid > .form-actions,
.form-grid > .actions,
.form-grid > .field-section,
.form-grid > p,
.form-grid > .hotel-opts,
.form-grid > #hotel-params,
.form-grid > #flight-params,
.cmp-form > .form-actions,
.cmp-form > .actions,
.cmp-form > p {
  grid-column: 1 / -1;
}

/* 未包进 form-actions 的裸按钮：绝不拉满整行 */
.form-grid > button.btn,
.form-grid > a.btn,
.form-grid > .btn,
.cmp-form > button.btn,
.cmp-form > a.btn,
.cmp-form > .btn {
  grid-column: auto;
  justify-self: start;
  width: auto;
  max-width: max-content;
}

.form-grid > #hotel-params,
.form-grid > #flight-params {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
  padding: 12px 14px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.form-grid > #hotel-params > .row,
.form-grid > #flight-params > .row {
  margin-bottom: 0;
  min-width: 0;
}
.form-grid > #hotel-params > .hotel-opts,
.form-grid > #hotel-params > p,
.form-grid > #flight-params > p,
.form-grid > #flight-params > .row-full {
  grid-column: 1 / -1;
}

.origin-check-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.origin-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
  width: 100%;
}
.origin-checks .check {
  align-items: center;
}
.origin-checks .check .muted {
  display: block;
  font-size: 12px;
  margin-top: 1px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.form-actions .btn {
  width: auto;
  flex: 0 0 auto;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.actions > input[type=text],
.actions > input[type=number],
.actions > select {
  width: auto;
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 280px;
}

.flash {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  font-size: 13.5px;
}
.flash.ok { background: #e9f8ef; color: var(--ok); border-color: #c6ebd4; }
.flash.err { background: #fdeceb; color: var(--bad); border-color: #f2c1bc; }

.muted { color: var(--muted); font-size: 13px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand-2);
}
.badge.ok { background: #e9f8ef; color: var(--ok); }
.badge.bad { background: #fdeceb; color: var(--bad); }
.badge.warn { background: #fff6e5; color: var(--warn); }

/* 携程账号安全登录 */
.account-login-card {
  position: relative;
  overflow: hidden;
}
.security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #c9e5df;
  border-radius: 8px;
  background: #f2faf8;
  color: #365b56;
  font-size: 13px;
  line-height: 1.65;
}
.security-note strong {
  flex: 0 0 auto;
  color: var(--brand-2);
}
.login-start-form {
  display: flex;
  align-items: end;
  gap: 12px;
  max-width: 760px;
}
.login-start-form .row {
  flex: 1 1 auto;
  margin: 0;
}
.login-start-form .btn {
  flex: 0 0 auto;
  min-height: 36px;
}
.login-session-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.login-session-list:empty { display: none; }
.login-session {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}
.login-session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.login-session.active {
  border-color: #b8ddd6;
  background: #f2faf8;
}
.login-session.success {
  border-color: #bfe4cd;
  background: #f0faf4;
}
.login-session.failed,
.login-session.expired {
  border-color: #edc4c1;
  background: #fff6f5;
}
.login-session.cancelled { background: #f7f8f9; }
.login-session-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.login-session-main strong { font-size: 13.5px; }
.login-session-message {
  margin: 3px 0 0;
  line-height: 1.45;
}
.login-embed {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px 4px;
  border-top: 1px dashed #d5e6e2;
}
.login-embed-stage {
  position: relative;
  min-width: 220px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(22, 52, 58, 0.06);
}
.login-embed-frame {
  display: block;
  max-width: min(100%, 400px);
  max-height: 460px;
  width: auto;
  height: auto;
  border-radius: 6px;
}
.login-embed-placeholder {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 48px 16px;
}
.login-embed-hint {
  margin: 0;
  text-align: center;
}
.login-embed[hidden],
.login-cancel-btn[hidden],
.login-embed-frame[hidden],
.login-embed-placeholder[hidden] {
  display: none !important;
}
.login-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid #bfddd8;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: loginSpin .8s linear infinite;
}
@keyframes loginSpin { to { transform: rotate(360deg); } }
.login-result-mark {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}
.login-session.success .login-result-mark { background: var(--ok); }
.login-session.failed .login-result-mark { background: var(--bad); }
.manual-cookie-card {
  padding-top: 14px;
}
.manual-cookie-card summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}
.manual-cookie-card[open] summary { margin-bottom: 14px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.filter-bar input[type=search],
.filter-bar input[type=text] {
  flex: 1 1 240px;
  max-width: 420px;
}
.hotel-combo {
  position: relative;
}
.hotel-combo > input[type="text"],
.hotel-combo > input[type="search"] {
  width: 100%;
  padding-right: 36px;
  box-sizing: border-box;
}
.combo-caret {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
}
.combo-list {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 40, 46, 0.14);
}
.combo-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
}
.combo-item:hover,
.combo-item.is-active {
  background: #eef8f5;
}
.combo-empty {
  padding: 10px 12px;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  width: 100%;
}
.check {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  margin: 0;
  color: var(--text);
  cursor: pointer;
}
.check:hover { border-color: #9dcdc4; background: #f7fcfa; }
.check input { margin-top: 2px; }

.field-section {
  margin: 12px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}
.field-section h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-2);
}

.parse-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.parse-row input[type=text] {
  flex: 1;
  width: auto;
}
.parse-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.parse-ok { color: var(--ok) !important; }
.parse-err { color: var(--bad) !important; }
.parse-warn { color: var(--warn) !important; }
.parse-pending { color: var(--brand) !important; }

.slot-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  width: 100%;
}
.slot-pick {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}
.slot-pick:hover { border-color: #9dcdc4; }
.slot-pick input { margin: 0 0 4px; }
.slot-pick.on, .slot-pick:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.slot-title { font-weight: 600; font-size: 13.5px; color: var(--text); }

.delta-up { color: var(--ok); font-weight: 600; }
.delta-down { color: var(--bad); font-weight: 600; }

.hotel-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  width: 100%;
}
.hotel-opts .check { width: 100%; }

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.time-slot {
  display: flex;
  gap: 6px;
  align-items: center;
}
.time-slot input[type=time] {
  width: 140px;
  max-width: 140px;
}
#time-add { margin-top: 8px; }

.progress-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 12px;
}
.progress-toolbar .muted { font-size: 12px; }
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 0 0 10px 0;
  border-bottom: 1px solid var(--line);
}
.card-title-row h2 {
  margin: 0;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 3px solid var(--brand);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.card-title-row .progress-toolbar {
  margin: 0;
}
.batch-range-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.batch-range-form label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.batch-range-form input[type=date] {
  width: 150px;
  min-height: 32px;
  padding: 4px 8px;
}
.export-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.export-toolbar-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.export-toolbar label,
.export-toolbar-form label {
  display: inline;
  margin: 0;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.export-toolbar select,
.export-toolbar-form select {
  width: auto;
  min-width: 132px;
  max-width: 200px;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12.5px;
}
.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
#export-runs-json { display: none !important; }
.run-combo {
  position: relative;
  width: 100%;
  min-width: 0;
}
.run-combo.open { z-index: 40; }
.run-combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 41;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(16, 40, 46, 0.16);
}
.run-combo-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
}
.run-combo-item:hover,
.run-combo-item.active { background: #eef7f5; }
.run-combo-more {
  color: var(--brand-2);
  font-weight: 600;
  border-top: 1px solid var(--line);
  text-align: center;
}
.run-combo-empty {
  padding: 10px 11px;
  font-size: 12.5px;
  color: var(--muted);
}

.job-live {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f8fbfa;
  border-radius: 8px;
  min-height: 42px;
}
.job-live.job-live-active {
  border-color: #f0d9a8;
  background: #fffaf0;
}
.job-live-empty { margin: 0; }
.job-live-cancel { margin-top: 10px; }
.job-live-item + .job-live-item { margin-top: 10px; }
.job-live-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.job-live-msg { margin: 6px 0 0; font-size: 12.5px; }
.job-queue { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e6d7b8; }
.job-queue-title { margin: 0 0 8px; }
.job-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
}
.job-queue-item form { margin: 0; }

.progress-bar {
  width: 100%;
  max-width: min(480px, 100%);
  height: 8px;
  background: #e8eef0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .3s ease;
}
.progress-inline {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.progress-inline .progress-bar { max-width: 160px; height: 6px; }

.batch-code {
  font-weight: 600;
  color: var(--brand-2);
  text-decoration: none !important;
}
a.batch-code:hover { text-decoration: underline !important; }

.table-scroll {
  overflow-x: auto;
  width: 100%;
  border-radius: 8px;
}
.table-scroll table { min-width: 100%; }

.card > table,
.card > .table-scroll { width: 100%; }

tr.row-active td { background: #eef8f5; }

@media (max-width: 1200px) {
  .form-grid,
  .cmp-form,
  .form-grid > #hotel-params,
  .form-grid > #flight-params {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  html { -webkit-text-size-adjust: 100%; }
  .content { padding: 12px 12px calc(28px + env(safe-area-inset-bottom)); }
  .page-head h2 { font-size: 20px; }
  .card { padding: 14px 12px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .form-grid,
  .cmp-form,
  .form-grid > #hotel-params,
  .form-grid > #flight-params {
    grid-template-columns: 1fr;
  }
  .login-start-form {
    align-items: stretch;
    flex-direction: column;
  }
  .login-start-form .btn { width: 100%; }
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 70;
    min-height: 48px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: #16343a;
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .mobile-title { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 18px;
    background: #fff;
    border-radius: 2px;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(10, 22, 26, 0.48);
  }
  body.nav-open .nav-overlay { display: block; }
  body.nav-open { overflow: hidden; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 86vw);
    height: 100vh;
    height: 100dvh;
    z-index: 90;
    padding-top: calc(12px + env(safe-area-inset-top));
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: none;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-close {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: transparent;
    color: #b7d4d0;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
  }
  .sidebar nav a { min-height: 42px; padding: 10px 12px; }
  .card > table,
  .table-scroll table { min-width: 640px; }
  .table-scroll { -webkit-overflow-scrolling: touch; }
  input[type=text], input[type=number], input[type=time], input[type=password],
  input[type=email], input[type=date], select, textarea {
    font-size: 16px;
    min-height: 42px;
  }
  .btn { min-height: 42px; padding: 10px 16px; }
  .btn.small { min-height: 36px; }
  .form-actions .btn,
  .login-start-form .btn { width: 100%; max-width: none; }
  .actions > input[type=text],
  .actions > input[type=number],
  .actions > select {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
  }
  .export-toolbar,
  .export-toolbar-form,
  .batch-range-form {
    width: 100%;
  }
  .export-toolbar select,
  .export-toolbar-form select,
  .batch-range-form input[type=date] {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .login-session-top { flex-direction: column; align-items: stretch; }
  .login-embed-stage {
    min-width: 0;
    width: 100%;
    max-width: 360px;
  }
  .login-embed-frame { max-width: 100%; width: 100%; }
  .filter-bar input[type=search],
  .filter-bar input[type=text] {
    flex: 1 1 100%;
    max-width: none;
  }
  .time-slot input[type=time] { width: 100%; max-width: none; }
}

/* —— 最低价监测大屏 —— */
.board {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(61, 214, 195, 0.16), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(201, 149, 58, 0.12), transparent 50%),
    linear-gradient(165deg, #10282e 0%, #16343a 48%, #12262b 100%);
  color: #e8f6f3;
  border: 1px solid rgba(61, 214, 195, 0.18);
  box-shadow: 0 18px 40px rgba(16, 40, 46, 0.18);
}
.board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9953a 18%, #3dd6c3 58%, transparent);
}
.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.board-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #8fc9c0;
  margin: 0 0 6px;
}
.board h2 {
  margin: 0;
  color: #f7fbfa;
  font-size: 22px;
  font-weight: 700;
}
.board-meta {
  margin: 6px 0 0;
  color: rgba(232, 246, 243, 0.55);
  font-size: 12.5px;
}
.board-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.board-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
  margin-bottom: 16px;
}
.board-form .row {
  margin: 0;
  min-width: 140px;
}
.board-form label {
  color: rgba(232, 246, 243, 0.62);
  font-size: 12px;
}
.board-form input,
.board-form select {
  background: rgba(8, 22, 26, 0.45);
  border-color: rgba(61, 214, 195, 0.22);
  color: #f7fbfa;
}
.board-form .check {
  background: transparent;
  border-color: rgba(61, 214, 195, 0.22);
  color: #d7eee9;
  width: auto;
  padding: 8px 10px;
}
.board-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.board-kpi {
  background: rgba(8, 22, 26, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}
.board-kpi .n {
  font-size: 26px;
  font-weight: 700;
  color: #f7fbfa;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.board-kpi .l {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(232, 246, 243, 0.5);
}
.board-kpi.up .n { color: #7dcea0; }
.board-kpi.down .n { color: #f1948a; }
.board-kpi.gold .n { color: #e8c37a; }
.board-chart-wrap {
  background: rgba(8, 22, 26, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px 8px;
  margin-bottom: 14px;
}
.board-chart-wrap canvas {
  width: 100%;
  height: 280px;
  display: block;
}
.board-chart-plot {
  position: relative;
}
.board-chart-tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  display: none;
  min-width: 148px;
  max-width: 280px;
  max-height: 240px;
  overflow: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(8, 22, 26, 0.94);
  border: 1px solid rgba(61, 214, 195, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  color: #e8f6f3;
  font-size: 12px;
  line-height: 1.35;
}
.board-chart-tip.is-on { display: block; }
.board-chart-tip .tip-date {
  color: #9fd4cc;
  font-weight: 600;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.board-chart-tip .tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}
.board-chart-tip .tip-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(232, 246, 243, 0.88);
}
.board-chart-tip .tip-name i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.board-chart-tip .tip-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.board-chart-tip .tip-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #f7fbfa;
  flex: 0 0 auto;
}
.board-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 2px 2px 8px;
}
.board-chart-hint { font-size: 12px; }
.board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 4px 2px 8px;
}
.board-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(232, 246, 243, 0.78);
  background: transparent;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}
.board-legend-item:hover { color: #fff; }
.board-legend-item.is-off {
  opacity: 0.38;
  text-decoration: line-through;
}
.board-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.pc-hint {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(232, 246, 243, 0.42);
  margin-top: 2px;
}
.pc-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
}
.pc-pick input {
  margin: 0;
  accent-color: #3dd6c3;
}
.pc-table tbody tr.pc-row { cursor: pointer; }
.pc-table tbody tr.pc-row.is-off td,
.pc-table tbody tr.pc-row.is-off th.pc-hotel {
  opacity: 0.38;
}
.pc-table tbody tr.pc-row.is-hover td,
.pc-table tbody tr.pc-row.is-hover th.pc-hotel {
  background: rgba(61, 214, 195, 0.16) !important;
}
.pc-table tbody th.pc-hotel {
  cursor: pointer;
}
.pc-table tbody th.pc-hotel:hover {
  color: #fff;
}
.pc-table tbody th.pc-hotel.is-off {
  text-decoration: line-through;
}
.pc-sub {
  font-size: 10px;
  color: rgba(232, 246, 243, 0.48);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pc-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  background: rgba(8, 22, 26, 0.22);
}
.pc-table th,
.pc-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
  color: #e8f6f3;
  background: transparent;
}
.pc-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1a3c43;
  color: #9fd4cc;
  font-weight: 600;
  font-size: 11.5px;
}
.pc-table thead tr:nth-child(2) th { top: 32px; }
.pc-table .pc-hotel {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  min-width: 188px;
  background: #16343a;
  font-weight: 600;
}
.pc-table thead .pc-hotel { z-index: 4; background: #1a3c43; }
.pc-table tbody th.pc-hotel { background: #143038; }
.pc-table tbody tr:hover td,
.pc-table tbody tr:hover th.pc-hotel { background: rgba(61, 214, 195, 0.08); }
.pc-weekend { background: rgba(64, 168, 176, 0.16) !important; }
.pc-sat { background: rgba(64, 168, 176, 0.16) !important; }
.pc-sun { background: rgba(168, 112, 176, 0.18) !important; }
.pc-table thead th.pc-weekend,
.pc-table thead th.pc-sat {
  background: #1f5158;
  color: #c4ecee;
}
.pc-table thead th.pc-sun {
  background: #46345a;
  color: #eadcf2;
}
.pc-table tbody tr:hover td.pc-sat { background: rgba(64, 168, 176, 0.28) !important; }
.pc-table tbody tr:hover td.pc-sun { background: rgba(168, 112, 176, 0.30) !important; }
.pc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.pc-cell { min-width: 108px; }
.pc-split { display: flex; flex-direction: column; gap: 3px; }
.pc-line { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; line-height: 1.2; }
.pc-tag {
  font-size: 10px;
  color: rgba(232, 246, 243, 0.5);
  min-width: 2em;
}
.pc-price { display: inline; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.pc-delta { display: inline; font-size: 10px; margin-top: 0; }
.pc-delta.up, .pc-up .pc-price { color: #7dcea0; }
.pc-delta.down, .pc-down .pc-price { color: #f1948a; }
.pc-delta.flat { color: rgba(232, 246, 243, 0.45); }
.pc-empty { color: rgba(232, 246, 243, 0.28); }
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(61, 214, 195, 0.35);
  color: #d7eee9;
}
.btn.ghost:hover { background: rgba(61, 214, 195, 0.12); color: #fff; }

.screen-body {
  margin: 0;
  min-height: 100vh;
  background: #0b1c20;
}
.screen-body .board {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 22px 24px 28px;
  overflow: visible;
}

.btn-disabled-wrap { display: inline-block; }
.btn-disabled-wrap .btn:disabled { pointer-events: none; }

.reviews-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.reviews-page-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.reviews-page-head h2 { margin: 0 0 6px; }
.reviews-page-head .page-desc { margin: 0; max-width: 720px; }
.reviews-progress-card { margin-bottom: 16px; }
.reviews-last-run { margin: 0 0 10px; font-size: 12px; }
.reviews-groups { position: sticky; top: 16px; padding: 14px; }
.reviews-groups h2 { margin-top: 0; }
.reviews-group-list { list-style: none; margin: 0; padding: 0; }
.reviews-group-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.reviews-group-item form { flex-shrink: 0; }
.reviews-group-list a {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
}
.reviews-group-list a:hover { background: var(--brand-soft); text-decoration: none; }
.reviews-group-list a.active {
  background: var(--brand-soft);
  color: var(--brand-2);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}
.review-dim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  margin: -4px 0 16px;
}
.review-charts {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.review-chart-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.purpose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.purpose-head h3 { margin: 0; }
.purpose-period {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin: 0;
}
.purpose-period select {
  min-width: 118px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.purpose-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.review-chart-cap { font-size: 12px; margin: 8px 0 0; }
#purpose-chart { width: 100%; height: 220px; display: block; }
.purpose-legend { list-style: none; margin: 0; padding: 0; }
.purpose-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.purpose-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.purpose-legend span { flex: 1; }
.purpose-legend strong { font-variant-numeric: tabular-nums; }
.purpose-legend em { color: var(--muted); font-style: normal; width: 3.5em; text-align: right; }
.review-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 10px;
}
.review-cal { margin-top: 8px; }
.cal-week, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-week {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.cal-day {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.cal-day:hover { border-color: var(--brand); }
.cal-day.in-range { background: var(--brand-soft); }
.cal-day.selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-day.empty { border: 0; background: transparent; cursor: default; }
.purpose-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.purpose-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 12px;
}
.purpose-chip i { width: 8px; height: 8px; border-radius: 50%; }
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 88px;
  overflow: auto;
}
.tag-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.tag-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tag-chip.active .muted { color: rgba(255,255,255,0.8); }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.comment-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.comment-body { margin: 0 0 8px; line-height: 1.65; white-space: pre-wrap; }
.comment-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mini-tag {
  font-size: 11px;
  background: #f3f5f7;
  color: var(--muted);
  border-radius: 4px;
  padding: 2px 6px;
}
.comment-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.review-img-link { display: block; }
.review-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f5;
  display: block;
}
.comment-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .reviews-groups { position: static; }
  .review-charts, .review-kpis { grid-template-columns: 1fr 1fr; }
  .reviews-page-head { flex-direction: column; }
  .reviews-page-head .btn { width: 100%; }
}

@media (max-width: 1100px) {
  .board-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .board-kpis { grid-template-columns: 1fr 1fr; }
  .board-chart-wrap canvas { height: 200px; }
  .board h2 { font-size: 18px; }
  .board-form .row { min-width: 0; flex: 1 1 100%; }
  .board-form .btn { width: 100%; }
  .board-kpi .n { font-size: 22px; }
  .pc-table .pc-hotel { min-width: 132px; }
  .pc-cell { min-width: 92px; }
  .screen-body .board { padding: 12px 10px 20px; }
}

.rooms-scrape-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rooms-scrape-form select {
  height: 32px;
  margin-left: 4px;
}
.room-builder {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1.6fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.room-builder-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.room-builder-actions form { margin: 0; }
.room-builder .row { position: relative; margin: 0; }
.room-builder label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.hotel-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow: auto;
  padding: 4px;
}
.hotel-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.hotel-suggest button:hover { background: var(--brand-soft); }
.unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}
.unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft);
  border: 1px solid #d7e8e4;
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
  font-size: 13px;
}
.unit-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
}
.room-save-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  max-width: 560px;
}
.room-save-form input[type=text] { flex: 1; }
.saved-sets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}
.saved-sets a { text-decoration: none; }
.room-compare-wrap { overflow: auto; }
.room-compare th { white-space: nowrap; min-width: 140px; }
.price-nobf { color: var(--text); font-variant-numeric: tabular-nums; }
.price-sep { color: var(--muted); margin: 0 4px; }
.login-body { display:flex; align-items:center; justify-content:center; min-height:100vh; }
.login-card { width:min(420px, 92vw); background:var(--card); padding:28px 24px; border-radius:var(--radius); box-shadow:var(--shadow); }
.login-card h1 { margin:0 0 8px; font-size:22px; }
.user-chip { margin:8px 0 0; color:#c9d8dc; font-size:12px; }
.inline-form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:4px 0; }
@media (max-width: 960px) {
  .room-builder { grid-template-columns: 1fr; }
  .rooms-scrape-form { flex-wrap: wrap; }
  .rooms-scrape-form select { width: 100%; margin-left: 0; }
  .room-save-form { max-width: none; flex-wrap: wrap; }
  .room-save-form .btn { width: 100%; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .review-charts, .review-kpis { grid-template-columns: 1fr; }
  .cal-day { min-height: 40px; }
  .review-img { width: 96px; height: 96px; }
  .comment-card header { flex-direction: column; align-items: flex-start; }
}
