:root {
  --bg: #f2eee8;
  --page: #fdfaf5;
  --hero: #56636d;
  --hero-deep: #3d4a54;
  --hero-soft: rgba(255, 255, 255, 0.14);
  --table-head: #173f60;
  --line: #ddd7cf;
  --line-soft: #f1ece5;
  --ink: #2c343b;
  --muted: #726d68;
  --white: #ffffff;
  --red: #cf4b3c;
  --green: #198579;
  --blue: #6f7e88;
  --gold: #c2a06b;
  --navy-soft: #616f79;
  --sand: #f4ede3;
  --shadow: 0 18px 40px rgba(64, 55, 48, 0.08);
  --shadow-strong: 0 26px 56px rgba(58, 50, 45, 0.1);
  --radius: 18px;
  --panel-bar-start: #5f6f7a;
  --panel-bar-end: #44515b;
  --panel-bar-border: rgba(255, 255, 255, 0.12);
  --panel-pill-bg: rgba(255, 255, 255, 0.14);
  --selection-bg: #efe3cf;
  --selection-border: #c7a36b;
  --selection-text: #5b4730;
}

/* Final reference-aligned landing overrides. Kept last to win over legacy landing variants. */
body.landing-page .landing-copy h1 {
  font-size: clamp(2.45rem, 3.55vw, 3.45rem);
  line-height: 1.24;
  letter-spacing: 0.055em;
}

body.landing-page .landing-copy .landing-brandmark {
  width: 220px;
  margin-bottom: 27px;
}

body.landing-page .landing-copy .landing-brandmark img {
  height: auto;
  filter: brightness(0) saturate(100%) invert(74%) sepia(41%) saturate(595%) hue-rotate(358deg) brightness(90%) contrast(88%);
}

body.landing-page .landing-lead {
  margin-top: 23px;
  font-size: 0.9rem;
  line-height: 1.82;
}

body.landing-page .landing-services {
  gap: 24px;
  margin-top: 27px;
}

body.landing-page .landing-services div {
  display: block;
  padding-left: 11px;
  border-left: 1px solid rgba(225, 182, 86, .72);
}

body.landing-page .landing-services strong { font-size: 0.76rem; }
body.landing-page .landing-services span { display: block; margin-top: 4px; font-size: 0.64rem; }

body.landing-page .journey-cta {
  justify-content: space-between;
  min-height: 46px;
  width: 160px;
  margin-top: 28px;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
}
body.landing-page .journey-cta::after { content: "→"; font-size: 1.15rem; }

body.landing-page .login-card {
  position: absolute;
  top: 50%;
  right: max(36px, calc((100vw - 1320px) / 2));
  width: 336px;
  margin: 0;
  padding: 29px 30px 25px;
  transform: translateY(-43%);
  border-color: rgba(177, 207, 230, .16);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(6, 29, 48, .94), rgba(8, 32, 52, .86));
}

body.landing-page .login-card .eyebrow { margin-bottom: 10px; font-size: 0.53rem; }
body.landing-page .login-card-head h2 { font-size: 1.25rem; line-height: 1.4; }
body.landing-page .login-card-head p:last-child { margin-top: 10px; font-size: 0.68rem; line-height: 1.7; }
body.landing-page .login-form { gap: 11px; margin-top: 19px; }
body.landing-page .login-field { gap: 6px; }
body.landing-page .login-field span { font-size: 0.62rem; }
body.landing-page .login-field input {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.66rem;
}
body.landing-page .primary-btn { min-height: 37px; border: 0; border-radius: 5px; font-size: 0.67rem; }
body.landing-page .login-status { font-size: 0.56rem; }

@media (max-width: 760px) {
  body.landing-page .landing-shell { padding: 10px; }
  body.landing-page .landing-nav { right: 20px; left: 20px; }
  body.landing-page .landing-nav-links { gap: 12px; }
  body.landing-page .landing-nav-links a { font-size: 0.68rem; }
  body.landing-page .landing-nav-note { display: none; }
  body.landing-page .landing-hero { display: block; min-height: 920px; }
  body.landing-page .landing-copy { margin: 125px 24px 0; }
  body.landing-page .login-card {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 42px 24px 0;
    transform: none;
  }
}

/* Use the approved option-one artwork as the exact homepage surface. */
body.landing-reference-mode .landing-shell {
  display: grid;
  min-height: 100vh;
  padding: 0;
  place-items: center;
  background: #0a1a2b;
}

body.landing-reference-mode .landing-wrap {
  width: min(100vw, calc(100vh * 1.405));
  max-width: none;
  min-height: 0;
  margin: 0;
}

body.landing-reference-mode .landing-hero {
  display: block;
  min-height: 0;
  aspect-ratio: 1487 / 1058;
  border: 0;
  box-shadow: none;
}

body.landing-reference-mode .landing-hero-image {
  z-index: 0;
}

body.landing-reference-mode .landing-hero-image img {
  object-fit: fill;
}

body.landing-reference-mode .landing-hero-shade,
body.landing-reference-mode .landing-nav,
body.landing-reference-mode .landing-copy {
  display: none;
}

body.landing-reference-mode .login-card {
  position: absolute;
  z-index: 2;
  top: 30.5%;
  right: 9.2%;
  width: 20.2%;
  height: 38.6%;
  margin: 0;
  padding: 0;
  transform: none;
  opacity: 0;
}

body.landing-reference-mode .login-card > * {
  opacity: 0;
}

body.landing-reference-mode .login-form {
  display: block;
  height: 100%;
  margin: 0;
}

body.landing-reference-mode .login-field,
body.landing-reference-mode .primary-btn {
  position: absolute;
  left: 8%;
  width: 84%;
  margin: 0;
}

body.landing-reference-mode .login-field:first-child { top: 40%; height: 12%; }
body.landing-reference-mode .login-field:nth-child(2) { top: 57%; height: 12%; }
body.landing-reference-mode .login-field input,
body.landing-reference-mode .primary-btn { width: 100%; height: 100%; min-height: 0; }
body.landing-reference-mode .primary-btn { top: 74%; height: 13%; }

@media (max-width: 760px) {
  body.landing-reference-mode .landing-wrap { width: 100vw; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(180deg, #faf7f2 0%, #f4efe8 52%, var(--bg) 100%);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-english {
  margin: 10px 0 0;
}

.brand-title {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", serif;
  font-weight: 700;
}

.brand-tagline {
  margin: -4px 0 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.primary-btn,
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.primary-btn,
.toolbar-btn-primary {
  border-color: #7b8891;
  background: linear-gradient(180deg, #778691 0%, #606f79 100%);
  color: var(--white);
}

.landing-shell {
  min-height: 100vh;
  padding: 28px 24px 40px;
}

.landing-wrap {
  max-width: 1240px;
  margin: 0 auto;
}

.landing-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(86, 99, 109, 0.08);
  border-radius: 999px;
  background: rgba(253, 250, 245, 0.82);
  box-shadow: 0 10px 24px rgba(67, 58, 52, 0.05);
  backdrop-filter: blur(8px);
}

.landing-banner .eyebrow {
  margin: 0;
}

.landing-banner span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 390px);
  gap: 24px;
  align-items: stretch;
}

.is-legacy-host .landing-hero {
  grid-template-columns: minmax(0, 1fr);
}

.is-legacy-host .hero-side {
  display: none;
}

.landing-copy,
.login-card,
.landing-section {
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

.landing-copy {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #73808a 0%, #5a6872 56%, #47545e 100%);
  color: var(--white);
}

.landing-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 160, 107, 0.24) 0%, rgba(194, 160, 107, 0) 70%);
  pointer-events: none;
}

.landing-brandmark {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.landing-brandmark img {
  display: block;
  width: 320px;
  max-width: 70%;
  height: auto;
  border-radius: 10px;
}

.hero-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(86, 99, 109, 0.18), rgba(61, 74, 84, 0.28)),
    radial-gradient(circle at top left, rgba(194, 160, 107, 0.22), rgba(194, 160, 107, 0) 48%),
    #f4eee3;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual.is-broken {
  position: relative;
}

