:root {
  --brand: #535C8B;
  --brand-2: #3A4170;
  --brand-deep: #2C3157;
  --ink: #20243A;
  --muted: #5C6178;
  --bg: #F3EEE5;
  --bg-soft: #ECE5D8;
  --card: #FCF9F4;
  --line: rgba(51, 58, 99, 0.14);
  --line-soft: rgba(51, 58, 99, 0.07);
  --serif: 'Lora', 'Songti SC', 'STSong', Georgia, serif;   /* 11 号稿定稿:中文衬线跟上 Lora */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  /* Soft, layered, non-parallel translucent waves (iOS-style) for dark panels */
  --wave: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201000%201000'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%23ffffff'%20fill-opacity='.08'%20d='M0,491.9L12,489.7L25,488L38,486.8L50,486.2L62,486L75,486.4L88,487.3L100,488.6L112,490.5L125,492.9L138,495.8L150,499.1L162,502.8L175,507L188,511.5L200,516.5L212,521.7L225,527.2L238,533L250,539.1L262,545.3L275,551.7L288,558.2L300,564.7L312,571.3L325,577.9L338,584.4L350,590.9L362,597.2L375,603.4L388,609.3L400,615L412,620.4L425,625.6L438,630.3L450,634.7L462,638.7L475,642.3L488,645.4L500,648.1L512,650.3L525,652L538,653.2L550,653.8L562,654L575,653.6L588,652.7L600,651.4L612,649.5L625,647.1L638,644.2L650,640.9L662,637.2L675,633L688,628.5L700,623.5L712,618.3L725,612.8L738,607L750,600.9L762,594.7L775,588.3L788,581.8L800,575.3L812,568.7L825,562.1L838,555.6L850,549.1L862,542.8L875,536.6L888,530.7L900,525L912,519.6L925,514.4L938,509.7L950,505.3L962,501.3L975,497.7L988,494.6L1000,491.9L1000,1000L0,1000Z'/%3E%3Cpath%20fill='%23ffffff'%20fill-opacity='.13'%20d='M0,716L12,712.5L25,708.6L38,704.1L50,699.3L62,693.9L75,688.2L88,682.2L100,675.8L112,669.1L125,662.2L138,655.1L150,647.8L162,640.4L175,633L188,625.5L200,618.1L212,610.7L225,603.5L238,596.4L250,589.6L262,582.9L275,576.6L288,570.6L300,565L312,559.7L325,554.9L338,550.6L350,546.8L362,543.4L375,540.6L388,538.4L400,536.7L412,535.6L425,535L438,535.1L450,535.7L462,537L475,538.8L488,541.1L500,544L512,547.5L525,551.4L538,555.9L550,560.7L562,566.1L575,571.8L588,577.8L600,584.2L612,590.9L625,597.8L638,604.9L650,612.2L662,619.6L675,627L688,634.5L700,641.9L712,649.3L725,656.5L738,663.6L750,670.4L762,677.1L775,683.4L788,689.4L800,695L812,700.3L825,705.1L838,709.4L850,713.2L862,716.6L875,719.4L888,721.6L900,723.3L912,724.4L925,725L938,724.9L950,724.3L962,723L975,721.2L988,718.9L1000,716L1000,1000L0,1000Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
/* Fine paper grain over the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* Cream stays clean two-tone (--bg / --bg-soft). The ambient "render" lives only in the
   dark bands below, where a glow reads as light instead of graying the paper. */

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* Language visibility (default lang-en shown statically; no JS required) */
html.lang-en .zh { display: none; }
html.lang-zh .en { display: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand-deep);
  color: #fff;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid #fff; }

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.principle a:focus-visible,
.contact a:focus-visible,
.hero__card a:focus-visible { outline-color: #fff; }

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
  opacity: .6;
  display: inline-block;
  flex: none;
}
.eyebrow--light { color: rgba(255,255,255,.75); }
.eyebrow--light::before { background: rgba(255,255,255,.6); opacity: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243,238,229,.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(243,238,229,.96); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.nav {
  display: flex;
  gap: 30px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
html.lang-zh .nav { font-size: 14px; letter-spacing: .06em; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--brand-deep); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch__btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12.5px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.lang-switch__btn:hover { color: var(--brand-deep); }
.lang-switch__btn[aria-pressed="true"] { background: var(--brand-deep); color: #fff; }

/* Hero */
.hero { padding: clamp(54px,7vw,88px) 0 clamp(44px,6vw,72px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(28px,4.5vw,64px);
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px,3.8vw,54px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
}
html.lang-zh .hero__title { font-size: clamp(30px,3.4vw,48px); line-height: 1.22; letter-spacing: .01em; }
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 38px;
}
html.lang-zh .lead { font-size: 18px; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
html.lang-zh .btn { letter-spacing: .06em; }
.btn--primary {
  background: linear-gradient(180deg, #6973ad 0%, var(--brand) 58%, #454d78 100%);
  color: #fff;
  border: 1px solid #424a76;
  box-shadow: 0 8px 18px rgba(69,77,120,.22), inset 0 1px 0 rgba(255,255,255,.24);
  font-weight: 800;
}
.btn--primary:hover { background: linear-gradient(180deg, #737ebe 0%, #59649a 58%, var(--brand-deep) 100%); border-color: #394169; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(69,77,120,.26), inset 0 1px 0 rgba(255,255,255,.26); }
.btn--ghost {
  background: rgba(252,249,244,.74);
  color: var(--brand-deep);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(44,49,87,.06);
  font-weight: 700;
}
.btn--ghost:hover { background: #fffdf8; border-color: rgba(83,92,139,.34); transform: translateY(-1px); box-shadow: 0 5px 12px rgba(44,49,87,.10); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .58; cursor: wait; transform: none; box-shadow: none; }

.hero__card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(150deg, #535C8B, #3A4170 50%, #2C3157);
  color: #fff;
  box-shadow: 0 30px 60px -24px rgba(51,58,99,.5);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 16% 4%, rgba(154,160,196,0.38), rgba(91,101,150,0.12) 48%, rgba(91,101,150,0) 72%),
    radial-gradient(90% 80% at 100% 104%, rgba(51,58,99,0.55), rgba(51,58,99,0) 66%);
}
/* Subtle iOS-style wave wash on the dark panels */
.hero__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  z-index: 1;
  pointer-events: none;
  background: var(--wave) no-repeat bottom / 100% 100%;
}
.hero__card-top {
  position: relative;
  z-index: 2;
  padding: 30px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero__card-top img { height: 54px; width: auto; display: block; }
.hero__card-place { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__card-foot { position: relative; z-index: 2; margin-top: auto; padding: 26px 30px 28px; }
.hero__card-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 22px;
  color: rgba(255,255,255,.95);
}
html.lang-zh .hero__card-tagline { line-height: 1.5; }
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 20px;
  margin: 0;
}
.trust__item { margin: 0; }
.trust__num { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1; margin: 0; }
.trust__label { color: rgba(255,255,255,.66); font-size: 12px; letter-spacing: .02em; margin: 6px 0 0; }

/* Wavy divider: light hero -> dark quote */
.wave-divider {
  height: 88px;
  overflow: hidden;
  line-height: 0;
  background: var(--bg);
  margin-bottom: -1px;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }
.wave-divider--bottom { margin-top: -1px; background: var(--bg-soft); }
.wave-divider--bottom svg { transform: scaleY(-1); }
.wave-divider path { fill: var(--brand-deep); }
@media (prefers-reduced-motion: reduce) {
  .wave-divider path { transition: none; }
}

/* Principle band */
.principle {
  position: relative;
  background: var(--brand-deep);
  color: #fff;
  padding: clamp(72px,9vw,120px) 0;
  overflow: hidden;
}
.principle::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(68% 42% at 50% 53%, rgba(122,130,180,0.34), rgba(91,101,150,0.06) 46%, rgba(44,49,87,0) 70%);
  transform: translate3d(calc(var(--pulse, 0) * 30px), calc(var(--pulse, 0) * 16px), 0) scale(calc(1 + var(--pulse, 0) * 0.07));
  opacity: calc(0.72 + var(--pulse, 0) * 0.28);
  will-change: transform, opacity;
}
/* Soft waves that gently parallax on scroll (--p set by script.js, range ~-1..1) */
.principle__inner { position: relative; z-index: 1; width: min(880px, calc(100% - 48px)); margin: 0 auto; text-align: center; }
.principle__quote {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px,3.6vw,46px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
html.lang-zh .principle__quote { font-size: clamp(26px,3.4vw,44px); line-height: 1.42; letter-spacing: .01em; }
.principle__label { margin: 26px 0 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Sections */
.section { padding: clamp(72px,8vw,104px) 0; position: relative; }
.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
#planner.section--soft {
  border-top: 0;
}
.section--soft::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  pointer-events: none;
  background: radial-gradient(80% 120% at 88% 100%, rgba(91,101,150,0.07), rgba(91,101,150,0) 60%);
}
.section .wrap { position: relative; z-index: 1; }
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px,4vw,56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  max-width: 22ch;
}
html.lang-zh .section__title { font-size: clamp(30px,3.6vw,50px); line-height: 1.2; letter-spacing: .01em; }
.section__sub { color: var(--muted); font-size: 17px; margin: 0 0 48px; max-width: 56ch; }
html.lang-zh .section__sub { font-size: 16.5px; max-width: 44ch; }

/* Scenario cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 38px 34px 40px;
  box-shadow: 0 22px 50px -34px rgba(51,58,99,.34);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 32px 58px -30px rgba(51,58,99,.42); }
.card__no { font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .18em; color: var(--brand); }
.card__title { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 14px 0 14px; letter-spacing: .005em; }
html.lang-zh .card__title { font-size: 23px; letter-spacing: .02em; }
.card__desc { color: var(--muted); font-size: 15.5px; line-height: 1.72; margin: 0; }
html.lang-zh .card__desc { line-height: 1.75; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; border-top: 1px solid rgba(51,58,99,.18); }
.step { padding-top: 30px; }
.step__num { font-family: var(--serif); font-size: 18px; color: var(--brand); letter-spacing: .12em; }
.step__title { font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 12px 0 12px; }
html.lang-zh .step__title { font-size: 30px; letter-spacing: .02em; }
.step__desc { color: var(--muted); font-size: 15px; margin: 0; }

/* Capability list */
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 56px; }
.cap { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cap__no { font-family: var(--serif); font-size: 13px; color: var(--brand); opacity: .6; flex: none; }
.cap__text { font-size: 16px; letter-spacing: .01em; }

/* Contact */
.contact__panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(92% 120% at 10% -10%, rgba(255,255,255,.16), transparent 52%),
    linear-gradient(135deg, #646d9c 0%, #3f477a 48%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: 30px;
  padding: clamp(40px,4.6vw,62px) clamp(30px,4.6vw,60px);
  box-shadow: 0 28px 80px -58px rgba(44,49,87,.75);
}
.contact__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .55;
}
.contact__panel > * { position: relative; z-index: 1; }
.contact__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px,4.2vw,58px);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
html.lang-zh .contact__title { font-size: clamp(30px,3.65vw,52px); letter-spacing: .01em; line-height: 1.1; }
.contact__copy { color: rgba(255,255,255,.84); font-size: 16px; max-width: 42ch; margin: 0; line-height: 1.75; }
html.lang-zh .contact__copy { max-width: 23ch; font-size: 16px; line-height: 1.7; }
.contact__cards {
  display: grid;
  grid-template-columns: minmax(250px, 440px) minmax(180px, 230px);
  gap: 14px;
  align-items: stretch;
}
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 86px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  padding: 17px 22px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.contact-card:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.34); }
.contact-card__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.68); }
.contact-card__value {
  color: #fff;
  font-size: clamp(18px,1.7vw,23px);
  font-weight: 600;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.contact-card--cta {
  align-items: center;
  text-align: center;
  background: #fff;
  color: var(--brand-deep);
  border-color: #fff;
  box-shadow: 0 18px 34px -28px rgba(0,0,0,.55);
}
.contact-card--cta:hover { background: #fff; transform: translateY(-1px); }
.contact-card--cta .contact-card__value { color: var(--brand-deep); font-size: 18px; font-weight: 700; }
/* Contact: text + WeChat QR */
.contact__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(210px, 270px); gap: clamp(34px,5.4vw,72px); align-items: center; }
.contact__qr { justify-self: end; }
.contact__qr-card {
  position: relative;
  width: 100%;
  max-width: 270px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.105);
  border: 1px solid rgba(255,255,255,.16);
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 46px -38px rgba(0,0,0,.55);
}
.contact__qr-card::before {
  display: none;
}
.contact__qr-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border: 7px solid #fff;
  border-radius: 13px;
  box-shadow: 0 12px 28px -24px rgba(0,0,0,.45);
}
.contact__qr-ph { display: none; place-items: center; aspect-ratio: 1; width: 100%; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.contact__qr-cap {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .contact__qr { justify-self: center; }
  .contact__qr-card { max-width: min(246px, 68vw); }
}

/* Footer */
.site-footer { color: var(--muted); font-size: 13px; }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}
.site-footer__logo { height: 26px; width: auto; display: block; margin-bottom: 8px; }
.site-footer__meta { align-self: flex-end; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .card:hover, .btn:hover, .contact-card--cta:hover { transform: none; }
  .principle::before, .contact__panel::before { transform: none !important; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { min-height: 340px; }
  .site-header__inner { gap: 14px; }
}
@media (max-width: 560px) {
  .wrap { width: min(1180px, calc(100% - 36px)); }
  .nav { gap: 18px; font-size: 13px; }
  html.lang-zh .nav { font-size: 13px; }
  .hero__actions { display: block; }
  .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
  .caps { gap: 0; }
  .contact-card { min-width: 0; flex: 1 1 100%; }
  .site-footer__meta { align-self: flex-start; }
}

/* ============================================================
   School Visit Local Guide — teaser (home) + guide page
   Reuses existing tokens; no new design system.
   ============================================================ */

/* Homepage teaser */
.guide-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, .5fr);
  gap: clamp(28px, 4.5vw, 54px);
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: clamp(28px, 4.2vw, 48px);
  box-shadow: 0 18px 44px -34px rgba(51, 58, 99, .28);
}
.guide-teaser__text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.guide-teaser .section__title {
  max-width: 18ch;
  margin-top: 0;
  font-size: clamp(31px,3.15vw,44px);
  line-height: 1.12;
}
html.lang-zh .guide-teaser .section__title {
  max-width: 13em;
  font-size: clamp(30px,3vw,42px);
  line-height: 1.18;
}
.guide-teaser .section__sub { max-width: 48ch; margin-bottom: 24px; }
html.lang-zh .guide-teaser .section__sub { max-width: 36ch; line-height: 1.72; }
.guide-teaser__stats {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: center;
  align-self: center;
  border: 1px solid rgba(83,92,139,.09);
  border-radius: 16px;
  background: rgba(83,92,139,.045);
}
.guide-teaser__stats li {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: baseline;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(83,92,139,.065);
}
.guide-teaser__num { font-family: var(--serif); font-weight: 600; font-size: clamp(23px,2.2vw,30px); line-height: 1; color: var(--brand-deep); white-space: nowrap; }
.guide-teaser__lbl { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 760px) {
  .guide-teaser { grid-template-columns: 1fr; }
  .guide-teaser__stats {
    padding: 12px;
    grid-template-columns: repeat(3, 1fr);
  }
  .guide-teaser__stats li { grid-template-columns: 1fr; gap: 4px; align-items: start; }
}

/* Guide page hero */
.guide-hero { padding: clamp(36px, 6vw, 66px) 0 clamp(18px, 3vw, 30px); }
.guide-hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -.005em;
  margin: 14px 0 16px; color: var(--ink);
}
html.lang-zh .guide-hero__title { letter-spacing: .01em; line-height: 1.2; }
.guide-hero__sub { font-size: 18px; color: var(--muted); max-width: 58ch; margin: 0 0 14px; }
html.lang-zh .guide-hero__sub { max-width: 42ch; }
.guide-hero__note { font-size: 13px; color: var(--brand); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 9px; }
.guide-hero__note::before { content: ""; width: 18px; height: 1px; background: var(--brand); opacity: .6; }

/* Toolbar: search + filters */
.guide-toolbar {
  position: sticky; top: 63px; z-index: 20;
  padding: 14px 0 16px;
  background: linear-gradient(var(--bg) 82%, rgba(243, 238, 229, 0));
}
.guide-controls { display: grid; grid-template-columns: 1.3fr 2fr; gap: 16px 18px; align-items: end; }
.guide-label { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.guide-search input,
.guide-field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
}
.guide-search input { -webkit-appearance: none; appearance: none; }
.guide-field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C6178' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.guide-search input:focus-visible,
.guide-field select:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.guide-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-results { margin: 16px 0 0; font-size: 14px; color: var(--muted); letter-spacing: .01em; }
@media (max-width: 760px) {
  .guide-toolbar { position: static; }
  .guide-controls { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .guide-filters { grid-template-columns: 1fr; } }

/* Disclaimer / note blocks */
.guide-note {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(22px, 3vw, 34px);
}
.guide-note--top { margin: 6px 0 26px; }
.guide-note--legal { margin: 44px 0 8px; }
.guide-note h2 { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--brand-deep); margin: 0 0 10px; }
.guide-note p { font-size: 13px; line-height: 1.72; color: var(--muted); margin: 0; max-width: 90ch; }

/* Results grid + school cards */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; padding-top: 4px; }
.school-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 26px 26px 18px; box-shadow: 0 22px 50px -36px rgba(51, 58, 99, .28);
  display: flex; flex-direction: column;
}
.school-card__head { border-bottom: 1px solid var(--line-soft); padding-bottom: 15px; margin-bottom: 16px; }
.school-card__name { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.22; margin: 0 0 9px; color: var(--brand-deep); }
.school-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.school-card__loc { font-size: 13.5px; color: var(--muted); }
.region-badge { font-size: 11px; letter-spacing: .03em; color: var(--brand); background: rgba(83, 92, 139, .09); border-radius: 999px; padding: 3px 11px; }
.school-card__head .guide-link { display: inline-flex; margin-top: 13px; }

