:root {
  --bg: #f3f5f1;
  --bg-2: #eef1ec;
  --card: #ffffff;
  --card-2: #fbfcfa;
  --ink: #17211e;
  --ink-2: #3d4a45;
  --muted: #74817c;
  --line: #dfe6df;
  --line-2: #edf1eb;
  --brand: #174d40;
  --brand-dark: #0f3b31;
  --brand-soft: #e9f2ed;
  --brass: #a5824e;
  --brass-soft: #f6efe0;
  --ok: #2f6f55;
  --ok-soft: #e9f3ed;
  --warn: #96672d;
  --warn-soft: #f8efdf;
  --danger: #9e433b;
  --danger-soft: #f9eae7;
  --info: #315f73;
  --info-soft: #eaf1f4;
  --room-vacant-bg: #eef5ef;
  --room-vacant-line: #d6e5da;
  --room-vacant-ink: #3f6b56;
  --room-vacant-dot: #6c9b82;
  --room-dirty-bg: #fbf0e7;
  --room-dirty-line: #ecd8c9;
  --room-dirty-ink: #955b43;
  --room-dirty-dot: #b47c62;
  --room-occupied-bg: #edf2f7;
  --room-occupied-line: #d7e2eb;
  --room-occupied-ink: #3f617a;
  --room-occupied-dot: #6f8ba1;
  --shadow: 0 24px 70px rgba(23, 45, 37, 0.12);
  --shadow-sm: 0 8px 24px rgba(23, 45, 37, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -12%, #ffffff 0%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, #f5f7f3 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
.app-root { min-height: 100vh; }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px calc(48px + var(--safe-bottom));
}

/* ---------- 登录 ---------- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 22px calc(34px + var(--safe-bottom));
}

.login-shell {
  width: 100%;
  max-width: 1000px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 42px 38px;
  background: linear-gradient(155deg, #123f35 0%, #174d40 52%, #1d594a 100%);
  color: #fff;
}

.login-brand::before {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.035), 0 0 0 80px rgba(255, 255, 255, 0.02);
}

.login-brand > * { position: relative; z-index: 1; }

.brand-top { display: flex; align-items: center; gap: 13px; }

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-copy { max-width: 430px; margin: 52px 0 auto; }
.brand-kicker {
  margin: 0 0 15px;
  color: #d7c39e;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.login-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.05em;
}

.brand-sub {
  max-width: 270px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.brand-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.46);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.brand-line { width: 26px; height: 1px; background: rgba(255, 255, 255, 0.28); }

.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 38px 34px;
  background: var(--card);
}

.login-mobile-brand { display: none; }

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 4px;
  background: #f1f4ef;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 10px 4px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.segmented button.on {
  background: var(--card);
  color: var(--brand);
  box-shadow: 0 3px 10px rgba(23, 45, 37, 0.09);
}

.login-panel { padding: 24px 2px 2px; }
.login-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.panel-sub {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 17px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.login-divider::before, .login-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.login-foot {
  margin: 27px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 249, 245, 0.8);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(23, 77, 64, 0.1);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 5px 12px rgba(23, 77, 64, 0.18);
}
.mini-mark svg { width: 19px; height: 19px; }

.topbar .who { min-width: 0; flex: 1; }
.who-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topbar .who h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions { display: flex; gap: 7px; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.icon-btn:hover { background: #fff; border-color: #cbd8d2; }
.icon-btn svg { width: 18px; height: 18px; }

.role-bar { max-width: 1100px; margin: 0 auto; padding: 10px 20px 0; }
.role-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(23, 45, 37, 0.04);
}
.role-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}
.role-switch button.on {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px rgba(23, 77, 64, 0.18);
}

/* ---------- 通用 ---------- */

.section { margin-top: 22px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 12px;
}
.section-head > div { min-width: 0; }
.section-head .eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.section-head .side { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.card.flush { padding: 0; overflow: hidden; }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #edf1ec;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(23, 77, 64, 0.2); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.brass { background: var(--brass); color: #fff; box-shadow: 0 6px 16px rgba(165, 130, 78, 0.18); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.ok { background: var(--ok-soft); color: var(--ok); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef1ec;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.vacant { background: var(--ok-soft); color: var(--ok); }
.pill.dirty { background: var(--warn-soft); color: var(--warn); }
.pill.occupied { background: var(--info-soft); color: var(--info); }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.approved { background: var(--ok-soft); color: var(--ok); }
.pill.rejected { background: var(--danger-soft); color: var(--danger); }
.pill.closed { background: #eef1ec; color: var(--muted); }
.pill.planned { background: var(--brass-soft); color: var(--brass); }
.pill.living { background: var(--info-soft); color: var(--info); }
.pill.checkout { background: var(--warn-soft); color: var(--warn); }
.pill.ended { background: #eef1ec; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 10.5px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- 数据卡 ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-grid.four { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px 16px 14px;
  box-shadow: 0 5px 16px rgba(23, 45, 37, 0.04);
}
.stat-card .k {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.stat-card .v {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-card .v small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}
.stat-card .v.score { display: flex; align-items: baseline; }
.stat-card .v.score .num { font-size: 34px; font-weight: 700; }
.stat-card .v.score .slash { margin: 0 5px; font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.stat-card .v.score .total { font-size: 21px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.stat-card .v.score small { color: rgba(255, 255, 255, 0.56); }

.stat-card.hero {
  background: linear-gradient(150deg, #174d40 0%, #1d5b4c 100%);
  border-color: #174d40;
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 77, 64, 0.18);
}
.stat-card.hero .k { color: rgba(255, 255, 255, 0.7); }
.stat-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.01em;
}
.stat-card.hero .stat-note { color: rgba(255, 255, 255, 0.58); }

/* ---------- 房间 ---------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 2px 12px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend .lv { background: var(--room-vacant-dot); }
.legend .ld { background: var(--room-dirty-dot); }
.legend .lo { background: var(--room-occupied-dot); }

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 700px) {
  .room-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 430px) {
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .room-card { min-height: 96px; padding: 10px 9px 8px; }
}

.room-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  border: 1px solid var(--room-vacant-line);
  border-radius: 14px;
  background: var(--room-vacant-bg);
  box-shadow: 0 2px 8px rgba(23, 45, 37, 0.035);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.room-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--room-vacant-dot);
  opacity: 0.7;
}
.room-card.vacant {
  background: var(--room-vacant-bg);
  border-color: var(--room-vacant-line);
}
.room-card.vacant::before { background: var(--room-vacant-dot); }
.room-card:hover {
  transform: translateY(-2px);
  border-color: #cbd8d2;
  box-shadow: var(--shadow-sm);
}
.room-card .no {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.room-card .type {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-card .note {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.72;
}
.room-card .foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}
.room-card .dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--room-vacant-dot); }
.room-card .st { color: var(--room-vacant-ink); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }

.room-card.dirty {
  background: var(--room-dirty-bg);
  border-color: var(--room-dirty-line);
}
.room-card.dirty::before { background: var(--room-dirty-dot); }
.room-card.dirty .dot { background: var(--room-dirty-dot); }
.room-card.dirty .st { color: var(--room-dirty-ink); }

.room-card.occupied {
  background: var(--room-occupied-bg);
  border-color: var(--room-occupied-line);
}
.room-card.occupied::before { background: var(--room-occupied-dot); }
.room-card.occupied .dot { background: var(--room-occupied-dot); }
.room-card.occupied .st { color: var(--room-occupied-ink); }

.room-card .plan-tag {
  max-width: 100%;
  margin-top: 5px;
  align-self: flex-start;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--brass-soft);
  color: var(--brass);
  font-size: 9.5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-beds {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 5px;
}
.room-bed {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 2px 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 9.5px;
  line-height: 1.35;
}
.room-bed .bed-label {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 650;
}
.room-bed .bed-guest {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}
.room-bed .bed-state {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 8.5px;
}
.room-bed .bed-gender {
  flex: 0 0 auto;
  color: #8a7a5e;
  font-size: 9px;
  line-height: 1.35;
}
.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
.room-tag {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  font-size: 8.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.room-card.needs-clean {
  box-shadow: inset 0 0 0 1px rgba(170, 125, 55, 0.25), 0 2px 8px rgba(23, 45, 37, 0.035);
}
.room-card.needs-clean .room-tag:last-child {
  background: var(--brass-soft);
  color: var(--brass);
}

.board-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.stay-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.sum-chip {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.sum-chip b { color: var(--ink); font-size: 11.5px; font-weight: 650; }

.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 5px 16px rgba(23, 45, 37, 0.04);
}
.stay-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.stay-table th {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}
.stay-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  vertical-align: middle;
}
.stay-table tr:last-child td { border-bottom: 0; }
.stay-table .roomno { color: var(--brand-dark); font-size: 16px; font-weight: 700; line-height: 1.2; }
.stay-table .guest { font-size: 13px; font-weight: 600; }
.stay-table .unit { margin-top: 1px; color: var(--muted); font-size: 10.5px; }
.stay-table .date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stay-table .actions-cell { text-align: right; white-space: nowrap; }
.stay-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stay-table tr.today { background: #fbf6eb; }
.stay-table tr.today td:first-child { box-shadow: inset 3px 0 0 var(--brass); }

/* ---------- 列表 ---------- */

.list { display: flex; flex-direction: column; gap: 9px; }
.list-item {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 10px rgba(23, 45, 37, 0.035);
  text-align: left;
}
.list-item:active { background: #fcfdfb; }
.list-item .row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.list-item .title { font-size: 14px; font-weight: 650; }
.list-item .meta { margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.list-item .meta b { color: var(--ink-2); font-weight: 500; }
.list-item .row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.empty {
  padding: 36px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  text-align: center;
}
.empty .big { margin-bottom: 6px; font-size: 28px; opacity: 0.35; }
.empty p { margin: 0; font-size: 12.5px; }

/* ---------- 表单 ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-grid .full { grid-column: auto; }
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.field label .req { margin-left: 2px; color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: #98bcae;
  box-shadow: 0 0 0 3px rgba(23, 77, 64, 0.08);
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.65; }
.input::placeholder, .textarea::placeholder { color: #a3ada8; }
.help { color: var(--muted); font-size: 10.5px; line-height: 1.65; }

.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  user-select: none;
}
.check input { width: 14px; height: 14px; margin: 0; accent-color: var(--brand); }
.check.on { border-color: #b3d2c7; background: var(--brand-soft); color: var(--brand-dark); }

.batch-room-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  max-height: 380px;
  overflow-y: auto;
  padding: 2px;
}
.batch-room-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.batch-room-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.batch-room-check input { width: 14px; height: 14px; margin: 0; accent-color: var(--brand); }
.batch-room-check b { color: var(--brand-dark); font-size: 13px; }
.batch-room-check small { color: var(--muted); font-size: 10px; font-weight: 500; }
.batch-occupants {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.batch-occupant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 94px;
  gap: 6px;
}
.batch-room-row .batch-input {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11.5px;
}
.batch-room-row .batch-input:disabled {
  background: #f5f7f5;
  color: #adb6b1;
  cursor: not-allowed;
}

.occupant-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf8;
}
.occupant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 108px;
  gap: 10px;
}
.occupant-panel .help {
  margin: 0;
}
@media (max-width: 560px) {
  .batch-room-list { grid-template-columns: 1fr; }
  .occupant-row { grid-template-columns: minmax(0, 1fr) 76px 84px; gap: 8px; }
  .batch-occupant { grid-template-columns: minmax(0, 1fr) 64px 84px; }
}

.batch-check-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
}
.batch-check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.batch-check-row input { width: 14px; height: 14px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.batch-check-row span { min-width: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
.batch-check-row span b { color: var(--brand-dark); font-size: 13px; }
.batch-check-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }

.form-actions { display: flex; gap: 9px; margin-top: 17px; }
.form-actions .btn { flex: 1 1 auto; }
.code-input {
  text-transform: uppercase;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
  background: #fbfcfa;
}

/* ---------- 分段导航 ---------- */

.tabs {
  display: flex;
  gap: 2px;
  width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: 0 4px 14px rgba(23, 45, 37, 0.035);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.tabs button.on {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px rgba(23, 77, 64, 0.16);
}
.tabs .badge {
  display: inline-block;
  min-width: 17px;
  height: 17px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

/* ---------- 员工 ---------- */

.staff-card { padding: 15px 16px; }
.staff-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.staff-card .name { font-size: 14.5px; font-weight: 650; }
.staff-card .pos { margin-top: 2px; color: var(--muted); font-size: 11px; }
.staff-card .code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px dashed #ddd2bc;
  border-radius: 9px;
  background: #faf7f1;
}
.staff-card .code {
  color: var(--brand-dark);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
}
.staff-card .code.hidden { filter: blur(4px); user-select: none; }
.staff-card .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- 弹层 ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(14, 28, 23, 0.44);
  backdrop-filter: blur(6px);
  animation: fade 0.16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  overflow: auto;
  padding: 20px 20px calc(22px + var(--safe-bottom));
  border-radius: 20px 20px 0 0;
  background: var(--card);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.2);
  animation: sheetIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes sheetIn {
  from { opacity: 0.6; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 700px) {
  .overlay { align-items: center; padding: 20px; }
  .sheet { border-radius: 20px; max-height: 88vh; }
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.sheet-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.sheet-head p { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; }
.sheet-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9f6;
  color: var(--ink-2);
  font-size: 15px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.detail-row {
  display: flex;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { flex: 0 0 82px; color: var(--muted); }
.detail-row .v { flex: 1; min-width: 0; word-break: break-word; }

/* ---------- 提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + var(--safe-bottom));
  z-index: 90;
  max-width: min(92vw, 520px);
  transform: translateX(-50%);
  padding: 10px 15px;
  border-radius: 10px;
  background: rgba(23, 33, 30, 0.94);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  animation: toastIn 0.18s ease;
}
.toast.err { background: rgba(126, 47, 41, 0.96); }
.toast.ok { background: rgba(23, 77, 64, 0.96); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.confirm-box { text-align: left; }
.confirm-box p { margin: 0 0 16px; color: var(--ink-2); font-size: 13.5px; line-height: 1.75; }
.confirm-box .form-actions { margin-top: 0; }

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .login-page { padding: 16px 14px calc(16px + var(--safe-bottom)); }
  .login-shell { display: block; min-height: 0; border-radius: 20px; }
  .login-brand { display: none; }
  .login-card { padding: 26px 20px calc(22px + var(--safe-bottom)); }
  .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .login-mobile-brand .brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 5px 12px rgba(23, 77, 64, 0.18);
  }
  .login-mobile-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .login-mobile-brand h1 {
    margin: 1px 0 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.3;
  }
}

@media (max-width: 640px) {
  .page { padding: 0 14px calc(40px + var(--safe-bottom)); }
  .topbar-inner { padding: 10px 14px; gap: 9px; }
  .mini-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 17px; }
  .who h1 { font-size: 15px; }
  .who-eyebrow { font-size: 8.5px; }
  .who-meta { font-size: 10px; }
  .topbar-actions { gap: 5px; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .role-bar { padding: 10px 14px 0; }
  .role-switch { display: flex; width: 100%; }
  .role-switch button { flex: 1; }

  .section { margin-top: 20px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .section-head h2 { font-size: 19px; }
  .board-actions { width: 100%; justify-content: flex-start; }
  .stay-summary { width: 100%; justify-content: flex-start; }

  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-grid.four .stat-card.hero { grid-column: auto; }
  .stat-card { padding: 12px 12px 11px; }
  .stat-card .k { font-size: 10px; }
  .stat-card .v { font-size: 24px; }
  .stat-card .v.score .num { font-size: 30px; }
  .stat-card .v.score .total { font-size: 19px; }
  .stat-card .v.score .slash { font-size: 16px; }
  .stat-card .v.score small { font-size: 9.5px; }
  .stat-note { font-size: 9.5px; }

  .room-grid { gap: 8px; }
  .room-card { min-height: 98px; padding: 10px 10px 9px; }
  .room-card .no { font-size: 19px; }
  .room-card .foot { padding-top: 7px; margin-top: 6px; }
  .room-card .st { font-size: 9.5px; }
  .room-card .plan-tag { font-size: 9px; }

  .stay-table th { padding: 10px 11px; }
  .stay-table td { padding: 11px; }
  .table-wrap { border-radius: 12px; }

  .list-item { padding: 13px 13px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { min-width: 120px; }

  .sheet { padding: 18px 16px calc(20px + var(--safe-bottom)); }
  .sheet-head h3 { font-size: 19px; }
}

@media (min-width: 900px) {
  .page { padding-left: 24px; padding-right: 24px; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid.four { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .room-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- 打印/无 JS ---------- */

.noscript { padding: 40px; color: var(--muted); text-align: center; }

/* ---------- 接待间操作与详情（批量入口收敛） ---------- */

.board-actions .side { margin-right: 2px; }

.action-pair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 8px rgba(23, 45, 37, 0.035);
}
.btn.batch-action {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
  box-shadow: none;
  font-size: 12.5px;
}
.btn.batch-stay {
  background: var(--brand);
  color: #fff;
}
.btn.batch-stay:hover { background: var(--brand-dark); }
.btn.batch-checkout {
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink-2);
}
.btn.batch-checkout:hover {
  border-color: var(--line);
  background: #f8faf7;
  color: var(--brand-dark);
}
.btn.batch-action .ui-ico { width: 14px; height: 14px; }
.link-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 3px;
  padding: 6px 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.link-action:hover { color: var(--brand-dark); }
.link-action .ui-ico { width: 13px; height: 13px; }

.room-card .open-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 9.5px;
  opacity: 0.75;
  white-space: nowrap;
}
.room-card .open-hint i {
  margin-left: 2px;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
}

.fixed-room-pick {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(233, 242, 237, 0.72), rgba(255, 255, 255, 0.8));
}
.fixed-room-no {
  font-family: var(--font-display);
  color: var(--brand-dark);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
}
.fixed-room-copy { min-width: 0; }
.fixed-room-copy b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fixed-room-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.fixed-room-free { text-align: right; color: var(--muted); font-size: 10px; }
.fixed-room-free b { display: block; color: var(--brand-dark); font-size: 18px; line-height: 1.1; }
.fixed-room-free span { display: block; margin-top: 2px; }

.room-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 15px 16px;
  border: 1px solid var(--room-vacant-line);
  border-radius: 15px;
  background: var(--room-vacant-bg);
  color: var(--room-vacant-ink);
}
.room-hero::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -46px;
  width: 150px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.room-hero.dirty { border-color: var(--room-dirty-line); background: var(--room-dirty-bg); color: var(--room-dirty-ink); }
.room-hero.occupied { border-color: var(--room-occupied-line); background: var(--room-occupied-bg); color: var(--room-occupied-ink); }
.room-hero-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.room-hero-copy { position: relative; z-index: 1; min-width: 0; }
.room-hero-status { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.room-hero-type { color: currentColor; font-size: 10.5px; opacity: 0.72; }
.room-hero-sub {
  max-width: 360px;
  margin-top: 3px;
  overflow: hidden;
  color: currentColor;
  font-size: 10.5px;
  line-height: 1.5;
  opacity: 0.78;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-hero-free { position: relative; z-index: 1; margin-left: auto; text-align: right; color: currentColor; }
.room-hero-free b { display: block; font-family: var(--font-display); font-size: 25px; line-height: 1; }
.room-hero-free span { display: block; margin-top: 2px; font-size: 9.5px; opacity: 0.76; }

.room-action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.btn.room-action {
  flex: 1 1 150px;
  min-height: 45px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 12.5px;
  line-height: 1.25;
}
.btn.room-action span { font-size: 10px; font-weight: 500; opacity: 0.72; letter-spacing: 0; }
.room-quiet {
  margin: 0 0 12px;
  padding: 10px 3px;
  color: var(--muted);
  font-size: 11px;
}

.room-group { margin-top: 13px; }
.room-group-head { display: flex; align-items: center; gap: 7px; margin: 0 1px 7px; }
.room-group-head span { color: var(--ink-2); font-size: 12px; font-weight: 650; }
.room-group-head small { color: var(--muted); font-size: 10px; }
.room-person {
  margin-bottom: 7px;
  padding: 11px 12px 10px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--room-occupied-dot);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(23, 45, 37, 0.025);
}
.room-person.planned {
  border-left-color: var(--brass);
  background: linear-gradient(90deg, rgba(250, 247, 241, 0.86), #fff 58%);
}
.room-person-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.room-person-title { display: flex; min-width: 0; align-items: center; gap: 7px; flex-wrap: wrap; }
.room-person-name { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.room-person-actions { display: flex; margin-left: auto; gap: 5px; flex-wrap: wrap; }
.btn.room-person-btn { padding: 5px 8px; border-radius: 7px; font-size: 10.5px; }
.room-person-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 5px; color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.room-person-date { white-space: nowrap; }
.bed-chip {
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f1;
  color: var(--brand-dark);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.gender-chip {
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #e7e2d6;
  background: #fbf8f0;
  color: #8a7a5e;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.room-person-sub { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10.5px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }

.room-roster-empty {
  padding: 22px 15px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfcfa;
  text-align: center;
}
.room-roster-empty span { color: var(--muted); font-size: 20px; opacity: 0.55; }
.room-roster-empty p { margin: 3px 0 2px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.room-roster-empty small { color: var(--muted); font-size: 10.5px; }

.room-note-row {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  padding: 9px 12px;
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 11px;
}
.room-note-row span { flex: 0 0 auto; color: var(--ink-2); font-weight: 600; }
.room-note-row div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-close { padding-top: 2px; }
.room-close .btn { flex: 0 0 auto; min-width: 104px; }

@media (max-width: 560px) {
  .board-actions { justify-content: space-between; }
  .action-pair { width: auto; }
  .btn.batch-action { padding: 7px 10px; font-size: 11.5px; }
  .link-action { padding-right: 0; }
  .room-hero { gap: 10px; padding: 13px 13px; }
  .room-hero-number { font-size: 32px; }
  .room-hero-free b { font-size: 21px; }
  .room-person-actions { width: 100%; margin-left: 0; }
  .room-person-actions .btn { flex: 1 1 auto; }
  .fixed-room-pick { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .fixed-room-no { font-size: 22px; }
}

@media (max-width: 430px) {
  .room-bed .bed-state { display: none; }
  .room-card .open-hint { font-size: 9px; }
}

/* ---------- 移动端触控与渲染优化 ---------- */

button,
.btn,
.room-card,
.tab,
.segmented button {
  touch-action: manipulation;
}

@media (max-width: 700px) {
  .topbar {
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
  }
  .overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