.hero-visual.is-broken::after {
  content: "图片加载中断，请刷新页面";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(38, 46, 54, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 238, 227, 0.92));
}

.hero-visual img.is-broken {
  opacity: 0;
}

.landing-copy-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.landing-region {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  text-align: right;
}

.landing-copy h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.landing-copy .brand-english {
  font-size: 0.96rem;
  letter-spacing: 0.22em;
}

.landing-lead {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
  line-height: 1.82;
}

.landing-signature {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 760px;
  margin-top: 22px;
}

.signature-line {
  width: 100%;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(194, 160, 107, 0.88), rgba(194, 160, 107, 0.14));
}

.landing-signature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.landing-stat {
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.landing-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.landing-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  line-height: 1.65;
}

.landing-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-points span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(244, 237, 227, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.contact-item {
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(244, 237, 227, 0.1);
}

.contact-item span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
}

.contact-item strong {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.96);
}

.login-card {
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(254, 251, 246, 0.98) 0%, rgba(247, 241, 233, 0.94) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(86, 99, 109, 0.08);
}

.login-card-head h2 {
  margin: 0;
  font-size: 1.7rem;
}

.login-card-head p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field span {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 700;
}

.login-field input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.login-field input:focus {
  outline: none;
  border-color: rgba(111, 126, 136, 0.52);
  box-shadow: 0 0 0 4px rgba(111, 126, 136, 0.12);
}

.login-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.login-status.is-error {
  color: #aa4a27;
}

.landing-main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.landing-section {
  padding: 30px;
  background: rgba(253, 249, 243, 0.9);
}

.landing-band {
  background: linear-gradient(180deg, rgba(253, 250, 245, 0.97) 0%, #f2ede5 100%);
}

.section-head h3 {
  margin: 0;
  max-width: 760px;
  font-size: 1.8rem;
  line-height: 1.28;
}

.feature-grid,
.workflow-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.editorial-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.editorial-card {
  padding: 22px;
  border: 1px solid rgba(86, 99, 109, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.editorial-card-featured {
  background: linear-gradient(180deg, rgba(111, 126, 136, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.editorial-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.editorial-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.45;
}

.editorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.landing-gallery-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(245, 239, 230, 0.94) 100%);
}

.landing-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-top: 20px;
  align-items: stretch;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  min-height: 320px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(86, 99, 109, 0.12), rgba(61, 74, 84, 0.2)),
    #f4eee3;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card.is-broken {
  position: relative;
}

.gallery-card.is-broken::after {
  content: "图片加载中断，请刷新页面";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(38, 46, 54, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 238, 227, 0.92));
}

.gallery-card img.is-broken {
  opacity: 0;
}

.gallery-note {
  padding: 24px;
  border: 1px solid rgba(86, 99, 109, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.gallery-note strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.45;
}

.gallery-note p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.78;
}

.gallery-note p:last-child {
  margin-bottom: 0;
}

.feature-card,
.workflow-step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.feature-card strong,
.workflow-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.feature-card p,
.workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-step span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #efe9e1;
  color: var(--blue);
  font-weight: 800;
}

.landing-journal .workflow-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #f4eee6 100%);
}

@media (max-width: 1080px) {
  .landing-hero,
  .editorial-grid,
  .feature-grid,
  .workflow-grid,
  .landing-stats,
  .landing-gallery {
    grid-template-columns: 1fr;
  }

  .landing-copy-top,
  .landing-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-region {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .landing-shell {
    padding: 18px 14px 28px;
  }

  .landing-copy,
  .landing-section,
  .login-card {
    padding: 22px;
  }

  .landing-copy h1 {
    font-size: 3rem;
  }

  .landing-brandmark img {
    width: 126px;
    max-width: 48%;
  }

  .hero-visual,
  .gallery-card {
    min-height: 220px;
  }

  .landing-signature {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signature-line {
    width: 72px;
    margin-top: 0;
  }

  .contact-item {
    min-width: 100%;
  }
}

/* Immersive landing page — Arctic expedition direction */
.landing-page {
  min-width: 320px;
  background: #031b30;
  color: #fff;
}

.landing-page .landing-shell {
  min-height: 100vh;
  padding: 0;
}

.landing-page .landing-wrap {
  max-width: none;
  min-height: 100vh;
}

.landing-page .landing-hero {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
  background: #08233a;
}

.landing-page .landing-hero-image,
.landing-page .landing-hero-shade {
  position: absolute;
  inset: 0;
  margin: 0;
}

.landing-page .landing-hero-image { z-index: -3; }
.landing-page .landing-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-page .landing-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 17, 34, .62) 0%, rgba(0, 24, 43, .32) 48%, rgba(0, 17, 32, .42) 100%),
    linear-gradient(180deg, rgba(0, 14, 30, .25) 0%, rgba(0, 22, 39, .08) 45%, rgba(0, 12, 26, .48) 100%);
}

.landing-page .landing-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 96px, 1320px);
  margin: 0 auto;
  padding: 22px 0;
}