.school-card__body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 540px) { .school-card__body { grid-template-columns: 1fr; gap: 18px; } }
.school-card__sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 11px; }
.guide-item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.guide-item { border-left: 2px solid var(--line); padding-left: 13px; }
.guide-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.guide-item__name { font-weight: 500; font-size: 14.5px; color: var(--ink); }
.guide-item__type { font-size: 11px; color: var(--muted); }
.guide-item__group {
  --group-color: #535c8b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  max-width: 100%;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-color: color-mix(in srgb, var(--group-color) 18%, var(--line-soft));
  border-radius: 999px;
  padding: 2px 8px 2px 4px;
  white-space: nowrap;
}
.guide-item__group-logo {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}
.guide-item__group-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--group-color);
  color: #fff;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.guide-item__group-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: .02em;
}
.guide-item__group--marriott { --group-color: #8c3041; }
.guide-item__group--hilton { --group-color: #214f87; }
.guide-item__group--hyatt { --group-color: #28717e; }
.guide-item__group--ihg { --group-color: #b34334; }
.guide-item__group--sonesta { --group-color: #596f3a; }
.guide-item__group--choice { --group-color: #315f73; }
.guide-item__group--wyndham { --group-color: #9a6429; }
.guide-item__group--bestwestern { --group-color: #304b8c; }
.guide-item__group--graduate { --group-color: #6b4b7d; }
.guide-item__group--independent { --group-color: #5c5f66; }
.guide-item__preferred { font-size: 10.5px; letter-spacing: .03em; color: #6c5427; background: rgba(185, 148, 73, .15); border: 1px solid rgba(185, 148, 73, .3); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.guide-item__tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.guide-tag { font-size: 11.5px; color: var(--muted); }
.guide-item__dist { font-size: 11.5px; color: var(--brand); margin-top: 3px; }
.guide-item__facts { font-size: 11.5px; color: var(--brand); margin-top: 3px; letter-spacing: .01em; }
.guide-item__transit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 7px; }
.guide-item__transit-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.guide-item__verified { font-size: 10px; letter-spacing: .02em; color: var(--brand); opacity: .85; white-space: nowrap; }
.transit-chip { font-size: 10.5px; letter-spacing: .02em; border-radius: 6px; padding: 2px 8px; white-space: nowrap; border: 1px solid var(--line-soft); }
.transit-chip--low { color: var(--brand); background: rgba(83, 92, 139, .1); }
.transit-chip--moderate { color: #7a5a2f; background: rgba(150, 120, 60, .12); border-color: rgba(150, 120, 60, .22); }
.transit-chip--high { color: #8a4533; background: rgba(150, 80, 60, .14); border-color: rgba(150, 80, 60, .24); }
.transit-chip--severe { color: #8a2f2f; background: rgba(150, 50, 50, .14); border-color: rgba(150, 50, 50, .3); }
.guide-item__why { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 6px 0 0; }
.guide-item__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; }
.guide-item__verify { font-size: 11px; color: var(--muted); opacity: .85; margin: 5px 0 0; }

.source-badge {
  font-size: 10.5px; letter-spacing: .02em; color: var(--brand);
  background: rgba(83, 92, 139, .1); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.farland-badge { display: inline-flex; align-items: center; line-height: 0; }
.farland-badge svg { height: 26px; width: auto; display: block; }

/* Legend explaining the Farland seal (under the toolbar) */
.guide-legend { display: flex; align-items: center; gap: 11px; margin: 2px 0 22px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.guide-legend__seal { display: inline-flex; line-height: 0; flex: none; }
.guide-legend__seal svg { height: 26px; width: auto; display: block; }
.source-badge--official-listed,
.source-badge--school-visit-page { color: var(--brand-deep); background: rgba(83, 92, 139, .08); border-color: var(--brand); }
.guide-item__price { font-size: 11.5px; color: var(--brand-deep); font-weight: 500; margin-top: 4px; }
.source-badge--needs-verification { color: var(--muted); background: transparent; border: 1px dashed var(--line); }

.guide-link { font-size: 12.5px; color: var(--brand); border-bottom: 1px solid rgba(83, 92, 139, .3); padding-bottom: 1px; transition: color .2s ease, border-color .2s ease; }
.guide-link:hover { color: var(--brand-deep); border-color: var(--brand-deep); }
.guide-link::after { content: " \2197"; font-size: 11px; }

.school-card__foot { margin-top: auto; padding-top: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line-soft); }
.school-card__verify { font-size: 11.5px; color: var(--brand); }
.school-card__checked { font-size: 11.5px; color: var(--muted); }

/* Empty state */
.guide-empty { text-align: center; padding: 64px 20px; color: var(--muted); font-size: 16px; }

/* Return-to-home nav link */
.nav__home { color: var(--brand-deep); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--brand-deep); }

@media (prefers-reduced-motion: reduce) {
  .guide-link, .school-card { transition: none; }
}

/* Accordion list: scannable rows that expand to reveal lodging + dining */
.guide-list { display: grid; gap: 12px; padding-top: 4px; }
.school-row {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: 0 14px 36px -30px rgba(51, 58, 99, .28);
}
.school-row__heading { margin: 0; font: inherit; }
.school-row__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 22px; background: transparent; border: 0; border-radius: 14px;
  cursor: pointer; text-align: left; color: inherit; font: inherit;
  transition: background .18s ease;
}
.school-row__toggle:hover { background: rgba(83, 92, 139, .04); }
.school-row__toggle:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: -3px; }
.school-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.school-row__name { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.22; color: var(--brand-deep); }
html.lang-zh .school-row__name { font-size: 18px; }
.school-row__loc { font-size: 13px; color: var(--muted); }
.school-row__meta { display: flex; align-items: center; gap: 14px; flex: none; }
.school-row__counts { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.school-row__chev { font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s ease; }
.school-row__toggle[aria-expanded="true"] .school-row__chev { transform: rotate(90deg); }
.school-row__toggle[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.school-row__panel { border-top: 1px solid var(--line-soft); }
.school-row__panel-inner { padding: 18px 22px 20px; }
.school-row__panel-inner > .guide-link { display: inline-flex; margin-bottom: 16px; }
@media (max-width: 640px) {
  .school-row__toggle { flex-direction: column; align-items: flex-start; gap: 10px; }
  .school-row__meta { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .school-row__toggle, .school-row__chev { transition: none; }
}

/* ============================================================
   Internal Itinerary Planner (itinerary-planner.html)
   ============================================================ */
.planner-tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: rgba(83,92,139,.09); border-radius: 999px; padding: 3px 10px; align-self: center; }

.planner-toolbar { position: sticky; top: 63px; z-index: 20; padding: 14px 0; background: var(--bg); box-shadow: 0 8px 8px -8px rgba(44,49,87,.16); }
html.embed .planner-toolbar { top: 0; }   /* embedded in a trip: no site-header above, so don't offset (was overlapping rows) */
.planner-toolbar__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.planner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.planner-actions .btn { min-height: 40px; padding: 10px 18px; font-size: 14px; }
.planner-toolbar .planner-actions .btn { min-height: 42px; padding: 14px 28px; font-size: 15px; }
.planner-toolbar .planner-actions .btn.planner-refresh-iconbtn { width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 21px; line-height: 1; }
.planner-actions .btn.ops-refresh-btn,
.trips-toolbar .btn.ops-refresh-btn,
.planner-toolbar .planner-actions .btn.ops-refresh-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
}
.planner-toolbar .planner-actions .planner-round-action {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #3c4368;
  color: #fff;
  background: linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%);
  box-shadow: 0 3px 6px rgba(37,42,77,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transition: transform .09s ease, box-shadow .14s ease, filter .14s ease;
}
.planner-toolbar .planner-actions .planner-round-action[hidden] { display: none !important; }
.planner-toolbar .planner-actions .planner-round-action:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 5px 11px rgba(37,42,77,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16);
}
.planner-toolbar .planner-actions .planner-round-action:active {
  filter: brightness(.96);
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(37,42,77,.40), inset 0 2px 4px rgba(0,0,0,.26);
}
.planner-toolbar .planner-actions .planner-round-action:disabled {
  opacity: .62;
  cursor: wait;
  filter: grayscale(.08);
  transform: none;
}
.planner-toolbar .planner-actions .planner-round-action svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.28));
}
.planner-toolbar .planner-actions .planner-round-action__text {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translateY(1px);
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.planner-toolbar .planner-actions .planner-round-action--sync {
  background: linear-gradient(180deg,#55aebe 0%,#2e8998 52%,#236d7a 100%);
  border-color: #1d5f6a;
  box-shadow: 0 3px 6px rgba(29,95,106,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16);
}
.planner-toolbar .planner-actions .planner-round-action--sync:hover { box-shadow: 0 5px 11px rgba(29,95,106,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
.planner-toolbar .planner-actions .planner-round-action--json,
.planner-toolbar .planner-actions .planner-round-action--route {
  background: linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%);
  border-color: #3c4368;
}
.planner-toolbar .planner-actions .planner-round-action--add {
  background: linear-gradient(180deg,#4fa979 0%,#2f845d 52%,#246a4b 100%);
  border-color: #1f5d42;
  box-shadow: 0 3px 6px rgba(31,93,66,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16);
}
.planner-toolbar .planner-actions .planner-round-action--add:hover { box-shadow: 0 5px 11px rgba(31,93,66,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
.planner-toolbar .planner-actions .planner-round-action--delete {
  background: linear-gradient(180deg,#df725e 0%,#bc4434 52%,#963126 100%);
  border-color: #842a21;
  box-shadow: 0 3px 6px rgba(132,42,33,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16);
}
.planner-toolbar .planner-actions .planner-round-action--delete:hover { box-shadow: 0 5px 11px rgba(132,42,33,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
@media (max-width: 760px) { .planner-toolbar { position: static; } }

.planner-section { margin: 8px 0 30px; }
.planner-section__title { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--brand-deep); margin: 0 0 8px; }
.planner-help { font-size: 13px; color: var(--muted); margin: 0 0 16px; max-width: 80ch; }
.planner-meta { font-size: 12.5px; color: var(--muted); }
.planner-empty { text-align: center; padding: 30px; color: var(--muted); }

/* Editor */
.planner-editor { display: grid; gap: 16px; }
.day-block { background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; }
.day-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.day-block__title { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--brand-deep); margin: 0; }
.day-block__depart { font-size: 13px; color: var(--brand); }
/* Generated itinerary only: dark header bar + bigger white title for a clear day separator */
.day-block--out .day-block__head { align-items: center; margin: -18px -20px 14px; padding: 11px 20px; background: var(--brand-deep); border-radius: 14px 14px 0 0; }
.day-block--out .day-block__title { font-size: 21px; color: #fff; }
.day-block--out .day-block__depart { font-weight: 600; color: rgba(255,255,255,.86); }

/* 「当日未安排用车」标记(2026-07-04):运营按天勾选 → 客户行程单/打印体现无车;交通表在打印/客户版隐藏(表加 .no-print)。 */
.day-nocar-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--brand-deep); cursor: pointer; user-select: none; white-space: nowrap; }
.day-nocar-toggle input { width: 14px; height: 14px; accent-color: #B4531F; cursor: pointer; margin: 0; }
.day-block--nocar-edit { background: #F7F7F9; border-color: #A9ADBB; box-shadow: inset 3px 0 0 #8A90A6; }
.day-nocar-edit-feedback { margin: 0 0 6px; padding: 6px 10px; background: #EEF0F4; border: 1px solid #D9DCE5; border-radius: 7px; color: #5D6274; font-size: 11.5px; font-weight: 600; line-height: 1.45; }
.day-block__nocar { margin: 0 0 12px; padding: 9px 14px; background: #FBF4E8; border: 1px solid #F0E2C8; border-radius: 8px; color: #7A5A2F; font-weight: 600; font-size: 13px; }
/* 无车当天仍列出的预约(无车程/到达/路况) */
.day-nocar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.day-nocar-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 8px; }
.day-nocar-item__time { font-weight: 700; color: var(--brand); }
.day-nocar-item__name { font-weight: 600; color: var(--brand-deep); }
.day-nocar-item__addr { flex-basis: 100%; font-size: 12px; color: #8A90A6; }
.day-nocar-item__note { flex-basis: 100%; font-size: 12px; color: #7A5A2F; }
@media print {
  .planner-page .day-block__nocar { margin: 0 0 6px; padding: 5px 10px; font-size: 11px; background: #FBF4E8; border-color: #E8D3AC; color: #7A5A2F; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .planner-page .day-nocar-item { padding: 4px 9px; font-size: 11px; gap: 3px 8px; }
}

.appointment-row, .hotel-row, .lunch-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px;
  padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-soft); margin: 8px 0;
}
.hotel-row { background: rgba(83,92,139,.05); align-items: center; }
.planner-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.planner-field--inline { flex-direction: column; }
.planner-field input, .planner-field select,
.planner-mode, .planner-hotelsel, .planner-manual, #trip-timezone {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; -webkit-appearance: none; appearance: none;
}
.planner-field input[type="time"], .planner-field input[type="date"] { min-width: 120px; }
.planner-field input[type="number"] { width: 92px; }
.planner-field input[type="text"] { min-width: 150px; }
.planner-time-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.planner-time-field input[type="time"]:disabled { background: var(--bg-soft); color: var(--muted); }
.time-tbd-toggle { display: inline-flex; align-items: center; gap: 4px; }
.time-tbd-toggle input { width: 13px; height: 13px; accent-color: #B4531F; cursor: pointer; margin: 0; }
.time-tbd-toggle__label { font-size: 11px; font-weight: 500; color: var(--brand-deep); cursor: pointer; user-select: none; }
.planner-field input:focus-visible, .planner-field select:focus-visible,
.planner-mode:focus-visible, .planner-hotelsel:focus-visible, .planner-manual:focus-visible, #trip-timezone:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }

/* ===== 行程编辑器紧凑表(2026-07-04:每天一表、每预约一行、列头只一次 —— 提升运营视觉效率) ===== */
.day-block--edit .day-block__head { align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.appt-day-date { font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; -webkit-appearance: none; appearance: none; }
.appt-day-wd { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.appt-day-tz { font-size: 11px; color: var(--muted); }
.appt-table { border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; margin: 6px 0 8px; background: var(--card); }
.appt-row { display: grid; grid-template-columns: 88px minmax(150px,1.5fr) 104px 78px 116px 58px minmax(110px,1.25fr) 54px; gap: 8px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line-soft); }
.appt-row:first-child { border-top: 0; }
.appt-thead { background: var(--bg-soft); padding: 4px 10px; }
.appt-th { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .3px; white-space: nowrap; }
.appt-c { min-width: 0; }
.appt-row select, .appt-row input { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 12.5px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; -webkit-appearance: none; appearance: none; }
.appt-row select:focus-visible, .appt-row input:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 1px; }
.appt-dest { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.appt-addr-wrap { position: relative; min-width: 0; }
.appt-row .appt-addr { font-size: 11.5px; color: #5D6274; }
.appt-c .planner-time-field { gap: 3px; }
.appt-c .time-tbd-toggle__label { font-size: 10px; }

/* 编辑器再紧凑一档(2026-07-04,老板「还是太不紧凑」)。只压 #planner-editor 编辑区,
   不动生成输出/打印(.day-block--out / #planner-output)。 */
#planner-editor { gap: 9px; }
#planner-editor .day-block { padding: 10px 13px; }
#planner-editor .day-block__head { margin-bottom: 5px; }
#planner-editor .day-block__title { font-size: 15px; }
#planner-editor .hotel-row { padding: 6px 10px; margin: 5px 0; gap: 6px 10px; align-items: start; }
#planner-editor .hotel-row .planner-field input, #planner-editor .hotel-row .planner-field select,
#planner-editor .hotel-row .planner-mode, #planner-editor .hotel-row .planner-hotelsel, #planner-editor .hotel-row .planner-manual { padding: 5px 9px; font-size: 12.5px; border-radius: 7px; }
#planner-editor .hotel-row .planner-field { gap: 3px; }
/* 顶对齐:目的地带地址小字(2 行)时,其余单行列贴顶排,不再居中浮在中间留大片空白(老板「这么大留白」)。 */
#planner-editor .appt-row { padding: 3px 10px; gap: 6px; align-items: start; }
#planner-editor .appt-dest { gap: 2px; }
#planner-editor .appt-c .planner-time-field { margin-top: 0; }
#planner-editor .appt-thead { padding: 2px 10px; }
#planner-editor .appt-row select, #planner-editor .appt-row input { padding: 3px 6px; font-size: 12px; border-radius: 6px; }
#planner-editor .appt-dest { gap: 1px; }
#planner-editor .appt-c .planner-time-field { gap: 2px; }
#planner-editor .appt-c .time-tbd-toggle input { width: 12px; height: 12px; }
#planner-editor .planner-add-line { margin: 4px 0; padding: 5px 12px; }
#planner-editor .planner-meta { margin: 2px 0; }

/* 日头收拢(老板「这一行 UI 太离谱」):别被 space-between 甩满宽;身份信息左聚拢,无车勾选靠右。 */
#planner-editor .day-block__head { justify-content: flex-start; gap: 4px 10px; align-items: baseline; }
#planner-editor .day-block__head .day-nocar-toggle { margin-left: auto; align-self: center; }
#planner-editor .appt-day-date { font-size: 12px; padding: 3px 7px; }

/* 地址收成名称下面的小字(选完即小字,不再占大输入框):景点/自定义目的地 + 出发/住宿手动。
   仍是可点可编辑的输入,hover/focus 给淡底色提示。 */
#planner-editor .hotel-row .planner-inline .planner-inline { flex-direction: column; align-items: stretch; gap: 2px; }
#planner-editor .appt-dest .appt-addr,
#planner-editor .hotel-row .planner-manual + .planner-manual {
  display: block; border: none; background: transparent; padding: 0 3px; font-size: 11px; line-height: 14px; color: #8A90A6; border-radius: 4px; min-width: 0; }
.appt-addr-wrap { min-height: 14px; line-height: 14px; }
.appt-addr-wrap--duplicate { display: none; }
#planner-editor .appt-dest .appt-addr:hover, #planner-editor .appt-dest .appt-addr:focus,
#planner-editor .hotel-row .planner-manual + .planner-manual:hover, #planner-editor .hotel-row .planner-manual + .planner-manual:focus {
  background: #EEF0F7; outline: none; }
.appt-acts { display: flex; gap: 4px; justify-content: flex-end; }
.appt-iconbtn { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 6px; color: var(--brand-deep); font-size: 13px; line-height: 1; cursor: pointer; }
.appt-iconbtn:hover { background: #EDEFF9; }
.appt-iconbtn--danger { color: #A93E24; }
.appt-iconbtn--danger:hover { background: #FAEAE4; border-color: #E8C7BC; }
.planner-add-day { margin-top: 4px; font-weight: 600; }
@media (max-width: 920px) { .appt-table { overflow-x: auto; } .appt-row { min-width: 780px; } }
.planner-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.planner-manual { min-width: 160px; }
#planner-editor .hotel-row .planner-location-notes { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 140px; }
#planner-editor .hotel-row.hotel-row--notes .planner-location-notes > input { flex: none; width: 100%; min-width: 0; height: 24px; box-sizing: border-box; font-size: 11.5px; }
@media (max-width: 720px) {
  #planner-editor .hotel-row.hotel-row--notes { flex-wrap: wrap; }
  #planner-editor .hotel-row .planner-location-notes { flex-basis: 100%; min-width: 0; }
}
.planner-inherit { font-size: 12px; color: var(--muted); }
.appointment-row__acts { display: flex; gap: 6px; margin-left: auto; }
.planner-iconbtn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-deep);
  background: rgba(252,249,244,.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 32px;
  padding: 7px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(44,49,87,.06);
  transition: transform .14s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.planner-iconbtn:hover { background: #fffdf8; border-color: rgba(83,92,139,.34); transform: translateY(-1px); box-shadow: 0 5px 12px rgba(44,49,87,.10); }
.planner-iconbtn:active { transform: translateY(1px); }
.planner-iconbtn:disabled { opacity: .58; cursor: wait; transform: none; box-shadow: none; }
.planner-iconbtn--danger { color: #8a4533; border-color: rgba(138,69,51,.24); }
.planner-iconbtn--danger:hover { border-color: rgba(138,69,51,.42); background: #fff8f4; }
.planner-add-line { font: inherit; font-size: 13px; font-weight: 700; color: var(--brand-deep); background: rgba(252,249,244,.64); border: 1px dashed rgba(83,92,139,.26); border-radius: 999px; min-height: 34px; padding: 8px 15px; cursor: pointer; margin: 4px 0; transition: transform .14s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.planner-add-line:hover { background: #fffdf8; border-color: rgba(83,92,139,.42); color: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 5px 12px rgba(44,49,87,.08); }

/* Output */
.planner-output-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.planner-summary { margin: 10px 0 18px; }
.day-block--out { margin-bottom: 18px; }
.day-block--out .day-block__depart { font-weight: 500; }
.planner-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; table-layout: fixed; }
.planner-table th { text-align: left; font-size: 10px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 6px 5px; border-bottom: 1px solid var(--line); }
.planner-table td { padding: 6px 7px; border-bottom: 1px solid var(--line-soft); color: var(--ink); vertical-align: top; }
.planner-th-note { display: block; margin-top: 2px; font-size: 8.5px; line-height: 1.15; letter-spacing: 0; text-transform: none; color: rgba(104,112,142,.72); font-weight: 500; }
.planner-dest { font-weight: 500; overflow-wrap: anywhere; }
.planner-addr { display: block; font-size: 11px; color: var(--muted); line-height: 1.25; margin-top: 1px; overflow-wrap: anywhere; }
/* keep times + short numeric columns (Arrival/Time/Drive/Distance/Traffic) on one line, centered */
.planner-table th:nth-child(1), .planner-table td:nth-child(1),
.planner-table th:nth-child(2), .planner-table td:nth-child(2),
.planner-table th:nth-child(4), .planner-table td:nth-child(4),
.planner-table th:nth-child(5), .planner-table td:nth-child(5),
.planner-table th:nth-child(6), .planner-table td:nth-child(6) { white-space: nowrap; text-align: center; }
/* column widths: wide Destination/address, narrow Comments */
.planner-table th:nth-child(1), .planner-table td:nth-child(1) { width: 11%; }
.planner-table th:nth-child(2), .planner-table td:nth-child(2) { width: 8%; }
.planner-table th:nth-child(3), .planner-table td:nth-child(3) { width: 40%; }
.planner-table th:nth-child(4), .planner-table td:nth-child(4) { width: 8%; }
.planner-table th:nth-child(5), .planner-table td:nth-child(5) { width: 9%; }
.planner-table th:nth-child(6), .planner-table td:nth-child(6) { width: 10%; }
.planner-table th:nth-child(7), .planner-table td:nth-child(7) { width: 14%; }
.planner-recalc { font-size: 11px; color: var(--brand); }
.row--lunch td { background: rgba(83,92,139,.04); color: var(--muted); }
.row--lunch__status { color: var(--brand-deep); }
.row--end td { background: rgba(83,92,139,.06); }
.traffic { white-space: nowrap; }
.traffic--good { color: #3a6b4a; }
.traffic--mod { color: #7a5a2f; }
.traffic--heavy { color: #8a4533; font-weight: 500; }

.warning-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.warning { font-size: 12.5px; color: #7a5a2f; background: rgba(150,120,60,.1); border: 1px solid rgba(150,120,60,.22); border-radius: 8px; padding: 7px 11px; }

.btn.is-done { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

@media (prefers-reduced-motion: reduce) { .planner-iconbtn, .planner-add-line { transition: none; } }

/* Letterhead elements live only in the printed / PDF output */
.print-only { display: none; }

/* Print: clean Farland PDF output with a minimal bottom texture. */
@media print {
  @page { size: A4; margin: 0; }
  html, body.planner-page { background: #fff !important; }
  .planner-page {
    --print-brand: #5B6596;
    --print-brand-2: #3A4170;
    --print-brand-deep: #252A4D;
    --print-ink: #20243A;
    --print-muted: #60667A;
    --print-paper: #FFFFFF;
    --print-soft: #F4F5F8;
    --print-line: rgba(51, 58, 99, .22);
    --print-line-soft: rgba(51, 58, 99, .10);
  }
  .planner-page, .planner-page * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* Strip on-screen chrome; keep only the itinerary output */
  .planner-page .site-header, .planner-page .no-print,
  .planner-page .guide-hero, .planner-page .planner-toolbar { display: none !important; }
  .planner-page .planner-section { display: none !important; }
  .planner-page #planner-output-section:not([hidden]) {
    display: block !important;
    position: relative !important;
    isolation: isolate;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 24mm 15mm 12mm !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .planner-page .planner-output-head { display: none !important; }
  .planner-page .planner-summary > .planner-meta { display: none !important; }
  .planner-page::before, .planner-page::after { display: none !important; }
  .planner-page { background: #fff; color: var(--print-ink); }
  .planner-page .section { padding: 0 !important; }
  .planner-page main { padding: 0 !important; }
  .planner-page .wrap { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .print-only { display: block !important; }

  /* No page background render; keep the paper clean white. */
  .planner-page #planner-output-section::before {
    content: none !important;
    display: none !important;
  }
  .planner-page #planner-output-section::after {
    content: "";
    position: absolute;
    top: 10mm;
    left: 17mm;
    width: 34mm;
    height: 13mm;
    pointer-events: none;
    z-index: 1;
    opacity: .64;
    background: url("assets/farland-logo-dark.png") left center / contain no-repeat;
  }
  .planner-page #planner-output-section > * { position: relative; z-index: 2; }

  /* ---- Document title ---- */
  .doc-head { margin: 0 0 12px; border-bottom: 1px solid var(--print-line); padding-bottom: 7px; }
  .doc-head__title { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--print-brand-deep); margin: 0; line-height: 1.08; letter-spacing: 0; }
  .doc-head__meta { font-size: 10.2px; color: var(--print-muted); margin: 4px 0 0; }

  /* ---- Day sections ---- */
  .planner-page .day-block--out { break-inside: avoid; page-break-inside: avoid; border: 0; border-radius: 0; box-shadow: none; background: transparent; margin: 0 0 8px; padding: 0; overflow: visible; }
  .planner-page .day-block__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 4px 9px; margin: 0 0 3px; background: var(--print-brand-deep); border-radius: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .planner-page .day-block__title { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; }
  .planner-page .day-block__depart { color: rgba(255,255,255,.88); font-size: 10px; font-weight: 600; white-space: nowrap; }
  .planner-page .day-block--out > .planner-meta { color: var(--print-muted); font-size: 10.4px; margin: 0 0 5px; }

  /* ---- Schedule table ---- */
  .planner-page .planner-table { font-size: 9.5px; margin-top: 2px; border-collapse: collapse; table-layout: fixed; }
  .planner-page .planner-table th { background: transparent; color: var(--print-brand-2); border-top: 1px solid var(--print-line-soft); border-bottom: 1px solid var(--print-line); padding: 3px 6px; font-size: 7.4px; font-weight: 700; letter-spacing: .075em; }
  .planner-page .planner-table td { border-color: var(--print-line-soft); padding: 3.5px 6px; color: var(--print-ink); }
  .planner-page .planner-table tbody tr:nth-child(even) td { background: rgba(243, 238, 229, .38); }
  .planner-page .planner-th-note { font-size: 6.4px; margin-top: 1px; color: var(--print-muted); }
  .planner-page .planner-table th:nth-child(1), .planner-page .planner-table td:nth-child(1) { width: 11%; }
  .planner-page .planner-table th:nth-child(2), .planner-page .planner-table td:nth-child(2) { width: 8%; }
  .planner-page .planner-table th:nth-child(3), .planner-page .planner-table td:nth-child(3) { width: 40%; }
  .planner-page .planner-table th:nth-child(4), .planner-page .planner-table td:nth-child(4) { width: 8%; }
  .planner-page .planner-table th:nth-child(5), .planner-page .planner-table td:nth-child(5) { width: 9%; }
  .planner-page .planner-table th:nth-child(6), .planner-page .planner-table td:nth-child(6) { width: 10%; }
  .planner-page .planner-table th:nth-child(7), .planner-page .planner-table td:nth-child(7) { width: 14%; }
  .planner-page .planner-table th:nth-child(1), .planner-page .planner-table td:nth-child(1),
  .planner-page .planner-table th:nth-child(2), .planner-page .planner-table td:nth-child(2),
  .planner-page .planner-table th:nth-child(4), .planner-page .planner-table td:nth-child(4),
  .planner-page .planner-table th:nth-child(5), .planner-page .planner-table td:nth-child(5),
  .planner-page .planner-table th:nth-child(6), .planner-page .planner-table td:nth-child(6) { text-align: center; }
  .planner-page .row--lunch td { background: rgba(91, 101, 150, .055) !important; color: var(--print-muted); }
  .planner-page .row--end td { background: rgba(91, 101, 150, .09) !important; }
  .planner-page .planner-dest { color: var(--print-brand-deep); font-weight: 600; }
  .planner-page .planner-addr { display: block; font-size: 8.4px; color: var(--print-muted); line-height: 1.2; margin-top: 0; }
  .planner-page .planner-recalc { color: var(--print-brand); }
  .planner-page .traffic--good { color: #2f6043 !important; }
  .planner-page .traffic--mod { color: #7a5a2f !important; }
  .planner-page .traffic--heavy { color: #8a3a26 !important; font-weight: 600; }

  /* ---- Trip notes (warnings) ---- */
  .planner-page .planner-summary { margin: 0 0 12px; }
  .planner-page .planner-summary .planner-section__title { font-family: var(--serif); font-size: 12.5px; color: var(--print-brand-deep); margin: 0 0 4px; }
  .planner-page .warning-list { gap: 4px; }
  .planner-page .warning { color: #6a4a1f; background: rgba(247, 241, 227, .72) !important; border: 0; border-left: 2px solid rgba(122, 90, 47, .38); border-radius: 0; font-size: 9.8px; padding: 4px 8px; break-inside: avoid; }

  /* ---- Footer note ---- */
  .planner-docfoot { margin-top: 10px; break-inside: avoid; text-align: center; }
  .planner-docfoot__rule {
    position: fixed;
    left: 17mm;
    right: 17mm;
    bottom: 8mm;
    display: block;
    height: 6mm;
    pointer-events: none;
    opacity: .42;
    background-image: repeating-linear-gradient(166deg, rgba(91, 101, 150, .16) 0 1px, transparent 1px 9px);
    background-repeat: repeat;
    background-size: 12mm 6mm;
  }
  .planner-docfoot__row { display: block; font-size: 8.6px; color: rgba(44, 49, 87, .48); }
  .planner-docfoot__brand { display: none; }
  .planner-docfoot__note { font-weight: 700; color: #B3261E; }   /* 免责声明:字号不变,加粗暗红(老板 2026-07-02) */
}

/* Planner — import-from-JSON panel */
.planner-import { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--card); }
.planner-import__ta { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; }
.planner-import__ta:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.planner-schema { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }
.planner-schema summary { cursor: pointer; color: var(--brand); }
.planner-schema summary:hover { color: var(--brand-deep); }
.planner-schema pre { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px; overflow: auto; font-size: 12px; line-height: 1.55; color: var(--ink); max-height: 300px; margin-top: 8px; }
.planner-meta.warning { display: block; margin-top: 8px; }

/* ============================================================
   Itinerary JSON Builder (json-builder.html)
   ============================================================ */
.builder-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.builder-row { display: flex; flex-wrap: wrap; gap: 18px; }
.builder-row .builder-field { flex: 1 1 240px; margin-bottom: 0; }
.f-airport-meta-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px 148px; gap: 10px; align-items: end; }
.f-airport-meta-row .builder-field { min-width: 0; gap: 2px; margin-bottom: 0; }
.f-airport-meta-row .guide-label { line-height: 1.1; margin-bottom: 0; }
@media (max-width: 760px) {
  .f-airport-meta-row { grid-template-columns: 1fr; }
}
.builder-input { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%; -webkit-appearance: none; appearance: none; }
select.builder-input { cursor: pointer; }
.builder-input:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.builder-key-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.builder-key-wrap .builder-input { flex: 1 1 280px; }
.builder-check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.builder-check input { width: 15px; height: 15px; accent-color: var(--brand); }
.builder-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; max-width: 80ch; }
.builder-note--warn { color: #7a5a2f; }
.builder-raw { width: 100%; min-height: 140px; font: inherit; font-size: 14px; line-height: 1.6; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; resize: vertical; }
.builder-raw:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
#ai-output { width: 100%; margin-top: 6px; }

/* Upload drop zone + attachment chips */
.builder-drop { display: block; border: 1.5px dashed var(--line); border-radius: 12px; padding: 20px 18px; text-align: center; color: var(--muted); background: var(--card); cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; margin-bottom: 12px; }
.builder-drop:hover, .builder-drop.is-drag { border-color: var(--brand); background: rgba(83,92,139,.05); color: var(--brand-deep); }
.builder-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.builder-drop__hint { font-size: 13px; line-height: 1.5; }
.builder-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.builder-chips:not(:empty) { margin-bottom: 14px; }
.builder-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--brand-deep); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 13px; }
.builder-chip__x { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 6px; border-radius: 50%; }
.builder-chip__x:hover { color: #8a4533; background: rgba(138,69,51,.1); }

/* ============================================================
   Itinerary Planner promo + demo (homepage #planner)
   ============================================================ */
.nav__beta { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: rgba(83,92,139,.12); border-radius: 999px; padding: 1px 6px; vertical-align: middle; margin-left: 3px; }

.planner-promo { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .planner-promo { grid-template-columns: 1fr; gap: 34px; } }
.planner-promo__feats { list-style: none; margin: 18px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.planner-promo__feats li { font-size: 12.5px; color: var(--brand-deep); background: rgba(83,92,139,.08); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
html.lang-zh .planner-promo__feats li { font-size: 13px; }

/* Invite gate */
.pl-gate { margin-top: 4px; max-width: 460px; }
.pl-gate__label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; }
.pl-gate__row { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-gate__input { flex: 1 1 200px; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px; letter-spacing: .03em; }
.pl-gate__input:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.pl-gate__row .btn { padding: 13px 26px; }
.pl-gate__msg { min-height: 1.2em; margin: 11px 2px 0; font-size: 13px; }
.pl-gate__msg--ok { color: #2f6043; }
.pl-gate__msg--err { color: #8a4533; }
.pl-gate.is-shake { animation: plShake .4s ease; }
@keyframes plShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* Demo window */
.pl-demo { perspective: 1300px; }
.pl-demo__win { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 34px 64px -30px rgba(44,49,87,.5), inset 0 1px 0 rgba(255,255,255,.7); overflow: hidden; transform: rotateY(-5deg) rotateX(2.5deg); transition: transform .45s ease; }
.pl-demo__win:hover { transform: rotateY(0) rotateX(0); }
.pl-demo__bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: linear-gradient(var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.pl-demo__bar > span { width: 9px; height: 9px; border-radius: 50%; background: rgba(44,49,87,.18); }
.pl-demo__bar em { margin-left: 8px; font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pl-demo__body { position: relative; padding: 18px 20px 22px; overflow: hidden; }
.pl-demo__body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.5) 50%, transparent 58%); transform: translateX(-130%); animation: plSheen 6.2s ease-in-out infinite; pointer-events: none; }
@keyframes plSheen { 0%, 62% { transform: translateX(-130%); } 86%, 100% { transform: translateX(130%); } }
.pl-demo__summary { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.pl-demo__summary span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pl-demo__summary strong { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--brand-deep); text-align: right; }
.pl-demo__story {
  position: relative;
  min-height: 318px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(83,92,139,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(83,92,139,.04) 1px, transparent 1px),
    rgba(252,249,244,.72);
  background-size: 30px 30px;
  overflow: hidden;
}
.pl-demo__act-labels {
  position: absolute;
  z-index: 6;
  inset: 12px 14px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pl-demo__act-labels span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pl-demo__act-labels b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(83,92,139,.12);
  color: var(--brand-deep);
  font-size: 10px;
}
.pl-demo__act {
  position: absolute;
  inset: 50px 14px 14px;
}
.pl-demo__act--schools { animation: plActSchools 30s ease-in-out infinite; }
.pl-demo__act--weave { opacity: 0; animation: plActWeave 30s ease-in-out infinite; }
.pl-demo__act--final { opacity: 0; animation: plActFinal 30s ease-in-out infinite; }
.pl-demo__tidy-grid {
  position: absolute;
  inset: 13px 10px 11px;
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(83,92,139,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(83,92,139,.07) 1px, transparent 1px),
    rgba(255,255,255,.32);
  background-size: 50% 22%, 100% 22%;
  border: 1px dashed rgba(83,92,139,.12);
  opacity: 0;
  transform: scale(.98);
  animation: plTidyGrid 30s ease-in-out infinite;
}
.pl-demo__school-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 145px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(83,92,139,.18);
  background: rgba(255,255,255,.92);
  color: var(--brand-deep);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 28px -24px rgba(44,49,87,.5);
  transform: rotate(var(--r));
  animation: plSchoolTidy 30s ease-in-out infinite;
}
.pl-demo__school-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(83,92,139,.34);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.68);
}
/* Doraemon-style hands: round white balls on blue sleeves */
.pl-demo__hand {
  position: absolute;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff, #eef1f7 64%, #dce1ee 100%);
  border: 2px solid #c6cce0;
  box-shadow: 0 16px 24px -18px rgba(44,49,87,.55), inset -2px -3px 6px rgba(173,182,205,.5);
  opacity: 0;
  pointer-events: none;
}
.pl-demo__hand::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 9px;
  width: 24px;
  height: 17px;
  border-radius: 8px 5px 5px 8px;
  background: linear-gradient(#38b7ed, #1f9ad6);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
  z-index: -1;
}
.pl-demo__hand::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 5px;
  height: 20px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 0 1.5px #c6cce0;
  z-index: -1;
}
.pl-demo__hand--left {
  left: -54px;
  top: 52%;
  transform: rotate(16deg);
  animation: plHandLeft 30s ease-in-out infinite;
}
.pl-demo__hand--right {
  right: -54px;
  top: 28%;
  transform: scaleX(-1) rotate(15deg);
  animation: plHandRight 30s ease-in-out infinite;
}
.pl-demo__route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pl-demo__route-map path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-demo__route-soft { stroke: rgba(83,92,139,.12); stroke-width: 16; }
.pl-demo__route-main {
  stroke: rgba(83,92,139,.24);
  stroke-width: 3;
  stroke-dasharray: 12 12;
  animation: plRouteDash 1.35s linear infinite;
}
.pl-demo__route-ink {
  stroke: var(--brand);
  stroke-width: 4.2;
  stroke-dasharray: 430;
  stroke-dashoffset: 430;
  filter: drop-shadow(0 4px 5px rgba(83,92,139,.18));
  animation: plRouteInk 30s ease-in-out infinite;
}
.pl-demo__map-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 20px -13px rgba(44,49,87,.6);
  transform: translate(-50%, -50%);
}
.pl-demo__map-dot--school { background: #535c8b; }
.pl-demo__map-dot--food { background: #9a6429; animation: plPopIn 30s ease-in-out infinite; }
.pl-demo__map-dot--hotel { background: #6b4b7d; animation: plPopIn 30s ease-in-out infinite; animation-delay: .35s; }
.pl-demo__moving-pin {
  position: absolute;
  z-index: 6;
  left: 42px;
  top: 154px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(83,92,139,.13);
  transform: translate(-50%, -50%);
  /* Rides the pen tip / the leading edge of the line, on the same 30s cycle. */
  animation: plPinTrace 30s ease-in-out infinite;
}
.pl-demo__route-pen {
  position: absolute;
  z-index: 5;
  left: 42px;
  top: 154px;
  width: 38px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #343b66 0 58%, #d8b86c 58% 78%, #fff 78% 100%);
  box-shadow: 0 9px 16px -11px rgba(44,49,87,.65);
  transform-origin: 5px 50%;
  opacity: 0;
  animation: plPenWrite 30s ease-in-out infinite;
}
.pl-demo__route-pen::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 11px solid #272d52;
  transform: translateY(-50%);
}
.pl-demo__route-note {
  position: absolute;
  z-index: 6;
  padding: 5px 7px;
  border: 1px solid rgba(83,92,139,.17);
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 13px 26px -22px rgba(44,49,87,.55);
  opacity: 0;
  transform: translateY(5px) rotate(var(--nr));
  animation: plRouteNote 30s ease-in-out infinite;
}
.pl-demo__route-note span {
  display: block;
  max-width: 0;
  overflow: hidden;
  color: var(--brand-deep);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  animation: plNoteWrite 30s steps(16, end) infinite;
}
.pl-demo__route-note--depart { --nr: -4deg; left: 17px; top: 105px; }
.pl-demo__route-note--lunch { --nr: 5deg; left: 176px; top: 165px; }
.pl-demo__route-note--hotel { --nr: -3deg; right: 8px; top: 33px; }
.pl-demo__weave-card {
  position: absolute;
  z-index: 4;
  width: 132px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 32px -24px rgba(44,49,87,.55);
  animation: plPopIn 30s ease-in-out infinite;
}
.pl-demo__weave-card--food { left: 5%; top: 13%; }
.pl-demo__weave-card--hotel { right: 4%; bottom: 11%; animation-delay: .35s; }
.pl-demo__weave-card b { display: block; color: var(--brand-deep); font-size: 11.5px; line-height: 1.25; }
.pl-demo__weave-card small { display: block; color: var(--muted); font-size: 10.3px; line-height: 1.25; margin-top: 3px; }
.pl-demo__act--final {
  position: absolute;
  display: grid;
  grid-template-columns: minmax(0, .8fr) 206px;
  gap: 12px;
  perspective: 900px;
}
.pl-demo__fold-stage {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 178px;
  height: 138px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(83,92,139,.08), transparent 42%),
    rgba(255,255,255,.94);
  border: 1px solid rgba(83,92,139,.16);
  box-shadow: 0 24px 44px -28px rgba(44,49,87,.55);
  opacity: 0;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-7deg) scale(.7);
  transform-style: preserve-3d;
  pointer-events: none;
  animation: plFoldStage 30s ease-in-out infinite;
}
.pl-demo__fold-stage b {
  position: relative;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(83,92,139,.1);
  color: var(--brand-deep);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: 0;
  animation: plFoldLabel 30s ease-in-out infinite;
}
.pl-demo__fold-sheet {
  position: absolute;
  inset: 11px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(83,92,139,.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(83,92,139,.09) 1px, transparent 1px),
    rgba(252,249,244,.96);
  background-size: 26px 100%, 100% 22px;
  border: 1px solid rgba(83,92,139,.13);
  transform-origin: 50% 50%;
  animation: plFoldSheet 30s ease-in-out infinite;
}
.pl-demo__fold-sheet--two {
  inset: 16px 23px;
  transform-origin: left center;
  animation-name: plFoldSheetTwo;
}
.pl-demo__fold-sheet--three {
  inset: 22px 33px;
  transform-origin: center top;
  animation-name: plFoldSheetThree;
}
.pl-demo__fold-crease {
  position: absolute;
  z-index: 2;
  background: rgba(83,92,139,.15);
  opacity: 0;
  animation: plFoldCrease 30s ease-in-out infinite;
}
.pl-demo__fold-crease--v { width: 1px; height: 82%; }
.pl-demo__fold-crease--h { width: 82%; height: 1px; }
.pl-demo__act--final .pl-demo__pdf,
.pl-demo__act--final .pl-demo__mini-map {
  animation: plFinalUnfoldContent 30s ease-in-out infinite;
}
.pl-demo__pdf {
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(83,92,139,.16);
  border-radius: 12px;
  padding: 10px 11px 11px;
  box-shadow: 0 18px 34px -30px rgba(44,49,87,.45);
}
.pl-demo__mini-map {
  position: relative;
  min-height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(83,92,139,.14);
  /* Stylized Andover, MA schematic (real positions live on the route + pins above).
     Swap in a real Andover tile at assets/andover-route-map.png for a photographic look. */
  background:
    radial-gradient(34% 26% at 70% 44%, rgba(120,150,96,.20), transparent 70%),
    radial-gradient(24% 20% at 18% 14%, rgba(120,150,96,.15), transparent 72%),
    radial-gradient(30% 16% at 30% 88%, rgba(118,150,182,.16), transparent 74%),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(83,92,139,.045) 37px 39px),
    repeating-linear-gradient(90deg, transparent 0 45px, rgba(83,92,139,.045) 45px 47px),
    linear-gradient(120deg, rgba(83,92,139,.07) 0 3px, transparent 3px) 18% 0 / 240px 100% no-repeat,
    linear-gradient(180deg, #f4f5ef, #ecefe7);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
.pl-demo__map-toolbar {
  position: absolute;
  z-index: 7;
  left: 8px;
  right: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid rgba(83,92,139,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 9px 20px -17px rgba(44,49,87,.48);
}
.pl-demo__map-toolbar span {
  min-width: 0;
  color: #3c4043;
  font-size: 8.6px;
  line-height: 1;
  white-space: nowrap;
}
.pl-demo__map-toolbar b {
  color: #1a73e8;
  font-size: 8.4px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.pl-demo__mini-roads {
  position: absolute;
  inset: 32px 7px 43px;
  width: calc(100% - 14px);
  height: calc(100% - 75px);
}
.pl-demo__mini-roads path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pl-demo__mini-roads .route-casing {
  stroke: #fff;
  stroke-width: 10;
  filter: drop-shadow(0 3px 3px rgba(60,64,67,.18));
}
.pl-demo__mini-roads .route-live {
  stroke: #4285f4;
  stroke-width: 5.6;
}
.pl-demo__mini-roads .route-flow {
  stroke: rgba(255,255,255,.78);
  stroke-width: 2;
  stroke-dasharray: 2 13;
  animation: plRouteDash 1.25s linear infinite;
}
.pl-demo__road-label {
  position: absolute;
  z-index: 1;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.78);
  color: #777b80;
  font-size: 7.2px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 7px -6px rgba(60,64,67,.5);
}
.pl-demo__road-label--one { left: 28px; bottom: 45px; transform: rotate(-24deg); }
.pl-demo__road-label--two { right: 23px; top: 54px; transform: rotate(-31deg); }
.pl-demo__mini-stop {
  position: absolute;
  z-index: 4;
  left: var(--x);
  top: var(--y);
  display: grid;
  justify-items: center;
  gap: 3px;
  transform: translate(-50%, -50%);
  animation: plStopPulse 3.6s ease-in-out infinite;
}
.pl-demo__mini-stop i {
  position: relative;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.92);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  box-shadow: 0 10px 18px -13px rgba(44,49,87,.65);
}
.pl-demo__mini-stop i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 7px;
  height: 7px;
  background: inherit;
  border-right: 2px solid rgba(255,255,255,.92);
  border-bottom: 2px solid rgba(255,255,255,.92);
  transform: translateX(-50%) rotate(45deg);
}
.pl-demo__mini-stop b {
  max-width: 74px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--brand-deep);
  font-size: 8.7px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 16px -15px rgba(44,49,87,.55);
}
.pl-demo__mini-stop--school i { background: #1a73e8; }
.pl-demo__mini-stop--hotel i { background: #34a853; }
.pl-demo__mini-stop--food i { background: #f29900; }
.pl-demo__map-attribution {
  position: absolute;
  z-index: 7;
  right: 39px;
  bottom: 55px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.82);
  color: #5f6368;
  font-size: 6.5px;
  line-height: 1.2;
}
.pl-demo__map-control {
  position: absolute;
  z-index: 7;
  top: 54px;
  right: 9px;
  display: grid;
  width: 22px;
  overflow: hidden;
  border: 1px solid rgba(60,64,67,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 18px -15px rgba(44,49,87,.5);
}
.pl-demo__map-control i {
  display: grid;
  place-items: center;
  height: 21px;
  color: #3c4043;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.pl-demo__map-control i + i { border-top: 1px solid rgba(60,64,67,.12); }
.pl-demo__mini-car {
  position: absolute;
  z-index: 3;
  left: 16%;
  top: 80%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #4285f4;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(66,133,244,.16), 0 11px 20px -11px rgba(44,49,87,.75);
  animation: plMiniCar 6.4s ease-in-out infinite;
}
.pl-demo__mini-metrics {
  position: absolute;
  z-index: 6;
  left: 10px;
  right: 10px;
  bottom: 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(83,92,139,.12);
}
.pl-demo__mini-metrics b {
  color: var(--brand-deep);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
.pl-demo__mini-metrics span {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.15;
}
.pl-demo__workflow { display: grid; grid-template-columns: minmax(0, .98fr) 34px minmax(0, 1.08fr); gap: 12px; align-items: stretch; }
.pl-demo__panel { position: relative; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(252,249,244,.72); padding: 14px; overflow: hidden; }
.pl-demo__panel--output { background: rgba(83,92,139,.055); border-color: rgba(83,92,139,.16); }
.pl-demo__panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.pl-demo__panel-head span { font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.pl-demo__panel-head b { font-size: 10.5px; color: var(--brand-deep); background: rgba(83,92,139,.1); border: 1px solid var(--line-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pl-demo__fragments {
  position: relative;
  min-height: 214px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(83,92,139,.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(83,92,139,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.pl-demo__fragment {
  position: absolute;
  left: 0;
  top: 0;
  width: min(116px, calc(100% - 10px));
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 6px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 15px 28px -24px rgba(44,49,87,.45);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  animation: plGather 6.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * .13s);
}
.pl-demo__fragment i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
}
.pl-demo__fragment b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 11.2px; line-height: 1.2; }
.pl-demo__fragment small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9.8px; line-height: 1.2; margin-top: 2px; }
.pl-demo__fragment--school i { background: #535c8b; }
.pl-demo__fragment--drive i { background: #2f6043; }
.pl-demo__fragment--lunch i { background: #9a6429; }
.pl-demo__fragment--hotel i { background: #7a5a8a; }
.pl-demo__sorter {
  position: absolute;
  left: 70%;
  top: 52%;
  width: 72px;
  min-height: 54px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(83,92,139,.2);
  background: rgba(252,249,244,.94);
  box-shadow: 0 22px 42px -32px rgba(44,49,87,.55);
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0;
  animation: plSorter 6.8s ease-in-out infinite;
}
.pl-demo__sorter span {
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px dashed rgba(83,92,139,.32);
}
.pl-demo__sorter span::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  border-top-color: var(--brand);
  animation: plSpin 1.8s linear infinite;
}
.pl-demo__sorter b { position: relative; color: var(--brand-deep); font-size: 10.8px; line-height: 1.25; font-weight: 700; max-width: 8ch; }
.pl-demo__inputs { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pl-demo__inputs li {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  padding: 9px 10px;
  animation: plInputGlow 6.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .55s);
}
.pl-demo__inputs small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.pl-demo__inputs strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.28; margin-top: 3px; }
.pl-demo__inputs em { display: block; font-style: normal; color: var(--brand); font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pl-demo__connector { display: flex; align-items: center; justify-content: center; }
.pl-demo__connector span { position: relative; width: 28px; height: 2px; border-radius: 999px; background: rgba(83,92,139,.24); overflow: hidden; }
.pl-demo__connector span::after { content: ""; position: absolute; inset: 0; width: 48%; background: var(--brand); border-radius: inherit; animation: plFlow 1.85s ease-in-out infinite; }
.pl-demo__itinerary {
  background: var(--card);
  border: 1px solid rgba(83,92,139,.16);
  border-radius: 12px;
  padding: 10px 11px 11px;
  box-shadow: 0 18px 34px -30px rgba(44,49,87,.45);
}
.pl-demo__doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 7px;
  margin-bottom: 3px;
}
.pl-demo__doc-head strong { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--brand-deep); line-height: 1.2; }
.pl-demo__doc-head span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.pl-demo__schedule { list-style: none; margin: 0; padding: 0; display: grid; }
.pl-demo__schedule li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding: 7px 0;
  opacity: .68;
  transform: translateY(3px);
  animation: plResultBuild 6.4s ease-in-out infinite;
  animation-delay: calc(.9s + var(--i) * .34s);
}
.pl-demo__schedule time { color: var(--brand); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.35; }
.pl-demo__schedule b { display: block; color: var(--ink); font-size: 12.5px; line-height: 1.28; }
.pl-demo__schedule span { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.32; margin-top: 2px; min-width: 0; }
.pl-demo__doc-foot {
  margin-top: 8px;
  border-radius: 10px;
  background: rgba(83,92,139,.1);
  border: 1px solid rgba(83,92,139,.18);
  padding: 8px 9px;
  opacity: .72;
  animation: plResultBuild 6.4s ease-in-out infinite;
  animation-delay: calc(.9s + var(--i) * .34s);
}
.pl-demo__doc-foot b { display: block; color: var(--brand-deep); font-size: 12px; line-height: 1.3; }
.pl-demo__doc-foot span { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
@keyframes plInputGlow {
  0%, 18%, 100% { border-color: var(--line-soft); box-shadow: none; }
  7%, 13% { border-color: rgba(83,92,139,.42); box-shadow: 0 0 0 3px rgba(83,92,139,.08); }
}
@keyframes plActSchools {
  0%, 42% { opacity: 1; transform: scale(1); }
  48%, 100% { opacity: 0; transform: scale(.98); pointer-events: none; }
}
@keyframes plActWeave {
  0%, 45% { opacity: 0; transform: scale(.98); }
  51%, 70% { opacity: 1; transform: scale(1); }
  76%, 100% { opacity: 0; transform: scale(.985); pointer-events: none; }
}
@keyframes plActFinal {
  0%, 72% { opacity: 0; transform: translateY(5px) scale(.985); }
  80%, 97% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(0) scale(.99); pointer-events: none; }
}
@keyframes plTidyGrid {
  0%, 6% { opacity: 0; transform: scale(.98); }
  12%, 42% { opacity: 1; transform: scale(1); }
  48%, 100% { opacity: 0; transform: scale(.99); }
}
@keyframes plSchoolTidy {
  0%, 8% {
    left: var(--x);
    top: var(--y);
    transform: translateY(0) rotate(var(--r));
    border-color: rgba(83,92,139,.18);
  }
  13% {
    left: var(--x);
    top: var(--y);
    transform: translateY(-5px) rotate(calc(var(--r) * .55));
    border-color: rgba(83,92,139,.22);
  }
  25%, 42% {
    left: var(--tx);
    top: var(--ty);
    transform: translateY(0) rotate(var(--tr));
    border-color: rgba(83,92,139,.34);
    box-shadow: 0 14px 26px -23px rgba(44,49,87,.42);
  }
  48%, 100% {
    left: var(--tx);
    top: var(--ty);
    transform: translateY(0) rotate(var(--tr));
  }
}
@keyframes plHandLeft {
  0%, 7%, 36%, 100% { opacity: 0; left: -54px; top: 63%; transform: rotate(18deg); }
  12% { opacity: 1; left: 7%; top: 64%; transform: rotate(11deg); }
  21% { opacity: 1; left: 31%; top: 48%; transform: rotate(-6deg); }
  29% { opacity: 1; left: 48%; top: 66%; transform: rotate(7deg); }
}
@keyframes plHandRight {
  0%, 7%, 36%, 100% { opacity: 0; right: -54px; top: 18%; transform: scaleX(-1) rotate(18deg); }
  12% { opacity: 1; right: 9%; top: 17%; transform: scaleX(-1) rotate(10deg); }
  22% { opacity: 1; right: 29%; top: 38%; transform: scaleX(-1) rotate(-8deg); }
  30% { opacity: 1; right: 44%; top: 24%; transform: scaleX(-1) rotate(6deg); }
}
@keyframes plRouteDash {
  to { stroke-dashoffset: -24; }
}
@keyframes plRouteInk {
  0%, 50% { stroke-dashoffset: 430; opacity: 0; }
  53% { stroke-dashoffset: 430; opacity: 1; }
  68%, 76% { stroke-dashoffset: 0; opacity: 1; }
  82%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes plPenWrite {
  0%, 50%, 73%, 100% { opacity: 0; left: 42px; top: 154px; transform: translate(-12px, -7px) rotate(-30deg); }
  53% { opacity: 1; left: 42px; top: 154px; transform: translate(-12px, -7px) rotate(-30deg); }
  57% { opacity: 1; left: 143px; top: 103px; transform: translate(-12px, -7px) rotate(18deg); }
  61% { opacity: 1; left: 205px; top: 151px; transform: translate(-12px, -7px) rotate(48deg); }
  64% { opacity: 1; left: 258px; top: 110px; transform: translate(-12px, -7px) rotate(-24deg); }
  68% { opacity: 1; left: 330px; top: 84px; transform: translate(-12px, -7px) rotate(-8deg); }
}
@keyframes plRouteNote {
  0%, 54%, 74%, 100% { opacity: 0; transform: translateY(5px) rotate(var(--nr)) scale(.97); }
  58%, 70% { opacity: 1; transform: translateY(0) rotate(var(--nr)) scale(1); }
}
@keyframes plNoteWrite {
  0%, 55% { max-width: 0; }
  63%, 74% { max-width: 110px; }
  78%, 100% { max-width: 110px; }
}
/* Slower paper fold: appear folded → HOLD folded → unfold like origami */
@keyframes plFoldStage {
  0%, 76%, 100% { opacity: 0; transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-8deg) scale(.6); }
  78% { opacity: 1; transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-7deg) scale(.64); }
  85% { opacity: 1; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-6deg) scale(.68); }
  90% { opacity: 1; transform: translate(-50%, -50%) rotateX(0deg) rotateZ(0deg) scale(1); }
  93% { opacity: 0; transform: translate(-50%, -50%) rotateX(-5deg) rotateZ(0deg) scale(1.1); }
}
@keyframes plFoldLabel {
  0%, 78%, 90%, 100% { opacity: 0; transform: translateY(4px); }
  82%, 87% { opacity: 1; transform: translateY(0); }
}
@keyframes plFoldSheet {
  0%, 76%, 100% { opacity: 0; transform: rotateX(74deg) scale(.54); }
  78% { opacity: 1; transform: rotateX(72deg) scale(.56); }
  85% { opacity: 1; transform: rotateX(70deg) scale(.6); }
  90% { opacity: 1; transform: rotateX(0deg) scale(1); }
  93% { opacity: 0; transform: rotateX(-4deg) scale(1.1); }
}
@keyframes plFoldSheetTwo {
  0%, 76%, 100% { opacity: 0; transform: rotateY(-80deg) scale(.7); }
  78% { opacity: 1; transform: rotateY(-78deg) scale(.7); }
  85% { opacity: 1; transform: rotateY(-72deg) scale(.74); }
  90% { opacity: 1; transform: rotateY(0deg) scale(1); }
  93% { opacity: 0; transform: rotateY(8deg) scale(1.1); }
}
@keyframes plFoldSheetThree {
  0%, 76%, 100% { opacity: 0; transform: rotateX(-80deg) scale(.7); }
  78% { opacity: 1; transform: rotateX(-78deg) scale(.7); }
  85% { opacity: 1; transform: rotateX(-72deg) scale(.74); }
  90% { opacity: 1; transform: rotateX(0deg) scale(1); }
  93% { opacity: 0; transform: rotateX(8deg) scale(1.1); }
}
@keyframes plFoldCrease {
  0%, 78%, 90%, 100% { opacity: 0; }
  81%, 87% { opacity: 1; }
}
@keyframes plFinalUnfoldContent {
  0%, 85% { opacity: 0; transform: translateY(8px) rotateX(16deg) scale(.95); filter: blur(3px); }
  89% { opacity: .2; transform: translateY(5px) rotateX(9deg) scale(.97); filter: blur(2px); }
  93%, 98% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); filter: none; }
  100% { opacity: 0; transform: translateY(0) scale(.99); filter: none; }
}
@keyframes plPopIn {
  0%, 30% { opacity: 0; transform: translateY(6px) scale(.96); }
  39%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(4px) scale(.98); }
}
@keyframes plPinMove {
  0%, 100% { transform: translate(0, 0); }
  28% { transform: translate(108px, -42px); }
  58% { transform: translate(166px, 0); }
  82% { transform: translate(282px, -70px); }
}
/* Tip dot follows the pen's exact waypoints, in step with the line being drawn. */
@keyframes plPinTrace {
  0%, 50%, 73%, 100% { opacity: 0; left: 42px; top: 154px; }
  53% { opacity: 1; left: 42px; top: 154px; }
  57% { opacity: 1; left: 143px; top: 103px; }
  61% { opacity: 1; left: 205px; top: 151px; }
  64% { opacity: 1; left: 258px; top: 110px; }
  68% { opacity: 1; left: 330px; top: 84px; }
}
@keyframes plMiniCar {
  0%, 100% { left: 56%; top: 36%; transform: translate(-50%, -50%) scale(.94); }
  26% { left: 71%; top: 42%; transform: translate(-50%, -50%) scale(1); }
  60% { left: 18%; top: 12%; transform: translate(-50%, -50%) scale(1); }
  88% { left: 78%; top: 82%; transform: translate(-50%, -50%) scale(.98); }
}
@keyframes plStopPulse {
  0%, 100% { filter: none; }
  50% { filter: drop-shadow(0 0 7px rgba(83,92,139,.22)); }
}
@keyframes plGather {
  0%, 18%, 100% {
    opacity: .82;
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    border-color: var(--line-soft);
  }
  36%, 72% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) rotate(0deg) scale(.92);
    border-color: rgba(83,92,139,.36);
    box-shadow: 0 18px 34px -25px rgba(44,49,87,.5);
  }
}
@keyframes plSorter {
  0%, 24%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
  36%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes plSpin {
  to { transform: rotate(360deg); }
}
@keyframes plFlow {
  0% { transform: translateX(-110%); opacity: .3; }
  45%, 70% { opacity: 1; }
  100% { transform: translateX(230%); opacity: .2; }
}
@keyframes plResultBuild {
  0%, 16% { opacity: .58; transform: translateY(3px); border-color: var(--line-soft); }
  26%, 74% { opacity: 1; transform: translateY(0); border-color: rgba(83,92,139,.32); box-shadow: 0 10px 24px -20px rgba(44,49,87,.42); }
  100% { opacity: .74; transform: translateY(0); border-color: var(--line-soft); }
}
@media (max-width: 560px) {
  .pl-demo__story { min-height: 660px; }
  .pl-demo__act-labels { grid-template-columns: 1fr; gap: 5px; }
  .pl-demo__act-labels span { font-size: 9px; }
  .pl-demo__act { inset: 96px 14px 14px; }
  .pl-demo__school-chip { max-width: 132px; font-size: 10.8px; }
  .pl-demo__act--final { grid-template-columns: 1fr; grid-template-rows: auto 200px; align-content: center; }
  .pl-demo__weave-card { width: 122px; }
  .pl-demo__workflow { grid-template-columns: 1fr; }
  .pl-demo__connector { height: 20px; }
  .pl-demo__connector span { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pl-demo__body::after, .pl-demo__act, .pl-demo__school-chip, .pl-demo__tidy-grid, .pl-demo__hand, .pl-demo__route-main, .pl-demo__map-dot, .pl-demo__moving-pin, .pl-demo__weave-card, .pl-demo__mini-map path, .pl-demo__mini-car, .pl-demo__mini-stop, .pl-demo__inputs li, .pl-demo__fragment, .pl-demo__sorter, .pl-demo__sorter span::after, .pl-demo__connector span::after, .pl-demo__schedule li, .pl-demo__doc-foot { animation: none; }
  .pl-demo__win { transform: none; }
  .pl-demo__act--schools, .pl-demo__act--weave { opacity: 0; }
  .pl-demo__act--final { opacity: 1; transform: none; }
  .pl-demo__fragment { transform: translate(var(--tx), var(--ty)) rotate(0deg); opacity: 1; }
  .pl-demo__sorter { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .pl-demo__schedule li, .pl-demo__doc-foot { opacity: 1; transform: none; }
}

/* ============================================================
   Farland Operations — gate + standard-JSON history (json-builder)
   ============================================================ */
.ops-locked .site-header,
.ops-locked #builder-main,
.ops-locked .site-footer { display: none !important; }
.ops-gate { display: none; }
.ops-locked .ops-gate { display: flex; }
.ops-gate { position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(120% 120% at 50% 0%, var(--bg-soft), var(--bg)); }
.ops-gate__panel { width: min(440px, 100%); text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 38px 34px; box-shadow: 0 34px 64px -32px rgba(44,49,87,.45); }
.ops-gate.is-shake { animation: plShake .4s ease; }
.ops-gate__logo { height: 30px; width: auto; margin-bottom: 18px; }
.ops-gate__eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.ops-gate__title { font-family: var(--serif); font-weight: 700; font-size: 23px; color: var(--brand-deep); margin: 0 0 8px; }
.ops-gate__sub { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.ops-gate__form { display: flex; gap: 10px; flex-wrap: wrap; }
.ops-gate__input { flex: 1 1 200px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px; }
.ops-gate__input:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.ops-gate__msg { min-height: 1.1em; margin: 12px 0 0; font-size: 13px; }
.ops-gate__msg--err { color: #8a4533; }

.ops-history { display: grid; gap: 10px; }
.ops-hist__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; padding: 13px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card); }
.ops-hist__title { font-size: 14px; color: var(--brand-deep); font-weight: 500; }
.ops-hist__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ops-hist__acts { display: flex; flex-wrap: wrap; gap: 6px; }
#ops-history-empty { color: var(--muted); padding: 18px; text-align: center; }
.ops-hist__source { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-soft); }
.ops-hist__source.is-server { color: #1f7a4d; background: rgba(31,122,77,.10); border-color: rgba(31,122,77,.30); }
.ops-hist__source.is-local { color: var(--muted); background: var(--card); }

/* ---- Quote / invoice builder (费用明细) ---- */
.quote-lines { overflow-x: auto; }
.quote-line { display: grid; grid-template-columns: 1.3fr 1.7fr 84px 78px 96px 104px 30px; gap: 8px; align-items: center; min-width: 760px; padding: 5px 0; }
.quote-line--head { padding: 0 0 2px; }
.quote-line--locked { opacity: .9; }
.quote-line--locked input:disabled, .quote-line--locked select:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; -webkit-text-fill-color: var(--muted); }
/* Quote Builder: advanced-only vs compact-default visibility */
html:not(.qb-advanced) .qb-adv { display: none !important; }
html.qb-advanced .qb-basic { display: none !important; }
.qb-param-console { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.qb-chip { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.qb-chip b { color: var(--muted); font-weight: 500; margin-right: 4px; font-size: 11px; }
.ops-hist__status { width: auto !important; min-width: 88px; padding: 5px 8px !important; font-size: 12px; margin-right: 6px; }
.quote-line__h { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.quote-line__name, .quote-line__num { text-align: left; }
.quote-line__num { text-align: right; }
.quote-line__qty { font-size: 13px; color: var(--brand-deep); text-align: right; font-variant-numeric: tabular-nums; }
.quote-line__amt { text-align: right; font-variant-numeric: tabular-nums; color: var(--brand-deep); font-weight: 500; }
.quote-line__basis { font-size: 12px; padding: 0 6px; }
.quote-line__rm { justify-self: center; }
.mut { color: var(--muted); }
.day { display: inline-block; font-size: 10px; color: var(--brand); margin-left: 4px; }

.quote-sum { display: flex; flex-direction: column; gap: 5px; max-width: 360px; margin-left: auto; }
.quote-sum__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.quote-sum__row .num { color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.quote-sum__row--strong { padding-top: 5px; border-top: 0.5px solid var(--line-soft); font-weight: 500; }
.quote-sum__row--strong .num { font-size: 16px; }
.quote-margin { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(31,122,77,.30); background: rgba(31,122,77,.06); }
.quote-margin__lab { font-size: 13px; color: #1f7a4d; font-weight: 500; }
.quote-margin__val { font-size: 20px; font-weight: 600; color: #1f7a4d; font-variant-numeric: tabular-nums; }
.quote-margin__val.is-neg { color: #b3261e; }
.builder-input.input-bad { border-color: #d33; box-shadow: 0 0 0 2px rgba(211,51,51,.15); }

/* 费用明细 document — visible preview on screen + full-page on print. Mirrors the original:
   periwinkle blue #5C68A7 headers/labels, sage-green 团费 box, 等线 (DengXian) throughout. */
.quote-doc { margin: 12px auto 10px; max-width: 760px; }
.fee-doc { --fd-blue: #5B67A7; --fd-blue-soft: #8F96C3; --fd-green: #4f7a30; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; color: #595959; font-size: 13px;
  font-family: 'DengXian', '等线', 'Microsoft YaHei', '微软雅黑', 'PingFang SC', -apple-system, 'Segoe UI', sans-serif; }
.fee-doc * { font-family: inherit; }
.fee-doc__head { background: var(--fd-blue); color: #fff; text-align: center; padding: 10px 16px 11px; }
.fee-doc__h1 { font-size: 20px; font-weight: 700; letter-spacing: .3em; }
.fee-doc__h2 { font-size: 10.5px; letter-spacing: .24em; opacity: .9; margin-top: 2px; }
.fee-doc__code { margin-top: 9px; font-size: 12px; letter-spacing: .04em; background: rgba(255,255,255,.16); display: inline-block; padding: 2px 13px; border-radius: 999px; }
.fee-doc__doccode { text-align: center; color: #7f7f7f; font-size: 12px; line-height: 1.2; padding: 8px 14px 2px; }
.fee-doc__summary, .fee-doc__items { width: 100%; border-collapse: collapse; }
/* 汇总条:中英双行同为靛蓝、英文仅略小(权威范本 2023NBC092) */
.fee-doc__summary th { background: #fff; padding: 10px 6px 7px; text-align: center; border-bottom: 1px solid rgba(92,104,167,.28); }
.fee-doc__sz { font-size: 13.5px; color: var(--fd-blue); font-weight: 400; }
.fee-doc__se { font-size: 12px; color: var(--fd-blue); font-weight: 400; letter-spacing: .01em; }
.fee-doc__summary td { text-align: center; padding: 10px 6px; font-weight: 400; color: var(--fd-blue); border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.fee-doc__summary td.is-strong { font-weight: 700; color: #2b2b2b; }
/* 明细表:五列全部居中(老板 2026-08-07 按 2024XSC087 范本) */
.fee-doc__items th { background: var(--fd-blue); color: #fff; font-size: 11px; letter-spacing: .04em; text-align: center; padding: 7px 10px; font-weight: 500; }
.fee-doc__items td { padding: 11px 10px; border-bottom: 1px solid #ededed; vertical-align: middle; text-align: center; color: #3a3a3a; }
.fee-doc__items td.num { text-align: center; font-variant-numeric: tabular-nums; }
.fee-doc__name { font-weight: 400; color: #3a3a3a; white-space: nowrap; }   /* 范本:名称列同为深灰,不做靛蓝 */
.fee-doc__veh { white-space: nowrap; }
.fee-doc__totals { display: flex; flex-direction: column; margin: 0; border-top: 2px solid #2b2b2b; }
/* 合计区:四行同款(靛蓝、无竖分隔线),范本 2023NBC092 */
.fee-doc__trow { width: 52%; margin-left: auto; display: grid; grid-template-columns: 1fr 45%; align-items: center; border-bottom: 1px solid rgba(92,104,167,.22); font-size: 13.5px; }
.fee-doc__trow > span { padding: 10px 4px; color: var(--fd-blue); }
.fee-doc__trow > .num { text-align: right; color: var(--fd-blue); font-variant-numeric: tabular-nums; }
.fee-doc__trow.is-strong > span, .fee-doc__trow.is-strong > .num { font-weight: 400; color: var(--fd-blue); }
.fee-doc__group { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 14px auto; width: 52%; padding: 11px 14px; background: #e8f0de; border: 1px solid #9fbd84; border-radius: 8px; }
.fee-doc__group-lab { font-size: 12px; font-weight: 500; color: var(--fd-green); }
.fee-doc__group-val { font-size: 18px; font-weight: 700; color: var(--fd-green); font-variant-numeric: tabular-nums; }
.fee-doc__notes { padding: 6px 14px 10px; text-align: center; }
.fee-doc__note { font-size: 11.5px; color: #3a3a3a; line-height: 1.9; font-style: italic; }   /* 范本:居中斜体三行 */
.fee-doc__note:last-child { font-weight: 700; color: #2b2b2b; }   /* 范本:价格保证一行加粗 */
.fee-doc__foot { padding: 8px 14px 12px; border-top: 1px solid var(--line-soft); font-size: 10px; color: var(--muted); text-align: center; }
.fee-doc__snote td { padding: 0 6px 7px !important; border-bottom: 1px solid var(--line-soft) !important; }
.fee-doc__snote td:nth-child(4) { font-size: 9.5px; color: var(--fd-blue-soft); text-align: center; font-weight: 400; }
.fee-doc__updated { padding: 6px 14px 2px; text-align: right; font-size: 10px; color: var(--muted); }
.fee-doc__clausepage { padding: 8px 16px 4px; }
.fee-doc__clauseh { font-size: 15px; font-weight: 700; color: var(--fd-blue); border-bottom: 2px solid #2b2b2b; padding-bottom: 5px; margin: 6px 0 10px; }
.fee-doc__clause { margin: 0 0 9px; }
.fee-doc__clause-t { font-size: 12.5px; font-weight: 700; color: #2b2b2b; margin-bottom: 2px; }
.fee-doc__clause-b { font-size: 11px; color: #444; line-height: 1.65; }
.fee-doc__clause-b + .fee-doc__clause-b { margin-top: 2px; }
.fee-doc__upgrade { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 14px 4px; padding: 8px 14px; border: 1.5px solid var(--fd-green); border-radius: 8px; background: #f1f6ec; }
.fee-doc__upgrade-t { font-size: 12px; font-weight: 700; color: #b8472a; }
.fee-doc__upgrade-v { font-size: 12px; color: #2b2b2b; margin-top: 1px; }
.fee-doc__upgrade-m { font-size: 11px; color: var(--muted); margin-top: 1px; }
.fee-doc__upgrade-r { font-size: 17px; font-weight: 700; color: var(--fd-green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-doc__paypage { padding: 8px 16px 4px; }
.fee-doc__payhead { font-size: 15px; font-weight: 700; color: var(--fd-blue); margin: 6px 0 10px; }
.fee-doc__paymark { font-size: 12px; color: #2b2b2b; margin: 0 0 14px; border-bottom: 2px solid #222; padding-bottom: 7px; }
.fee-doc__paycode { font-weight: 700; color: #ff0000; }
.fee-doc__payblk { margin: 0 0 16px; }
.fee-doc__payblk + .fee-doc__payblk { border-top: 1px dotted #888; padding-top: 14px; }
.fee-doc__paytop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 4px; }
.fee-doc__payt { font-size: 13px; font-weight: 700; color: #2b2b2b; }
.fee-doc__payamt { font-size: 12px; color: var(--fd-blue); font-variant-numeric: tabular-nums; }
.fee-doc__payline { font-size: 11.5px; color: #444; line-height: 1.6; }
.fee-doc__paynote { font-size: 11px; color: #ff0000; line-height: 1.55; margin-top: 4px; }
.fee-doc__clauseimg { margin-top: 10px; border-top: 1px dashed var(--line); }
.fee-doc__clauseimg img { display: block; width: 100%; height: auto; }

@media print {
  /* 锁死打印度量:固定 A4 纸张 + 固定内边距,导出几何永远一致 */
  @page { size: A4 portrait; margin: 0; }
  .planner-page #quote-doc { display: block !important; width: 210mm !important; min-height: 297mm; margin: 0 auto !important; max-width: none !important; padding: 12mm 14mm !important; box-sizing: border-box !important; }
  .planner-page .fee-doc { border: 0 !important; border-radius: 0 !important; width: 100% !important; }
  /* 全文颜色锁定:所有文字/底色都按设计打印,不被打印机"省墨"灰化 */
  .planner-page .fee-doc, .planner-page .fee-doc * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .planner-page .fee-doc__clausepage, .planner-page .fee-doc__paypage { break-before: page; page-break-before: always; padding: 4mm 2mm 0 !important; }
  .planner-page .fee-doc__clause, .planner-page .fee-doc__payblk { break-inside: avoid; page-break-inside: avoid; }
  .planner-page .fee-doc__items tr, .planner-page .fee-doc__trow { break-inside: avoid; page-break-inside: avoid; }
  .planner-page .fee-doc__upgrade { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; break-inside: avoid; page-break-inside: avoid; }
  /* fixed clause pages (3–4): full-bleed A4 image, offsetting the #quote-doc 12mm padding */
  .planner-page .fee-doc__clauseimg { break-before: page; page-break-before: always; break-inside: avoid; page-break-inside: avoid; margin: -12mm !important; padding: 0 !important; border: 0 !important; height: 297mm; overflow: hidden; }
  .planner-page .fee-doc__clauseimg img { width: 210mm; height: 297mm; object-fit: contain; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
.site-footer__ops { opacity: .8; transition: opacity .2s ease; }
.site-footer__ops:hover { opacity: 1; text-decoration: underline; }

/* Operations password prompt (planner) + estimate-mode note */
.ops-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(28,31,55,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ops-modal[hidden] { display: none; }
.ops-modal__panel { position: relative; width: min(420px, 100%); text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px 26px; box-shadow: 0 40px 80px -32px rgba(20,24,58,.6); }
.ops-modal.is-shake .ops-modal__panel { animation: plShake .4s ease; }
.ops-modal__title { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--brand-deep); margin: 6px 0 8px; }
.ops-modal__sub { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.ops-modal__form { display: flex; gap: 10px; flex-wrap: wrap; }
.ops-modal__msg { min-height: 1.1em; margin: 12px 0 0; font-size: 13px; }
.ops-modal__msg--err { color: #8a4533; }
.ops-modal__cancel { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted); background: transparent; border: none; cursor: pointer; }
.ops-modal__cancel:hover { color: var(--brand-deep); text-decoration: underline; }
.planner-estnote { background: rgba(83,92,139,.07); border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px 13px; margin: 0 0 14px; color: var(--brand-deep); }

/* Obvious "Operations" nav-bar button (homepage + planner) */
.nav__ops { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; background: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 6px 16px; font-size: 12.5px; letter-spacing: .04em; box-shadow: 0 6px 16px rgba(91,101,150,.25); transition: background .2s ease, border-color .2s ease, transform .15s ease; }
.nav__ops::before { content: "🔒"; font-size: 11px; line-height: 1; }
.nav__ops:hover { background: var(--brand-deep); border-color: var(--brand-deep); transform: translateY(-1px); }
html.lang-zh .nav__ops { letter-spacing: .08em; }

/* ===== Trip console (Trips List + Trip Detail) ===== */
.trips-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.trips-toolbar #trips-search { flex: 1 1 240px; }
.trips-toolbar #trips-filter { flex: 0 0 auto; width: auto; }
.trips-list { display: flex; flex-direction: column; }
.trips-row { display: grid; grid-template-columns: 1.5fr 1.6fr 1.7fr 0.9fr 1.1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card); margin-bottom: 8px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .05s ease; }
a.trips-row:hover { border-color: var(--brand); }
.trips-row--head { background: transparent; border: 0; border-radius: 0; padding: 4px 14px; margin-bottom: 2px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.trips-code { font-size: 15px; font-weight: 600; color: var(--brand-deep); }
.trips-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.trips-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.trip-chip { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-soft); white-space: nowrap; }
.trip-status { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-soft); text-transform: lowercase; }
.trip-chip.is-empty, .trip-status.is-empty { color: var(--muted); background: var(--bg); }
.trip-chip.is-warn, .trip-status.is-warn { color: #9a6a14; background: rgba(154,106,20,.08); border-color: rgba(154,106,20,.3); }
.trip-chip.is-ok, .trip-status.is-ok { color: #1f7a4d; background: rgba(31,122,77,.08); border-color: rgba(31,122,77,.3); }
.trip-chip.is-info, .trip-status.is-info { color: #2f4d72; background: rgba(47,77,114,.08); border-color: rgba(47,77,114,.3); }

/* ═══════ 运营效率提升方案 · 工作台基线(1b Trips;复用于其余屏)═══════
 * 视野收窄 ≤1100px 靠左 + 密度(36px 行) + 指标条 + 卡在哪 + 5 段进度链 + 四色语义 */
.wb { max-width: 1100px; margin: 0; }
.ops-metricbar { display: flex; align-items: stretch; background: #fff; border: 1px solid rgba(44,49,87,.12); border-radius: 8px; overflow: hidden; height: 36px; width: fit-content; margin-bottom: 10px; }
.ops-metric { display: flex; align-items: center; gap: 7px; padding: 0 14px; border-right: 1px solid rgba(44,49,87,.08); font-size: 11.5px; color: #5D6274; white-space: nowrap; }
.ops-metric:last-child { border-right: 0; }
.ops-metric__val { font-size: 14.5px; color: #20243A; font-weight: 700; }
.ops-metric__val.is-info { color: #3F538F; } .ops-metric__val.is-warn { color: #96600F; } .ops-metric__val.is-danger { color: #B3261E; }

.wb-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.wb-search { width: 210px; height: 28px; border: 1px solid rgba(44,49,87,.18); border-radius: 7px; background: #fff; padding: 0 10px; font-size: 12px; color: #20243A; }
.wb-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.wb-chip { font-size: 12px; padding: 4px 10px; border-radius: 7px; background: #fff; border: 1px solid rgba(44,49,87,.18); color: #5D6274; cursor: pointer; font-weight: 500; }
.wb-chip b { font-weight: 700; }
.wb-chip.is-on { background: #2C3157; color: #fff; border-color: #2C3157; }
.wb-chip--warn:not(.is-on) { border-color: #EBD3A4; color: #96600F; }
.wb-seg { display: flex; background: #ECEAE3; border-radius: 8px; padding: 2px; }
.wb-seg__btn { font-size: 11.5px; padding: 3px 9px; border: 0; background: transparent; color: #5D6274; border-radius: 6px; cursor: pointer; }
.wb-seg__btn.is-on { background: #fff; color: #2C3157; font-weight: 600; box-shadow: 0 1px 2px rgba(44,49,87,.16); }
.wb-new { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fff; background: #535C8B; border: 0; border-radius: 7px; padding: 5px 13px; cursor: pointer; }
.wb-new kbd { font-size: 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 0 4px; font-family: inherit; }
/* (设计交接01:恢复 .wb-new 双语 span 正常显隐,原「.en 恒藏」删除) */

.wb-table { background: #fff; border: 1px solid rgba(44,49,87,.10); border-radius: 9px; overflow: hidden; width: fit-content; }
.wb-row { display: grid; grid-template-columns: 130px 148px 132px 286px 76px 92px 62px 82px; gap: 0 10px; padding: 0 12px; align-items: center; }
.wb-row--head { padding: 5px 12px; background: #ECEAE3; border-bottom: 1px solid rgba(44,49,87,.18); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #5D6274; }
.wb-chainkey { letter-spacing: .16em; }
.wb-r { text-align: right; }
.wb-tr { height: 36px; border-bottom: 1px solid rgba(44,49,87,.08); cursor: pointer; font-size: 12.5px; color: #20243A; }
.wb-tr:last-child { border-bottom: 0; }
.wb-tr:hover, .wb-tr.is-cursor { background: #F6F6FB; }
.wb-tr.is-cursor { outline: 2px solid #535C8B; outline-offset: -2px; }
.wb-tr--risk { background: #FDF7F5; }
.wb-tr--risk:hover, .wb-tr--risk.is-cursor { background: #FBEFEC; }
.wb-code { font-size: 13px; font-weight: 700; color: #2C3157; }
.wb-client { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-sub { color: #8B8FA3; }
.wb-muted { color: #A2A6B4; }
.wb-dates { font-size: 12px; color: #3D4257; white-space: nowrap; }
.wb-meta { font-size: 11.5px; color: #8B8FA3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wb-next { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wb-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-pilldot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.wb-pill--ok { color: #1F7A4D; background: #E7F2EA; border: 1px solid #BCDCC8; }
.wb-pill--warn { color: #96600F; background: #FBF0DC; border: 1px solid #EBD3A4; }
.wb-pill--danger { color: #B3261E; background: #FBEAE7; border: 1px solid #F0C4BC; }
.wb-pill--info { color: #3F538F; background: #ECF0F9; border: 1px solid #C8D2EB; }
.wb-jump { flex: none; font-size: 11px; font-weight: 600; color: #3F538F; background: transparent; border: 0; cursor: pointer; padding: 0; opacity: 0; transition: opacity .1s ease; }
.wb-tr:hover .wb-jump, .wb-tr.is-cursor .wb-jump { opacity: 1; }
.wb-jump--go { color: #fff; background: #535C8B; border-radius: 6px; padding: 1px 8px; opacity: 1; }

.wb-due { font-size: 12.5px; font-weight: 700; }
.wb-due.is-danger { color: #B3261E; } .wb-due.is-warn { color: #96600F; } .wb-due.is-ok { color: #1F7A4D; font-weight: 600; } .wb-due.wb-muted { color: #8B8FA3; font-weight: 400; }

.wb-chain { display: flex; gap: 4px; align-items: center; }
.wb-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-sizing: border-box; }
.wb-dot--ok { background: #1F7A4D; }
.wb-dot--active { border: 1.5px solid #E0A94F; background: #FBF0DC; }
.wb-dot--risk { background: #B3261E; }
.wb-dot--todo { border: 1.5px solid #C9C6BA; background: #fff; }

.wb-group { display: flex; align-items: center; gap: 8px; padding: 3px 12px; background: #FBFAF8; border-bottom: 1px solid rgba(44,49,87,.10); font-size: 11px; font-weight: 700; }
.wb-group__bar { width: 3px; height: 12px; border-radius: 2px; flex: none; }
.wb-foot { font-size: 11px; color: #8B8FA3; margin-top: 8px; }
.wb-foot b { color: #5D6274; }

/* ═══════ 运营效率提升方案 · 2b 行程详情·报价 tab ═══════
 * 五段表单收成三卡一栏(左 700 编辑 + 右 348 版本/预览)。数据/计算全保留,仅重写渲染层。
 * 设计稿画板 2b:工具栏一行 · 单据字段定宽一行 · 行程参数只读 chips · 明细 30px 行三列右对齐
 * · 团费=唯一大字段(琥珀框)· 升级/脚注/付款默认折叠 · 右栏版本+预览+下一步。 */
.qb2 { display: flex; align-items: flex-start; gap: 14px; max-width: 1062px; margin: 0; }
.qb2-main { width: 760px; flex: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qb2-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.qb2-card { background: #fff; border: 1px solid rgba(44,49,87,.10); border-radius: 9px; box-sizing: border-box; }
.qb2-doccard, .qb2-hotelcard, .qb2-totcard { padding: 11px 13px; }

/* ① 工具栏一行 */
.qb2-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qb2-statusseg { flex: 0 0 auto; }
.qb2-statusnote { font-size: 11px; color: #8B8FA3; }
.qb2-spacer { flex: 1 1 auto; }
.qb2-tbtn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #2C3157; border: 1px solid rgba(44,49,87,.22); background: #fff; border-radius: 7px; padding: 4px 11px; cursor: pointer; white-space: nowrap; }
.qb2-tbtn:hover { border-color: #535C8B; background: #F6F6FB; }
.qb2-tbtn kbd { font-size: 10px; border: 1px solid rgba(44,49,87,.25); border-radius: 4px; padding: 0 3px; font-family: inherit; color: #5D6274; }
.qb2-tbtn--go { color: #fff; background: #535C8B; border-color: #535C8B; }
.qb2-tbtn--go:hover { background: #434c78; border-color: #434c78; }
.qb2-tbtn--go kbd { border-color: rgba(255,255,255,.4); color: #fff; }
.qb2-msg { flex-basis: 100%; text-align: right; }

/* ② 单据字段一行 + 行程参数 chips */
.qb2-fieldrow { display: flex; gap: 6px; flex-wrap: wrap; }
.qb2-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; }
.qb2-flab { font-size: 10px; font-weight: 600; color: #8B8FA3; }
.qb2-flab--amber { color: #96600F; font-weight: 700; }
.qb2-input { height: 26px; border: 1px solid rgba(44,49,87,.18); border-radius: 6px; background: #fff; padding: 0 7px; font-size: 12px; color: #20243A; box-sizing: border-box; width: 100%; font-family: inherit; -webkit-appearance: none; appearance: none; }
select.qb2-input { cursor: pointer; padding-right: 4px; }
.qb2-input:focus-visible { outline: 2px solid #535C8B; outline-offset: 0; }
.qb2-input--ro { background: #FBFAF8; border-color: rgba(44,49,87,.12); color: #5D6274; }
.qb2-input--out { display: flex; align-items: center; background: #FBFAF8; border-color: rgba(44,49,87,.12); font-weight: 600; }
.qb2-w-type { width: 64px; } .qb2-w-title { width: 200px; } .qb2-w-client { width: 104px; }
.qb2-w-date { width: 108px; flex: none; } .qb2-w-trip { width: 120px; } .qb2-w-num { width: 72px; }
.qb2-w-money { width: 96px; } .qb2-w-cur { width: auto; }
.qb2-params { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #FBFAF8; border: 1px solid rgba(44,49,87,.08); border-radius: 7px; padding: 5px 9px; margin-top: 8px; }
.qb2-params__lab { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #8B8FA3; }
.qb2-chips { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.qb2-chip { font-size: 11.5px; color: #3D4257; white-space: nowrap; }
.qb2-chip.is-warn { color: #B3261E; }
.qb2-chipsep { color: #D8D5C9; font-size: 11.5px; }
.qb2-refresh { margin-left: auto; font-size: 11px; font-weight: 600; color: #3F538F; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.qb2-refresh:hover { color: #2C3157; text-decoration: underline; }
.qb2-advparams { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.qb2-advrow { display: flex; gap: 6px; flex-wrap: wrap; }
.qb2-advrow .qb2-field { flex: 0 1 auto; }

/* ③ 费用明细表(30px 行,数量/单价/小计右对齐) */
.qb2-linescard { overflow: hidden; }
.qb2-linescard .quote-lines { overflow-x: auto; }
.qb2-linescard .quote-line { display: grid; grid-template-columns: 132px minmax(0,1fr) 64px 76px 84px 32px; gap: 0 10px; align-items: center; min-width: 0; padding: 0 14px; height: 34px; border-bottom: 1px solid rgba(44,49,87,.08); }   /* 13 稿列宽 */
.qb2-linescard .quote-line:hover { background: #F6F6FB; }
.qb2-linescard .quote-line--head { height: auto; padding: 5px 12px; background: #ECEAE3; border-bottom: 1px solid rgba(44,49,87,.18); }
.qb2-linescard .quote-line--edit { height: auto; padding: 6px 12px; }
.qb2-linescard .quote-line__h { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #5D6274; }
.qb2-r { text-align: right; }
.qb2-tot-acts { margin-left: auto; align-self: flex-end; display: inline-flex; gap: 8px; }
.qb2-lock { display: flex; justify-content: center; align-items: center; }
.qb2-lock svg { display: block; }
.quote-line__rm2 { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: #B3261E; border: 1px solid #F0C4BC; background: linear-gradient(180deg,#ffffff 0%,#fdf3f1 100%); border-radius: 50%; box-shadow: 0 1px 3px rgba(132,42,33,.16), inset 0 1px 0 rgba(255,255,255,.8); cursor: pointer; padding: 0; flex: none; justify-self: center; }
.quote-line__rm2:hover { background: #FBEAE7; border-color: #B3261E; }
.quote-line__rm2:active { transform: translateY(1px); }
.quote-line__rm2[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.qb2-datewrap { display: flex; align-items: center; height: 28px; border: 1px solid rgba(44,49,87,.18); border-radius: 6px; background: #fff; padding: 0 7px; box-sizing: border-box; gap: 4px; }
.qb2-datewrap input { border: 0; outline: none; background: transparent; font-size: 12px; color: #20243A; font-family: inherit; font-variant-numeric: tabular-nums; width: 100%; min-width: 0; padding: 0; height: auto; }
.qb2-linescard .quote-line__name { font-size: 12px; color: #20243A; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb2-linescard .quote-line__desc { font-size: 11.5px; color: #5D6274; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; min-width: 0; }
.qb2-linescard .quote-line__desc > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb2-synced { flex: none; font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 5px; border: 1px solid #BCDCC8; background: #E7F2EA; color: #1F7A4D; white-space: nowrap; }
.qb2-linescard .quote-line__qty { font-size: 12px; color: #3D4257; font-variant-numeric: tabular-nums; }
.qb2-linescard .quote-line__num { font-size: 12px; color: #3D4257; font-variant-numeric: tabular-nums; }
.qb2-linescard .quote-line__amt { font-size: 12px; color: #20243A; font-weight: 600; font-variant-numeric: tabular-nums; }
.qb2-linescard .quote-line__qty .day { font-size: 9px; color: #A2A6B4; margin-left: 2px; }
.qb2-lineinput { height: 24px; border: 1px solid rgba(44,49,87,.18); border-radius: 5px; background: #fff; padding: 0 6px; font-size: 12px; color: #20243A; box-sizing: border-box; width: 100%; font-family: inherit; -webkit-appearance: none; appearance: none; }
.qb2-lineinput:focus-visible { outline: 2px solid #535C8B; outline-offset: 0; }
.qb2-lineinput.qb2-r { text-align: right; }
.qb2-linescard .quote-line__descwrap { display: flex; gap: 4px; min-width: 0; }
.qb2-linescard .quote-line__descwrap .quote-line__desc { flex: 1 1 auto; }
.qb2-linescard .quote-line__basis { flex: 0 0 92px; height: 24px; border: 1px solid rgba(44,49,87,.18); border-radius: 5px; background: #fff; font-size: 11px; color: #5D6274; padding: 0 4px; cursor: pointer; font-family: inherit; }
.quote-line__rm { justify-self: center; width: 16px; height: 16px; padding: 0; border: 0; background: none; color: #B3261E; font-size: 12px; line-height: 1; cursor: pointer; border-radius: 4px; opacity: .55; }
.quote-line__rm:hover { opacity: 1; background: #FBEAE7; }
.quote-line__rm:disabled { opacity: .25; cursor: default; }
.qb2-lines-empty { padding: 14px 12px; font-size: 12px; margin: 0; }
.qb2-linesfoot { display: flex; align-items: center; gap: 10px; padding: 5px 12px; border-bottom: 1px solid rgba(44,49,87,.08); }
.qb2-addline { font-size: 11px; font-weight: 600; color: #3F538F; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.qb2-addline:hover { text-decoration: underline; color: #2C3157; }
.qb2-reset { color: #5D6274; }
.qb2-advtoggle { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #5D6274; cursor: pointer; }
/* 表尾:成本合计 → 服务费 → 建议售价 → 成本币/汇率 */
.qb2-costfoot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 12px; background: #FBFAF8; font-size: 12px; color: #5D6274; }
.qb2-cf-lab { color: #5D6274; white-space: nowrap; }
.qb2-cf-val { color: #20243A; font-size: 13px; font-variant-numeric: tabular-nums; }
.qb2-cf-strong { font-weight: 700; }
.qb2-cf-sep { width: 1px; height: 14px; background: #D8D5C9; }
.qb2-feeseg { flex: 0 0 auto; }
.qb2-feein { width: 56px; height: 24px; border: 1px solid rgba(44,49,87,.18); border-radius: 6px; background: #fff; padding: 0 6px; font-size: 12px; color: #20243A; box-sizing: border-box; text-align: right; font-family: inherit; -webkit-appearance: none; appearance: none; }
.qb2-feein:focus-visible { outline: 2px solid #535C8B; outline-offset: 0; }
.qb2-fxin { width: 66px; }
.qb2-fx-out { font-size: 11px; color: #8B8FA3; font-variant-numeric: tabular-nums; }
.qb2-fxmsg { flex-basis: 100%; font-size: 11px; }

/* ③.5 酒店费用 */
.qb2-hotelhead { font-size: 12.5px; font-weight: 700; color: #2C3157; margin-bottom: 8px; }
.qb2-hotelrow { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.qb2-hotelsum { margin-left: 0; align-self: center; }
.qb2-hotelhint { margin-top: 6px; font-size: 11px; line-height: 1.4; }

/* ④ 合计卡:团费总计 = 唯一大字段(琥珀框) */
.qb2-tot-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.qb2-group { flex: 0 0 auto; }
.qb2-groupbox { width: 160px; height: 34px; border: 1.5px solid #E0A94F; border-radius: 7px; background: #FDFAF3; padding: 0 10px; font-size: 17px; font-weight: 800; color: #20243A; box-sizing: border-box; font-variant-numeric: tabular-nums; font-family: inherit; -webkit-appearance: none; appearance: none; }
.qb2-groupbox:focus-visible { outline: 2px solid #E0A94F; outline-offset: 1px; }
.qb2-groupbox::placeholder { font-size: 12px; font-weight: 500; color: #C9A05A; }
.qb2-tot-refs { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #8B8FA3; line-height: 1.5; padding-bottom: 3px; }
.qb2-reflink { font-size: 11px; color: #3F538F; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; }
.qb2-reflink:hover { text-decoration: underline; }
.qb2-margin__val { color: #1F7A4D; font-weight: 700; }
.qb2-margin__val.is-neg { color: #B3261E; }
/* 折叠段:升级/脚注/付款账户 */
.qb2-fold { margin-top: 12px; border-top: 1px dashed rgba(44,49,87,.15); padding-top: 8px; }
.qb2-fold__sum { font-size: 11.5px; font-weight: 600; color: #3F538F; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.qb2-fold__sum::-webkit-details-marker { display: none; }
.qb2-fold__sum::before { content: '▸'; font-size: 10px; color: #8B8FA3; transition: transform .12s ease; }
.qb2-fold[open] .qb2-fold__sum::before { transform: rotate(90deg); }
.qb2-fold__hint { font-weight: 400; color: #A2A6B4; }
.qb2-fold__body { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.qb2-foldblk .qb2-flab { margin-bottom: 4px; display: block; }
.qb2-uprow { display: flex; gap: 6px; flex-wrap: wrap; }
.qb2-uprow .qb2-input { width: 100%; }
.qb2-uprow .qb2-input:first-child { flex: 1 1 180px; }
.qb2-uprow .qb2-w-num { flex: 0 0 72px; } .qb2-uprow .qb2-w-money { flex: 1 1 160px; }
.qb2-ta { height: auto; min-height: 42px; padding: 6px 8px; resize: vertical; line-height: 1.4; }
.qb2-payopts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #3D4257; }
.qb2-payopts label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.qb2-foldacts { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.qb2-foldnote { font-size: 11px; line-height: 1.5; margin: 0; }

/* ══ 右栏:版本 + 预览 + 下一步 ══ */
.qb2-sidecard { background: #fff; border: 1px solid rgba(44,49,87,.18); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(20,22,40,.08); }
.qb2-sidehead { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-bottom: 1px solid rgba(44,49,87,.10); background: #FBFAF8; font-size: 12.5px; font-weight: 700; color: #2C3157; }
.qb2-sidehead__n { color: #8B8FA3; font-weight: 400; font-size: 10.5px; }
.qb2-siderefresh { margin-left: auto; width: 24px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid rgba(44,49,87,.18); background: #fff; color: #2C3157; cursor: pointer; }
.qb2-siderefresh svg { width: 13px; height: 13px; }
.qb2-siderefresh:hover { background: #F6F6FB; border-color: #535C8B; }
.qb2-sidehelp { font-size: 11px; color: #8B8FA3; margin: 8px 13px; }
.qb2-versions { display: flex; flex-direction: column; }
.qb2-ver { display: flex; align-items: center; gap: 8px; padding: 0 13px; height: 34px; border-bottom: 1px solid rgba(44,49,87,.06); }
.qb2-ver:last-child { border-bottom: 0; }
.qb2-ver.is-current { background: #ECF0F9; box-shadow: inset 3px 0 0 #2C3157; }
.qb2-ver__v { font-size: 12px; font-weight: 700; color: #2C3157; white-space: nowrap; }
.qb2-ver:not(.is-current) .qb2-ver__v { color: #5D6274; font-weight: 500; }
.qb2-ver__amt { font-size: 11px; color: #5D6274; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.qb2-ver:not(.is-current) .qb2-ver__amt { color: #8B8FA3; }
.qb2-ver__chip { font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 5px; border: 1px solid; background: #fff; cursor: pointer; white-space: nowrap; flex: none; font-family: inherit; }
.qb2-ver__chip.is-ok { color: #1F7A4D; background: #E7F2EA; border-color: #BCDCC8; }
.qb2-ver__chip.is-warn { color: #96600F; background: #FBF0DC; border-color: #EBD3A4; }
.qb2-ver__chip.is-info { color: #3F538F; background: #ECF0F9; border-color: #C8D2EB; }
.qb2-ver__chip.is-mute { color: #6B7080; background: #EFEEE9; border-color: #DDDACF; }
.qb2-ver__chip:disabled { cursor: default; }
.qb2-ver__act { margin-left: auto; font-size: 11px; color: #3F538F; background: none; border: 0; padding: 0; cursor: pointer; flex: none; }
.qb2-ver__act:hover { text-decoration: underline; }
.qb2-ver__del { width: 16px; height: 16px; padding: 0; border: 0; background: none; color: #B3261E; font-size: 11px; line-height: 1; cursor: pointer; border-radius: 4px; opacity: .5; flex: none; }
.qb2-ver__del:hover { opacity: 1; background: #FBEAE7; }
.qb2-ver__del:disabled { opacity: .2; cursor: default; }
.qb2-versions-empty { padding: 16px 13px; font-size: 12px; margin: 0; }
/* 预览缩略 + 下一步 */
.qb2-previewcard { padding: 0; }
.qb2-prevfull { margin-left: auto; font-size: 11px; font-weight: 600; color: #3F538F; }
.qb2-prevnote { font-size: 11px; color: #5D6274; line-height: 1.6; margin: 10px 13px; }
.qb2-next { border-top: 1px dashed rgba(44,49,87,.15); margin: 0 13px; padding: 10px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.qb2-next__lab { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #5D6274; }
.qb2-next__btn { display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; color: #2C3157; border: 1px solid rgba(44,49,87,.25); background: #fff; border-radius: 7px; padding: 5px 8px; text-decoration: none; }
.qb2-next__btn:hover { border-color: #535C8B; background: #F6F6FB; }

/* 窄屏:两列堆叠,仍左对齐定宽不铺满(视野收窄原则) */
@media (max-width: 1080px) {
  .qb2 { flex-direction: column; max-width: 700px; }
  .qb2-side { width: 100%; max-width: 700px; }
}
@media (max-width: 720px) {
  .qb2, .qb2-main, .qb2-side { width: 100%; max-width: 100%; }
}

/* ═══════ 运营效率提升方案 · 2a 行程详情·酒店 tab(行程住宿+订单合成一表)═══════
 * 指标条(点击筛)+ 缺晚警示条(点击定位)+ 定宽列表(名称行+徽章行 40-42px)+ 行内直录/补录 */
.htab { max-width: 1100px; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.htab-toolbar { display: flex; align-items: center; gap: 6px; width: 976px; box-sizing: border-box; }   /* 操作列可容纳编辑/打印/删除三枚圆钮 */
.htab-chip2 { display: inline-flex; align-items: center; gap: 4px; height: 28px; font-size: 11.5px; padding: 0 10px; border-radius: 7px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.htab-chip2 b { font-weight: 700; }
.htab-chip2--all { background: linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); border: 1px solid rgba(44,49,87,.20); color: #2C3157; box-shadow: 0 1px 3px rgba(30,40,80,.10), inset 0 1px 0 rgba(255,255,255,.8); }
.htab-chip2--all.is-on { background: linear-gradient(180deg,#3a4170 0%,#2c3157 55%,#232744 100%); border-color: #1c1f38; color: #fff; box-shadow: 0 2px 4px rgba(20,22,40,.26), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 3px rgba(0,0,0,.16); }
.htab-chip2--warn { background: linear-gradient(180deg,#fffdf7 0%,#faf0da 100%); border: 1px solid #EBD3A4; color: #96600F; box-shadow: 0 1px 3px rgba(150,96,15,.14), inset 0 1px 0 rgba(255,255,255,.8); }
.htab-chip2--warn.is-on { background: linear-gradient(180deg,#b57c22 0%,#96600F 55%,#7a4e0b 100%); border-color: #6d4509; color: #fff; box-shadow: 0 2px 4px rgba(109,69,9,.28), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 3px rgba(0,0,0,.16); }
.htab-chip2:active { transform: translateY(1px); }
.htab-chip2[disabled] { opacity: .55; cursor: default; }
.htab-vr { width: 1px; height: 18px; background: rgba(44,49,87,.14); margin: 0 5px; flex: none; }
.htab-stat { font-size: 11.5px; color: #8B8FA3; white-space: nowrap; }
.htab-stat b { font-weight: 700; color: #20243A; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.htab-stat b.is-warn { color: #96600F; }
.htab-round { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #2C3157; border: 1px solid rgba(44,49,87,.22); background: linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); border-radius: 50%; box-shadow: 0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.8); cursor: pointer; font-size: 13px; padding: 0; font-family: inherit; }
.htab-round:active { transform: translateY(1px); }
.htab-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 0 13px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.htab-btn--secondary { color: #3A4170; background: linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); border: 1px solid rgba(58,65,112,.26); box-shadow: 0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.8); }
.htab-btn--secondary:hover { border-color: #535C8B; }
.htab-btn--secondary:active { transform: translateY(1px); }
.htab-btn--primary { color: #fff; background: linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%); border: 1px solid #3c4368; box-shadow: 0 2px 4px rgba(37,42,77,.30), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.15); }
.htab-btn--primary:hover { filter: brightness(1.06); }
.htab-btn--primary:active { transform: translateY(1px); filter: brightness(.96); box-shadow: inset 0 2px 4px rgba(0,0,0,.22); }

.htab-missing { display: flex; align-items: center; gap: 8px; padding: 5px 10px; width: 976px; box-sizing: border-box; border: 1px solid #EBD3A4; background: #FBF0DC; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #96600F; cursor: pointer; text-align: left; font-family: inherit; }
.htab-missing[hidden], .htab-tfoot[hidden] { display: none; }
.htab-missing::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.htab-missing__act { margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 11px; font-size: 11px; font-weight: 600; color: #96600F; border: 1px solid #EBD3A4; border-radius: 7px; background: linear-gradient(180deg,#fffdf7 0%,#faf0da 100%); box-shadow: 0 1px 3px rgba(150,96,15,.14), inset 0 1px 0 rgba(255,255,255,.8); cursor: pointer; font-family: inherit; }
.htab-missing__act:active { transform: translateY(1px); }

.htab-table { background: #fff; border: 1px solid rgba(44,49,87,.10); border-radius: 9px; overflow: hidden; width: fit-content; max-width: 100%; }
.htab-cols { display: grid; grid-template-columns: 118px 218px 44px 44px 118px 110px 56px 68px 90px; gap: 0 10px; }   /* 操作列 90px:三枚 26px 圆钮 + 两个 5px 间距 */
.htab-head { padding: 6px 14px; background: #ECEAE3; border-bottom: 1px solid rgba(44,49,87,.18); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #5D6274; }
.htab-head span { text-align: center; }
.htab-head span:nth-child(2) { text-align: left; }
.htab-group { display: flex; align-items: center; gap: 8px; padding: 3px 12px; background: #FBFAF8; border-bottom: 1px solid rgba(44,49,87,.10); font-size: 11px; font-weight: 700; color: #5D6274; }
.htab-group__bar { width: 3px; height: 12px; border-radius: 2px; flex: none; }

.htab-row { height: 38px; padding: 0 14px; align-items: center; border-bottom: 1px solid rgba(44,49,87,.08); font-size: 12.5px; color: #20243A; cursor: pointer; }
.htab-row:hover { background: #F6F6FB; }
.htab-row:last-child { border-bottom: 0; }
.htab-row--stay { background: #fff; }
.htab-row--orphan { background: #fff; }
.htab-row--driver { background: #F6FAF8; }
.htab-row--driver:hover { background: #EEF6F2; }
.htab-row--excluded, .htab-row--excluded:hover { background: #F4F3EE; color: #747887; }
.htab-row--excluded .htab-name, .htab-row--excluded .htab-dates { color: #747887; }
.htab-row--risk { background: #FDF7F5; }
.htab-row.is-target { background: #F6F6FB; outline: 2px solid #535C8B; outline-offset: -2px; }
.htab-cell { min-width: 0; }
.htab-c { display: flex; justify-content: center; min-width: 0; }
.htab-num { text-align: center; font-variant-numeric: tabular-nums; }
.htab-dates { text-align: center; font-size: 12px; color: #3D4257; white-space: nowrap; font-variant-numeric: tabular-nums; }
.htab-dates .htab-sub { color: #8B8FA3; }
.htab-name { display: block; font-size: 12.5px; font-weight: 600; color: #20243A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htab-name .htab-sub { color: #8B8FA3; font-weight: 400; }
.htab-conf-ok { font-size: 11.5px; color: #1F7A4D; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-variant-numeric: tabular-nums; }
.htab-conf-mute { font-size: 11px; color: #8B8FA3; }
.htab-conf-box { display: inline-flex; align-items: center; height: 24px; border: 1.5px dashed #E0A94F; border-radius: 6px; background: #FDFAF3; padding: 0 8px; font-size: 11px; color: #96600F; font-weight: 600; cursor: pointer; white-space: nowrap; }
.htab-conf-box:hover { background: #FBF0DC; }
.htab-conf-in { width: 100%; height: 24px; border: 1.5px dashed #E0A94F; border-radius: 6px; background: #fff; padding: 0 7px; font-size: 11px; color: #20243A; font-weight: 600; box-sizing: border-box; }

.htab-price { display: block; text-align: center; font-size: 12px; color: #3D4257; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htab-price b { color: #20243A; }
.htab-price--mute { color: #8B8FA3; }
.htab-price-cell { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.htab-public-rate { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #73798D; font-size: 9.5px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.htab-public-rate.is-lower { color: #96600F; font-weight: 700; }
/* Driver lodging: one amount for every date, edited only in the hotel tab. */
#tab-hotels .htab-scroll { width: 100%; min-width: 0; overflow-x: auto; }
#tab-hotels .htab-scroll > .htab-table { min-width: 976px; max-width: none; }
#tab-hotels .htab-missing { max-width: 100%; }
.driver-lodging { box-sizing: border-box; width: min(976px, 100%); margin: 12px 0 18px; border: 1px solid #D8E2DB; border-radius: 9px; background: #fff; overflow: hidden; }
.driver-lodging[hidden] { display: none; }
.driver-lodging__heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 12px 14px 4px; }
.driver-lodging__heading h3 { margin: 0; color: #20243A; font-size: 13px; font-weight: 700; }
.driver-lodging__heading strong { margin-left: auto; color: #2F6F5C; font-size: 12px; font-variant-numeric: tabular-nums; }
.driver-lodging__hint { margin: 0; padding: 0 14px 10px; color: #6B7080; font-size: 11.5px; }
.driver-lodging__head, .driver-lodging__row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 112px; gap: 12px; align-items: center; padding: 6px 14px; }
.driver-lodging__head { background: #EDF3EF; color: #5D6274; font-size: 11px; font-weight: 600; }
.driver-lodging__head span:last-child { text-align: right; }
.driver-lodging__row { min-height: 38px; box-sizing: border-box; border-top: 1px solid #EDF0EB; color: #3D4257; font-size: 12px; }
.driver-lodging__place { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.driver-lodging__amount { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: #2F6F5C; font-variant-numeric: tabular-nums; }
.driver-lodging__amount input { width: 84px; height: 28px; box-sizing: border-box; padding: 0 6px; border: 1px solid #BCD0C3; border-radius: 6px; background: #fff; color: #20243A; font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.driver-lodging__amount input:focus { outline: 2px solid #A9CFC0; outline-offset: 1px; border-color: #2F8D73; }
.driver-lodging__amount input[aria-invalid="true"] { border-color: #B3261E; }
.driver-lodging__amount input[readonly] { color: #6B7080; background: #F5F7F4; }
#driver-lodging-msg { margin: 0; padding: 6px 14px; font-size: 11px; }
@media (max-width: 600px) {
  .driver-lodging__head, .driver-lodging__row { grid-template-columns: 88px minmax(0, 1fr) 94px; gap: 6px; padding-left: 10px; padding-right: 10px; font-size: 11px; }
  .driver-lodging__amount input { width: 74px; }
}

.htab-net { display: block; font-size: 10px; color: #1F7A4D; font-variant-numeric: tabular-nums; }

.htab-chip { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; display: inline-block; }
.htab-chip--ok { border: 1px solid #BCDCC8; background: #E7F2EA; color: #1F7A4D; }
.htab-chip--warn { border: 1px solid #EBD3A4; background: #FBF0DC; color: #96600F; }
.htab-chip--info { border: 1px solid #C8D2EB; background: #ECF0F9; color: #3F538F; }
.htab-chip--mute { border: 1px solid #DDDACF; background: #EFEEE9; color: #6B7080; }
.htab-chip--danger { border: 1px solid #F0C4BC; background: #FBEAE7; color: #B3261E; }
.htab-chip--btn { cursor: pointer; font-family: inherit; }
.htab-chip--btn:hover { filter: brightness(.97); }

.htab-actions { display: flex; gap: 5px; align-items: center; justify-content: center; flex-wrap: wrap; }
.htab-op { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: #2C3157; border: 1px solid rgba(44,49,87,.22); background: linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); border-radius: 50%; box-shadow: 0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.8); cursor: pointer; padding: 0; flex: none; }
.htab-op:active { transform: translateY(1px); }
.htab-op--del { color: #B3261E; border-color: #F0C4BC; background: linear-gradient(180deg,#ffffff 0%,#fdf3f1 100%); box-shadow: 0 1px 3px rgba(132,42,33,.16), inset 0 1px 0 rgba(255,255,255,.8); }
.htab-op--del:hover { background: #FBEAE7; border-color: #B3261E; }
.htab-op[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.htab-mutedash { color: #A2A6B4; font-size: 11px; }

/* 未建单行程住宿 = 行内直录行(成本/客户/携程三框 + 建单↵),整行 flex 而非 grid */
.htab-row--new { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 12px; background: #FDFAF3; border-bottom: 1px solid rgba(44,49,87,.08); }
.htab-row--new .htab-nd { width: 118px; flex: none; }
.htab-row--new .htab-nname { width: 218px; flex: none; font-size: 12.5px; font-weight: 600; color: #20243A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htab-row--new .htab-nname .htab-sub { color: #8B8FA3; font-weight: 400; }
.htab-nfield { display: flex; flex-direction: column; gap: 1px; flex: none; }
.htab-nfield__l { font-size: 9px; color: #8B8FA3; }
.htab-nin { width: 64px; height: 24px; border: 1px solid rgba(44,49,87,.25); border-radius: 6px; background: #fff; padding: 0 7px; font-size: 11.5px; color: #20243A; box-sizing: border-box; }
.htab-nin::placeholder { color: #A2A6B4; }
.htab-nnet { font-size: 10.5px; color: #1F7A4D; flex: none; white-space: nowrap; }
.htab-nnet.is-warn { color: #96600F; }
.htab-nbuild { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #fff; background: #535C8B; border: 0; border-radius: 6px; padding: 4px 11px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.htab-nbuild:hover { background: #444d78; }
.htab-nbuild[disabled] { opacity: .5; cursor: default; }

.htab-tfoot { display: flex; align-items: center; gap: 16px; padding: 6px 14px; background: #FBFAF8; border-top: 1px solid rgba(44,49,87,.10); font-size: 11.5px; color: #5D6274; }
.htab-tfoot b { color: #20243A; font-variant-numeric: tabular-nums; }
.htab-tfoot b.is-mute { color: #8B8FA3; }
.htab-tfoot__driver { padding-left: 16px; border-left: 1px solid rgba(44,49,87,.12); white-space: nowrap; }
.htab-tfoot .htab-tfoot__hint { margin-left: auto; color: #8B8FA3; }

/* ≤1080px:横向滚动保住定宽表(视野收窄不甩尾列;body 不横向滚) */
@media (max-width: 1080px) {
  .htab-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .htab-table { min-width: 976px; }
}

/* ═══ 14 稿 订单 tab:酒店+接送+机票 聚合一表(8 列 · 38px 行 · 类型分组)═══ */
.o2-toolbar { display: flex; align-items: center; gap: 6px; width: 928px; box-sizing: border-box; }   /* 工具条右缘 = 表右缘 928 */
.o2-add { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; font-size: 11.5px; font-weight: 600; color: #2C3157; border: 1px solid rgba(44,49,87,.22); border-radius: 7px; background: linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); box-shadow: 0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.75); cursor: pointer; white-space: nowrap; font-family: inherit; }
.o2-add:hover { filter: brightness(1.03); }
.o2-add:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(30,40,80,.14); }
.o2-table { background: #fff; border: 1px solid rgba(44,49,87,.10); border-radius: 9px; overflow: hidden; width: fit-content; max-width: 100%; font-size: 12.5px; color: #20243A; }
.o2-cols { display: grid; grid-template-columns: 52px 96px 268px 118px 110px 56px 68px 60px; gap: 0 10px; }
.o2-head { padding: 6px 14px; background: #ECEAE3; border-bottom: 1px solid rgba(44,49,87,.18); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #5D6274; }
.o2-head span { text-align: center; }
.o2-head span:nth-child(3) { text-align: left; }
.o2-row { height: 38px; padding: 0 14px; align-items: center; border-bottom: 1px solid rgba(44,49,87,.08); cursor: pointer; }
.o2-row:hover { background: #F6F6FB; }
.o2-row--risk { background: #FDF7F5; }
.o2-date { text-align: center; font-size: 12px; color: #3D4257; white-space: nowrap; font-variant-numeric: tabular-nums; }
.o2-cat { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.o2-cat--hotel { color: #B3261E; background: #FBEAE7; border: 1px solid #F0C4BC; }
.o2-cat--transfer { color: #96600F; background: #FBF0DC; border: 1px solid #EBD3A4; }
.o2-cat--flight { color: #3F538F; background: #ECF0F9; border: 1px solid #C8D2EB; }
.o2-no { font-size: 11.5px; color: #A2A6B4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-variant-numeric: tabular-nums; }

/* ═══ 2f 文档 tab:固定六行文档表(版本/状态/更新/说明/快捷),34px 行,整表 ~900px 靠左 ═══ */
.dtab { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dtab-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dtab-toolbar__hint { font-size: 11.5px; color: #8B8FA3; line-height: 1.5; max-width: 760px; }
.dtab-table { background: #fff; border: 1px solid rgba(44,49,87,.10); border-radius: 9px; overflow: hidden; width: fit-content; max-width: 100%; }
.dtab-cols { display: grid; grid-template-columns: 150px minmax(0,1fr) 110px 96px 190px; gap: 0 10px; }   /* 17 稿 5 列 */
.dtab-head { padding: 5px 12px; background: #ECEAE3; border-bottom: 1px solid rgba(44,49,87,.18); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #5D6274; }
.dtab-row { position: relative; padding: 0 12px; height: 34px; align-items: center; border-bottom: 1px solid rgba(44,49,87,.08); }
.dtab-row:last-child { border-bottom: 0; }
.dtab-row:hover { background: #F6F6FB; }
.dtab-row--flag { background: #FBFAF8; }
.dtab-name { font-size: 12.5px; font-weight: 600; color: #20243A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtab-ver { font-size: 12px; color: #3D4257; font-weight: 700; }
.dtab-ver.is-empty { color: #8B8FA3; font-weight: 400; }
.dtab-upd { font-size: 11.5px; color: #8B8FA3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtab-note { font-size: 11.5px; color: #5D6274; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtab-note.is-warn { color: #96600F; }
.dtab-notelink { font: inherit; font-size: 11.5px; font-weight: 600; color: #96600F; background: transparent; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.dtab-notelink:hover { color: #7a4e0b; }
.dtab-acts { display: flex; gap: 4px; align-items: center; }
.dtab-chip { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; display: inline-block; }
.dtab-chip--ok { border: 1px solid #BCDCC8; background: #E7F2EA; color: #1F7A4D; }
.dtab-chip--warn { border: 1px solid #EBD3A4; background: #FBF0DC; color: #96600F; }
.dtab-chip--info { border: 1px solid #C8D2EB; background: #ECF0F9; color: #3F538F; }
.dtab-chip--mute { border: 1px solid #DDDACF; background: #EFEEE9; color: #6B7080; }
.dtab-chip--danger { border: 1px solid #F0C4BC; background: #FBEAE7; color: #B3261E; }
.dtab-act { font-size: 11px; font-weight: 600; color: #2C3157; border: 1px solid rgba(44,49,87,.22); border-radius: 6px; padding: 1px 7px; background: #fff; cursor: pointer; white-space: nowrap; font-family: inherit; }
.dtab-act:hover { border-color: rgba(44,49,87,.4); }
.dtab-act--primary { color: #fff; background: #535C8B; border-color: #535C8B; padding: 1px 9px; }
.dtab-act--primary:hover { background: #444d78; border-color: #444d78; }
.dtab-act--disabled { color: #8B8FA3; background: #EFEEE9; border-color: rgba(44,49,87,.12); cursor: not-allowed; padding: 1px 9px; }
.dtab-act--disabled:hover { border-color: rgba(44,49,87,.12); }
/* 「行程已改·需重新推送」黄点提示,浮在手机版行上方 */
.dtab-alert { position: absolute; left: 560px; top: -9px; font-size: 10px; font-weight: 700; background: #96600F; color: #fff; border-radius: 5px; padding: 1px 7px; letter-spacing: .04em; white-space: nowrap; z-index: 2; }
/* 历史版本折叠(表尾)*/
.dtab-histhead { display: flex; align-items: center; gap: 8px; width: 100%; padding: 3px 12px; background: #FBFAF8; border: 0; border-top: 1px solid rgba(44,49,87,.10); border-bottom: 1px solid rgba(44,49,87,.10); font-size: 11px; font-weight: 700; color: #5D6274; cursor: pointer; font-family: inherit; text-align: left; }
.dtab-histhead:hover { background: #F4F3EF; }
.dtab-histbar { width: 3px; height: 12px; border-radius: 2px; background: #9C9A8E; flex: none; }
.dtab-histcaret { margin-left: auto; transition: transform .12s; }
.dtab-histhead.is-open .dtab-histcaret { transform: rotate(180deg); }
.dtab-histlist { display: flex; flex-direction: column; }
.dtab-histrow { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 28px; font-size: 11.5px; border-bottom: 1px solid rgba(44,49,87,.06); }
.dtab-histrow:last-child { border-bottom: 0; }
.dtab-histname { color: #5D6274; width: 172px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtab-histmeta { color: #8B8FA3; }
.dtab-histgo { margin-left: auto; font: inherit; font-size: 11px; color: #3F538F; background: transparent; border: 0; padding: 0; cursor: pointer; }
.dtab-histgo:hover { text-decoration: underline; }
.dtab-foot { font-size: 11px; color: #8B8FA3; line-height: 1.55; max-width: 900px; }
@media (max-width: 900px) {
  .dtab-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dtab-table { min-width: 764px; }
}

/* ═══ 运营效率提升方案 · 2g 动态 tab:按天分组 + 类型筛选 + 只看关键 + 收款行浅绿底 ═══ */
.atab-wrap { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.atab-wrap .planner-section__title { margin: 0; }
.atab-filters { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.atab-chip { display: inline-flex; align-items: center; height: 28px; font-size: 11.5px; font-weight: 600; padding: 0 10px; border-radius: 7px; background: linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); border: 1px solid rgba(44,49,87,.20); box-shadow: 0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.75); color: #5D6274; cursor: pointer; font-family: inherit; white-space: nowrap; }
.atab-chip:hover { filter: brightness(1.03); }
.atab-chip:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(30,40,80,.14); }
.atab-chip:hover:not([disabled]) { border-color: rgba(44,49,87,.4); }
.atab-chip[disabled] { opacity: .5; cursor: default; }
.atab-chip.is-on, .atab-chip--all.is-on { background: linear-gradient(180deg,#3a4170 0%,#2c3157 55%,#232744 100%); border-color: #1c1f38; box-shadow: 0 2px 4px rgba(20,22,40,.26), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 3px rgba(0,0,0,.16); color: #fff; }
.atab-keychip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 7px; background: #fff; border: 1px solid rgba(44,49,87,.18); color: #5D6274; cursor: pointer; font-family: inherit; white-space: nowrap; margin-left: 8px; }
.atab-keychip:hover { border-color: rgba(44,49,87,.4); }
.atab-keybox { width: 12px; height: 12px; border: 1.5px solid #535C8B; border-radius: 3px; background: #fff; color: #fff; font-size: 9px; line-height: 1; display: flex; align-items: center; justify-content: center; flex: none; }
.atab-keychip.is-on .atab-keybox { background: #535C8B; }
.atab-table { background: #fff; border: 1px solid rgba(44,49,87,.10); border-radius: 9px; overflow: hidden; width: 792px; max-width: 100%; box-sizing: border-box; }
.atab-ghead { display: flex; align-items: center; gap: 8px; padding: 3px 12px; background: #FBFAF8; border-bottom: 1px solid rgba(44,49,87,.10); font-size: 11px; font-weight: 700; color: #5D6274; }
.atab-ghead--today { color: #3F538F; }
.atab-gbar { width: 3px; height: 12px; border-radius: 2px; background: #9C9A8E; flex: none; }
.atab-ghead--today .atab-gbar { background: #3F538F; }
.atab-row { display: grid; grid-template-columns: 52px 52px 48px 1fr 88px; gap: 0 10px; align-items: center; padding: 0 12px; height: 32px; border-bottom: 1px solid rgba(44,49,87,.08); }
.atab-row:last-child { border-bottom: 0; }
.atab-row:hover { background: #F6F6FB; }
.atab-row--pay { background: #F3F8F4; }
.atab-row--pay:hover { background: #ECF4EE; }
.atab-time { font-size: 11.5px; color: #8B8FA3; width: 44px; flex: none; font-variant-numeric: tabular-nums; }
.atab-who { font-size: 12px; color: #3D4257; font-weight: 600; width: 36px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atab-typewrap { flex: none; }
.atab-type { font-size: 10px; font-weight: 600; padding: 0 5px; border-radius: 5px; white-space: nowrap; display: inline-block; line-height: 15px; }
.atab-type--ok { border: 1px solid #BCDCC8; background: #E7F2EA; color: #1F7A4D; }
.atab-type--warn { border: 1px solid #EBD3A4; background: #FBF0DC; color: #96600F; }
.atab-type--info { border: 1px solid #C8D2EB; background: #ECF0F9; color: #3F538F; }
.atab-type--mute { border: 1px solid #DDDACF; background: #EFEEE9; color: #6B7080; }
.atab-desc { font-size: 12.5px; color: #20243A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.atab-go { margin-left: auto; flex: none; font: inherit; font-size: 11px; color: #3F538F; background: transparent; border: 0; padding: 0 0 0 8px; cursor: pointer; white-space: nowrap; }
.atab-go:hover { text-decoration: underline; }
.atab-more { display: flex; align-items: center; justify-content: center; width: 100%; padding: 5px; font-size: 11.5px; color: #3F538F; background: #FBFAF8; border: 0; border-top: 1px solid rgba(44,49,87,.08); cursor: pointer; font-family: inherit; }
.atab-more:hover { background: #F4F3EF; }
.atab-empty { max-width: 860px; }
.atab-foot { font-size: 11px; color: #8B8FA3; line-height: 1.55; max-width: 860px; }
@media (max-width: 900px) { .atab-table { width: 100%; } }

/* ═══ 运营效率提升方案 · 1d 行程详情:阶段条 / 每日概览 / 财务进度条 ═══ */
.trip-stage { display: flex; align-items: center; flex-wrap: wrap; flex-basis: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(44,49,87,.08); row-gap: 4px; }
.trip-stage__step { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #8B8FA3; white-space: nowrap; }
.trip-stage__dot { width: 14px; height: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 700; box-sizing: border-box; flex: none; }
.trip-stage__step.is-ok { color: #2f845d; }
.trip-stage__step.is-ok .trip-stage__dot { background: #1F7A4D; color: #fff; }
.trip-stage__step.is-active { color: #96600F; font-weight: 700; }
.trip-stage__step.is-active .trip-stage__dot { background: #FBF0DC; border: 1.5px solid #E0A94F; color: #96600F; font-size: 8px; }
.trip-stage__step.is-todo .trip-stage__dot { background: #EFEEE9; border: 1.5px solid #C9C6BA; }
.trip-stage__line { width: 14px; height: 1.5px; flex: none; margin: 0 5px; background: #DDDACF; }
.trip-stage__line.is-ok { background: #BCDCC8; }

.fin-progress { margin: 8px 0 2px; max-width: 560px; }
.fin-progress__head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #5D6274; margin-bottom: 4px; }
.fin-progress__head b { color: #20243A; }
.fin-progress__bal.is-warn { color: #B3261E; font-weight: 700; }
.fin-progress__bal.is-ok { color: #1F7A4D; font-weight: 600; }
.fin-progress__track { height: 7px; border-radius: 4px; background: #ECEAE3; overflow: hidden; }
.fin-progress__fill { display: block; height: 100%; background: #1F7A4D; border-radius: 4px; }

.ov-daysec__head { display: flex; align-items: center; margin-bottom: 8px; }
.ov-seclabel { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #5D6274; }
.ov-jump { margin-left: auto; font-size: 11px; color: #3F538F; background: transparent; border: 0; cursor: pointer; padding: 0; }
.ov-daygrid { display: grid; gap: 6px; }
.ov-daycard { text-align: left; border: 1px solid rgba(44,49,87,.12); border-radius: 7px; padding: 6px 8px; background: #FBFAF8; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-family: inherit; }
.ov-daycard:hover { border-color: #535C8B; background: #fff; }
.ov-daycard__d { font-size: 10.5px; font-weight: 700; color: #8B8FA3; }
.ov-daycard__m { font-size: 11.5px; color: #20243A; line-height: 1.4; overflow: hidden; }
.ov-daycard__h { font-size: 10.5px; color: #1F7A4D; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-daycard__h.is-end { color: #8B8FA3; }

/* 基础信息(handoff 1d callout 7):字段按内容定宽压紧成约 3 行,不再 flex-grow 铺满;
   导入原始行程竖框填右侧空档、只与紧凑字段区等高(不再被撑成整表高度)。 */
.tov-basic { display: flex; gap: 14px; align-items: stretch; }
.tov-fields { flex: 0 1 730px; min-width: 0; }
/* 关键:字段不再增长(否则宽屏下铺满 → 每行没几个 → 变很多行 → 导入框被拉超高)*/
.tov-basic .tov-row { gap: 8px 12px; }
/* 用完整 flex 简写(0 1 X)+ max-width 双保险:压过后面 .tov-row .builder-field.tb-w-*{flex:1..} 的 flex-grow,任何字段都不再撑满 */
.tov-basic .tov-row .builder-field { flex-grow: 0; margin-bottom: 4px; }
.tov-basic .tov-row .builder-field.tb-w-sm { flex: 0 1 128px; max-width: 128px; }   /* 128 容完整行程号 2026NBC104-B(勿再窄,否则切 -A/-B 后缀) */
.tov-basic .tov-row .builder-field.tb-w-code { flex: 0 1 76px; max-width: 76px; }
.tov-basic .tov-row .builder-field.tb-w-type { flex: 0 1 118px; max-width: 118px; }   /* 类型专用:容「访校 Campus」 */
.tov-basic .tov-row .builder-field.tb-w-status { flex: 0 0 auto; max-width: none; }
.tov-basic .tov-row .builder-field.tb-w-md { flex: 0 1 96px; max-width: 96px; }
.tov-basic .tov-row .builder-field.tb-w-veh { flex: 0 1 132px; max-width: 132px; }   /* 车型专用:容「豪华商务MPV」 */
.tov-basic .tov-row .builder-field.tb-w-wide { flex: 0 1 264px; max-width: 264px; }   /* 备注加宽 */
.tov-basic .tov-row .builder-field.tb-w-lg { flex: 0 1 150px; max-width: 150px; }
.tov-basic .tov-row .builder-field.tb-w-date { flex: 0 1 128px; max-width: 128px; }
.tov-basic .tov-row .builder-field.tb-w-xs { flex: 0 1 54px; max-width: 54px; }
.ov-client-badge { margin-left: 5px; font-size: 9.5px; font-weight: 600; color: #1F7A4D; background: #E7F2EA; border: 1px solid #BCDCC8; border-radius: 5px; padding: 0 4px; letter-spacing: 0; text-transform: none; vertical-align: middle; }
.tov-code-hint { margin: 2px 0 6px; }
.ov-import { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; flex: 1 1 190px; max-width: 300px; align-self: stretch; padding: 14px; border: 1.5px dashed rgba(83,92,139,.45); border-radius: 8px; background: #FBFAF8; cursor: pointer; font-family: inherit; }
@media (max-width: 760px) { .tov-basic { flex-direction: column; } .tov-fields { flex-basis: auto; } .ov-import { max-width: none; align-self: stretch; } }
.ov-import:hover { border-color: #535C8B; background: #fff; }
.ov-import__t { font-size: 12.5px; font-weight: 700; color: #2C3157; }
.ov-import__s { font-size: 10.5px; color: #8B8FA3; line-height: 1.5; }
.ov-import__cta { font-size: 11px; font-weight: 600; color: #535C8B; border: 1px solid rgba(83,92,139,.4); border-radius: 6px; padding: 2px 10px; background: #fff; }

/* 1d 两栏:左 摘要/编辑 · 右 处理面板 */
.ov-2col { display: flex; gap: 12px; align-items: flex-start; }
.ov-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ov-main > .planner-section { margin: 0; }
.ov-side { flex: 0 0 320px; width: 320px; }
.trip-head__save { display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .ov-2col { flex-direction: column; } .ov-side { flex-basis: auto; width: 100%; } }

.ov-panel { position: sticky; top: 12px; background: #fff; border: 1px solid rgba(44,49,87,.18); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgba(20,22,40,.08); }
.ov-panel__head { display: flex; align-items: center; padding: 9px 14px; border-bottom: 1px solid rgba(44,49,87,.10); background: #FBFAF8; font-size: 13px; font-weight: 700; color: #2C3157; }
.ov-panel__tag { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: #8B8FA3; }
.ov-panel__body { padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; }
.ov-panel__sec { display: flex; flex-direction: column; gap: 6px; }
.ov-panel__sec + .ov-panel__sec { border-top: 1px solid rgba(44,49,87,.10); padding-top: 11px; }
.ov-panel__label { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #5D6274; }
.ov-panel__push { gap: 5px; }
.ov-docs { display: flex; flex-direction: column; gap: 5px; }
.ov-docs .btn { width: 100%; justify-content: flex-start; text-align: left; }
.ov-panel__push .btn { width: 100%; justify-content: center; }

/* 下一步(面板内竖排,大点击区)*/
.trip-next--panel { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.trip-next--panel .trip-next__item { width: 100%; text-align: left; justify-content: flex-start; }

/* 左侧摘要卡:酒店 / 最近动态 */
.ov-sumrow { display: flex; gap: 12px; align-items: flex-start; }
.ov-sumcard { flex: 1 1 0; min-width: 0; margin: 0 !important; }
.ov-sumcard__head { display: flex; align-items: center; margin-bottom: 6px; }
.ov-sumlist { display: flex; flex-direction: column; }
.ov-sum-empty { font-size: 11.5px; color: #8B8FA3; padding: 4px 0; }
.ov-sumrow2 { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 0; border-bottom: 1px solid rgba(44,49,87,.08); font-size: 12px; cursor: pointer; }
.ov-sumrow2:last-child { border-bottom: 0; }
.ov-sumrow2:hover { background: #FBFAF8; }
.ov-sum-date { flex: none; color: #8B8FA3; font-variant-numeric: tabular-nums; }
.ov-sum-who { flex: none; color: #3D4257; font-weight: 600; }
.ov-sum-name { color: #20243A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ov-sum-tags { margin-left: auto; display: inline-flex; gap: 4px; flex: none; }
.ov-tag { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.ov-tag.is-ok { color: #1F7A4D; background: #E7F2EA; border: 1px solid #BCDCC8; }
.ov-tag.is-warn { color: #96600F; background: #FBF0DC; border: 1px solid #EBD3A4; }
.ov-tag.is-danger { color: #B3261E; background: #FBEAE7; border: 1px solid #F0C4BC; }
.ov-tag.is-mute { color: #6B7080; background: #EFEEE9; border: 1px solid #DDDACF; }

/* ═══ 1d 审查修复:下一步富卡片 / 财务扁平行 / 文档状态行 / 每日概览警示 / 页头推送 / 补录 ═══ */
.ov-todo { display: flex; align-items: center; gap: 8px; border: 1px solid #EBD3A4; background: #FBF0DC; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.ov-todo.is-info { border-color: #C8D2EB; background: #ECF0F9; }
.ov-todo.is-danger { border-color: #F0C4BC; background: #FBEAE7; }
.ov-todo__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: #96600F; }
.ov-todo.is-info .ov-todo__dot { background: #3F538F; }
.ov-todo.is-danger .ov-todo__dot { background: #B3261E; }
.ov-todo__txt { display: flex; flex-direction: column; min-width: 0; }
.ov-todo__title { font-size: 12px; font-weight: 700; color: #96600F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-todo.is-info .ov-todo__title { color: #3F538F; }
.ov-todo.is-danger .ov-todo__title { color: #B3261E; }
.ov-todo__sub { font-size: 10.5px; color: #96600F; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-todo__act { margin-left: auto; flex: none; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 9px; cursor: pointer; border: 1px solid #EBD3A4; background: #fff; color: #96600F; }
.ov-todo.is-info .ov-todo__act { border-color: #C8D2EB; color: #3F538F; }
.ov-todo.is-danger .ov-todo__act { border-color: #B3261E; background: #B3261E; color: #fff; }

.ov-panel__head-row { display: flex; align-items: center; }
.ov-panel__cur { margin-left: auto; font-size: 10.5px; color: #8B8FA3; letter-spacing: .02em; }

.trip-fin-rows { display: flex; flex-direction: column; }
.ov-fin-row { display: flex; align-items: center; justify-content: space-between; height: 21px; font-size: 12px; color: #5D6274; }
.ov-fin-row__v { color: #20243A; font-weight: 700; }
.ov-fin-row__v.is-ok { color: #1F7A4D; }
.ov-fin-balance { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; padding: 5px 9px; border-radius: 7px; background: #FBEAE7; border: 1px solid #F0C4BC; font-size: 12.5px; }
.ov-fin-balance > span { color: #B3261E; font-weight: 700; }
.ov-fin-balance > b { color: #B3261E; font-size: 14px; }
.ov-fin-balance.is-ok { background: #E7F2EA; border-color: #BCDCC8; }
.ov-fin-balance.is-ok > span, .ov-fin-balance.is-ok > b { color: #1F7A4D; }

.ov-docs { display: flex; flex-direction: column; gap: 0; }
.ov-doc { display: flex; align-items: center; gap: 8px; height: 27px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(44,49,87,.06); cursor: pointer; font-family: inherit; text-align: left; }
.ov-doc:last-child { border-bottom: 0; }
.ov-doc:hover { background: #FBFAF8; }
.ov-doc__name { font-size: 12px; font-weight: 600; color: #20243A; flex: none; }
.ov-doc__st { font-size: 10.5px; }
.ov-doc__st.is-ok { color: #1F7A4D; } .ov-doc__st.is-warn { color: #96600F; } .ov-doc__st.is-mute { color: #8B8FA3; }
.ov-doc__go { margin-left: auto; flex: none; font-size: 11px; color: #3F538F; }
.ov-doc__go.is-gen { color: #535C8B; font-weight: 600; }

.ov-daycard.is-warn { border-color: #EBD3A4; background: #FDFAF3; }
.ov-daycard__h.is-warn { color: #96600F; font-weight: 600; }

.ov-tag--act { color: #fff; background: #535C8B; border: 0; cursor: pointer; font-family: inherit; }

.trip-head__push { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; color: #fff; background: #535C8B; border: 0; border-radius: 7px; padding: 5px 13px; cursor: pointer; white-space: nowrap; }
.trip-head__push:hover { background: #454d78; }

.trip-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-soft); margin: 10px 0 16px; }
.trip-tab { appearance: none; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.trip-tab:hover { color: var(--brand-deep); }
.trip-tab.is-active { color: var(--brand-deep); border-bottom-color: var(--brand); font-weight: 600; }
.trip-subtabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 12px; }
.trip-subtab { appearance: none; font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, #fff); color: var(--muted); cursor: pointer; }
.trip-subtab:hover { color: var(--brand-deep); border-color: var(--brand); }
.trip-subtab.is-active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; font-weight: 600; }
.trip-subtabs__link { margin-left: auto; font-size: 12.5px; }
/* 方案B + 统一UI(2026-07-04):内嵌 planner 动作按钮上移到 trip 子tab头,与左侧子tab同款胶囊;
   分隔线隔开「切换」与「动作」两组;状态(已更新✓·已推送)回传显示在右侧。planner 自己那排在 embed 隐藏。 */
.itin-embed-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-left: 1px solid var(--line-soft); padding-left: 10px; margin-left: 4px; }
.itin-embed-actions[hidden] { display: none; }
/* 立体圆钮:与 planner 输出区 .ops-round 同款(渐变+内高光+投影+按压),v196 */
body.planner-page .itin-embed-act { font: inherit; font-size: 12.5px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line); background: linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); color: var(--brand-deep); font-weight: 600; cursor: pointer; min-height: 0; height: auto; line-height: 1.2; box-shadow: 0 2px 4px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 3px rgba(30,40,80,.06); transition: transform .09s ease, box-shadow .14s ease, filter .14s ease; }
body.planner-page .itin-embed-act:hover { color: var(--brand-deep); border-color: var(--brand); transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 4px 9px rgba(30,40,80,.16), inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 3px rgba(30,40,80,.06); }
body.planner-page .itin-embed-act:active { transform: translateY(1px); filter: brightness(.97); box-shadow: 0 1px 2px rgba(30,40,80,.12), inset 0 1px 2px rgba(30,40,80,.14); }
body.planner-page .itin-embed-act--primary, body.planner-page .itin-embed-act--primary:hover { color: #fff; border-color: #1d5f6a; background: linear-gradient(180deg,#55aebe 0%,#2e8998 52%,#236d7a 100%); box-shadow: 0 3px 6px rgba(29,95,106,.30), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); }
body.planner-page .itin-embed-act--primary:active { transform: translateY(1px); filter: brightness(.96); }
.itin-embed-status { margin-left: auto; font-size: 12px; color: var(--brand-deep); white-space: nowrap; }
.itin-embed-status.warning { color: #A93E24; }
html.embed .planner-toolbar .planner-actions { display: none; }
.trip-panel { display: none; }
.trip-panel.is-active { display: block; }
.trip-embed { margin-top: 6px; }
.trip-embed__frame { width: 100%; height: calc(100vh - 210px); min-height: 680px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }

/* ---------- internal module nav (Trips · Finance) ---------- */
.ops-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ops-nav__tab { font-size: 14px; padding: 6px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; line-height: 1.2; }
.ops-nav__tab:hover { color: var(--brand-deep); }
.ops-nav__tab.is-active { background: var(--brand-deep); color: #fff; font-weight: 600; }
.ops-nav-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; flex: none; }
.ops-manager-link,
.ops-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(44,49,87,.18);
  border-radius: 8px;
  background: linear-gradient(180deg,#fff,#eef0f6);
  box-shadow: 0 1px 3px rgba(30,40,70,.12), inset 0 1px 0 #fff;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.ops-manager-link:hover,
.ops-logout:hover { border-color: var(--brand); color: var(--brand-deep); filter: brightness(1.02); }
.ops-manager-link:active,
.ops-logout:active { transform: translateY(1px); }
.ops-logout svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ops-manager-link[hidden],
.ops-logout[hidden] { display: none !important; }
.ops-page-context {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.ops-page-context__back { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
.ops-page-context__back:hover { color: var(--brand); }

/* ---------- finance: 零散接送 ledger ---------- */
.fin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.fin-stat { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 16px; background: var(--card, #fff); }
.fin-stat.is-warn { border-color: #d9b48a; background: #fbf5ec; }
.fin-stat.is-info { border-color: #9fb6d8; background: #eef3fa; }
.fin-stat__label { font-size: 12px; color: var(--muted); }
.fin-stat__main { font-size: 22px; font-weight: 700; color: var(--brand-deep); margin-top: 4px; }
.fin-stat__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fin-table-head, .fin-row { display: grid; grid-template-columns: 1.1fr 1fr 1.8fr 0.9fr 0.9fr 0.9fr 0.9fr 0.7fr; gap: 8px; align-items: center; }
.fin-table-head { font-size: 12px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.fin-table-head .num, .fin-cell.num { text-align: right; }
.fin-list { display: flex; flex-direction: column; }
.fin-row { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13.5px; }
.fin-row:hover { background: var(--bg-soft, #f6f4ee); }
.fin-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-route { color: var(--muted); }
.fin-chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.fin-chip.is-ok { background: #e6f0e2; color: #3c6b2e; }
.fin-chip.is-warn { background: #f6e6d8; color: #9a5a17; }
.fin-modal { position: fixed; inset: 0; background: rgba(20, 22, 40, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow-y: auto; }
.fin-modal[hidden] { display: none; } /* element+attr selector beats the bare .fin-modal display:flex */
.fin-modal__panel { background: #fff; border-radius: 16px; width: min(760px, 100%); padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.fin-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fin-form__rule { border: 0; border-top: 1px solid var(--line-soft); margin: 12px 0; }
.fin-modal__actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.fin-modal__actions #fin-delete { margin-left: auto; color: #b3261e; }
@media (max-width: 720px) {
  .fin-table-head { display: none; }
  .fin-row { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
  .fin-route { grid-column: 1 / -1; }
}
.fin-form__group { font-size: 12px; font-weight: 600; color: var(--brand-deep); margin: 0 0 4px; letter-spacing: .02em; }
/* ---------- transfer invoice (print) ---------- */
.fin-invoice { position: fixed; inset: 0; background: rgba(20,22,40,.5); z-index: 60; overflow-y: auto; padding: 4vh 16px; }
.fin-invoice[hidden] { display: none; }
.fin-invoice__sheet { background: #fff; width: min(1040px, 100%); margin: 0 auto; border-radius: 12px; padding: 0 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.fin-invoice__toolbar { position: sticky; top: 0; z-index: 2; display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin: 0 -22px 18px; padding: 14px 22px; background: #fff; border-bottom: 1px solid #ede7dc; border-radius: 12px 12px 0 0; }
.fin-invoice__toolbar .fin-inv-billto { flex: 0 1 240px; margin-right: auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.fin-inv-curtoggle { display: inline-flex; border: 1px solid #d8d2c6; border-radius: 999px; overflow: hidden; }
.fin-inv-curtoggle button { border: 0; background: #fff; padding: 6px 13px; font-size: 12px; color: #5c68a7; cursor: pointer; font-weight: 600; }
.fin-inv-curtoggle button.is-active { background: #5c68a7; color: #fff; }
.fin-invoice__toolbar2 { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 0 22px 12px; margin: -8px -22px 8px; border-bottom: 1px solid #f0ebe2; }
.fin-invoice__toolbar2 label { font-size: 11px; color: #6b6f82; display: inline-flex; align-items: center; gap: 6px; }
.fin-invoice__toolbar2 label.wide { flex: 1 1 260px; }
.fin-invoice__toolbar2 input { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.fin-invoice__toolbar2 input[type=number] { width: 92px; }
.fin-invoice__toolbar2 label.wide input { flex: 1; }
/* trip Overview action row: round save (mirrors the transfer modal head button) + document buttons */
.trip-ov-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.trip-doc-btn { font-size: 13px; padding: 7px 14px; }
#trip-doc-title { margin-right: auto; font-weight: 700; color: #20243d; }
.trip-ov-actions .fin-round-action { width: 42px; height: 42px; min-width: 42px; flex: 0 0 42px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; background: linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%); border: 1px solid #3c4368; box-shadow: 0 3px 6px rgba(37,42,77,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); transition: transform .09s ease, box-shadow .14s ease, filter .14s ease; }
.trip-ov-actions .fin-round-action:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 5px 11px rgba(37,42,77,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
.trip-ov-actions .fin-round-action:active { transform: translateY(1px); filter: brightness(.96); box-shadow: 0 1px 2px rgba(37,42,77,.40), inset 0 2px 4px rgba(0,0,0,.26); }
.trip-ov-actions .fin-round-action svg { width: 20px; height: 20px; display: block; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0,0,0,.28)); }
.trip-ov-actions .fin-round-action:disabled { opacity: .62; cursor: wait; transform: none; }
.fin-invoice-pick { position: fixed; inset: 0; z-index: 70; background: rgba(20,22,40,.46); display: grid; place-items: center; padding: 20px; }
.fin-invoice-pick[hidden] { display: none; }
.fin-invoice-pick__panel { width: min(760px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(20,22,40,.28); border: 1px solid #e3ddd2; }
.fin-invoice-pick__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 12px; border-bottom: 1px solid #eee8dc; }
.fin-invoice-pick__head h3 { margin: 0; color: #20243d; font-size: 20px; }
.fin-invoice-pick__head p { margin: 5px 0 0; color: #777d90; font-size: 13px; line-height: 1.45; }
.fin-invoice-pick__list { overflow: auto; padding: 8px 20px; }
.fin-invoice-pick__row { display: grid; grid-template-columns: 28px minmax(84px, auto) 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0ebe2; }
.fin-invoice-pick__row--addon { margin-left: 38px; padding: 8px 0 8px 0; grid-template-columns: 28px minmax(60px, auto) 1fr auto; background: linear-gradient(90deg, rgba(92,104,167,.06), transparent 70%); }
.fin-invoice-pick__row--addon .fin-invoice-pick__title { color: #5c68a7; font-weight: 700; }
.fin-invoice-pick__row.is-disabled { opacity: .45; }
.fin-invoice-pick__row:last-child { border-bottom: 0; }
.fin-invoice-pick__row input { width: 18px; height: 18px; margin: 0; }
.fin-invoice-pick__date { color: #5f657a; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-invoice-pick__title { color: #20243d; font-weight: 700; line-height: 1.25; }
.fin-invoice-pick__sub { color: #777d90; font-size: 12px; margin-top: 2px; line-height: 1.35; }
.fin-invoice-pick__amount { color: #2f845d; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-invoice-pick__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid #eee8dc; }
.fin-invoice-pick__actions .planner-meta { margin-right: auto; }
.fin-invoice-pick__total { font-weight: 700; color: #20243d; font-size: 13px; }
.fin-invoice-pick__bulk { margin-top: 8px; display: flex; gap: 8px; }
.fin-invoice-pick__bulk button { border: 1px solid #d8d2c6; background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12px; color: #5c68a7; cursor: pointer; }
.fin-invoice-pick__bulk button:hover { background: #f2f0ff; }
.fin-invoice-pick__total:not(:empty) { margin-right: 14px; }
.inv-doc { font-family: 'DengXian','等线',-apple-system,sans-serif; color: #23262f; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #5C68A7; padding-bottom: 10px; }
.inv-brand { font-family: 'Lora',serif; font-size: 26px; font-weight: 700; color: #5C68A7; line-height: 1; }
.inv-title { font-size: 18px; font-weight: 600; color: #5C68A7; }
.inv-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; margin: 12px 0 16px; color: #444; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inv-table th { text-align: left; border-bottom: 1px solid #ccc; padding: 7px 6px; color: var(--muted); font-weight: 600; }
.inv-table td { border-bottom: 1px solid #eee; padding: 7px 6px; }
.inv-table th.num, .inv-table td.num { text-align: right; white-space: nowrap; }
/* invoice totals/foot styling lives in the injected <style> in buildInvoice (.inv-total-box/.inv-total-line);
   the old .inv-totals/.inv-due rules were dead (no matching markup) and were removed. */
.inv-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid #eee; font-size: 11px; color: var(--muted); }
/* address autocomplete dropdown */
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 240px; overflow-y: auto; margin-top: 2px; }
.ac-item { padding: 7px 10px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: var(--bg-soft, #f6f4ee); }
@media print {
  /* Scoped to the finance invoice modal ONLY (when open) — otherwise this blanked
     every other print page, e.g. the itinerary planner. */
  body:has(#fin-invoice:not([hidden])) * { visibility: hidden !important; }
  body:has(#fin-invoice:not([hidden])) #fin-invoice,
  body:has(#fin-invoice:not([hidden])) #fin-invoice * { visibility: visible !important; }
  body:has(#fin-invoice:not([hidden])) #fin-invoice { position: absolute; inset: 0; background: #fff; padding: 0; overflow: visible; }
  body:has(#fin-invoice:not([hidden])) .fin-invoice__sheet { box-shadow: none; width: 100%; border-radius: 0; }
  .fin-noprint { display: none !important; }
}

/* ---------- itinerary chat-editor ---------- */
.chat-settings { margin: 4px 0 12px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 12px; }
.chat-settings > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.chat-log { display: flex; flex-direction: column; gap: 8px; min-height: 160px; max-height: 46vh; overflow-y: auto; padding: 6px 2px; }
.chat-msg { max-width: 84%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.chat-msg--user { align-self: flex-end; background: var(--brand-deep); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg--assistant { align-self: flex-start; background: var(--bg-soft, #f3f1ea); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.chat-msg--system { align-self: center; background: transparent; color: var(--muted); font-size: 12.5px; text-align: center; max-width: 100%; }
.chat-diff { margin: 10px 0; border: 1px solid var(--brand); border-radius: 12px; padding: 12px; background: color-mix(in srgb, var(--brand) 5%, #fff); }
.chat-diff__cards { display: flex; flex-direction: column; gap: 8px; }
.chat-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.chat-card.is-noop { opacity: .55; }
.chat-card__day { font-size: 12px; letter-spacing: .02em; color: var(--muted); margin-bottom: 2px; }
.chat-card__body { font-size: 14.5px; font-weight: 600; color: var(--ink, #23262f); }
.chat-card__body.chat-strike { text-decoration: line-through; color: #b3261e; font-weight: 500; }
.chat-card__warn { font-size: 12px; color: #9a6700; margin-top: 3px; }
.chat-diff__actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.chat-input__ta { flex: 1; resize: vertical; min-height: 46px; }
.chat-foot { margin-top: 6px; }

.ov-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ov-status-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.ov-status-card__h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--brand-deep); font-weight: 500; gap: 8px; }
.ov-status-card__todo { font-size: 12px; color: #9a6a14; margin-top: 6px; }
.ov-st-field { display: flex; flex-direction: column; gap: 5px; }
.ov-st-field .guide-label { margin: 0; }

.trip-simple-list { display: flex; flex-direction: column; gap: 6px; }
.trip-simple-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--card); font-size: 13px; }
.trip-fin-summary { margin-top: 4px; }
/* trip Overview: compact basic-info rows with content-matched widths */
.tov-subhead { font-size: 13px; font-weight: 700; color: var(--brand-deep); letter-spacing: .04em; margin: 2px 0 10px; }
.tov-row { gap: 12px 16px; }
.tov-row .builder-field { margin-bottom: 10px; gap: 5px; }
.tov-row .builder-field.tb-w-xs { flex: 0 0 88px; }
.tov-row .builder-field.tb-w-sm { flex: 0 1 170px; }
.tov-row .builder-field.tb-w-date { flex: 0 0 168px; }
.tov-row .builder-field.tb-w-status { flex: 0 1 260px; }
.tov-row .builder-field.tb-w-md { flex: 1 1 200px; max-width: 340px; }
.tov-row .builder-field.tb-w-wide { flex: 1 1 280px; }
.tov-row .builder-field.tb-w-lg { flex: 2 1 340px; }
.tov-row .builder-field.tb-w-code { flex: 0 1 128px; }
.tov-code-hint { margin: -4px 0 12px; font-size: 11.5px; color: var(--muted); }
/* itinerary 额外说明 (edited by ops, prints on the client 行程单) */
.planner-note-block { margin: 10px 0 6px; }
.planner-note-block__lab { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.planner-note-block__ta { width: 100%; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; resize: vertical; min-height: 46px; box-sizing: border-box; }
.planner-note-print { font-size: 12.5px; color: #333; line-height: 1.55; margin: 4px 0 12px; white-space: pre-wrap; }
.planner-note-print::before { content: "说明 Notes: "; font-weight: 700; color: #5C68A7; }
.tov-row .builder-input { padding: 8px 11px; font-size: 13.5px; }
.tov-row .ops-seg--sm { flex-wrap: wrap; }
/* compact financial summary + merged hotel summary */
.fin-summary--compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.fin-summary--compact .fin-stat { padding: 8px 12px; border-radius: 10px; }
.fin-summary--compact .fin-stat__label { font-size: 11px; color: var(--muted); }
.fin-summary--compact .fin-stat__main { font-size: 16px; font-weight: 700; color: var(--brand-deep); margin-top: 2px; }
.fin-summary--compact .fin-stat__sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.trip-hotel-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; border: 1px solid var(--line-soft); border-left: 3px solid #5C68A7; border-radius: 10px; padding: 10px 14px; background: var(--card, #fff); font-size: 13px; }
.trip-hotel-sum .hs-label { font-weight: 700; color: var(--brand-deep); margin-right: 4px; }
.trip-hotel-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.trip-hotel-sum .hs-sep { color: var(--line); }
.trip-op-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.trip-op-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card); }
.trip-op-row--suggested { background: color-mix(in srgb, var(--brand) 4%, #fff); }
.trip-op-main { min-width: 0; }
.trip-op-title { font-size: 14px; font-weight: 600; color: var(--brand-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-op-meta, .trip-op-money { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.trip-op-money { font-variant-numeric: tabular-nums; }
.trip-op-costedit { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trip-op-costedit .trip-costinput { width: 104px; min-width: 84px; height: 30px; padding: 4px 8px; font-size: 12px; }
.trip-op-net { font-size: 12px; font-weight: 600; color: #2f845d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-op-chips { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }
.trip-chip { font-size: 11px; padding: 1px 8px; border-radius: 999px; font-weight: 600; line-height: 1.7; }
.trip-chip.is-warn { background: #fbe9e7; color: #b3261e; }
.trip-chip.is-info { background: #eef1fb; color: #5C68A7; }
.trip-op-edit { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trip-inline-cost { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trip-inline-field { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.trip-inline-in { width: auto; min-width: 88px; height: 28px; padding: 3px 6px; font-size: 12px; }
.trip-inline-field input[type=date].trip-inline-in { min-width: 132px; }
.trip-op-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.trip-status-select { width: auto; min-width: 132px; height: 32px; padding: 4px 26px 4px 9px; font-size: 12px; }
.trip-form-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(20,22,40,.48); overflow-y: auto; }
.trip-form-modal[hidden] { display: none; }
.trip-form-modal__panel { width: min(720px, 100%); background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: 0 22px 70px rgba(20,22,40,.28); padding: 18px 20px; }
.trip-form-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.trip-form-modal__head .planner-help { margin: 2px 0 0; }
.trip-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.trip-form-fields .builder-field { margin-bottom: 0; }
.trip-form-fields textarea.builder-input { min-height: 82px; resize: vertical; }
.trip-form-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.trip-form-msg { margin: 10px 0 0; min-height: 1em; }
.trip-form-msg.warning { color: #b3261e; }
/* operator-polish: step labels + highlighted next action */
.trip-section-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 14px 0 2px; }
.trip-section-label:first-child { margin-top: 4px; }
.planner-iconbtn.is-next { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); font-weight: 600; }
.planner-iconbtn.is-next:hover { background: var(--brand); border-color: var(--brand); }
/* cross-trip finance dashboard */
.tf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 4px; }
.fin-divider { border: 0; border-top: 1px solid var(--line); margin: 18px 0 4px; }
.trip-op-row.is-clickable { cursor: pointer; }
.trip-op-row.is-clickable:hover { border-color: var(--brand); }
@media (max-width: 760px) {
  .trip-op-row { grid-template-columns: 1fr; }
  .trip-op-actions { justify-content: flex-start; }
  .trip-status-select { width: 100%; }
  .trip-form-fields { grid-template-columns: 1fr; }
}
.trip-docs { display: flex; flex-direction: column; gap: 8px; }
.trip-doc-row { display: grid; grid-template-columns: 1.6fr auto 1.2fr auto; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card); }
.trip-doc__name { font-size: 14px; color: var(--brand-deep); font-weight: 500; }
.trip-doc__meta { font-size: 12px; color: var(--muted); }
.trip-activity { display: flex; flex-direction: column; gap: 4px; }
.trip-act-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.trip-act__action { color: var(--brand-deep); }
.trip-act__who { color: var(--muted); font-size: 12px; }

/* Embedded-in-Trip mode: hide standalone chrome so the tool fits inside a Trip Detail tab. */
html.embed body .site-header.site-header, html.embed body .guide-hero, html.embed body .site-footer, html.embed body .skip-link { display: none !important; }
html.embed #ops-history-section { display: none !important; } /* the trip already owns history — no recursion inside the import iframe */
html.embed .qb-embed-hide { display: none !important; } /* trip-embedded quote: hide 单据 metadata (trip/type known, status set in 历史版本) */
html.embed .section { padding-top: 8px !important; }
html.embed .trip-embed__frame { }
html.embed .qb2 { width: 100%; max-width: none; }
html.embed .qb2-main { width: auto; flex: 1 1 760px; }

/* ===== Ops compact controls (segmented pills + chips) — shared by finance/trip/quote/hotel ===== */
.ops-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #efece4; border: 1px solid #e0dacf; border-radius: 999px; padding: 3px; max-width: 100%; }
.ops-seg__btn { appearance: none; border: 0; background: transparent; color: #5a5f72; font: inherit; font-size: .86rem; line-height: 1; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s, box-shadow .12s; }
.ops-seg__btn:hover { color: #2c3157; }
.ops-seg__btn.is-active { background: #fff; color: #2c3157; font-weight: 600; box-shadow: 0 1px 3px rgba(44,49,87,.18); }
.ops-seg--sm .ops-seg__btn { padding: 5px 10px; font-size: .82rem; }
#fin-modal .fin-currency-field { flex: 0 0 auto !important; align-self: flex-end; display: flex; align-items: flex-end; }
#fin-modal .fin-currency-switch { height: 36px; align-items: center; padding: 3px; background: #ebe6dd; }
#fin-modal .fin-currency-switch .ops-seg__btn { width: 34px; min-width: 34px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: .96rem; font-weight: 700; color: #565b70; }
#fin-modal .fin-currency-switch .ops-seg__btn.is-active { background: #535c8b; color: #fff; box-shadow: 0 2px 6px rgba(44,49,87,.24); }
#fin-modal .fin-money-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 10px; align-items: start; margin-top: 4px; }
#fin-modal .fin-money-card { min-width: 0; border: 1px solid #e8e2d6; border-radius: 12px; background: #fffdf9; padding: 9px 10px 8px; }
#fin-modal .fin-money-card .fin-row { gap: 7px; margin-bottom: 5px; }
#fin-modal .fin-money-card .ops-seg--sm .ops-seg__btn { padding: 5px 8px; }
#fin-modal .fin-money-head { margin: 0 0 6px; align-items: center; justify-content: space-between; gap: 8px; }
#fin-modal .fin-money-head .fin-sec-title { font-size: 14px; }
#fin-modal .fin-fx-msg-field { flex: 1 1 120px; align-self: center; min-height: 20px; }
#fin-modal .fin-fx-msg-field #f-fx-msg { display: block; margin: 0; font-size: 11.5px; line-height: 1.2; }
#fin-modal .fin-fee-panel { margin: 2px 0 7px; border: 1px solid #e0dacf; border-radius: 10px; background: #fcfaf5; overflow: hidden; }
#fin-modal .fin-fee-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; cursor: pointer; }
#fin-modal .fin-fee-title { font-size: 12.5px; font-weight: 700; color: #2c3157; }
#fin-modal .fin-fee-total-badge { font-size: 12.5px; color: #2f7c59; font-weight: 800; white-space: nowrap; }
#fin-modal .fin-fee-body { padding: 4px 10px 10px; border-top: 1px solid #efe9dd; }
#fin-modal .fin-fee-addrow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; color: #777d90; }
#fin-modal .fin-fee-addrow .btn { padding: 2px 9px; font-size: .8rem; }
#fin-modal .fin-fee-total { margin-top: 8px; font-size: 13.5px; font-weight: 800; color: #2c3157; text-align: right; }
/* chips: same idea but for a small inline status row (trip overview, hotel filter) */
.ops-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ops-chip { appearance: none; border: 1px solid #e0dacf; background: #f7f4ed; color: #5a5f72; font: inherit; font-size: .82rem; line-height: 1; padding: 6px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
.ops-chip:hover { border-color: #c7bfae; }
.ops-chip.is-active { background: #2c3157; border-color: #2c3157; color: #fff; font-weight: 600; }
.h-points-formula { margin-top: 2px; color: #7b8191; font-size: 11px; line-height: 1.35; }
/* modal header inline actions (move primary action up to the title bar) */
.fin-modal__head-actions { display: flex; align-items: flex-start; gap: 8px; margin-left: auto; }
.fin-modal__head-actions .btn { padding: 7px 14px; }

/* ===== Customer detail modal — compact 订单与账单中心 (scoped to #cu-detail) ===== */
#cu-detail .fin-modal__panel { max-height: 90vh; display: flex; flex-direction: column; }
#cu-detail .cu-detail-form { overflow-y: auto; flex: 1 1 auto; }
.cu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.cu-chip { display: inline-flex; align-items: baseline; gap: 5px; background: #f4f1ea; border: 1px solid #e7e1d4; border-radius: 8px; padding: 3px 9px; font-size: 12.5px; }
.cu-chip__k { color: #9094a3; font-size: 11px; }
.cu-chip__v { color: #2c3157; font-weight: 600; }
.cu-chip--star { background: #fdf3e3; border-color: #f0d9a8; color: #8a5a16; font-weight: 600; }
.cu-chip__notes { flex: 1 1 100%; color: #6b6f82; font-size: 12px; margin-top: 1px; }
.cu-statbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.cu-stat { flex: 1 1 130px; min-width: 108px; background: #faf8f3; border: 1px solid #ece6da; border-radius: 9px; padding: 6px 10px; }
.cu-stat__k { display: block; font-size: 11px; color: #9094a3; }
.cu-stat__v { display: block; font-size: 14px; font-weight: 700; color: #2c3157; margin-top: 1px; }
.cu-stat.is-info .cu-stat__v { color: #2f5fa6; }
.cu-stat.is-warn .cu-stat__v { color: #b8472a; }
.cu-stat.is-ok .cu-stat__v { color: #2f7c59; }
.cu-detail-tabs { margin: 2px 0 6px; }
.cu-sec-label { font-size: 12px; font-weight: 700; color: #5a5f72; margin: 10px 0 4px; }
.cu-sec-empty { font-size: 12px; color: #9094a3; padding: 4px 0 2px; }

/* 接送弹窗:类型 pills 移到标题栏(scoped) */
#fin-modal .fin-modal__head { flex-wrap: wrap; gap: 8px; }
#fin-modal .fin-head-type { margin-left: 12px; }

/* 接送弹窗:紧凑高密度录入布局(收款/付款 常驻可填,不折叠) */
#fin-modal .fin-modal__panel { width: min(1080px, 96vw); }     /* wider → 基本信息 7 字段一行不换行 */
#fin-modal [hidden] { display: none !important; }              /* class display rules override [hidden] — restore form-wide */
#fin-modal .fin-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 5px; }
#fin-modal .fin-route-row { align-items: flex-start; }
#fin-modal .fin-f { margin-bottom: 0; min-width: 0; }
#fin-modal .fin-f .builder-input, #fin-modal .fin-notes { padding: 5px 10px; font-size: .9rem; }   /* 行高更紧凑(运营密度) */
#fin-modal .fin-f .guide-label { line-height: 1.08; margin: 0 0 1px; white-space: nowrap; font-size: 11px; }
#fin-modal .fin-sec-title { margin: 6px 0 3px; font-size: 15px; font-weight: 800; line-height: 1.18; letter-spacing: .01em; }
#fin-modal .fin-sec-head { display: flex; align-items: center; gap: 8px; margin: 6px 0 3px; }
#fin-modal .fin-flight-head { justify-content: flex-start; }
#fin-modal .fin-scope-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 9px; border-radius: 999px; border: 1px solid #e1d7c1; background: #fff7e7; color: #8a621e; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
#fin-modal .fin-scope-badge.is-domestic { border-color: #d8e5ef; background: #f0f7fb; color: #315f7c; }
#fin-modal .fin-sec-spacer { flex: 1 1 auto; }
#fin-modal .fin-mini-btn { padding: 3px 11px; font-size: .8rem; flex: 0 0 auto; }
#fin-modal .fin-sync-top { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; flex: 0 0 42px; white-space: normal; }
#fin-modal .fin-sync-btn.is-spinning { animation: finSyncSpin .75s linear infinite; }
@keyframes finSyncSpin { to { transform: rotate(360deg); } }
#fin-modal #f-sync-status { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); display: block; width: 130px; max-width: 130px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #656b7d; font-size: 9px; font-weight: 600; line-height: 1.08; white-space: pre-line; text-align: center; overflow-wrap: anywhere; word-break: break-word; pointer-events: none; }
#fin-modal #f-sync-status.is-ok { color: #2d7441; }
#fin-modal #f-sync-status.is-warn { color: #8a621e; }
#fin-modal #f-sync-status.is-error { color: #a13b2d; }
#fin-modal #f-sync-status.is-muted { color: #737989; }
.fin-sync-mini { margin-top: 3px; font-size: 11px; line-height: 1.25; color: #737989; }
.fin-sync-mini.is-ok { color: #2d7441; }
.fin-sync-mini.is-warn { color: #8a621e; }
.fin-sync-mini.is-error { color: #a13b2d; }
.fin-sync-mini.is-muted { color: #737989; }
#fin-modal .fin-attach { display: flex; align-items: stretch; gap: 6px; }
#fin-modal .fin-attach-btn { flex: 0 0 auto; padding: 0 13px; font-size: .82rem; white-space: nowrap; }
/* 查航班 原始圆形 3D 飞机按钮(严格保留) */
#f-flight-lookup { background: linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%); border: 1px solid #3c4368; box-shadow: 0 3px 6px rgba(37,42,77,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); transition: transform .09s ease, box-shadow .14s ease, filter .14s ease; }
#f-flight-lookup:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 5px 11px rgba(37,42,77,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
#f-flight-lookup:active { transform: translateY(1px); filter: brightness(.96); box-shadow: 0 1px 2px rgba(37,42,77,.40), inset 0 2px 4px rgba(0,0,0,.26); }
#f-flight-lookup svg { transform: rotate(45deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.28)); }
#fin-modal .fin-round-action { width: 34px; height: 34px; min-width: 34px; flex: 0 0 34px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; background: linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%); border: 1px solid #3c4368; box-shadow: 0 3px 6px rgba(37,42,77,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); transition: transform .09s ease, box-shadow .14s ease, filter .14s ease; }
#fin-modal .fin-round-action:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 5px 11px rgba(37,42,77,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action:active { transform: translateY(1px); filter: brightness(.96); box-shadow: 0 1px 2px rgba(37,42,77,.40), inset 0 2px 4px rgba(0,0,0,.26); }
#fin-modal .fin-round-action svg { width: 18px; height: 18px; display: block; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0,0,0,.28)); }
#fin-modal .fin-round-action:disabled { opacity: .62; cursor: wait; filter: grayscale(.08); transform: none; }
#fin-modal .fin-round-action--head { width: 42px; height: 42px; min-width: 42px; flex-basis: 42px; font-size: 20px; font-weight: 800; }
#fin-modal .fin-round-action--head svg { width: 20px; height: 20px; }
#fin-modal .fin-round-action--save { background: linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%); border-color: #3c4368; }
#fin-modal .fin-round-action--customer { background: linear-gradient(180deg,#8b93c9 0%,#6570ad 52%,#4d568e 100%); border-color: #434b7a; box-shadow: 0 3px 6px rgba(67,75,122,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action--customer:hover { box-shadow: 0 5px 11px rgba(67,75,122,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action--invoice { background: linear-gradient(180deg,#4fa979 0%,#2f845d 52%,#246a4b 100%); border-color: #1f5d42; box-shadow: 0 3px 6px rgba(31,93,66,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action--invoice:hover { box-shadow: 0 5px 11px rgba(31,93,66,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action--delete { background: linear-gradient(180deg,#df725e 0%,#bc4434 52%,#963126 100%); border-color: #842a21; box-shadow: 0 3px 6px rgba(132,42,33,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action--delete:hover { box-shadow: 0 5px 11px rgba(132,42,33,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action--sync { width: 42px; height: 42px; min-width: 42px; flex-basis: 42px; font-size: 20px; line-height: 1; background: linear-gradient(180deg,#55aebe 0%,#2e8998 52%,#236d7a 100%); border-color: #1d5f6a; box-shadow: 0 3px 6px rgba(29,95,106,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action--sync:hover { box-shadow: 0 5px 11px rgba(29,95,106,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
#fin-modal .fin-round-action--fx { width: 32px; height: 32px; min-width: 32px; flex: 0 0 32px; font-size: 18px; line-height: 1; align-self: center; }
#fin-modal .fin-manual-field { flex: 0 0 auto !important; align-self: flex-end; display: flex; align-items: flex-end; }
#fin-modal .fin-manual-toggle { height: 36px; box-sizing: border-box; margin: 0; padding: 0 12px; }
#fin-modal .fin-chk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; }
#fin-modal .fin-chk { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid #e0dacf; border-radius: 999px; background: #f7f4ed; color: #5a5f72; font-size: .82rem; cursor: pointer; white-space: nowrap; }
#fin-modal .fin-chk input { width: auto; margin: 0; }
#fin-modal .fin-chk:has(input:checked) { background: #2c3157; border-color: #2c3157; color: #fff; }
#fin-modal .fin-workpack-row { align-items: flex-start; flex-wrap: nowrap; gap: 8px; justify-content: flex-start; }
#fin-modal .fin-workpack-row .fin-placard-field { flex: 0 0 auto !important; min-width: 0; }
#fin-modal .fin-workpack-row .fin-extra-hours-field { flex: 0 0 84px !important; }
#fin-modal .fin-workpack-row .fin-work-field { flex: 0 1 auto !important; min-width: 0; }
#fin-modal .fin-workpack-row .fin-parking-field { flex: 0 0 68px !important; }
#fin-modal .fin-workpack-row .fin-placard-field,
#fin-modal .fin-workpack-row .fin-extra-hours-field,
#fin-modal .fin-workpack-row .fin-work-field,
#fin-modal .fin-workpack-row .fin-parking-field { display: flex; flex-direction: column; justify-content: flex-start; }
#fin-modal .fin-workpack-row #f-placard_name { flex-basis: 180px !important; width: 180px !important; }
#fin-modal .fin-workpack-row #f-extra_hours,
#fin-modal .fin-workpack-row #f-parking_fee { height: 36px; }
#fin-modal .fin-workpack-row #f-parking_fee { min-width: 0; padding-left: 8px; padding-right: 8px; text-align: center; }
#fin-modal .fin-work-field { justify-content: flex-start; }
#fin-modal .fin-work-line { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
#fin-modal .fin-work-line .guide-label { flex: 0 0 auto; margin: 0 0 1px; line-height: 1.08; font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
#fin-modal .fin-work-line .guide-label span { letter-spacing: inherit; color: inherit; }
#fin-modal .fin-work-line .fin-chk-row { flex: 0 1 auto; gap: 5px; min-height: 28px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#fin-modal .fin-work-line .fin-chk-row::-webkit-scrollbar { display: none; }
#fin-modal .fin-work-line .fin-chk { padding: 4px 7px; font-size: .75rem; }
#fin-modal .fin-work-line #f-work_other { min-width: 0; height: 30px; }
@media (max-width: 980px) {
  #fin-modal .fin-workpack-row { flex-wrap: wrap; }
  #fin-modal .fin-workpack-row .fin-placard-field,
  #fin-modal .fin-workpack-row .fin-work-field { flex: 1 1 100% !important; min-width: 0; }
}
#fin-modal .fin-notes { resize: vertical; min-height: 36px; line-height: 1.35; }
#fin-modal .fin-addr-sub { font-size: 9.45px; color: #8a8f9e; line-height: 1.1; margin-top: -5px; white-space: normal; word-break: break-word; }
#fin-modal .fin-addr-sub:empty { display: none; }
#fin-modal .fin-modal__head-actions #fin-form-msg { margin-right: 4px; }
#fin-modal .fin-modal__head-actions #fin-form-msg:empty { display: none; }
#fin-modal .fin-modal__head:has(.fin-sync-top) { margin-bottom: 24px; }
#fin-modal .fin-row .ops-seg { max-width: 100%; }
#fin-modal .fin-form__rule { margin: 6px 0; }
@media (max-width: 980px) {
  #fin-modal .fin-money-grid { grid-template-columns: 1fr; }
}

/* 追加到当前 styles.css 末尾即可(append-only,含:OPS WORKBENCH LAYER + CLIENT DOC LAYER(费用明细) + 行程单微调 v1/v2)。
   若已存在同名层,整层替换。版本号:styles.css?v=164 —— 线上已更高则 +1 保持一致。 */

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  OPS WORKBENCH LAYER — 运营后台统一视觉层(2026-07 UI 重构)              ║
   ║  作用域:body.planner-page(全部内部运营页面)。营销页(index/guides)不受影响。║
   ║  原则:高密度 · 可扫描 · 克制用色 · 状态一眼可辨。所有规则只覆盖视觉,     ║
   ║  不改任何 id/行为。删除本段即可整体回退。                                  ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

/* ---------- 1. 主题令牌:更冷更净的工作台底色 + 状态色标 ---------- */
body.planner-page {
  --bg: #F4F3EF;
  --bg-soft: #ECEAE3;
  --card: #FFFFFF;
  --line: rgba(44, 49, 87, 0.18);
  --line-soft: rgba(44, 49, 87, 0.10);
  --ink: #20243A;
  --muted: #5D6274;
  /* 状态色标(全后台统一):ok=已完成/已收 warn=待办/待收 danger=风险/失败 info=进行中/提示 */
  --st-ok: #1F7A4D;    --st-ok-bg: #E7F2EA;    --st-ok-line: #BCDCC8;
  --st-warn: #96600F;  --st-warn-bg: #FBF0DC;  --st-warn-line: #EBD3A4;
  --st-danger: #B3261E;--st-danger-bg: #FBEAE7;--st-danger-line: #F0C4BC;
  --st-info: #3F538F;  --st-info-bg: #ECF0F9;  --st-info-line: #C8D2EB;
  --st-mute: #6B7080;  --st-mute-bg: #EFEEE9;  --st-mute-line: #DDDACF;
  --focus: #535C8B;
  line-height: 1.5;
  background: var(--bg);
}
body.planner-page::before { display: none; }           /* 去掉纸纹噪点:后台要干净底色 */
body.planner-page { font-variant-numeric: tabular-nums; }

/* ---------- 2. 页头:实底、更矮、模块导航更清楚 ---------- */
body.planner-page .site-header { background: #FBFAF8; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line-soft); }
body.planner-page .site-header__inner { padding: 9px 0; gap: 16px; }
body.planner-page .wrap { width: min(1360px, calc(100% - 40px)); }
body.planner-page .ops-nav { gap: 2px; font-size: 13px; }
body.planner-page .ops-nav__tab { font-size: 13px; padding: 5px 12px; border-radius: 8px; }
body.planner-page .ops-nav__tab:hover { background: var(--bg-soft); color: var(--brand-deep); }
/* 选中 tab 立体深紫渐变(UI执行标准 §2:选中态导航同样立体;设计稿 01-10 通用) */
body.planner-page .ops-nav__tab.is-active { background: linear-gradient(180deg, #3a4170 0%, #2c3157 55%, #232744 100%); border: 1px solid #1c1f38; box-shadow: 0 2px 4px rgba(20, 22, 40, .28), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .18); color: #fff; font-weight: 600; }
/* 云端连接状态 = 绿点(title 说明;失败=红点+错误代码)(UI执行标准 §2) */
body.planner-page .ops-cloud-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #8B8FA3; }
body.planner-page .ops-cloud-dot i { width: 8px; height: 8px; border-radius: 50%; background: #1F7A4D; box-shadow: 0 0 0 3px rgba(31, 122, 77, .14); }
body.planner-page .ops-cloud-dot.is-err i { background: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
body.planner-page .nav__home { display: none; }
body.planner-page .ops-nav__tab[href="daily-reports.html"] {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  padding: 0 19px;
  border: 1px solid #1c1f38;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a4170 0%, #2c3157 55%, #232744 100%);
  box-shadow: 0 3px 7px rgba(20, 22, 40, .24), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
body.planner-page .ops-nav__tab[href="daily-reports.html"]:hover {
  border-color: #232744;
  background: linear-gradient(180deg, #454d78 0%, #343a66 55%, #282d50 100%);
  color: #fff;
}
body.planner-page .lang-switch { padding: 2px; }
body.planner-page .lang-switch__btn { padding: 4px 12px; font-size: 12px; }
body.planner-page .planner-tag { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; text-transform: none; color: var(--brand-deep); background: transparent; padding: 3px 2px 3px 10px; border-left: 1px solid var(--line-soft); border-radius: 0; }

/* ---------- 3. 版式与文字:小一号、密一档 ---------- */
body.planner-page .section { padding: 16px 0 44px; }
body.planner-page .planner-section { margin: 4px 0 22px; }
body.planner-page .planner-section__title { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--ink); margin: 0 0 6px; }
body.planner-page .planner-help { font-size: 12px; line-height: 1.55; margin: 0 0 12px; }
body.planner-page .planner-meta { font-size: 12px; }
body.planner-page .planner-empty { padding: 22px; font-size: 13px; }
body.planner-page .guide-label { font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--muted); }
body.planner-page a:focus-visible, body.planner-page button:focus-visible,
body.planner-page input:focus-visible, body.planner-page select:focus-visible, body.planner-page textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 6px; }

/* ---------- 4. 控件:输入框 / 按钮 / 分段 / 筛选片 ---------- */
body.planner-page .builder-input,
body.planner-page .planner-field input, body.planner-page .planner-field select,
body.planner-page .planner-mode, body.planner-page .planner-hotelsel, body.planner-page .planner-manual, body.planner-page #trip-timezone {
  font-size: 13px; padding: 7px 10px; border-radius: 8px; background: #fff; border-color: var(--line);
}
body.planner-page .builder-input::placeholder { color: #A2A6B4; }
body.planner-page .builder-input:focus-visible { outline-width: 2px; outline-offset: 0; }
body.planner-page .btn { border-radius: 8px; padding: 8px 14px; font-size: 13px; letter-spacing: .01em; box-shadow: none; transition: background .12s ease, border-color .12s ease, color .12s ease; }
body.planner-page .btn:hover { transform: none; }
body.planner-page .btn--primary { box-shadow: none; }
body.planner-page .btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
body.planner-page .btn--ghost:hover { border-color: var(--brand); color: var(--brand-deep); background: #fff; }
body.planner-page .planner-actions .btn { padding: 8px 14px; font-size: 13px; }
body.planner-page .planner-iconbtn { font-size: 12px; padding: 6px 10px; border-radius: 7px; background: #fff; color: var(--ink); white-space: nowrap; }
body.planner-page .planner-iconbtn:hover { border-color: var(--brand); color: var(--brand-deep); }
body.planner-page .planner-iconbtn.is-next { background: var(--brand); border-color: var(--brand); }
body.planner-page .planner-iconbtn.is-next:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
body.planner-page .ops-seg { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 9px; padding: 2px; gap: 2px; }
body.planner-page .ops-seg__btn { border-radius: 7px; padding: 5px 11px; font-size: 12.5px; color: var(--muted); }
body.planner-page .ops-seg__btn.is-active { background: #fff; color: var(--brand-deep); box-shadow: 0 1px 2px rgba(44,49,87,.16); }
body.planner-page .ops-seg--sm .ops-seg__btn { padding: 4px 9px; font-size: 12px; }
body.planner-page .ops-chips { gap: 4px; }
body.planner-page .ops-chip { border-radius: 7px; padding: 5px 10px; font-size: 12px; background: #fff; border-color: var(--line); }
body.planner-page .ops-chip.is-active { background: var(--brand-deep); border-color: var(--brand-deep); }
body.planner-page .trips-toolbar { gap: 8px; margin-bottom: 12px; }
/* 纯图标圆形动作(刷新等):保持原 id 与逻辑,仅视觉统一 */
body.planner-page .ops-round { appearance: none; cursor: pointer; width: 34px; height: 34px; min-width: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand-deep); transition: border-color .12s ease, background .12s ease; }
body.planner-page .ops-round:hover { border-color: var(--brand); background: #F6F6FB; }
body.planner-page .ops-round:active svg { transform: rotate(180deg); transition: transform .25s ease; }
body.planner-page .ops-round svg { width: 16px; height: 16px; }
body.planner-page .ops-round:disabled { opacity: .5; cursor: default; }

/* ---------- 5. 状态徽章:统一四种语义色,方角更工具化 ---------- */
body.planner-page .trip-chip, body.planner-page .trip-status, body.planner-page .fin-chip, body.planner-page .ops-hist__source {
  font-size: 11px; font-weight: 600; line-height: 1.6; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--st-mute-line); background: var(--st-mute-bg); color: var(--st-mute); text-transform: none;
}
body.planner-page .trip-chip.is-ok, body.planner-page .trip-status.is-ok, body.planner-page .fin-chip.is-ok { color: var(--st-ok); background: var(--st-ok-bg); border-color: var(--st-ok-line); }
body.planner-page .trip-chip.is-warn, body.planner-page .trip-status.is-warn, body.planner-page .fin-chip.is-warn { color: var(--st-warn); background: var(--st-warn-bg); border-color: var(--st-warn-line); }
body.planner-page .trip-chip.is-info, body.planner-page .trip-status.is-info { color: var(--st-info); background: var(--st-info-bg); border-color: var(--st-info-line); }
body.planner-page .trip-chip.is-empty, body.planner-page .trip-status.is-empty { color: var(--st-mute); background: var(--st-mute-bg); border-color: var(--st-mute-line); }

/* ---------- 6. 指标卡(fin-stat):数字优先、色彩落在数值上 ---------- */
body.planner-page .fin-summary { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; margin: 2px 0 14px; }
body.planner-page .fin-stat { border-radius: 10px; padding: 9px 12px 8px; border: 1px solid var(--line-soft); background: var(--card); }
body.planner-page .fin-stat__label { font-size: 11px; letter-spacing: .02em; }
body.planner-page .fin-stat__main { font-size: 18px; margin-top: 2px; letter-spacing: -.01em; }
body.planner-page .fin-stat__sub { font-size: 11.5px; margin-top: 1px; }
body.planner-page .fin-stat.is-warn { border-color: var(--st-warn-line); background: #FDFAF3; }
body.planner-page .fin-stat.is-warn .fin-stat__main { color: var(--st-warn); }
body.planner-page .fin-stat.is-info { border-color: var(--st-info-line); background: #F8FAFD; }
body.planner-page .fin-stat.is-info .fin-stat__main { color: var(--st-info); }
body.planner-page .fin-stat.is-ok { border-color: var(--st-ok-line); background: #F7FBF8; }
body.planner-page .fin-stat.is-ok .fin-stat__main { color: var(--st-ok); }
body.planner-page .fin-summary--compact { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
body.planner-page .fin-summary--compact .fin-stat { padding: 7px 10px 6px; border-radius: 8px; }
body.planner-page .fin-summary--compact .fin-stat__main { font-size: 15.5px; }

/* ---------- 7. 列表/表格:连续行、紧凑、悬停可点 ---------- */
body.planner-page .fin-table-head { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); }
body.planner-page .fin-row { padding: 8px 10px; font-size: 13px; background: transparent; }
body.planner-page .fin-row:hover { background: #fff; }
body.planner-page .fin-row:focus-visible { outline-offset: -2px; }
body.planner-page .fin-list { border: 1px solid var(--line-soft); border-radius: 10px; background: var(--card); overflow: hidden; }
body.planner-page .fin-list .fin-row { border-bottom: 1px solid var(--line-soft); }
body.planner-page .fin-list .fin-row:last-child { border-bottom: 0; }
body.planner-page .fin-list .fin-row:hover { background: #F6F6FB; }
body.planner-page .fin-table-head { border: 1px solid var(--line-soft); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--bg-soft); margin-top: 2px; }
body.planner-page .fin-table-head + .fin-list, body.planner-page .fin-table-head ~ .fin-list { border-radius: 0 0 10px 10px; }
body.planner-page .fin-sync-mini { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; font-weight: 600; line-height: 1.35; padding: 1px 7px; border-radius: 6px; background: var(--st-mute-bg); border: 1px solid var(--st-mute-line); color: var(--st-mute); white-space: pre-line; max-width: 100%; text-align: left; }
body.planner-page .fin-sync-mini::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
body.planner-page .fin-sync-mini.is-ok { color: var(--st-ok); background: var(--st-ok-bg); border-color: var(--st-ok-line); }
body.planner-page .fin-sync-mini.is-warn { color: var(--st-warn); background: var(--st-warn-bg); border-color: var(--st-warn-line); }
body.planner-page .fin-sync-mini.is-error { color: var(--st-danger); background: var(--st-danger-bg); border-color: var(--st-danger-line); }
body.planner-page .fin-sync-mini.is-muted { color: var(--st-mute); background: var(--st-mute-bg); border-color: var(--st-mute-line); }
body.planner-page .fin-work-note { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body.planner-page .trip-op-list { gap: 6px; margin-top: 8px; }
body.planner-page .trip-op-row { padding: 8px 12px; border-radius: 8px; gap: 10px; }
body.planner-page .trip-op-row--suggested { background: #F7F8FC; border-style: dashed; }
body.planner-page .trip-op-title { font-size: 13.5px; }
body.planner-page .trip-op-meta, body.planner-page .trip-op-money { font-size: 12px; margin-top: 2px; }
body.planner-page .trip-op-money { color: var(--ink); }
body.planner-page .trip-op-actions { gap: 5px; }
body.planner-page .trip-status-select { height: 28px; min-width: 118px; padding: 2px 22px 2px 8px; font-size: 12px; border-radius: 7px; }
body.planner-page .trip-inline-in { height: 26px; border-radius: 6px; }
body.planner-page .trip-section-label { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--muted); margin: 12px 0 2px; }

body.planner-page .trips-row { padding: 9px 12px; border-radius: 8px; margin-bottom: 5px; }
body.planner-page .trips-row--head { padding: 2px 12px; font-size: 11px; letter-spacing: .04em; }
body.planner-page .trips-code { font-size: 14px; }
body.planner-page .trips-sub { font-size: 11.5px; }

body.planner-page .trip-docs { gap: 6px; }
body.planner-page .trip-doc-row { padding: 8px 12px; border-radius: 8px; }
body.planner-page .trip-act-row { padding: 6px 10px; font-size: 12.5px; }

/* ---------- 8. Trip 详情:tab 栏吸顶 + 计数徽标 + 页头摘要 + 待办条 ---------- */
body.planner-page .trip-tabs { position: sticky; top: 0; z-index: 26; background: var(--bg); margin: 6px 0 14px; gap: 2px; border-bottom: 1px solid var(--line); }
body.planner-page .trip-tab { padding: 9px 11px; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.planner-page .trip-tab .tab-n { display: inline-block; min-width: 16px; margin-left: 5px; padding: 0 4px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
body.planner-page .trip-tab.is-active .tab-n { background: var(--brand); color: #fff; }
body.planner-page .trip-tab .tab-n.is-warn { background: var(--st-warn-bg); color: var(--st-warn); border: 1px solid var(--st-warn-line); line-height: 14px; }

.trip-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 24px; padding: 12px 16px; margin: 2px 0 14px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 10px; }
.trip-head__main { min-width: 0; }
.trip-head__row1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trip-head__code { font-size: 19px; font-weight: 700; letter-spacing: .01em; color: var(--brand-deep); }
.trip-head__meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.trip-head__meta b { color: var(--ink); font-weight: 600; }
.trip-head__todo { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 220px; }
.trip-head__todo-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.trip-next { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.trip-next__item { appearance: none; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--st-warn-line); background: var(--st-warn-bg); color: var(--st-warn); transition: border-color .12s ease, background .12s ease; }
.trip-next__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.trip-next__item:hover { border-color: var(--st-warn); }
.trip-next__item.is-danger { border-color: var(--st-danger-line); background: var(--st-danger-bg); color: var(--st-danger); }
.trip-next__item.is-danger:hover { border-color: var(--st-danger); }
.trip-next__item.is-info { border-color: var(--st-info-line); background: var(--st-info-bg); color: var(--st-info); }
.trip-next__item.is-info:hover { border-color: var(--st-info); }
.trip-next__done { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--st-ok-line); background: var(--st-ok-bg); color: var(--st-ok); }
@media (max-width: 760px) { .trip-head__todo { align-items: flex-start; } .trip-next { justify-content: flex-start; } }

body.planner-page .tov-subhead { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
body.planner-page .tov-row .builder-input { padding: 6px 9px; font-size: 13px; }
body.planner-page .tov-row .builder-field { margin-bottom: 8px; gap: 3px; }
body.planner-page .tov-code-hint { font-size: 11px; margin: -2px 0 10px; }
/* (2026-07-03 老板拍板:撤销此处对 trip 页头圆钮的扁平化覆盖,恢复原版彩色立体圆钮 —— 规则见文末 PATCH §E) */
body.planner-page .trip-doc-btn { font-size: 12.5px; padding: 6px 12px; }
body.planner-page .trip-hotel-sum { border-left: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; }
body.planner-page .ov-status-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
body.planner-page .ov-st-field { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--card); padding: 8px 10px; gap: 6px; }
/* 切换 tab 也用立体圆钮,与动作钮/输出区 .ops-round 统一,v196 */
body.planner-page .trip-subtab { font-size: 12.5px; padding: 6px 15px; border-radius: 999px; font-weight: 600; color: var(--brand-deep); border: 1px solid var(--line); background: linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); box-shadow: 0 2px 4px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 3px rgba(30,40,80,.06); transition: transform .09s ease, box-shadow .14s ease, filter .14s ease; }
body.planner-page .trip-subtab:hover { color: var(--brand-deep); border-color: var(--brand); transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 4px 9px rgba(30,40,80,.16), inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 3px rgba(30,40,80,.06); }
body.planner-page .trip-subtab:active { transform: translateY(1px); filter: brightness(.97); box-shadow: 0 1px 2px rgba(30,40,80,.12), inset 0 1px 2px rgba(30,40,80,.14); }
body.planner-page .trip-subtab.is-active, body.planner-page .trip-subtab.is-active:hover { color: #fff; border-color: #1d5f6a; background: linear-gradient(180deg,#55aebe 0%,#2e8998 52%,#236d7a 100%); box-shadow: 0 3px 6px rgba(29,95,106,.30), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); }
body.planner-page .trip-embed__frame { border-radius: 10px; }

/* ---------- 9. 弹窗统一:平面化、方角、去 3D 渐变 ---------- */
body.planner-page .fin-modal__panel { border-radius: 12px; border: 1px solid var(--line-soft); box-shadow: 0 18px 48px rgba(20,22,40,.22); }
body.planner-page .trip-form-modal__panel { border-radius: 12px; }
body.planner-page .fin-invoice__sheet { border-radius: 10px; }
body.planner-page #fin-modal .fin-round-action,
body.planner-page #fin-modal .fin-round-action--head,
body.planner-page #fin-modal .fin-round-action--save { background: var(--brand); border: 1px solid var(--brand); box-shadow: none; }
body.planner-page #fin-modal .fin-round-action:hover { background: var(--brand-deep); border-color: var(--brand-deep); filter: none; transform: none; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action:active { transform: none; filter: none; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action svg { filter: none; }
body.planner-page #fin-modal .fin-round-action--customer { background: #6570AD; border-color: #6570AD; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action--customer:hover { background: #4d568e; border-color: #4d568e; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action--invoice { background: #2F845D; border-color: #2F845D; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action--invoice:hover { background: #246a4b; border-color: #246a4b; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action--delete { background: #BC4434; border-color: #BC4434; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action--delete:hover { background: #963126; border-color: #963126; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action--sync { background: #2E8998; border-color: #2E8998; box-shadow: none; }
body.planner-page #fin-modal .fin-round-action--sync:hover { background: #236d7a; border-color: #236d7a; box-shadow: none; }
body.planner-page #f-flight-lookup { background: var(--brand); border: 1px solid var(--brand); box-shadow: none; }
body.planner-page #f-flight-lookup:hover { background: var(--brand-deep); border-color: var(--brand-deep); filter: none; transform: none; box-shadow: none; }
body.planner-page #f-flight-lookup svg { filter: none; }
body.planner-page #fin-modal .fin-sec-title { font-size: 13px; font-weight: 700; color: var(--ink); }
body.planner-page #fin-modal .fin-money-card { border-radius: 10px; background: #FBFAF7; }
body.planner-page #fin-modal .fin-chk { border-radius: 7px; background: #fff; font-size: 12px; padding: 5px 10px; }
body.planner-page #fin-modal .fin-chk:has(input:checked) { background: var(--brand-deep); border-color: var(--brand-deep); }
body.planner-page #fin-modal #f-sync-status { font-size: 10px; width: 150px; max-width: 150px; }
body.planner-page #fin-modal .fin-fee-panel { border-radius: 8px; background: #FBFAF7; }
body.planner-page .fin-invoice-pick__panel { border-radius: 12px; }

/* ---------- 10. 行程规划器(嵌入/全屏)与报价器的密度对齐 ---------- */
body.planner-page .day-block { border-radius: 10px; padding: 14px 16px; }
body.planner-page .day-block--out .day-block__head { margin: -14px -16px 12px; padding: 9px 16px; border-radius: 10px 10px 0 0; }
body.planner-page .day-block__title { font-size: 16px; }
body.planner-page .day-block--out .day-block__title { font-size: 17px; }
body.planner-page .appointment-row, body.planner-page .hotel-row, body.planner-page .lunch-row { padding: 9px 10px; border-radius: 8px; gap: 8px 12px; }
body.planner-page .planner-table { font-size: 12.5px; }
body.planner-page .planner-table td { padding: 5px 6px; }
body.planner-page .planner-toolbar { padding: 10px 0; }
body.planner-page .guide-hero { padding: 18px 0 6px; }
body.planner-page .guide-hero__title { font-size: clamp(22px, 3vw, 30px); }
body.planner-page .guide-hero__sub { font-size: 13px; }
body.planner-page .eyebrow { margin-bottom: 10px; font-size: 11px; }
body.planner-page .quote-line__h { font-size: 10.5px; }
body.planner-page .qb-chip { border-radius: 7px; font-size: 12px; padding: 4px 10px; background: #fff; }

/* ---------- 11. 移动端兜底 ---------- */
@media (max-width: 760px) {
  body.planner-page .wrap { width: calc(100% - 24px); }
  body.planner-page .trip-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  body.planner-page .trip-tabs::-webkit-scrollbar { display: none; }
  body.planner-page .trip-tab { white-space: nowrap; }
  body.planner-page .fin-summary { grid-template-columns: repeat(2, 1fr); }
  .trip-head { padding: 10px 12px; }
}


/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  CLIENT DOC LAYER — 费用明细 / CHARGE STATEMENT PDF 重设计(2026-07)     ║
   ║  仅覆盖 .fee-doc* 视觉:品牌对齐 / 金额层级 / 可读性。生成逻辑·计算·快照   ║
   ║  ·打印几何(A4 + 12mm)全部不变。同名选择器后置覆盖,删除本段即回旧版。     ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.fee-doc {
  --fd-deep: #2C3157;            /* 品牌深靛:页眉带/表头字/强调金额 */
  --fd-blue: #535C8B;            /* 品牌靛:次级标签 */
  --fd-soft: #9BA0BE;            /* 弱标签/时间戳 */
  --fd-ink: #23263A;             /* 正文与数值 */
  --fd-mute: #70748A;            /* 说明文字 */
  --fd-line: rgba(44,49,87,.32); --fd-line-soft: rgba(44,49,87,.13);
  --fd-green: #2F6B46; --fd-green-bg: #EFF5EC; --fd-green-line: #B3CDAE;   /* 团费总计沿用绿色签名,校正为沉稳深绿 */
  --fd-red: #B3261E;             /* 唯一警示红(合同编号标记/付款提示) */
  --fd-brand: #535C8B;
  --fd-brand-2: #5D67A2;
  color: var(--fd-ink); border: 1px solid var(--fd-line-soft); border-radius: 8px; font-size: 13.5px;
  background: #fff;
}
/* 页眉带:深靛实底 + 白 logo,标题字距居中校正 */
.fee-doc__head { position: relative; padding: 18px 24px 19px; text-align: center; border-radius: 8px;
  background-color: var(--fd-brand);
  background-image:
    radial-gradient(130% 120% at 50% 0%, rgba(255,255,255,.13), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #5B6598 0%, #515A88 100%);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.fee-doc__wm-unused { display: none; }
.fee-doc__h1 { font-size: 20px; letter-spacing: .3em; text-indent: .3em; }
.fee-doc__h2 { font-size: 10px; letter-spacing: .3em; text-indent: .3em; opacity: .8; margin-top: 3px; }
.fee-doc__doccode { color: #8A8FA8; font-size: 11.5px; letter-spacing: .1em; padding: 9px 14px 0; }
/* 参数汇总条:标签弱、数值强,列间细分隔 */
.fee-doc__summary { table-layout: fixed; background: transparent; }   /* 6 列均分的柔和色带,无内部线 */
.fee-doc__summary th { background: transparent; padding: 14px 4px 7px; border-bottom: 1px solid var(--fd-line-soft); }
/* 汇总条(权威范本 2023NBC092,老板 2026-08-07 提供 PDF):中英双行同为靛蓝、英文仅略小;数值常规字重 */
.fee-doc__sz { font-size: 13.5px; color: var(--fd-blue); font-weight: 400; }
.fee-doc__se { font-size: 12px; color: var(--fd-blue); font-weight: 400; letter-spacing: .01em; }
.fee-doc__summary td { background: transparent; padding: 8px 4px 15px; font-weight: 400; font-size: 14px; color: var(--fd-blue); border-bottom: 0; font-variant-numeric: tabular-nums; }
.fee-doc__summary td.is-strong { font-weight: 700; color: var(--fd-ink); }
.fee-doc__snote td { padding: 0 6px 7px !important; border-bottom: 1px solid var(--fd-line-soft) !important; }
.fee-doc__snote td:nth-child(5) { font-size: 9.5px; color: var(--fd-mute); }   /* 小字跟随「每日花费」列(范本第5列) */
/* 明细表:去实底表头,改瑞士式双细线;金额右对齐等宽,TOTAL 加重 */
.fee-doc__items th { background: var(--fd-brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 7px 10px; border: 0; white-space: nowrap; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }   /* 表头:主题深靛实底反白,全列居中 */
/* 明细行(范本):全表深灰常规字、五列居中、行距舒展;TOTAL 不加重、名称列不做靛蓝 */
.fee-doc__items td { padding: 10px 10px; border-bottom: 1px solid var(--fd-line-soft); font-size: 14px; color: #3a3a3a; text-align: center; }
.fee-doc__items td:nth-child(2) { color: #3a3a3a; font-size: 13.5px; line-height: 1.55; }
.fee-doc__items td:last-child { font-weight: 400; color: #3a3a3a; }
.fee-doc__items th:nth-child(3), .fee-doc__items td:nth-child(3),
.fee-doc__items th:nth-child(4), .fee-doc__items td:nth-child(4),
.fee-doc__items th:nth-child(5), .fee-doc__items td:nth-child(5) { text-align: center; }   /* UNIT PRICE / UNIT / TOTAL 三列居中(老板要求,覆盖此前左对齐) */
.fee-doc__name { color: #3a3a3a; font-weight: 400; }   /* 范本:名称列同为深灰常规 */
/* 合计块:标签小写弱化、数值墨色;应付总额品牌深靛放大 */
.fee-doc__totals { border-top: 2px solid var(--fd-deep); }
/* 合计块(范本):四行同款靛蓝、同字号、无竖线、无加粗放大 */
.fee-doc__trow { width: 52%; font-size: 14.5px; border-bottom: 1px solid var(--fd-line-soft); }
.fee-doc__trow > span { padding: 10px 6px; color: var(--fd-blue); }
.fee-doc__trow > span:first-child { color: var(--fd-blue); font-size: 14.5px; letter-spacing: .02em; }
.fee-doc__trow > .num { border-left: 0; color: var(--fd-blue); font-weight: 400; }
.fee-doc__trow.is-strong > span, .fee-doc__trow.is-strong > .num { font-size: 14.5px; color: var(--fd-blue); font-weight: 400; }
.fee-doc__updated { padding: 6px 14px 4px; font-size: 12.5px; color: var(--fd-brand); }
/* 升级选项/团费总计:同一套绿色语言,盒线软化 */
.fee-doc__upgrade { border: 1px solid var(--fd-green-line); background: var(--fd-green-bg); border-radius: 6px; margin: 10px 10px 4px; padding: 9px 14px; }
.fee-doc__upgrade-t { color: var(--fd-green); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.fee-doc__upgrade-v { font-size: 13px; color: var(--fd-ink); font-weight: 600; }
.fee-doc__upgrade-m { color: var(--fd-mute); font-size: 11.5px; }
.fee-doc__upgrade-r { color: var(--fd-green); font-size: 17.5px; }
.fee-doc__group { width: auto; min-width: 46%; margin: 12px 10px 6px auto; padding: 10px 14px; background: var(--fd-green-bg); border: 1px solid var(--fd-green-line); border-radius: 6px; gap: 24px; }
.fee-doc__group-lab { color: var(--fd-green); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.fee-doc__group-val { color: var(--fd-green); font-size: 20px; font-weight: 800; }
/* 脚注:左对齐 + 悬挂星标,替代居中蓝字 */
/* 脚注(范本):居中斜体三行,最后一行「价格保证」加粗 */
.fee-doc__notes { text-align: center; padding: 14px 14px 0.25cm; }
.fee-doc__note { color: #3a3a3a; font-size: 11.5px; line-height: 1.95; font-style: italic; }
.fee-doc__note:last-child { font-weight: 700; color: #2b2b2b; }
.fee-doc__veh { color: #3a3a3a; font-size: 13.5px; line-height: 1.5; }   /* 车辆使用描述行:正常字 */
.fee-doc__items td:nth-child(2) .fee-doc__veh + div { color: #8F93A6; font-size: 10.5px; line-height: 1.3; margin-top: 2px; }   /* 具体车型(Toyota Sienna 或同级别车型):弱化小字 */
/* 收款页/条款页:统一「深靛标题 + 2px 规则线」,正红收敛为 #B3261E */
.fee-doc__payhead { color: var(--fd-deep); border-bottom: 2px solid var(--fd-deep); font-size: 18.5px; padding-bottom: 9px; margin: 6px 0 18px; }
.fee-doc__paymark { color: var(--fd-ink); font-size: 14.5px; border-bottom: 1px solid var(--fd-line-soft); padding-bottom: 8px; margin: 0 0 14px; line-height: 1.6; }
.fee-doc__paycode { color: var(--fd-red); letter-spacing: .02em; }
.fee-doc__payt { color: var(--fd-ink); font-size: 16.5px; }
.fee-doc__payamt { color: var(--fd-deep); font-weight: 700; font-size: 16px; }
.fee-doc__payline { color: #4A4E5E; font-size: 15px; line-height: 1.9; }
.fee-doc__paynote { color: var(--fd-red); font-size: 13.5px; }
.fee-doc__payblk + .fee-doc__payblk { border-top: 1px solid var(--fd-line-soft); padding-top: 13px; }
/* 条款页(3–4):改为按静态内容排版渲染,替代整页图片;与全文档同一版式语言 */
.fee-doc__clausepage { position: relative; padding: 14px 18px 22px; }
.fee-doc__clausepage::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 56%; height: 40%; background: url("assets/farland-logo-dark.png") center/contain no-repeat; opacity: .035; pointer-events: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fee-doc__clausepage > * { position: relative; z-index: 1; }
.fee-doc__clauseh { color: var(--fd-deep); border-bottom: 2px solid var(--fd-deep); font-size: 17px; padding-bottom: 8px; margin: 4px 0 13px; }
.fee-doc__clause { margin: 0 0 13px; }
.fee-doc__clause-t { color: var(--fd-ink); font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.fee-doc__clause-t::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--fd-brand); margin-right: 7px; vertical-align: 1px; }
.fee-doc__clause-b { color: #4A4E5E; font-size: 13px; line-height: 1.78; }
@media print {
  /* 明细跨页时表头随页重复;金额块不被腰斩 */
  .planner-page .fee-doc__items thead { display: table-header-group; }
  .planner-page .fee-doc__totals, .planner-page .fee-doc__group, .planner-page .fee-doc__notes { break-inside: avoid; page-break-inside: avoid; }
}


/* ---------- 行程单微调(2026-07-02):午餐行时间段溢出修复 ----------
   .planner-table 为 fixed 布局,第 2 列 8% + nowrap;午餐行的 "11:45–13:00"
   不可断词,屏幕与打印都会压进第 3 列。仅对午餐行放开换行(特异性高于基础 nowrap 规则,
   屏幕/打印同时生效)。 */
.planner-table .row--lunch td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }


/* ---------- 费用明细 PDF v2(2026-07-02):logo 移水印 + 主题色页眉 + 收款页填充 ----------
   仅视觉;生成逻辑/计算/快照/打印几何未动。 */
/* 页 1 品牌页脚(替代被移除的页眉 logo) */
.fee-doc__brandfoot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--fd-soft); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; padding: 12px 14px 14px; border-top: 1px solid var(--fd-line-soft); margin-top: 2px; }
.fee-doc__brandfoot-logo { height: 14px; width: auto; opacity: .5; }
/* 收款页:填充留白 —— 居中大 logo 水印 + 区块间距拉开 + 结尾联系脚 */
.fee-doc__paypage { position: relative; padding: 14px 18px 22px; }
.fee-doc__paypage::before { content: ""; position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); width: 56%; height: 44%; background: url("assets/farland-logo-dark.png") center/contain no-repeat; opacity: .04; pointer-events: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fee-doc__paypage > * { position: relative; z-index: 1; }
.fee-doc__payblk { margin: 0 0 24px; }
.fee-doc__payfoot { margin-top: 22px; padding-top: 13px; border-top: 1px solid var(--fd-line-soft); text-align: center; color: var(--fd-mute); font-size: 12.5px; line-height: 1.9; }
.fee-doc__payfoot-logo { height: 13px; width: auto; opacity: .55; vertical-align: -2px; margin-right: 7px; }
@media print {
  .planner-page .fee-doc__paypage { break-inside: avoid; page-break-inside: avoid; }
}
/* 页 1 淡水印(收敛版):绝对定位在首页区域,z-index -1 垫在内容下 */
.fee-doc { position: relative; z-index: 0; }
.fee-doc__wm1 { position: absolute; z-index: -1; left: 50%; top: 330px; transform: translateX(-50%); width: 55%; height: 250px; background: url("assets/farland-logo-dark.png") center/contain no-repeat; opacity: .04; pointer-events: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }


/* 费用明细 v3(2026-07-02):页 2-4 打印铺满 —— 正常边距、整页高度、收款页页脚沉底 */
@media print {
  .planner-page .fee-doc__paypage, .planner-page .fee-doc__clausepage { padding: 6mm 0 0 !important; min-height: 265mm; }
  .planner-page .fee-doc__paypage { display: flex; flex-direction: column; }
  .planner-page .fee-doc__payfoot { margin-top: auto; padding-bottom: 2mm; }
  .planner-page .fee-doc__payblk { margin: 0 0 9mm; }
  .planner-page .fee-doc__paymark { margin-bottom: 8mm; }
}


/* 费用明细 v3.1:页 1 打印铺满,品牌页脚固定纸张底部居中(浅灰小字) */
@media print {
  .planner-page .fee-doc__page1 { min-height: 271mm; display: flex; flex-direction: column; }
  .planner-page .fee-doc__page1 .fee-doc__notes { margin-top: auto; }   /* 脚注+品牌脚一起贴底 */
}


/* 费用明细 v3.2:收款页卡片化区块,打印时区块均匀铺满整页 */
.fee-doc__payblk { border: 1px solid var(--fd-line-soft); border-radius: 8px; background: rgba(247,248,251,.65); padding: 18px 20px; margin: 0 0 22px; }
.fee-doc__paypage::before { width: 64%; height: 48%; opacity: .05; }
@media print {
  .planner-page .fee-doc__payblk { margin: 0 0 auto; }
  .planner-page .fee-doc__paymark { margin-bottom: 6mm; }
}


/* ---------- 行程单微调 v3(2026-07-02):打印重叠修复(仅数据行)+ 日带降深 ----------
   1) 重叠:数字列(预计到达/时间/车程/里程/路况)原为 nowrap + fixed 8-10% 列宽,
      「10:00 AM」在窄幅与打印下溢出压进目的地列。放开换行(在空格处断行,宽屏不受影响)。
      屏幕+打印同时生效;比基础 nowrap 规则特异性高一级。
      ⚠️ 仅 td(数据值)放开——表头(th)是固定短中文标签(时间/车程…),放开后在窄屏
      按字断行(如「时」「间」分两行),视觉显得不居中/凌乱;表头保留 nowrap + center
      (回落到基础规则),标签本就不会溢出,不需要放开。
   2) 日带(第 N 天)与出发行颜色过深 → 屏幕由 --brand-deep 改 --brand,打印由
      --print-brand-deep 改 --print-brand(与费用明细表头同一裁决:主题色而非深靛)。 */
body.planner-page .planner-table td:nth-child(1),
body.planner-page .planner-table td:nth-child(2),
body.planner-page .planner-table td:nth-child(4),
body.planner-page .planner-table td:nth-child(5),
body.planner-page .planner-table td:nth-child(6) { white-space: normal; overflow-wrap: normal; }
body.planner-page .day-block--out .day-block__head { background: var(--brand); }
@media print {
  .planner-page .day-block__head { background: var(--print-brand) !important; }
  .planner-page .planner-dest { color: var(--print-brand-2); }
}


/* ---------- 行程单微调 v4(2026-07-02):表头加大 + 路况小字加粗 + 距离列加宽 ----------
   老板逐条反馈:
   1) 表头字号加大(屏幕 10→11.5px;th 小注 8.5→9.5px)。仅屏幕——打印 PDF 表头
      7.4px 是已裁决的客户版式,不动。
   2) 路况值(Good/Moderate/Heavy)减小字号加粗(屏幕 12.5→11px / 700)。仅屏幕。
   3) 距离列稍微加宽:9%→11%,目的地列 40%→38% 相应让出;屏幕+打印同时生效
      (「102.2 mi」窄幅下不再折行)。距离表头的小字「英里 miles」由
      itinerary-planner.js v32 输出(.planner-th-note)。 */
@media screen {
  body.planner-page .planner-table th { font-size: 11.5px; }
  body.planner-page .planner-th-note { font-size: 9.5px; }
  body.planner-page .planner-table td.traffic { font-size: 11px; font-weight: 700; }
}
body.planner-page .planner-table th:nth-child(3), body.planner-page .planner-table td:nth-child(3) { width: 38%; }
body.planner-page .planner-table th:nth-child(5), body.planner-page .planner-table td:nth-child(5) { width: 11%; }


/* ---------- 行程单微调 v5(2026-07-02):表头全部居中 + 再加大 + 距离单位内联 ----------
   老板反馈:1) 表头字号再加大(屏幕 11.5→12.5px);2) 表头全部居中(目的地/备注 原为左
   对齐,现全列表头居中——数据 td 仍保持:目的地/备注 左对齐、数字列居中);3) 距离单位「英里」
   改为跟在数字后面的小字(itinerary-planner.js .planner-unit),表头不再带小注。屏幕+打印一致。 */
body.planner-page .planner-table th { text-align: center; }   /* 目的地/备注 表头也居中;数据行不受影响 */
body.planner-page .planner-unit { font-size: 9px; margin-left: 1px; color: var(--muted); }   /* 数字后的「英里/mi」小字:9px、与数字最小间距 */
@media screen { body.planner-page .planner-table th { font-size: 15px; } }   /* 标题字号 → 15px(老板裁决:统一 15px) */
@media print { .planner-page .planner-unit { color: var(--print-muted); } }


/* ---------- 行程单微调 v6(2026-07-02):路况状态字号 ----------
   老板:路况状态(Good/Moderate/Heavy)13px 加粗 —— 屏幕 + 打印 PDF 都生效
   (v8 补:原来只 @media screen,老板看 PDF 说没变;去掉 media 包裹,print 里
   覆盖基础 9.5px 表格字号与 .traffic--heavy 的 600 字重,颜色不动)。 */
body.planner-page .planner-table td.traffic { font-size: 13px; font-weight: 700; }


/* ---------- 行程单微调 v9(2026-07-02):午餐行一行显示 ----------
   老板:时间两行太麻烦 —— 午餐窗口并入描述、时间+目的地合并单元格(planner.js v37 colspan=2)。
   合并格取消 nth-child(2) 的居中与 anywhere 断行,靠左一行放下「11:37–12:30 · 午餐空档偏紧」。
   屏幕 + 打印同时生效。 */
.planner-table .row--lunch td.row--lunch__status { text-align: left; white-space: normal; overflow-wrap: normal; }
.planner-table .row--lunch .row--lunch__win { font-variant-numeric: tabular-nums; margin-right: 1px; }


/* ---------- 行程单微调 v10(2026-07-02):日带重排(老板版式,屏幕+打印) ----------
   1) 标题「D1 Jul 6th(上标) 星期一」15px + 时区小字「美国东部时区夏令时」11px(planner.js v38);
   2) 预计出发主行 15px,预留小字 10px 换行放下面;
   3) 顶带宽度与下方表格一致:取消屏幕端负边距贴卡片边(打印端本就同宽)。 */
body.planner-page .day-block--out .day-block__head { margin: 0 0 12px; padding: 9px 14px; border-radius: 10px; }
body.planner-page .day-block--out .day-block__title { font-size: 15px; font-weight: 600; }
.day-block__title .day-ord { font-size: .6em; line-height: 1; }
.day-block__title .day-tz { font-size: 11px; font-weight: 500; opacity: .85; margin-left: 8px; }
.day-block__depart { text-align: right; }
body.planner-page .day-block--out .day-depart__main { font-size: 15px; }
body.planner-page .day-block--out .day-depart__sub { font-size: 10px; font-weight: 500; opacity: .85; margin-top: 1px; }
@media print {
  .planner-page .day-block__title { font-size: 15px; }
  .planner-page .day-block__title .day-tz { font-size: 11px; }
  .planner-page .day-block__depart { white-space: normal; }
  .planner-page .day-depart__main { font-size: 15px; font-weight: 600; }
  .planner-page .day-depart__sub { font-size: 10px; font-weight: 500; opacity: .9; }
}


/* ---------- 行程单微调 v11(2026-07-02):日带单行 + 日间距 3px ----------
   老板:1) 「预留N分钟」还是写回「预计出发」右边(仍 10px 小字)—— 日带回单行,不再撑高;
   2) 日与日之间留白 3px 就够(原来卡片上下内边距 14px×2 + 块间距 18px ≈ 46px 太空)。
   屏幕 + 打印同时生效。 */
.day-block__depart .day-depart__main, .day-block__depart .day-depart__sub { display: inline; }
.day-block__depart .day-depart__sub { margin-left: 6px; margin-top: 0; }
body.planner-page #planner-output .day-block--out { padding-top: 0; padding-bottom: 4px; margin-bottom: 3px; }
body.planner-page #planner-output .day-block--out .day-block__head { margin: 0 0 10px; }
@media print { .planner-page .day-block--out { margin-bottom: 3px; } }


/* ---------- 行程单微调 v12(2026-07-02):中文非衬线 + 色带贴表头 ----------
   老板:1) 日带中文统一非衬线 —— 原 var(--serif) 的 'Songti SC' 让中文成宋体(衬线),
      整个标题改 var(--sans)(D + 星期 + 时区都非衬线,与出发行/表格一致);
   2) 色带与表头之间的「线 + 留白」都不要 —— 去掉带下 10px 间距与表格上边距,
      并去掉表头下划线,让表头直接贴在紫带下方。屏幕 + 打印同时生效。 */
body.planner-page .day-block__title { font-family: var(--sans); }
body.planner-page #planner-output .day-block--out .day-block__head { margin-bottom: 2px; }
body.planner-page #planner-output .planner-table { margin-top: 0; }
/* v13 改:表头下加回分割线,格式与数据行一致(1px line-soft);带与表头之间仍无线无留白 */
body.planner-page .planner-table thead th { border-bottom: 1px solid var(--line-soft); }
@media print {
  .planner-page .day-block__title { font-family: var(--sans); }
  .planner-page .day-block__head { margin-bottom: 2px; }
  .planner-page .planner-table { margin-top: 0; }
  .planner-page .planner-table th { border-top: 0; border-bottom: 1px solid var(--print-line-soft); }
}


/* ---------- 行程单微调 v13(2026-07-02):内部状态提示不进 PDF ----------
   「显示已保存的行程(未重算路况)…」/「为估算距离(无实时路况)…」是运营端状态条,
   打印(客户 PDF)一律隐藏。 */
@media print { .planner-page .planner-estnote { display: none !important; } }


/* ---------- 行程单微调 v7(2026-07-02):PDF(打印)表头字号 ----------
   老板:「主要是调 PDF,标题调成 15px」——之前 v4/v5 的表头加大都是 @media screen,
   打印 PDF 里没生效(PDF 表头一直是 7.4px)。本轮把 PDF 表头也调成 15px(与屏幕统一)。
   覆盖打印基础规则的 7.4px;数据行/列宽/打印几何不动。 */
@media print { .planner-page .planner-table th { font-size: 15px; } }


/* ---------- Design v165 行程单打印稿修正(2026-07-03 落库;对照实际打印稿 2026NBC102 ----------
   1) 空「说明 Notes:」整块隐藏(内容为空时不印);
   2) 备注列 14%→16%(Summer camp drop-off 类短语不再断三行),目的地列 38%→36% 让出
      (⚠ 适配:本仓距离列已加宽到 11%,故从目的地让,与包内 40/16 等效、合计仍 100%);
   3) 备注/打印禁连字符断词;4) 午餐状态行弱化色(配合 colspan 改造)。 */
.planner-note-print:empty { display: none !important; }
body.planner-page .planner-table th:nth-child(3), body.planner-page .planner-table td:nth-child(3) { width: 36%; }
body.planner-page .planner-table th:nth-child(7), body.planner-page .planner-table td:nth-child(7) { width: 16%; }
body.planner-page .planner-table td:nth-child(7) { hyphens: none; -webkit-hyphens: none; }
.row--lunch__status { color: var(--muted); }
@media print {
  .planner-page .planner-table th:nth-child(3), .planner-page .planner-table td:nth-child(3) { width: 36%; }
  .planner-page .planner-table th:nth-child(7), .planner-page .planner-table td:nth-child(7) { width: 16%; }
  .planner-page .planner-table td { hyphens: none; -webkit-hyphens: none; }
}
/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  OPS 视觉效率 PATCH(2026-07-03)── 全站扫描修正 · append-only           ║
   ║  A 筛选工具条收成单行  B 列头吸顶  C 下拉补箭头  D 去重复钮 / 按钮不折行   ║
   ║  删除本段即整体回退,不改任何 id / 行为。                                  ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

/* A. 列表页筛选工具条:原先搜索/下拉/司机筛选各占一整行(builder-input width:100%
      在 flex 容器里挤成独行),首屏浪费 ~150px。收成单行:搜索框弹性 240–420px,
      下拉按内容自适应,「+新增」起的动作组靠右 —— 视线:筛选在左、动作在右。 */
body.planner-page .trips-toolbar > .builder-input { width: auto; flex: 0 1 auto; }
body.planner-page .trips-toolbar > input[type="search"] { flex: 1 1 240px; min-width: 190px; max-width: 420px; }
body.planner-page .trips-toolbar > select.builder-input { flex: 0 0 auto; width: auto; }
body.planner-page .trips-toolbar > input#fin-driver { flex: 0 1 130px; min-width: 104px; }
body.planner-page .trips-toolbar > .btn--primary { margin-left: auto; }
body.planner-page .trips-toolbar > #ho-print-confirm { margin-left: auto; }
body.planner-page .trips-toolbar .btn { white-space: nowrap; }

/* B. 列头吸顶:长列表滚动时列名常驻(top=48px 吸顶站点页头高度) */
body.planner-page .fin-table-head { position: sticky; top: 48px; z-index: 6; }
body.planner-page .trips-row--head { position: sticky; top: 48px; z-index: 6; background: var(--bg); }

/* C. 下拉框补箭头:appearance:none 后原生箭头消失,运营分不清「输入框/下拉」 */
body.planner-page select.builder-input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235D6274' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 12px;
  padding-right: 30px;
}

/* D. 杂项:hotel-orders 工具条里与页头重复的刷新钮隐藏(id/绑定保留);
      工具按钮永不折行(修复行程规划页「Refresh hotels from orders」两行);
      指标卡最小宽 148→132px,1280–1440 桌面 hotel-orders 7 张卡一行放下。 */
body.planner-page .trips-toolbar #ho-refresh2 { display: none; }
body.planner-page .planner-actions .btn { white-space: nowrap; }
body.planner-page .fin-summary { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
body.planner-page .fin-stat__main { font-size: 19px; white-space: nowrap; }   /* USD 3,366.00 不折行,卡片等高 */
/* 弹窗补扫(2026-07-03):Invoice 项目确认弹窗 标题/说明本应两行,span 内联挤成一行粘连
   (「接机JFK-Hyatt…」)——按原设计恢复堆叠 */
body.planner-page .fin-invoice-pick__title { display: block; }
body.planner-page .fin-invoice-pick__sub { display: block; }

/* E. 老板拍板(2026-07-03)：保留并推广「原版彩色立体圆钮」(fin-modal 头部同款渐变族)。
      1) 行程规划工具栏 5 动作 → 彩色圆钮：靶车=计算 · 青↻=按订单刷新住宿 · 浅靶JSON=导入
         · 绿+=添加预约 · 红垃圾桶=重置；id/绑定不变，禁用态降透明(文字反馈仍在 import-msg)。
      2) 列表页 ops-round 刷新钮 → 同族青色立体圆钮。
      3) trip 页头文档圆钮的扁平化覆盖已在 §10 处撤销，恢复原版。 */
body.planner-page .planner-actions .fin-round-action {
  appearance: none; cursor: pointer; width: 44px; height: 44px; min-width: 44px; flex: 0 0 44px; padding: 0;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font: inherit; line-height: 1; font-weight: 800;
  border: 1px solid #3c4368;
  background: linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%);
  box-shadow: 0 3px 6px rgba(37,42,77,.34), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16);
  transition: transform .09s ease, box-shadow .14s ease, filter .14s ease;
}
body.planner-page .planner-actions .fin-round-action:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 5px 11px rgba(37,42,77,.40), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
body.planner-page .planner-actions .fin-round-action:active { transform: translateY(1px); filter: brightness(.96); box-shadow: 0 1px 2px rgba(37,42,77,.40), inset 0 2px 4px rgba(0,0,0,.26); }
body.planner-page .planner-actions .fin-round-action:disabled { opacity: .62; cursor: wait; transform: none; filter: grayscale(.08); }
body.planner-page .planner-actions .fin-round-action svg { width: 21px; height: 21px; display: block; fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0,0,0,.28)); }
body.planner-page .planner-actions .fin-round-action--hsync { font-size: 21px; background: linear-gradient(180deg,#55aebe 0%,#2e8998 52%,#236d7a 100%); border-color: #1d5f6a; }
body.planner-page .planner-actions .fin-round-action--json { font-size: 12px; letter-spacing: .02em; background: linear-gradient(180deg,#8b93c9 0%,#6570ad 52%,#4d568e 100%); border-color: #434b7a; }
body.planner-page .planner-actions .fin-round-action--add { font-size: 25px; font-weight: 600; background: linear-gradient(180deg,#4fa979 0%,#2f845d 52%,#246a4b 100%); border-color: #1f5d42; }
body.planner-page .planner-actions .fin-round-action--reset { background: linear-gradient(180deg,#df725e 0%,#bc4434 52%,#963126 100%); border-color: #842a21; }
/* 列表页刷新圆钮同族青色(后于既有 ops-round 规则，同特异度后者胜) */
body.planner-page .ops-round { color: #fff; border: 1px solid #1d5f6a; background: linear-gradient(180deg,#55aebe 0%,#2e8998 52%,#236d7a 100%); box-shadow: 0 3px 6px rgba(29,95,106,.30), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.16); transition: transform .09s ease, box-shadow .14s ease, filter .14s ease; }
body.planner-page .ops-round:hover { color: #fff; background: linear-gradient(180deg,#55aebe 0%,#2e8998 52%,#236d7a 100%); border-color: #1d5f6a; filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 5px 11px rgba(29,95,106,.38), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -2px 3px rgba(0,0,0,.16); }
body.planner-page .ops-round:active { transform: translateY(1px); filter: brightness(.96); }
body.planner-page .ops-round svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.24)); }

/* F. 全局统一规范(2026-07-03 老板 prompt):按钮/工具栏/表格 —— 保留厚实运营气质,只统一。要点:
      - 列表页工具栏控件统一高 36px(输入/下拉/主钮/次钮/圆钮),间距 8px。
      - primary = 深靛立体填充(与彩色圆钮同族,覆盖 §4 的过度扁平),secondary = 白底描边+轻托底,
        icon-only = 彩色立体圆钮,badge = 浅底小胶囊(§5 既有),destructive = 红。
      - 搜索框带放大镜:一眼区分「搜索 / 下拉 / 文本筛选」。 */
body.planner-page .trips-toolbar > .builder-input,
body.planner-page .trips-toolbar > .btn,
body.planner-page .planner-output-head .btn { height: 36px; min-height: 36px; }   /* 落库修正:基础 .btn 有 min-height:42px,需一并压到 36 才生效 */
body.planner-page .trips-toolbar > .builder-input { padding-top: 0; padding-bottom: 0; }
body.planner-page .trips-toolbar > .btn, body.planner-page .planner-output-head .btn { display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
body.planner-page .ops-round { width: 36px; height: 36px; min-width: 36px; }
/* 通用图标圆钮(打印/复制/下载/发送/手机/关闭等)——复用 .ops-round 青立体,但去掉刷新键的 :active 旋转(全站按钮统一单键化 v182) */
body.planner-page .ops-round.ops-ico:active svg { transform: none; }
body.planner-page .ops-round.ops-ico--close { width: 30px; height: 30px; min-width: 30px; }
body.planner-page .ops-round.ops-ico--close svg { width: 15px; height: 15px; }
/* 图标圆钮「已复制」绿色闪(btn-copy/btn-copy-json 图标化后丢了 .btn.is-done,补上)*/
body.planner-page .ops-round.is-done { background: linear-gradient(180deg,#4d9e6a 0%,#357a4f 100%); border-color: #2c6641; color: #fff; }
/* 图标圆钮分组配色(老板 2026-07-03:按功能分组,同类同色)——行程单组=靛蓝、保存=绿;数据/工具=默认青 */
body.planner-page .ops-round.ops-ico--sheet, body.planner-page .ops-round.ops-ico--sheet:hover { background: linear-gradient(180deg,#6b77b0 0%,#485392 100%); border-color: #3e487e; }
body.planner-page .ops-round.ops-ico--save,  body.planner-page .ops-round.ops-ico--save:hover  { background: linear-gradient(180deg,#57a578 0%,#3c7d54 100%); border-color: #2f6543; }
/* 行程编辑器:景点/自定义地址 的地址自动补全下拉 */
.planner-field--ac { position: relative; }
.planner-ac { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 2px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgba(44,49,87,.16); max-height: 220px; overflow-y: auto; }
.planner-ac__item { padding: 8px 11px; font-size: 12.5px; color: var(--ink); cursor: pointer; white-space: normal; line-height: 1.35; }
.planner-ac__item:hover { background: #f2f0fb; }
body.planner-page input[type="search"].builder-input {
  padding-left: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.6' fill='none' stroke='%235D6274' stroke-width='1.5'/%3E%3Cpath d='M10.4 10.4 14 14' stroke='%235D6274' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 9px center; background-size: 15px 15px;
}
body.planner-page .btn--primary {
  background: linear-gradient(180deg,#6A76B5 0%,#535C8B 55%,#474F7C 100%);
  border: 1px solid #3C4368; color: #fff;
  box-shadow: 0 2px 4px rgba(37,42,77,.24), inset 0 1px 0 rgba(255,255,255,.22);
}
body.planner-page .btn--primary:hover { background: linear-gradient(180deg,#6A76B5 0%,#535C8B 55%,#474F7C 100%); filter: brightness(1.06); }
body.planner-page .btn--primary:active { filter: brightness(.96); box-shadow: 0 1px 2px rgba(37,42,77,.30), inset 0 2px 4px rgba(0,0,0,.20); }
/* 次要文字按钮:奶白立体(老板裁决 2026-07-03,全站按钮统一立体风格)——与紫立体主键/青立体圆钮同质感,但奶白低调不喧宾夺主 */
body.planner-page .btn--ghost {
  background: linear-gradient(180deg, #ffffff 0%, #f6f1e7 100%);
  border: 1px solid #e2dbc9; color: var(--brand-deep);
  box-shadow: 0 2px 4px rgba(44,49,87,.13), inset 0 1px 0 rgba(255,255,255,.95);
}
body.planner-page .btn--ghost:hover { background: linear-gradient(180deg, #ffffff 0%, #f6f1e7 100%); border-color: #ccc2ac; color: var(--brand-deep); filter: brightness(1.02); box-shadow: 0 4px 8px rgba(44,49,87,.16), inset 0 1px 0 rgba(255,255,255,.95); }
body.planner-page .btn--ghost:active { filter: brightness(.97); box-shadow: 0 1px 2px rgba(44,49,87,.2), inset 0 2px 4px rgba(0,0,0,.09); }
body.planner-page .trips-toolbar { margin-bottom: 8px; }   /* 工具栏与表格连成整体 */


/* ---------- 通知台(运营待办聚合,2026-07-03 P0)---------- */
body.planner-page .todo-sec { margin: 16px 0 6px; }
body.planner-page .todo-sec__h { font-size: 14.5px; font-weight: 700; color: var(--brand-deep); margin: 0 0 8px; display: flex; align-items: center; gap: 7px; }
body.planner-page .todo-sec__n { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 9px; }
body.planner-page .todo-sec__h--danger .todo-sec__n { background: #B3261E; }
body.planner-page .todo-sec__h--warn .todo-sec__n { background: #8a5a16; }
body.planner-page .todo-list { display: flex; flex-direction: column; gap: 6px; }
body.planner-page .todo-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--st-warn-line); background: var(--st-warn-bg); color: var(--st-warn); border-radius: 9px; text-decoration: none; font-size: 13px; transition: border-color .12s ease, transform .09s ease; }
body.planner-page .todo-item:hover { border-color: var(--st-warn); transform: translateY(-1px); }
body.planner-page .todo-item.is-danger { border-color: var(--st-danger-line); background: var(--st-danger-bg); color: var(--st-danger); }
body.planner-page .todo-item.is-danger:hover { border-color: var(--st-danger); }
body.planner-page .todo-item.is-info { border-color: var(--st-info-line); background: var(--st-info-bg); color: var(--st-info); }
body.planner-page .todo-item.is-info:hover { border-color: var(--st-info); }
body.planner-page .todo-item__ctx { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34%; flex: 0 0 auto; }
body.planner-page .todo-item__text { flex: 1 1 auto; min-width: 0; }
body.planner-page .todo-item__due { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
/* 行前检查单(通知台 P1):可勾选行 */
body.planner-page .todo-item--task { cursor: pointer; }
body.planner-page .todo-item__cb { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--brand); cursor: pointer; margin: 0; }
body.planner-page .todo-item.is-doing { opacity: .55; }
body.planner-page .todo-item.is-done { opacity: .3; text-decoration: line-through; }
/* 接送弹窗头部动作:图标圆钮 → 文字胶囊按钮(老板 2026-07-03「所有按钮统一风格」→ 文字标签) */
body.planner-page #fin-modal .fin-head-btn { width: auto; min-width: 0; flex: 0 0 auto; height: 34px; min-height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1; gap: 5px; }
body.planner-page #fin-modal .fin-head-btn.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--brand-deep); box-shadow: 0 1px 2px rgba(44,49,87,.08); }
body.planner-page #fin-modal .fin-head-btn.btn--ghost:hover { border-color: var(--brand); background: #fff; filter: none; transform: none; }
body.planner-page #fin-modal .fin-head-btn--danger { color: #B3261E; border-color: #e7b3ad; }
body.planner-page #fin-modal .fin-head-btn--danger:hover { border-color: #B3261E; background: #fbe9e7; color: #B3261E; }

/* ============================================================
   UI 执行标准基线(2026-07-23 全站审核修复批)——《UI执行标准》§1/§2/§7/§8
   共享组件:四级按钮 / 圆形关闭钮 / 同步绿点 / 收窄工作区。
   文件末尾追加 = 同特异度后者胜,压过历史青渐变/42px 等遗留规则。
   ============================================================ */
/* 四级按钮体系(§2)。基准高 28px、12px 字号、6-8px 圆角 */
body.planner-page .wb-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:28px; min-height:28px; padding:0 12px; font-size:12px; font-weight:600; line-height:1; border-radius:7px; cursor:pointer; white-space:nowrap; transition:transform .09s ease, box-shadow .14s ease, filter .14s ease; }
body.planner-page .wb-btn--primary { color:#fff; background:linear-gradient(180deg,#727dba 0%,#535c8b 52%,#454d78 100%); border:1px solid #3c4368; box-shadow:0 2px 4px rgba(37,42,77,.30), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -2px 3px rgba(0,0,0,.15); }
body.planner-page .wb-btn--primary:hover { filter:brightness(1.06); }
body.planner-page .wb-btn--primary:active { transform:translateY(1px); filter:brightness(.96); }
body.planner-page .wb-btn--sec { color:#2C3157; background:linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); border:1px solid rgba(44,49,87,.22); box-shadow:0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.75); }
body.planner-page .wb-btn--sec:hover { filter:brightness(1.03); }
body.planner-page .wb-btn--sec:active { transform:translateY(1px); }
/* 重复操作圆形图标钮(白渐变);危险=红描边圆钮(§2:删除绝不用裸红字) */
body.planner-page .wb-round { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; border-radius:50%; color:#2C3157; background:linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); border:1px solid rgba(44,49,87,.22); box-shadow:0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.75); cursor:pointer; transition:transform .09s ease, filter .14s ease; }
body.planner-page .wb-round:hover { filter:brightness(1.04); }
body.planner-page .wb-round:active { transform:translateY(1px); }
body.planner-page .wb-round--danger { color:#B3261E; border-color:#F0C4BC; background:linear-gradient(180deg,#ffffff 0%,#fdf3f1 100%); box-shadow:0 1px 3px rgba(132,42,33,.16), inset 0 1px 0 rgba(255,255,255,.8); }
body.planner-page .wb-round--danger:hover { filter:none; background:linear-gradient(180deg,#fdf3f1 0%,#f8e2dd 100%); }
/* 弹窗圆形关闭钮 = 白渐变圆(§8);26px 用于 22px 紧凑页头场景 */
body.planner-page .wb-close { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; padding:0; border-radius:50%; color:#5D6274; background:linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); border:1px solid rgba(44,49,87,.22); box-shadow:0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.75); cursor:pointer; }
body.planner-page .wb-close:hover { color:#2C3157; }
body.planner-page .wb-close:active { transform:translateY(1px); }
/* 同步绿点(§2:云端连接状态=绿点,title 说明;失败红点+错误代码灰字) */
body.planner-page .wb-syncdot { display:inline-flex; align-items:center; gap:5px; font-size:11px; color:#8B8FA3; white-space:nowrap; }
body.planner-page .wb-syncdot i { width:7px; height:7px; border-radius:50%; background:#1F7A4D; box-shadow:0 0 0 3px rgba(31,122,77,.14); flex:none; }
body.planner-page .wb-syncdot.is-err i { background:#B3261E; box-shadow:0 0 0 3px rgba(179,38,30,.14); }
/* 工作区收窄靠左(§1 首条):列表页 .wrap 加 .wrap--left;trip 详情/规划器宽版页暂豁免(画板即宽版) */
body.planner-page .wrap.wrap--left { width:min(1100px, calc(100% - 56px)); margin:0 0 0 28px; }
/* 遗留青渐变 .ops-round 收敛为标准白渐变圆钮(A7 根因,文件序后者胜 4112 行旧规则) */
body.planner-page .ops-round { color:#2C3157; border:1px solid rgba(44,49,87,.22); background:linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); box-shadow:0 1px 3px rgba(30,40,80,.12), inset 0 1px 0 rgba(255,255,255,.75); }
body.planner-page .ops-round:hover { color:#2C3157; border-color:rgba(44,49,87,.32); background:linear-gradient(180deg,#ffffff 0%,#eef0f6 100%); filter:brightness(1.03); transform:translateY(-1px); box-shadow:0 3px 7px rgba(30,40,80,.16), inset 0 1px 0 rgba(255,255,255,.8); }
body.planner-page .ops-round:active { transform:translateY(1px); filter:brightness(.97); }

/* ===== 费用明细 v5 · 轻度统一(老板 2026-09-06):原版框架不动(紫色横幅居中标题 / 深紫表头白字 / 原列宽行距对齐 / 原合计区),
   只统一 品牌紫 #5B6292、基础字体、A4 页边距(上 14mm 左右 16mm)、每页页脚;汇总小字与三行脚注按范本恢复。 ===== */
.fee-doc { --fd-brand: #5B6292; --fd-brand-2: #5B6292; --fd-blue: #5B6292;
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; border: 0; border-radius: 0; background: transparent; }
.fee-doc * { font-family: inherit; }
.fee-doc__head { background-image: none; background-color: var(--fd-brand); }   /* 横幅保留,紫色统一为品牌紫、去渐变 */
.fee-doc__page1, .fee-doc__paypage, .fee-doc__clausepage { position: relative; box-sizing: border-box; background: #fff; padding: 53px 60px 62px; min-height: 1123px; margin: 0 0 16px; border: 1px solid var(--fd-line-soft); }
.fee-doc__page1 { display: flex; flex-direction: column; }
.fee-doc__page1 .fee-doc__notes { margin-top: auto; }
.fee-doc__summary tbody tr:first-child:not(:last-child) td { padding-bottom: 2px; }   /* 有小字行时数值紧贴小字 */
.fee-doc__snote td { padding: 0 6px 7px !important; border-bottom: 1px solid var(--fd-line-soft) !important; line-height: 1.2; }
.fee-doc__snote td:nth-child(3), .fee-doc__snote td:nth-child(5) { font-size: 9.5px; color: var(--fd-mute); font-weight: 400; }
.fee-doc__trow.is-strong > .num { font-weight: 700; }   /* 只对最终应付金额适度加粗 */
.fee-doc__updated { display: none; }   /* 更新时间进页脚 */
.fee-doc__foot { left: 60px; right: 60px; bottom: 26px; }
@media print {
  .planner-page #quote-doc { padding: 0 !important; width: 210mm !important; min-height: 0; }
  .planner-page .fee-doc__page1, .planner-page .fee-doc__paypage, .planner-page .fee-doc__clausepage { width: 210mm; height: 297mm; min-height: 0; margin: 0; padding: 14mm 16mm 16mm !important; border: 0; overflow: hidden; display: flex; flex-direction: column; break-after: page; page-break-after: always; break-before: auto; page-break-before: auto; }
  .planner-page .fee-doc > :last-child { break-after: auto; page-break-after: auto; }
  .planner-page .fee-doc__page1 .fee-doc__notes { margin-top: auto; }
  .planner-page .fee-doc__payfoot { margin-top: auto; padding-bottom: 0; }
  .planner-page .fee-doc__foot { left: 16mm; right: 16mm; bottom: 7mm; }
}