.landing-page .landing-nav-links { display: flex; gap: 42px; }
.landing-page .landing-nav a,
.landing-page .landing-nav-note {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.landing-page .landing-nav a:hover,
.landing-page .landing-nav a.is-active { color: #e3b65b; }
.landing-page .landing-nav-note { margin: 0; font-size: 12px; }

.landing-page .landing-copy {
  position: relative;
  z-index: 1;
  width: min(610px, calc(100% - 96px));
  margin: clamp(100px, 16vh, 180px) 0 0 max(48px, calc((100vw - 1320px) / 2));
  padding: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.landing-page .landing-copy::after { display: none; }
.landing-page .landing-brandmark { display: block; width: 220px; margin: 0 0 27px; }
.landing-page .landing-brandmark img {
  width: 100%;
  max-width: none;
  border-radius: 0;
  filter: brightness(0) saturate(100%) invert(74%) sepia(41%) saturate(595%) hue-rotate(358deg) brightness(90%) contrast(88%);
}
.landing-page .landing-copy > .eyebrow { display: none; }
.landing-page .landing-copy h1 {
  margin: 0;
  color: #fff;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(38px, 4.1vw, 66px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .08em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .22);
}
.landing-page .landing-lead {
  max-width: 500px;
  margin: 23px 0 0;
  color: rgba(245, 248, 250, .79);
  font-size: 14px;
  line-height: 1.85;
}

.landing-page .landing-services {
  display: flex;
  gap: 31px;
  margin-top: 27px;
}
.landing-page .landing-services > div {
  padding-left: 11px;
  border-left: 1px solid rgba(225, 182, 86, .72);
}
.landing-page .landing-services p { margin: 0; }
.landing-page .landing-services strong,
.landing-page .landing-services span { display: block; white-space: nowrap; }
.landing-page .landing-services strong { color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; }
.landing-page .landing-services span { margin-top: 3px; color: rgba(255,255,255,.6); font-size: 10px; }
.landing-page .journey-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 164px;
  height: 49px;
  margin-top: 29px;
  padding: 0 19px;
  border-radius: 5px;
  background: linear-gradient(135deg, #d8a547, #a96f24);
  box-shadow: 0 12px 24px rgba(30, 14, 1, .22);
  color: #fff8ea;
  font-size: 13px;
  text-decoration: none;
}
.landing-page .journey-cta::after { content: "→"; font-size: 18px; }
.landing-page .journey-cta:hover { filter: brightness(1.08); text-decoration: none; }

.landing-page .login-card {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: max(48px, calc((100vw - 1320px) / 2));
  width: 336px;
  padding: 30px 31px 28px;
  transform: translateY(-42%);
  border: 1px solid rgba(177, 207, 230, .16);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(6, 29, 48, .94), rgba(8, 32, 52, .86));
  box-shadow: 0 20px 48px rgba(0, 10, 22, .32);
  backdrop-filter: blur(13px);
}
.landing-page .login-card .eyebrow { margin-bottom: 10px; color: #d5a84b; font-size: 8px; letter-spacing: .25em; }
.landing-page .login-card-head h2 { color: #f1f4f6; font-family: "Songti SC", "STSong", serif; font-size: 20px; font-weight: 600; }
.landing-page .login-card-head p:last-child { color: rgba(228,238,245,.64); font-size: 11px; line-height: 1.75; }
.landing-page .login-form { gap: 13px; margin-top: 23px; }
.landing-page .login-field { gap: 7px; }
.landing-page .login-field span { color: rgba(234,241,245,.78); font-size: 10px; font-weight: 500; }
.landing-page .login-field input {
  min-height: 38px;
  border: 1px solid rgba(160, 195, 217, .16);
  border-radius: 5px;
  background: rgba(0, 19, 35, .48);
  color: #f7fbff;
  font-size: 11px;
}
.landing-page .login-field input::placeholder { color: rgba(216,229,239,.34); }
.landing-page .login-field input:focus { border-color: rgba(220, 174, 77, .75); box-shadow: 0 0 0 3px rgba(220, 174, 77, .12); }
.landing-page .primary-btn {
  width: 100%;
  min-height: 39px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(135deg, #e1b656, #b77d2f);
  color: #fff9e9;
  font-size: 11px;
}
.landing-page .login-status { color: rgba(220,231,238,.5); font-size: 9px; line-height: 1.65; }

@media (max-width: 760px) {
  .landing-page .landing-hero { min-height: 100svh; padding-bottom: 36px; }
  .landing-page .landing-nav { width: calc(100% - 40px); padding: 18px 0; }
  .landing-page .landing-nav-links { gap: 14px; overflow: hidden; }
  .landing-page .landing-nav a { font-size: 11px; white-space: nowrap; }
  .landing-page .landing-nav-note { display: none; }
  .landing-page .landing-copy { width: calc(100% - 40px); margin: 58px auto 0; }
  .landing-page .landing-copy h1 { font-size: 36px; }
  .landing-page .landing-services { gap: 13px; flex-wrap: wrap; }
  .landing-page .login-card { position: relative; top: auto; right: auto; width: calc(100% - 40px); margin: 42px auto 0; transform: none; }
}

/* Landing page redesign — cinematic, dark editorial travel desk */
body.landing-page {
  min-width: 0;
  background: #071624;
  color: #f6f2e9;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.landing-page .landing-shell {
  min-height: 100vh;
  padding: 28px;
}

.landing-page .landing-wrap {
  max-width: 1440px;
  position: relative;
}

.landing-page .landing-nav {
  position: absolute;
  z-index: 2;
  top: 32px;
  right: 48px;
  left: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.landing-page .landing-nav-links {
  display: flex;
  gap: 38px;
  align-items: center;
}

.landing-page .landing-nav-links a {
  position: relative;
  padding: 9px 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.landing-page .landing-nav-links a.is-active {
  color: #f1d186;
}

.landing-page .landing-nav-links a.is-active::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 38px;
  height: 2px;
  content: "";
  background: #e2b457;
}

.landing-page .landing-copy .landing-brandmark {
  display: block;
  flex: 0 0 auto;
  width: 285px;
  margin-bottom: 36px;
  line-height: 0;
}

.landing-page .landing-copy .landing-brandmark img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}

.landing-page .landing-nav-note {
  margin: 0;
  color: rgba(246, 242, 233, 0.72);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}

.landing-page .landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  min-height: min(900px, calc(100vh - 56px));
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(231, 207, 151, 0.28);
  background: #0a1c2e;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

.landing-page .landing-hero-image,
.landing-page .landing-hero-shade {
  position: absolute;
  inset: 0;
  margin: 0;
}

.landing-page .landing-hero-image {
  z-index: -2;
}

.landing-page .landing-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-page .landing-hero-shade {
  z-index: -1;
  background: rgba(3, 14, 27, 0.26);
}

.landing-page .landing-copy {
  max-width: 720px;
  align-self: center;
  margin: 96px 0 0 88px;
  padding: 0;
  color: #fffdf8;
  background: transparent;
  box-shadow: none;
}

.landing-page .landing-copy::after {
  display: none;
}

.landing-page .eyebrow {
  margin-bottom: 18px;
  color: #e4bd60;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.21em;
}

.landing-page .landing-copy h1 {
  margin: 0;
  max-width: 650px;
  color: #fffdf8;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(2.8rem, 4.25vw, 4.85rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0.01em;
}

.landing-page .landing-lead {
  max-width: 548px;
  margin-top: 30px;
  color: rgba(255, 253, 248, 0.84);
  font-size: 1.03rem;
  line-height: 1.88;
}

.landing-page .landing-services {
  display: flex;
  gap: 24px;
  margin-top: 34px;
}

.landing-page .landing-services div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.landing-page .landing-services strong {
  color: #f1d186;
  font-size: 0.9rem;
  font-weight: 700;
}

.landing-page .landing-services span {
  color: rgba(255, 253, 248, 0.65);
  font-size: 0.76rem;
}

.landing-page .journey-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 38px;
  padding: 0 26px;
  border: 1px solid #e0b653;
  background: #c89332;
  color: #fffdf8;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.landing-page .journey-cta:hover,
.landing-page .journey-cta:focus-visible {
  background: #e0b653;
  color: #071624;
}

.landing-page .hero-side {
  display: block;
}

.landing-page .login-card {
  z-index: 1;
  align-self: center;
  margin: 86px 58px 0 0;
  padding: 44px;
  border: 1px solid rgba(234, 214, 169, 0.42);
  border-radius: 15px;
  background: rgba(8, 27, 45, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  color: #f7f3eb;
  backdrop-filter: blur(12px);
}

.landing-page .login-card-head h2 {
  color: #fffdf8;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.landing-page .login-card-head p:last-child,
.landing-page .login-status {
  color: rgba(246, 242, 233, 0.72);
}

.landing-page .login-field span {
  color: #e9dfca;
}

.landing-page .login-field input {
  border-color: rgba(234, 214, 169, 0.34);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #112134;
}

.landing-page .login-field input:focus {
  border-color: #e6bc5d;
  box-shadow: 0 0 0 3px rgba(230, 188, 93, 0.22);
}

.landing-page .primary-btn {
  min-height: 50px;
  border: 1px solid #e0b653;
  border-radius: 0;
  background: #d4a63f;
  color: #102138;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.landing-page .primary-btn:hover:not(:disabled) {
  background: #ecc873;
}

.landing-page .primary-btn:focus-visible {
  outline: 3px solid #f6df9b;
  outline-offset: 3px;
}

.landing-page .landing-proof {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid rgba(231, 207, 151, 0.2);
  background: #0c2032;
}

.landing-page .landing-proof article {
  min-height: 178px;
  padding: 28px 32px;
  border-left: 1px solid rgba(231, 207, 151, 0.16);
}

.landing-page .landing-proof article:first-child {
  border-left: 0;
}

.landing-page .landing-proof span {
  display: block;
  margin-bottom: 18px;
  color: #d5aa4c;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.landing-page .landing-proof strong {
  display: block;
  color: #fffdf8;
  font-size: 1.15rem;
  font-weight: 700;
}

.landing-page .landing-proof p {
  max-width: 320px;
  margin: 10px 0 0;
  color: rgba(246, 242, 233, 0.66);
  font-size: 0.93rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .landing-page .landing-nav {
    top: 24px;
    right: 28px;
    left: 28px;
  }

  .landing-page .landing-nav-links {
    gap: 20px;
  }

  .landing-page .landing-hero {
    grid-template-columns: 1fr;
    min-height: 920px;
  }

  .landing-page .landing-copy {
    margin: 138px 48px 0;
  }

  .landing-page .login-card {
    margin: 42px 48px 48px;
  }

  .landing-page .landing-proof {
    grid-template-columns: 1fr;
  }

  .landing-page .landing-proof article,
  .landing-page .landing-proof article:first-child {
    min-height: 0;
    border-top: 1px solid rgba(231, 207, 151, 0.16);
    border-left: 0;
  }

  .landing-page .landing-proof article:first-child {
    border-top: 0;
  }
}

@media (max-width: 600px) {
  .landing-page .landing-shell {
    padding: 12px;
  }

  .landing-page .landing-nav {
    top: 20px;
    right: 22px;
    left: 22px;
  }

  .landing-page .landing-nav-note {
    display: none;
  }

  .landing-page .landing-nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .landing-page .landing-nav-links a {
    font-size: 0.72rem;
  }

  .landing-page .landing-hero {
    min-height: 940px;
  }

  .landing-page .landing-copy {
    margin: 102px 26px 0;
  }

  .landing-page .landing-copy .landing-brandmark {
    width: 220px;
    margin-bottom: 26px;
  }

  .landing-page .landing-copy .landing-brandmark img {
    height: 86px;
  }

  .landing-page .landing-copy h1 {
    font-size: 2.45rem;
  }

  .landing-page .landing-lead {
    font-size: 0.96rem;
  }

  .landing-page .landing-points span {
    padding: 0 10px;
    font-size: 0.77rem;
  }

  .landing-page .landing-services {
    gap: 13px;
    flex-wrap: wrap;
  }

  .landing-page .landing-services strong {
    font-size: 0.8rem;
  }

  .landing-page .landing-services span {
    font-size: 0.68rem;
  }

  .landing-page .login-card {
    margin: 36px 18px 18px;
    padding: 26px 22px;
  }

  .landing-page .login-card-head h2 {
    font-size: 1.75rem;
  }

  .landing-page .landing-proof article {
    padding: 24px;
  }
}

.page-shell {
  min-height: 100vh;
  padding: 16px;
}

.wrap {
  max-width: 2048px;
  margin: 0 auto;
  position: relative;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(34, 62, 89, 0.08);
}

.app-topbar strong {
  font-size: 1.1rem;
}

.app-brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.app-brand-logo {
  display: block;
  width: 210px;
  max-width: 42vw;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.app-brand-copy {
  display: grid;
  gap: 2px;
}

.app-brand-copy .brand-english {
  margin-top: 4px;
  font-size: 0.72rem;
}

.app-topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.session-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel-bar-start) 0%, var(--panel-bar-end) 100%);
  box-shadow: var(--shadow);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stat {
  min-width: 118px;
  padding: 16px 16px;
  border-radius: 16px;
  background: var(--panel-pill-bg);
  border: 1px solid var(--panel-bar-border);
}

.hero-stat span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-stat strong {
  font-size: 1.1rem;
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: end;
  text-align: right;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero-copy p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.hero-context {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.main {
  margin-top: 14px;
}

.table-intro {
  padding: 2px 2px 12px;
  color: #6a7f96;
  font-size: 0.95rem;
  font-weight: 700;
}

.toolbar {
  padding: 0 0 10px;
}

.toolbar-compact {
  display: grid;
  gap: 8px;
}

.query-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-field {
  display: grid;
  gap: 6px;
}

.toolbar-field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.toolbar-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
}

.toolbar-field select,
.toolbar-field input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d9d3cb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
}

.toolbar-field.has-value select,
.toolbar-field.has-value input,
.toolbar-field-inline.has-value select {
  border-color: var(--selection-border);
  background: linear-gradient(180deg, #fbf5ec 0%, var(--selection-bg) 100%);
  color: var(--selection-text);
  box-shadow: 0 0 0 2px rgba(194, 160, 107, 0.12);
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.toolbar-field-filter {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.toolbar-field-filter span {
  white-space: nowrap;
}

.toolbar-field-filter select {
  width: 170px;
  max-width: 170px;
}

#queryVisitedPort {
  width: 190px;
  max-width: 190px;
}

.toolbar-field-month {
  gap: 0;
}

.toolbar-field-month select {
  width: 126px;
  max-width: 126px;
}

.toolbar-field-month-end {
  margin-left: -4px;
}

.page-meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.toolbar-field-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toolbar-field-inline span {
  font-size: 0.88rem;
}

.toolbar-field-inline select {
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 12px;
}

.toolbar-meta > .toolbar-btn {
  min-height: 38px;
  padding: 8px 13px;
}

@media (max-width: 1100px) {
  .toolbar-field-filter select,
  #queryVisitedPort {
    width: 160px;
    max-width: 160px;
  }
}

.file-mode-hint {
  display: inline-block;
  color: #9a4f24;
}

.table-shell,
.table-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--page);
  box-shadow: var(--shadow);
}

.deals-loading-indicator {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(159, 106, 22, .38);
  border-radius: 999px;
  background: rgba(255, 250, 239, .96);
  color: #8d5c15;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(50, 66, 80, .16);
  pointer-events: none;
}

.deals-loading-indicator[hidden] { display: none; }

.deals-loading-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(141, 92, 21, .28);
  border-top-color: #a56a18;
  border-radius: 50%;
  animation: deals-loading-spin .72s linear infinite;
}

@keyframes deals-loading-spin {
  to { transform: rotate(360deg); }
}

.table-wrap {
  margin-top: 18px;
}

.table-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding: 18px 18px 12px;
}

.table-head h3 {
  margin: 0;
}

.table-scroll {
  overflow: auto;
  max-height: calc(100vh - 272px);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1380px;
  table-layout: fixed;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

tbody td {
  font-size: 0.92rem;
}

tbody td a {
  font: inherit;
}

thead th {
  position: sticky;
  z-index: 2;
}

.filter-row th {
  top: 0;
  padding: 5px 6px;
  background: linear-gradient(180deg, var(--panel-bar-start) 0%, var(--panel-bar-end) 100%);
  border-right: 1px solid var(--panel-bar-border);
  cursor: pointer;
}

.filter-row th.is-active[data-sort-dir="asc"] .filter-cell::after {
  content: "▲";
}

.filter-row th.is-active[data-sort-dir="desc"] .filter-cell::after {
  content: "▼";
}

.filter-cell {
  display: block;
  position: relative;
}

.filter-cell::after {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(93, 83, 72, 0.72);
  font-size: 0.7rem;
  pointer-events: none;
}

.filter-row input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 6px 24px 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  cursor: text;
}

.head-pill {
  display: block;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  line-height: 16px;
}

.sort-pill {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 6px 24px 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.sort-pill:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sort-pill-multi {
  background-image: linear-gradient(45deg, transparent 50%, #8c7a63 50%), linear-gradient(135deg, #8c7a63 50%, transparent 50%);
  background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.filter-row th[data-key="nights"] input,
.filter-row th[data-key="cabin_name"] input,
.filter-row th[data-key="current_snapshot_date"] input,
.filter-row th[data-key="previous_snapshot_date"] input,
.filter-row th[data-key="drop_pct"] .sort-pill,
.filter-row th[data-key="discount_pct"] .sort-pill {
  padding-left: 8px;
  padding-right: 18px;
  font-size: 0.88rem;
}


.filter-row th.is-active .sort-pill {
  border-color: var(--selection-border);
  background: linear-gradient(180deg, #fbf5ec 0%, var(--selection-bg) 100%);
  color: var(--selection-text);
  box-shadow: 0 0 0 2px rgba(194, 160, 107, 0.14);
}

.filter-row input[data-multi-key] {
  padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, #8c7a63 50%), linear-gradient(135deg, #8c7a63 50%, transparent 50%);
  background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.filter-row input.is-active,
.filter-row input.is-active-filter,
.filter-row input.has-value,
.filter-row .sort-pill.is-active-filter {
  border-color: var(--selection-border);
  background-color: var(--selection-bg);
  color: var(--selection-text);
  box-shadow: 0 0 0 2px rgba(194, 160, 107, 0.14);
}

tbody tr:nth-child(even) {
  background: #fbfdff;
}

tbody tr:hover {
  background: #f0f7ff;
}

td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.price-now,
.price-prev,
.price {
  color: var(--red);
  font-weight: 800;
}

.daily-price,
.drop-pct {
  color: var(--green);
  font-weight: 800;
}

.deal-title {
  font-weight: 700;
}

.deal-meta,
.snapshot-stack {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e7f1fb;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-badge-muted {
  background: #eef2f6;
  color: #6b7e91;
}

.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}

.multi-panel {
  position: absolute;
  z-index: 10;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(27, 52, 78, 0.18);
  overflow: hidden;
}

.multi-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #f1f7fc;
  color: #30506d;
  font-size: 0.84rem;
}

.multi-panel-actions {
  display: flex;
  gap: 8px;
  padding: 8px 12px 8px;
}

.multi-panel-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #30506d;
  cursor: pointer;
}

.multi-panel-list {
  display: grid;
  gap: 1px;
  max-height: 320px;
  overflow: auto;
  padding: 0 0 12px;
}

.multi-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #29435b;
  font-size: 0.92rem;
  white-space: nowrap;
}

.multi-option:hover {
  background: #f6faff;
}

.multi-option-all {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fbfdff;
  font-weight: 700;
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 10px 0;
  color: #53708f;
  font-size: 0.92rem;
  font-weight: 700;
}

.col-region {
  width: 108px;
}

.col-line {
  width: 132px;
}

.col-ship {
  width: 130px;
}

.col-star {
  width: 66px;
}

.col-sail {
  width: 118px;
}

.col-nights {
  width: 66px;
}

.col-deal {
  width: 84px;
}

.col-cabin {
  width: 70px;
}

.col-snapshot {
  width: 78px;
}

.col-price {
  width: 84px;
}

.col-daily {
  width: 66px;
}

.col-prev {
  width: 84px;
}

.col-drop {
  width: 66px;
  min-width: 66px;
  max-width: 66px;
}

.col-discount {
  width: 66px;
  min-width: 66px;
  max-width: 66px;
}

.detail-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.back-link {
  font-weight: 700;
}

.detail-meta {
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 320px;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #214d79 0%, #173654 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.detail-hero h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.detail-sub {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
}

.detail-actions {
  margin-top: 18px;
}

.shortlist-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
}

.shortlist-btn-active {
  background: rgba(216, 154, 43, 0.18);
  border-color: rgba(216, 154, 43, 0.45);
}

.route-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.route-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.route-chip-muted {
  background: rgba(255, 255, 255, 0.08);
}

.detail-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-kv {
  display: grid;
  gap: 4px;
}

.detail-kv span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

.detail-kv strong {
  font-size: 0.98rem;
}

.history-blocks {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.history-card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

.history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f5f9fd;
  border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 1100px) {
  .query-grid,
  .landing-hero,
  .feature-grid,
  .workflow-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-copy {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .landing-shell,
  .page-shell,
  .detail-shell {
    padding: 10px;
  }

  .landing-copy,
  .login-card,
  .landing-section,
  .hero,
  .detail-hero {
    padding: 18px;
  }

  .landing-copy h1,
  .hero-copy h1,
  .detail-hero h1 {
    font-size: 1.8rem;
  }

  .app-topbar,
  .detail-header {
    align-items: start;
    flex-direction: column;
  }

  .app-brand {
    gap: 4px;
  }

  .table-scroll {
    max-height: none;
  }
}

/* Final reference-aligned landing overrides. */
body.landing-page .landing-copy h1 { font-size: clamp(2.45rem, 3.55vw, 3.45rem); line-height: 1.24; letter-spacing: .055em; }
body.landing-page .landing-copy { align-self: start; margin: 194px 0 0 58px; }
body.landing-page .landing-copy .landing-brandmark { width: 250px; margin-bottom: 27px; }
body.landing-page .landing-copy .landing-brandmark img { height: auto; filter: brightness(0) saturate(100%) invert(74%) sepia(41%) saturate(595%) hue-rotate(358deg) brightness(90%) contrast(88%); }
body.landing-page .landing-lead { margin-top: 48px; font-size: .9rem; line-height: 1.82; }
body.landing-page .landing-services { gap: 24px; margin-top: 42px; }
body.landing-page .landing-services div { display: block; padding-left: 11px; border-left: 1px solid rgba(225, 182, 86, .72); }
body.landing-page .landing-services strong { font-size: .76rem; }
body.landing-page .landing-services span { display: block; margin-top: 4px; font-size: .64rem; }
body.landing-page .journey-cta { justify-content: space-between; min-height: 46px; width: 160px; margin-top: 38px; padding: 0 18px; border: 0; border-radius: 5px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
body.landing-page .journey-cta::after { content: "→"; font-size: 1.15rem; }
body.landing-page .login-card { position: absolute; top: 50%; right: max(36px, calc((100vw - 1320px) / 2)); width: 336px; margin: 0; padding: 29px 30px 25px; transform: translateY(-43%); border-color: rgba(177, 207, 230, .16); border-radius: 9px; background: linear-gradient(145deg, rgba(6, 29, 48, .94), rgba(8, 32, 52, .86)); }
body.landing-page .login-card .eyebrow { margin-bottom: 10px; font-size: .53rem; }
body.landing-page .login-card-head h2 { font-size: 1.25rem; line-height: 1.4; }
body.landing-page .login-card-head p:last-child { margin-top: 10px; font-size: .68rem; line-height: 1.7; }
body.landing-page .login-form { gap: 11px; margin-top: 19px; }
body.landing-page .login-field { gap: 6px; }
body.landing-page .login-field span { font-size: .62rem; }
body.landing-page .login-field input { min-height: 36px; padding: 8px 12px; border-radius: 5px; font-size: .66rem; }
body.landing-page .primary-btn { min-height: 37px; border: 0; border-radius: 5px; font-size: .67rem; }
body.landing-page .login-status { font-size: .56rem; }

@media (max-width: 760px) {
  body.landing-page .landing-shell { padding: 10px; }
  body.landing-page .landing-nav { right: 20px; left: 20px; }
  body.landing-page .landing-nav-links { gap: 12px; }
  body.landing-page .landing-nav-links a { font-size: .68rem; }
  body.landing-page .landing-nav-note { display: none; }
  body.landing-page .landing-hero { display: block; min-height: 920px; }
  body.landing-page .landing-copy { margin: 125px 24px 0; }
  body.landing-page .login-card { position: relative; top: auto; right: auto; width: auto; margin: 42px 24px 0; transform: none; }
}

/* Approved option-one artwork: render without any visual alteration. */
body.landing-reference-mode .landing-shell { display: grid; min-height: 100vh; padding: 0; place-items: center; background: #0a1a2b; }
body.landing-reference-mode .landing-wrap { width: min(100vw, calc(100vh * 1.405)); max-width: none; min-height: 0; margin: 0; }
body.landing-reference-mode .landing-hero { display: block; min-height: 0; aspect-ratio: 1487 / 1058; border: 0; box-shadow: none; }
body.landing-reference-mode .landing-hero-image { z-index: 0; }
body.landing-reference-mode .landing-hero-image img { object-fit: fill; }
body.landing-reference-mode .landing-hero-shade,
body.landing-reference-mode .landing-nav,
body.landing-reference-mode .landing-copy { display: none; }
body.landing-reference-mode .login-card { position: absolute; z-index: 2; top: 30.5%; right: 9.2%; width: 20.2%; height: 38.6%; margin: 0; padding: 0; transform: none; opacity: 0; }
body.landing-reference-mode .login-card > * { opacity: 0; }
body.landing-reference-mode .login-form { display: block; height: 100%; margin: 0; }
body.landing-reference-mode .login-field,
body.landing-reference-mode .primary-btn { position: absolute; left: 8%; width: 84%; margin: 0; }
body.landing-reference-mode .login-field:first-child { top: 40%; height: 12%; }
body.landing-reference-mode .login-field:nth-child(2) { top: 57%; height: 12%; }
body.landing-reference-mode .login-field input,
body.landing-reference-mode .primary-btn { width: 100%; height: 100%; min-height: 0; }
body.landing-reference-mode .primary-btn { top: 74%; height: 13%; }
@media (max-width: 760px) { body.landing-reference-mode .landing-wrap { width: 100vw; } }

/* Interior pages — option-one polar expedition visual system. */
body.workbench-page {
  min-height: 100vh;
  background: #071a2b url("assets/homepage-design-option-1.png") center top / cover fixed;
  color: #edf3f7;
}
body.workbench-page::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(2, 16, 29, .88); }
body.workbench-page .page-shell,
body.workbench-page .detail-shell { padding: 28px; }
body.workbench-page .wrap,
body.workbench-page .detail-shell { max-width: 1440px; margin: 0 auto; }
body.workbench-page .app-topbar,
body.workbench-page .detail-header { border-color: rgba(226, 181, 86, .25); }
body.workbench-page .app-brand-logo { width: 178px; height: auto; filter: brightness(0) saturate(100%) invert(74%) sepia(41%) saturate(595%) hue-rotate(358deg) brightness(90%) contrast(88%); }
body.workbench-page .session-label,
body.workbench-page .detail-meta,
body.workbench-page .legend { color: rgba(233, 242, 247, .67); }
body.workbench-page .toolbar-btn,
body.workbench-page .back-link { border-color: rgba(223, 179, 82, .38); background: rgba(6, 28, 47, .7); color: #f7e2a5; }
body.workbench-page .toolbar-btn:hover,
body.workbench-page .back-link:hover { background: rgba(189, 133, 45, .9); color: #fff; text-decoration: none; }
body.workbench-page .hero,
body.workbench-page .detail-hero { border: 1px solid rgba(221, 180, 87, .27); background: linear-gradient(120deg, rgba(4, 27, 47, .94), rgba(8, 42, 67, .77)); box-shadow: 0 22px 54px rgba(0, 0, 0, .27); }
body.workbench-page .hero-stat { border-color: rgba(231, 197, 117, .18); background: rgba(255, 255, 255, .045); }
body.workbench-page .hero-stat span,
body.workbench-page .hero-copy p,
body.workbench-page .hero-context,
body.workbench-page .detail-sub { color: rgba(230, 239, 245, .7); }
body.workbench-page .hero-stat strong,
body.workbench-page .hero-copy h1,
body.workbench-page .detail-hero h1,
body.workbench-page .table-head h3 { color: #fffaf0; font-family: "Songti SC", "STSong", serif; }
body.workbench-page .hero-copy h1,
body.workbench-page .detail-hero h1 { letter-spacing: .04em; }
body.workbench-page .table-intro,
body.workbench-page .toolbar,
body.workbench-page .table-shell,
body.workbench-page .table-wrap,
body.workbench-page .detail-card { border-color: rgba(225, 188, 109, .2); background: rgba(5, 28, 48, .78); box-shadow: 0 16px 38px rgba(0, 0, 0, .18); }
body.workbench-page .table-intro,
body.workbench-page .toolbar,
body.workbench-page .table-wrap { color: rgba(235, 243, 247, .82); }
body.workbench-page input,
body.workbench-page select,
body.workbench-page .sort-pill { border-color: rgba(177, 207, 230, .2); background: rgba(0, 18, 33, .54); color: #edf3f7; }
body.workbench-page table { color: #eaf1f5; }
body.workbench-page th { background: rgba(9, 41, 64, .94); color: #e7c26f; border-color: rgba(224, 189, 112, .18); }
body.workbench-page td { border-color: rgba(190, 215, 230, .1); background: rgba(5, 28, 47, .46); }
body.workbench-page tbody tr:hover td { background: rgba(178, 126, 43, .16); }
body.workbench-page .detail-card,
body.workbench-page .detail-card strong { color: #f7f5ef; }
body.workbench-page .detail-kv span,
body.workbench-page .route-chip,
body.workbench-page .history-head { color: rgba(231, 240, 245, .7); }
body.workbench-page .shortlist-btn,
body.workbench-page .primary-btn { border-color: #d8a547; background: linear-gradient(135deg, #d8a547, #a96f24); color: #fff9e9; }
@media (max-width: 760px) { body.workbench-page .page-shell, body.workbench-page .detail-shell { padding: 12px; } }

/* Approved light interior system — derived from the selected coastal homepage. */
body.workbench-page {
  min-height: 100vh;
  background: #f5f7f7 url("assets/homepage-design-option-2-clean.webp") center top / cover fixed;
  color: #20374d;
}
body.workbench-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(248, 249, 247, .91);
}
body.workbench-page .app-topbar,
body.workbench-page .detail-header {
  border-color: rgba(177, 128, 46, .22);
  background: rgba(255, 255, 253, .72);
  box-shadow: 0 8px 28px rgba(39, 57, 70, .07);
}
body.workbench-page .app-brand-logo {
  filter: none;
}
body.workbench-page .session-label,
body.workbench-page .detail-meta,
body.workbench-page .legend,
body.workbench-page .hero-stat span,
body.workbench-page .hero-copy p,
body.workbench-page .hero-context,
body.workbench-page .detail-sub,
body.workbench-page .detail-kv span,
body.workbench-page .route-chip,
body.workbench-page .history-head {
  color: #708092;
}
body.workbench-page .toolbar-btn,
body.workbench-page .back-link {
  border-color: rgba(172, 126, 54, .32);
  background: rgba(255, 255, 252, .92);
  color: #8b651f;
}
body.workbench-page .toolbar-btn:hover,
body.workbench-page .back-link:hover {
  background: #b98935;
  color: #fff;
}
body.workbench-page .hero,
body.workbench-page .detail-hero {
  border-color: rgba(177, 128, 46, .22);
  background: linear-gradient(120deg, rgba(255, 255, 253, .96), rgba(238, 246, 248, .89));
  box-shadow: 0 18px 45px rgba(54, 73, 88, .12);
}
body.workbench-page .hero-stat {
  border-color: rgba(68, 110, 137, .12);
  background: rgba(255, 255, 255, .58);
}
body.workbench-page .hero-stat strong,
body.workbench-page .hero-copy h1,
body.workbench-page .detail-hero h1,
body.workbench-page .table-head h3,
body.workbench-page .detail-card,
body.workbench-page .detail-card strong {
  color: #173650;
}
body.workbench-page .table-intro,
body.workbench-page .toolbar,
body.workbench-page .table-shell,
body.workbench-page .table-wrap,
body.workbench-page .detail-card {
  border-color: rgba(65, 105, 129, .14);
  background: rgba(255, 255, 253, .88);
  box-shadow: 0 14px 35px rgba(48, 71, 86, .09);
}
body.workbench-page .table-intro,
body.workbench-page .toolbar,
body.workbench-page .table-wrap {
  color: #4e6375;
}
body.workbench-page input,
body.workbench-page select,
body.workbench-page .sort-pill {
  border-color: rgba(65, 105, 129, .22);
  background: #fffefd;
  color: #29465e;
}
body.workbench-page table { color: #314d64; }
body.workbench-page th {
  background: #eef5f6;
  color: #8b651f;
  border-color: rgba(65, 105, 129, .16);
}
body.workbench-page td {
  border-color: rgba(65, 105, 129, .11);
  background: rgba(255, 255, 253, .6);
}
body.workbench-page tbody tr:hover td { background: #fff4dc; }
body.workbench-page .shortlist-btn,
body.workbench-page .primary-btn {
  border-color: #b98935;
  background: linear-gradient(135deg, #c99a45, #a9782a);
  color: #fffdf8;
}

/* Option two places its access card in the lower-right image quadrant. */
body.landing-reference-mode .login-card {
  top: 57.75%;
  right: auto;
  left: 68.0%;
  width: 26.55%;
  height: 42.25%;
  pointer-events: auto;
}
body.landing-reference-mode .login-field,
body.landing-reference-mode .primary-btn {
  left: 9.8%;
  width: 80.5%;
  pointer-events: auto;
}
body.landing-reference-mode .login-field:first-child { top: 32.4%; height: 9.1%; }
body.landing-reference-mode .login-field:nth-child(2) { top: 50.1%; height: 9.1%; }
body.landing-reference-mode .primary-btn { top: 63.3%; height: 9.2%; }
body.landing-reference-mode .login-field input,
body.landing-reference-mode .primary-btn { pointer-events: auto; }

/* Keep the image as the visual surface while letting the real form receive input. */
body.landing-reference-mode .landing-shell { background: #f5f2ec; }
body.landing-reference-mode .login-card {
  z-index: 4;
  opacity: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.landing-reference-mode .login-card-head,
body.landing-reference-mode .login-status { display: none; }
body.landing-reference-mode .login-form { opacity: 1; }
body.landing-reference-mode .login-field { opacity: 1; }
body.landing-reference-mode .login-field span { display: none; }
body.landing-reference-mode .login-field input {
  opacity: 1;
  box-sizing: border-box;
  border: 1px solid rgba(133, 128, 119, .28);
  border-radius: 7px;
  background: #f8f6f1;
  color: #2b4055;
  caret-color: #aa7b2e;
  font-size: clamp(12px, 1.15vw, 16px);
  line-height: 1;
  padding: 0 5%;
}
body.landing-reference-mode .login-field input::placeholder { color: #9a9a96; opacity: 1; }
body.landing-reference-mode .login-field input:focus {
  outline: 2px solid rgba(185, 137, 53, .5);
  outline-offset: 0;
  background: #fffdfa;
}
body.landing-reference-mode .login-field input:-webkit-autofill,
body.landing-reference-mode .login-field input:-webkit-autofill:hover,
body.landing-reference-mode .login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #2b4055;
  -webkit-box-shadow: 0 0 0 1000px #f8f6f1 inset;
  transition: background-color 9999s ease-out 0s;
}
body.landing-reference-mode .primary-btn {
  opacity: 1;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
body.landing-reference-mode .primary-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}
body.landing-reference-mode .landing-hero { aspect-ratio: 1486 / 1059; }

/* Slightly deeper light interior, with alternating rows for rapid scanning. */
body.workbench-page {
  background-color: #e6edef;
  color: #20394f;
}
body.workbench-page::before { background: rgba(234, 241, 242, .82); }
body.workbench-page .app-topbar,
body.workbench-page .detail-header { background: rgba(248, 251, 250, .88); }
body.workbench-page .hero,
body.workbench-page .detail-hero {
  background: linear-gradient(120deg, rgba(250, 252, 251, .96), rgba(222, 234, 236, .92));
}
body.workbench-page .table-intro,
body.workbench-page .toolbar,
body.workbench-page .table-shell,
body.workbench-page .table-wrap,
body.workbench-page .detail-card { background: rgba(246, 250, 249, .93); }
body.workbench-page th { background: #dce9eb; }
body.workbench-page tbody tr:nth-child(odd) td { background: #f5f9f8; }
body.workbench-page tbody tr:nth-child(even) td { background: #e9f0f1; }
body.workbench-page tbody tr:hover td { background: #f9eed8; }
body.workbench-page .multi-panel {
  border-color: rgba(61, 94, 114, .22);
  background: #edf4f4;
  box-shadow: 0 18px 38px rgba(33, 57, 73, .22);
}
body.workbench-page .multi-panel-head { background: #dfeaed; }

/* Compact column dock — selected option 3. */
body.workbench-page .filter-row th {
  padding: 4px 5px 5px;
  background: linear-gradient(180deg, #dbe9eb 0%, #d1e1e4 100%);
  border-right-color: rgba(51, 87, 109, .16);
  box-shadow: inset 0 1px rgba(255, 255, 255, .78);
}
body.workbench-page .filter-row th:nth-child(4),
body.workbench-page .filter-row th:nth-child(8),
body.workbench-page .filter-row th:nth-child(10),
body.workbench-page .filter-row th:nth-child(14) {
  border-right: 2px solid rgba(47, 82, 104, .22);
}
body.workbench-page .filter-cell::after {
  right: 8px;
  color: #8a6740;
}
body.workbench-page .filter-row input,
body.workbench-page .sort-pill,
body.workbench-page .head-pill {
  height: 29px;
  padding: 5px 19px 5px 8px;
  border-color: rgba(61, 94, 114, .18);
  border-radius: 8px;
  background-color: rgba(250, 253, 252, .94);
  box-shadow: 0 1px 1px rgba(29, 62, 79, .05);
  font-size: .86rem;
  font-weight: 600;
}
body.workbench-page .sort-pill {
  text-align: center;
}
body.workbench-page .head-pill { text-align: center; }
body.workbench-page .filter-row input[data-multi-key],
body.workbench-page .sort-pill-multi {
  background-position: calc(100% - 11px) 13px, calc(100% - 7px) 13px;
}
body.workbench-page .filter-row input.is-active,
body.workbench-page .filter-row input.is-active-filter,
body.workbench-page .filter-row input.has-value,
body.workbench-page .filter-row .sort-pill.is-active-filter,
body.workbench-page .filter-row th.is-active .sort-pill {
  border-color: #ba8a3d;
  background-color: #f5ead4;
  color: #79551d;
  box-shadow: 0 1px 0 rgba(132, 92, 31, .1), 0 0 0 1px rgba(186, 138, 61, .16);
}
body.workbench-page .filter-row th[data-key="current_price"] .sort-pill,
body.workbench-page .filter-row th[data-key="balcony_inside_ratio"] .sort-pill,
body.workbench-page .filter-row th[data-key="balcony_oceanview_ratio"] .sort-pill,
body.workbench-page .filter-row th[data-key="daily_price"] .sort-pill,
body.workbench-page .filter-row th[data-key="city_day_ratio"] .sort-pill,
body.workbench-page .filter-row th[data-key="previous_price"] .sort-pill,
body.workbench-page .filter-row th[data-key="drop_pct"] .sort-pill,
body.workbench-page .filter-row th[data-key="discount_pct"] .sort-pill {
  padding-right: 7px;
  padding-left: 7px;
}

/* Desktop fit: keep every column in the 1440 px workbench frame. */
body.workbench-page #dealsTable { min-width: 0; }
body.workbench-page #dealsTable th,
body.workbench-page #dealsTable td { padding: 7px 6px; }
body.workbench-page #dealsTable tbody td { font-size: .83rem; }
.ratio-unavailable {
  color: #7b8790;
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
}
body.workbench-page #dealsTable .col-region { width: 84px; }
body.workbench-page #dealsTable .col-line { width: 110px; }
body.workbench-page #dealsTable .col-ship { width: 110px; }
body.workbench-page #dealsTable .col-star { width: 48px; }
body.workbench-page #dealsTable .col-sail { width: 100px; }
body.workbench-page #dealsTable .col-nights { width: 50px; }
body.workbench-page #dealsTable .col-country { width: 40px; }
body.workbench-page #dealsTable .col-country-night-ratio { width: 60px; }
body.workbench-page #dealsTable .col-deal { width: 64px; }
body.workbench-page #dealsTable .col-cabin { width: 64px; }
body.workbench-page #dealsTable .col-snapshot { width: 58px; }
body.workbench-page #dealsTable .col-price { width: 70px; }
body.workbench-page #dealsTable .col-daily { width: 56px; }
body.workbench-page #dealsTable .col-prev { width: 70px; }
body.workbench-page #dealsTable .col-drop,
body.workbench-page #dealsTable .col-discount { width: 56px; min-width: 56px; max-width: 56px; }
body.workbench-page #dealsTable .filter-row th { padding: 4px 4px 5px; }
body.workbench-page #dealsTable .filter-row input,
body.workbench-page #dealsTable .sort-pill { padding-right: 15px; padding-left: 6px; font-size: .79rem; }
body.workbench-page #dealsTable .head-pill { padding-right: 15px; padding-left: 6px; color: #29465e; font-size: .79rem; }
body.workbench-page #dealsTable .filter-row th[data-key="current_price"] .sort-pill,
body.workbench-page #dealsTable .filter-row th[data-key="balcony_inside_ratio"] .sort-pill,
body.workbench-page #dealsTable .filter-row th[data-key="oceanview_inside_ratio"] .sort-pill,
body.workbench-page #dealsTable .filter-row th[data-key="balcony_oceanview_ratio"] .sort-pill,
body.workbench-page #dealsTable .filter-row th[data-key="daily_price"] .sort-pill,
body.workbench-page #dealsTable .filter-row th[data-key="city_day_ratio"] .sort-pill,
body.workbench-page #dealsTable .filter-row th[data-key="previous_price"] .sort-pill,
body.workbench-page #dealsTable .filter-row th[data-key="drop_pct"] .sort-pill,
body.workbench-page #dealsTable .filter-row th[data-key="discount_pct"] .sort-pill { padding-right: 4px; padding-left: 4px; }

/* Clean workspace canvas: remove the decorative homepage artwork behind data views. */
body.workbench-page {
  background: #e6edef;
}
body.workbench-page::before {
  display: none;
}

/* Compact data-first header: the counts remain, duplicated explanatory copy is removed. */
body.workbench-page .hero {
  display: block;
  min-height: 0;
  padding: 14px 18px;
}
body.workbench-page .hero-stats {
  gap: 10px;
}
body.workbench-page .hero-stat {
  min-width: 128px;
  padding: 11px 14px;
  border-radius: 13px;
}
body.workbench-page .hero-stat span {
  margin-bottom: 3px;
  font-size: .78rem;
}
body.workbench-page .hero-stat strong {
  font-size: .98rem;
  line-height: 1.2;
}
body.workbench-page .toolbar-compact {
  margin-top: 10px;
}
body.workbench-page .toolbar-compact .toolbar-row {
  min-height: 24px;
  padding-bottom: 4px;
  font-size: .84rem;
}

/* Single-line workspace bar: statistics, filters, and paging share one compact surface. */
body.workbench-page .toolbar-compact {
  margin-top: 12px;
  padding: 10px 12px;
}
body.workbench-page .toolbar-meta-unified {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
body.workbench-page .toolbar-meta-unified .hero-stats {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
body.workbench-page .toolbar-meta-unified .hero-stat {
  min-width: 70px;
  padding: 6px 9px;
  border-radius: 9px;
}
body.workbench-page .toolbar-meta-unified .hero-stat span {
  margin: 0 0 2px;
  font-size: .68rem;
}
body.workbench-page .toolbar-meta-unified .hero-stat strong {
  font-size: .84rem;
}
body.workbench-page .result-meta-compact,
body.workbench-page .file-mode-hint { display: none; }
body.workbench-page .toolbar-meta-unified .toolbar-field,
body.workbench-page .toolbar-meta-unified .toolbar-btn,
body.workbench-page .toolbar-meta-unified .page-meta { flex: 0 0 auto; }
body.workbench-page .toolbar-meta-unified .toolbar-field-month select { width: 100px; }
body.workbench-page .toolbar-meta-unified .toolbar-field-filter select { width: 138px; }
body.workbench-page .toolbar-meta-unified .toolbar-btn { padding: 8px 10px; }
body.workbench-page .toolbar-meta-unified .page-meta { min-width: 74px; }

/* Tighter data columns keep the full comparison set inside the desktop frame. */
body.workbench-page #dealsTable .col-region { width: 76px; }
body.workbench-page #dealsTable .col-line { width: 100px; }
body.workbench-page #dealsTable .col-ship { width: 98px; }
body.workbench-page #dealsTable .col-star { width: 42px; }
body.workbench-page #dealsTable .col-sail { width: 90px; }
body.workbench-page #dealsTable .col-nights { width: 42px; }
body.workbench-page #dealsTable .col-deal { width: 56px; }
body.workbench-page #dealsTable .col-cabin { width: 58px; }
body.workbench-page #dealsTable .col-daily { width: 52px; }
body.workbench-page #dealsTable .col-price,
body.workbench-page #dealsTable .col-prev { width: 64px; }
body.workbench-page #dealsTable .col-drop,
body.workbench-page #dealsTable .col-discount { width: 52px; min-width: 52px; max-width: 52px; }
body.workbench-page #dealsTable th,
body.workbench-page #dealsTable td { padding: 6px 4px; }

/* Unified compact controls: prominent statistics, quieter operational controls. */
body.workbench-page .toolbar-meta-unified .hero-stat {
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 10px;
}
body.workbench-page .toolbar-meta-unified .hero-stat span {
  margin-bottom: 3px;
  font-size: .78rem;
  font-weight: 700;
}
body.workbench-page .toolbar-meta-unified .hero-stat strong {
  font-size: 1rem;
  font-weight: 700;
}
body.workbench-page .toolbar-meta-unified .toolbar-field,
body.workbench-page .toolbar-meta-unified .toolbar-btn,
body.workbench-page .toolbar-meta-unified .page-meta {
  font-size: .79rem;
  font-weight: 600;
}
body.workbench-page .toolbar-meta-unified select,
body.workbench-page .toolbar-meta-unified .toolbar-btn {
  min-height: 34px;
  border-radius: 10px;
}
body.workbench-page .toolbar-meta-unified .toolbar-btn {
  padding: 7px 9px;
}
body.workbench-page .toolbar-meta-unified .page-meta {
  color: #586d80;
}
body.workbench-page .toolbar-meta-unified .snapshot-stats {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}
body.workbench-page .toolbar-meta-unified .snapshot-stats .hero-stat {
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 10px;
}
body.workbench-page .toolbar-meta-unified .snapshot-stats .hero-stat span {
  margin-bottom: 3px;
  font-size: .78rem;
  font-weight: 700;
}
body.workbench-page .toolbar-meta-unified .snapshot-stats .hero-stat strong {
  font-size: 1rem;
  font-weight: 700;
}

/* Connection page: group color stays consistent across every leg. */
.connections-toolbar { align-items: center; }
.connections-rule { margin: 0 12px; color: #586d80; font-size: .84rem; font-weight: 600; }
#dealsTable .col-combo-days { width: 64px; min-width: 64px; }
.connections-page #dealsTable .filter-row th { white-space: nowrap; }
.connections-page #dealsTable .filter-row select { width: 72px; min-width: 72px; border: 0; background: transparent; color: #526b7a; font: inherit; font-weight: 700; outline: none; }
.connections-page #dealsTable td { white-space: nowrap; }
.connections-page #dealsTable td:nth-child(7) { white-space: normal; }
.connections-page #dealsTable th,
.connections-page #dealsTable td { text-align: right; }
.connections-page #dealsTable .filter-row input,
.connections-page #dealsTable .sort-pill { text-align: right; }
.connections-page #dealsTable .col-line { width: 90px; min-width: 90px; max-width: 90px; }
.connections-page #dealsTable .col-ratio { width: 58px; min-width: 58px; max-width: 58px; }
.connections-page #dealsTable .col-country-count { width: 64px; min-width: 64px; max-width: 64px; }
.connections-page #dealsTable .col-combo-price { width: 88px; min-width: 88px; max-width: 88px; }
.connections-page #dealsTable .col-gap { width: 60px; min-width: 60px; max-width: 60px; }
.connections-page #dealsTable .col-deal { width: 62px; min-width: 62px; max-width: 62px; }
.connections-page #dealsTable .countries-cell { white-space: normal; }
.combo-days-cell { min-width: 58px; color: #536d7d; }
.combo-days-cell strong,
.combo-price-cell { color: #c83535; font-weight: 700; }
.connection-gap-cell { font: inherit; font-weight: inherit; color: inherit; }
.connections-page #dealsTable small { display: block; margin-top: 3px; color: #637886; font-size: .73rem; font-weight: 600; line-height: 1.35; }
.connections-empty { padding: 28px !important; text-align: center !important; color: #6b8090; }
.connections-page #dealsTable tr.connection-tone-0 > td { background: #edf6f1 !important; }
.connections-page #dealsTable tr.connection-tone-1 > td { background: #f8f1e6 !important; }
.connections-page #dealsTable tr.connection-tone-2 > td { background: #edf3f9 !important; }
.connections-page #dealsTable tr.connection-tone-3 > td { background: #f7eef4 !important; }
.connections-page #dealsTable tr.connection-tone-4 > td { background: #f2f5e9 !important; }
.connections-page #dealsTable tr.connection-tone-5 > td { background: #f1f0f8 !important; }

/* Connection page: an even, desktop-fit grid keeps every final metric visible. */
.header-loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8d5c15;
  font-size: .82rem;
  font-weight: 700;
}
.header-loading-indicator[hidden] { display: none; }
.connections-page #dealsTable { width: 100%; min-width: 0; }
.connections-page #dealsTable col { width: 4.168182% !important; min-width: 0 !important; max-width: none !important; }
.connections-page #dealsTable .col-sail { width: 8.3% !important; }
.connections-page #dealsTable th,
.connections-page #dealsTable td { padding-right: 3px; padding-left: 3px; }
.connections-page #dealsTable .filter-row input,
.connections-page #dealsTable .sort-pill { padding-right: 4px; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; }
