:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3ec;
  --ink: #17211d;
  --muted: #65736d;
  --line: #d9e0da;
  --accent: #176b5b;
  --accent-2: #bf5a36;
  --accent-3: #314c7a;
  --warning: #ad7b12;
  --danger: #a33b3b;
  --shadow: 0 16px 48px rgba(24, 39, 32, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body[data-auth="anonymous"] .app-shell,
body[data-mode="landing"] .app-shell {
  display: none;
}

body:not([data-auth="anonymous"]) .landing-page {
  display: none;
}

body[data-mode="landing"] {
  background: #17211d;
}

.landing-page {
  min-height: 100vh;
  background: #17211d;
  color: #fff;
}

.landing-photo {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(23, 33, 29, 0.72), rgba(23, 33, 29, 0.26)), url("https://images.unsplash.com/photo-1541432901042-2d8bd64b4a9b?auto=format&fit=crop&w=1600&q=82");
  background-position: center;
  background-size: cover;
}

.landing-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 78% 24%, rgba(247, 200, 115, 0.2), transparent 34%);
}

.landing-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  min-height: 100vh;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
}

.landing-copy {
  max-width: 720px;
}

.landing-copy .eyebrow,
.landing-login .eyebrow {
  color: #f7c873;
}

.landing-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 0.98;
}

.landing-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.62;
}

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

.landing-points span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.landing-login {
  display: grid;
  gap: 11px;
  justify-self: end;
  width: min(100%, 320px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.landing-login h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.landing-login label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.landing-login input {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.landing-login button {
  min-height: 38px;
  width: 100%;
}

#landingLoginStatus {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

#landingLoginStatus[data-status="error"] {
  color: var(--danger);
}

#landingLoginStatus[data-status="ok"] {
  color: var(--accent);
}

.landing-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.landing-dots .hero-dot {
  background: rgba(255, 255, 255, 0.58);
}

.landing-dots .hero-dot.active {
  background: #f7c873;
}

body[data-mode="guest"] .nav-tab:not([data-tab="overview"]):not([data-tab="group"]):not([data-tab="money"]):not([data-tab="planning"]):not([data-tab="lodging"]):not([data-tab="guest"]):not([data-tab="genie"]),
body[data-mode="guest"] .top-actions,
body[data-mode="guest"] #openAdminView,
body[data-mode="guest"] .admin-only {
  display: none;
}

body[data-mode="admin"] .participant-only {
  display: none;
}

body[data-mode="admin"] .prep-grid,
body[data-mode="guest"] .prep-grid {
  grid-template-columns: 1fr;
}

body[data-mode="guest"][data-auth="anonymous"] .guest-protected,
body[data-mode="guest"][data-auth="must-change"] .guest-protected {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 22px;
  background: #17211d;
  color: #f9fbf6;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f7c873;
  color: #17211d;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: #bfc8c2;
  font-size: 13px;
}

.nav-tabs {
  display: grid;
  gap: 6px;
}

.nav-tab {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d8dfda;
  text-align: left;
}

.nav-tab.active,
.nav-tab:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.genie-nav-tab {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
}

.genie-nav-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.genie-nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.genie-nav-avatar .genie-shadow {
  width: 34px;
  height: 34px;
}

.genie-nav-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.genie-nav-copy span,
.genie-nav-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.genie-nav-copy span {
  font-weight: 800;
}

.genie-nav-copy small {
  color: #bfc8c2;
  font-size: 11px;
  font-weight: 700;
}

.genie-nav-tab.active .genie-nav-copy small,
.genie-nav-tab:hover .genie-nav-copy small {
  color: rgba(255, 255, 255, 0.78);
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.sidebar-panel strong {
  display: block;
  margin-top: 5px;
}

.sidebar-panel small {
  display: block;
  margin-top: 8px;
  color: #bfc8c2;
  font-size: 12px;
}

.progress-track {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-track span {
  display: block;
  width: 50%;
  height: 100%;
  background: #f7c873;
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.section-header,
.panel-title,
.top-actions,
menu {
  display: flex;
  align-items: center;
}

.topbar,
.section-header,
.panel-title {
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 18px;
}

.topbar h1,
.section-header h2,
.panel-title h3 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.section-header {
  margin: 28px 0 16px;
}

.section-header h2 {
  font-size: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #aeb9b2;
}

.top-actions,
menu {
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-button,
.file-button,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.primary-button {
  padding: 0 15px;
  background: var(--accent);
  color: #fff;
}

.secondary-button,
.file-button {
  padding: 0 14px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.text-button {
  min-height: 32px;
  padding: 0 8px;
  background: transparent;
  color: var(--accent);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
}

.hero-strip {
  min-height: clamp(380px, 52vh, 620px);
  margin: -24px -24px 24px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #101916;
  box-shadow: var(--shadow);
}

.hero-photo {
  position: relative;
  min-height: clamp(380px, 52vh, 620px);
  background-image: linear-gradient(90deg, rgba(23, 33, 29, 0.18), rgba(23, 33, 29, 0.02)), url("https://images.unsplash.com/photo-1552832230-c0197dd311b5?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 13, 0.72), rgba(8, 16, 13, 0.16) 58%, rgba(8, 16, 13, 0.62)),
    linear-gradient(0deg, rgba(8, 16, 13, 0.62), rgba(8, 16, 13, 0.02) 52%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 64px);
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy span,
.hero-participants > span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(52px, 8vw, 106px);
  line-height: 0.92;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 750;
}

.hero-copy strong {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 18px;
}

.hero-participants {
  width: min(280px, 28vw);
  padding-bottom: 4px;
}

.hero-traveler-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hero-traveler-list span {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 750;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  pointer-events: auto;
}

.hero-dot.active {
  width: 26px;
  background: #ffffff;
}

.metric span,
.cost-row span,
.option-card span {
  color: var(--muted);
  font-size: 13px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.form-grid,
.preference-grid,
.flight-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  min-height: 98px;
  padding: 10px 12px;
  resize: vertical;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.info-grid,
.overview-grid,
.split-layout,
.single-layout,
.guest-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.single-layout {
  grid-template-columns: 1fr;
}

.overview-grid {
  margin-top: 16px;
}

.welcome-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  background: linear-gradient(135deg, #eef7f2, #fff8e8);
}

.welcome-panel .eyebrow,
.welcome-panel h3,
.welcome-panel p {
  margin: 0;
}

.welcome-panel h3 {
  font-size: 24px;
}

.welcome-panel p {
  max-width: 920px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.info-panel,
.metric,
.receipt-card,
.document-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.info-panel {
  padding: 18px;
}

.panel-title {
  margin-bottom: 14px;
}

.panel-title span,
.status-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.fact-list,
.cost-stack,
.option-list,
.cost-items,
.timeline,
.receipt-board,
.document-grid {
  display: grid;
  gap: 10px;
}

.fact-item,
.cost-row,
.option-card,
.timeline-day,
.receipt-card,
.document-card {
  padding: 13px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.fact-item strong,
.cost-row strong,
.option-card strong {
  display: block;
  margin-bottom: 5px;
}

.fact-value {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.currency-rate-card {
  display: grid;
  gap: 8px;
}

.currency-rate-card.warning {
  color: var(--danger);
}

.currency-rate-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.currency-rate-head strong {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.currency-rate-head span,
.currency-rate-card small {
  color: var(--muted);
}

.currency-rate-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.currency-rate-grid span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.booking-handoff {
  display: grid;
  gap: 12px;
}

.booking-handoff-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-handoff-actions .secondary-button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.booking-handoff-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.booking-handoff-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.booking-handoff-summary div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.booking-handoff-summary span,
.handoff-card span,
.handoff-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.booking-handoff-summary strong,
.handoff-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.booking-package-overview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(23, 107, 91, 0.16);
  border-radius: 8px;
  background: #fff;
}

.booking-package-overview.ready {
  border-color: rgba(23, 107, 91, 0.26);
  background: #eef8f2;
}

.booking-package-overview.warning {
  border-color: rgba(164, 91, 23, 0.22);
  background: #fff8ed;
}

.booking-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.booking-package-head strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.booking-package-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.booking-package-overview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.booking-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.booking-package-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.booking-package-grid div.ready {
  border-color: rgba(23, 107, 91, 0.22);
  background: #f3fbf6;
}

.booking-package-grid div.warning {
  border-color: rgba(164, 91, 23, 0.22);
  background: #fffaf1;
}

.booking-package-grid span,
.booking-package-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.booking-package-grid strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.booking-package-grid small {
  margin-top: 4px;
  text-transform: none;
}

.partnerapi-package-overview {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 107, 91, 0.12);
}

.partnerapi-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.partnerapi-package-head strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.partnerapi-package-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.partnerapi-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.partnerapi-package-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.partnerapi-package-grid div.proven {
  border-color: rgba(23, 107, 91, 0.24);
  background: #effaf4;
}

.partnerapi-package-grid div.pending {
  border-color: rgba(77, 104, 124, 0.22);
  background: #f6f9fb;
}

.partnerapi-package-grid div.sample,
.partnerapi-package-grid div.needs-adapter {
  border-color: rgba(164, 91, 23, 0.22);
  background: #fffaf1;
}

.partnerapi-package-grid div.missing,
.partnerapi-package-grid div.error {
  border-color: rgba(179, 63, 63, 0.24);
  background: #fff5f5;
}

.partnerapi-package-grid span,
.partnerapi-package-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.partnerapi-package-grid strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.partnerapi-package-grid small {
  margin-top: 4px;
  text-transform: none;
}

.booking-handoff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-handoff-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.handoff-route-box {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(32, 94, 120, 0.15);
  border-radius: 8px;
  background: #f8fbfc;
}

.handoff-route-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.handoff-route-head span,
.handoff-route-head small,
.handoff-route-list span,
.handoff-route-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.handoff-route-head strong,
.handoff-route-list strong {
  display: block;
  overflow-wrap: anywhere;
}

.handoff-route-head small {
  text-align: right;
}

.handoff-route-list {
  display: grid;
  gap: 8px;
}

.handoff-route-list > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.handoff-route-list > div.ready {
  border-color: rgba(23, 107, 91, 0.22);
  background: #f3fbf6;
}

.handoff-route-list > div.pending {
  border-color: rgba(164, 91, 23, 0.22);
  background: #fffaf1;
}

.handoff-route-list > div.partial,
.handoff-route-list > div.sample {
  border-color: rgba(180, 126, 35, 0.28);
  background: #fff8e8;
}

.handoff-route-list > div.stale {
  border-color: rgba(182, 84, 30, 0.32);
  background: #fff3e9;
}

.handoff-route-list small {
  text-transform: none;
}

.handoff-route-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.handoff-route-badges em {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(32, 94, 120, 0.1);
  color: #285f59;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.handoff-route-list .external-link {
  justify-self: start;
}

.handoff-route-list > div > em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.handoff-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 107, 91, 0.16);
  border-radius: 8px;
  background: #f7fbf8;
}

.handoff-card.missing {
  border-style: dashed;
  background: #fbfbf7;
}

.handoff-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.handoff-card p,
.handoff-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.handoff-readiness {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.handoff-readiness.ready {
  border-color: rgba(23, 107, 91, 0.28);
  background: #eef8f2;
}

.handoff-readiness.warning {
  border-color: rgba(164, 91, 23, 0.28);
  background: #fff8ed;
}

.handoff-readiness strong {
  color: var(--ink);
  font-size: 13px;
}

.handoff-readiness span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
}

.handoff-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.handoff-checklist span {
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: none;
}

.handoff-checklist .ok {
  background: #e6f5ee;
  color: #16634f;
}

.handoff-checklist .todo {
  background: #f6eee8;
  color: #7a3e20;
}

.handoff-order-steps {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(32, 94, 120, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.handoff-order-steps strong {
  color: var(--ink);
  font-size: 12px;
}

.handoff-order-steps ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.handoff-order-steps li {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.handoff-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.handoff-checks span {
  padding: 5px 7px;
  border-radius: 999px;
  background: #fff8ed;
  color: #73451f;
  font-size: 11px;
  font-weight: 900;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.transport-stack {
  display: grid;
  gap: 8px;
}

.transport-option {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.transport-option strong {
  color: var(--ink);
  font-size: 14px;
}

.transport-option span,
.transport-option small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.compact-list li + li {
  margin-top: 6px;
}

.cost-panel {
  display: grid;
  gap: 14px;
}

.cost-panel .panel-title {
  margin-bottom: 0;
}

.cost-travel-brief {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.brief-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.brief-title strong {
  font-size: 15px;
}

.brief-title span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.brief-list {
  display: grid;
  gap: 8px;
}

.brief-list div {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.brief-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-list p,
.brief-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.brief-list a,
.source-links a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.brief-list a:hover,
.source-links a:hover {
  text-decoration: underline;
}

.brief-note {
  padding: 0 2px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}

.prep-admin-panel,
.prep-read-panel,
.prep-notes-panel {
  display: grid;
  gap: 14px;
}

.prep-admin-panel label,
.prep-note-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.prep-admin-panel textarea {
  min-height: 88px;
  line-height: 1.45;
}

.prep-admin-panel textarea:disabled {
  background: var(--surface-soft);
  color: var(--muted);
  opacity: 1;
}

.admin-only-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.prep-summary {
  display: grid;
  gap: 10px;
}

.prep-summary-item,
.prep-note {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.prep-summary-item strong,
.prep-note strong {
  display: block;
  margin-bottom: 5px;
}

.prep-summary-item p,
.prep-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.prep-notes-panel {
  margin-top: 16px;
}

.prep-note-form {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.prep-note-form textarea {
  min-height: 74px;
}

.prep-notes-list {
  display: grid;
  gap: 10px;
}

.prep-note {
  display: grid;
  gap: 10px;
}

.prep-note.pinned {
  border: 1px solid rgba(23, 107, 91, 0.3);
  background: #e8f4f0;
}

.prep-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prep-note-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.prep-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-text {
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td input,
td select {
  min-height: 36px;
}

td:last-child {
  width: 50px;
}

.members-list {
  display: grid;
  gap: 12px;
}

.member-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.member-card-top {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) minmax(120px, 150px) minmax(110px, 130px) 42px 42px;
  gap: 10px;
  align-items: start;
}

.member-card-top.readonly {
  grid-template-columns: 72px minmax(0, 1fr) minmax(112px, 140px) minmax(116px, 150px);
  align-items: center;
}

.member-avatar-block {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
}

.member-avatar-uploader {
  display: grid;
  gap: 0;
  min-width: 0;
  cursor: pointer;
}

.member-avatar-uploader input {
  display: none;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(23, 107, 91, 0.18);
  border-radius: 999px;
  background: #eef4f0;
}

.member-avatar.has-photo {
  border-color: rgba(23, 107, 91, 0.35);
  background: var(--surface);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-placeholder {
  position: relative;
  display: block;
  width: 38px;
  height: 42px;
}

.member-avatar-placeholder::before,
.member-avatar-placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #91a69d;
}

.member-avatar-placeholder::before {
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
}

.member-avatar-placeholder::after {
  bottom: 3px;
  width: 32px;
  height: 19px;
  border-radius: 18px 18px 8px 8px;
}

.member-avatar-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.avatar-remove-button {
  min-height: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.2;
}

.member-identity {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.member-name-input {
  width: var(--name-ch, 12ch);
  max-width: 100%;
  min-width: 7ch;
  padding: 8px 9px;
  font-weight: 800;
}

.member-email-input {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
}

.member-identity-readonly strong,
.member-identity-readonly span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-identity-readonly strong {
  font-size: 16px;
}

.member-identity-readonly span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.member-readonly-chip {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.member-readonly-chip span,
.member-readonly-note span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.member-readonly-chip strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.member-readonly-note {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.member-readonly-note p {
  margin: 0;
  line-height: 1.45;
}

.member-control,
.member-note-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.member-control span,
.member-note-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.member-control input,
.member-control select {
  min-width: 0;
  min-height: 36px;
  padding: 8px 9px;
}

.member-deposit-control input {
  text-align: right;
}

.payment-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
}

.payment-toggle::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.payment-toggle.paid {
  border-color: rgba(23, 107, 91, 0.35);
  background: #e3f2ec;
  color: var(--accent);
}

.payment-toggle.paid::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.member-remove-button {
  width: 40px;
}

.member-note-field textarea {
  min-height: 64px;
  padding: 9px 10px;
  line-height: 1.45;
}

.member-access {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.member-access-head,
.access-userbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-access-head strong,
.member-access-head span {
  display: block;
}

.member-access-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.member-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.access-reveal {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.access-reveal label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.access-reveal input,
.access-reveal textarea {
  min-height: 34px;
  padding: 7px 8px;
  color: var(--ink);
  font-size: 12px;
}

.access-reveal small {
  color: var(--muted);
  line-height: 1.35;
}

.guest-access-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.access-tabs {
  display: grid;
  gap: 12px;
}

.access-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.compact-access-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.access-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.access-form[hidden],
.access-userbar[hidden] {
  display: none;
}

.access-userbar {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.genie-choice-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.genie-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.genie-choice-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: center;
}

.genie-choice-card.selected {
  border-color: rgba(23, 107, 91, 0.45);
  background: #e8f4f0;
}

.genie-choice-card.locked {
  grid-template-columns: 72px minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  text-align: left;
}

.genie-choice-card img {
  width: 160px;
  height: 160px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
  background: #fffaf0;
}

.genie-choice-card.locked img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
}

.genie-choice-card strong,
.genie-choice-card span {
  display: block;
}

.genie-choice-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.genie-choice-card input {
  width: auto;
  min-height: 0;
  margin-right: 5px;
  vertical-align: middle;
}

.genie-panel {
  display: grid;
  gap: 14px;
}

.genie-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.genie-portrait-wrap,
.genie-portrait,
.genie-shadow {
  width: 160px;
  height: 160px;
}

.genie-portrait-wrap {
  display: grid;
  place-items: center;
}

.genie-portrait {
  display: block;
  border-radius: 8px;
  object-fit: contain;
  background: #fffaf0;
}

.genie-shadow {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(23, 107, 91, 0.28);
  border-radius: 999px;
  background: linear-gradient(145deg, #e9f0ec, #f8faf7);
}

.genie-shadow span,
.genie-shadow::before,
.genie-shadow::after {
  content: "";
  position: absolute;
  display: block;
  background: #91a69d;
}

.genie-shadow::before {
  top: 36px;
  left: 61px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.genie-shadow::after {
  top: 82px;
  left: 43px;
  width: 74px;
  height: 42px;
  border-radius: 40px 40px 18px 18px;
}

.genie-shadow span {
  right: 32px;
  bottom: 26px;
  width: 56px;
  height: 24px;
  border-radius: 999px;
  opacity: 0.28;
}

.genie-hero-copy {
  display: grid;
  gap: 6px;
}

.genie-hero-copy strong {
  font-size: 22px;
  line-height: 1.2;
}

.genie-hero-copy span,
.genie-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.genie-actions span[data-status="warning"] {
  color: var(--warning);
}

.genie-question-field {
  display: grid;
  gap: 7px;
}

.genie-question-field span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

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

.genie-wait-message {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffaf0;
  color: var(--warning);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.genie-answer {
  min-height: 80px;
  padding: 14px;
  border-radius: 8px;
  background: #e8f4f0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.access-userbar strong {
  font-size: 14px;
}

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

.receipt-card {
  display: grid;
  gap: 8px;
}

.receipt-card.paid {
  border-color: rgba(23, 107, 91, 0.35);
  background: #ecf6f2;
}

.receipt-card.open {
  border-color: rgba(191, 90, 54, 0.25);
  background: #fff2eb;
}

.option-card {
  display: grid;
  gap: 8px;
}

.lodging-decision-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}

.lodging-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.lodging-card {
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.lodging-card-media {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.lodging-card-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.lodging-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lodging-card-head > div,
.lodging-score {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lodging-score {
  flex: 0 0 auto;
  text-align: right;
}

.lodging-facts,
.lodging-admin-row,
.lodging-feedback-form,
.lodging-decision-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lodging-feedback-form {
  align-items: end;
}

.lodging-feedback-form button {
  justify-self: start;
  white-space: nowrap;
}

.lodging-facts span {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  line-height: 1.35;
}

.lodging-feedback-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #f7faf7;
}

.lodging-card-brief {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.lodging-card-brief [data-copy-lodging-brief-status] {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.lodging-brief-fallback {
  flex: 1 0 100%;
  margin-top: 2px;
}

.lodging-feedback-form .feedback-comment {
  grid-column: 1 / -1;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.lodging-comments,
.decision-log {
  display: grid;
  gap: 8px;
}

.lodging-comment,
.decision-log-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface);
}

.lodging-comment p,
.decision-log-item p,
.final-lodging-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.final-lodging-card {
  display: grid;
  gap: 10px;
}

.placeholder-photo {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lodging-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
}

.option-summary {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.option-warning {
  margin: 0;
  color: var(--warning);
  font-size: 13px;
  line-height: 1.4;
}

.source-chip {
  justify-self: start;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff6df;
  color: var(--warning);
  font-size: 12px;
  font-weight: 800;
}

.source-chip.live {
  background: #dff2e8;
  color: #1f6d57;
}

.source-chip.sample {
  background: #fff0bd;
  color: #74510d;
}

.source-chip.benchmark {
  background: #e3effd;
  color: #245b91;
}

.source-chip.external {
  background: #edf3f5;
  color: #40535d;
}

.source-chip.manual {
  background: #eceff1;
  color: #4d5961;
}

.order-proximity-chip {
  justify-self: start;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3f5;
  color: #40535d;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.order-proximity-chip.offer {
  background: #dff2e8;
  color: #1f6d57;
}

.order-proximity-chip.search {
  background: #e3effd;
  color: #245b91;
}

.order-proximity-chip.missing {
  background: #f7dada;
  color: #9a3b38;
}

.option-evidence-detail {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6f3;
  color: #2c6758;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.option-card.selected {
  outline: 2px solid var(--accent);
  background: #e8f4f0;
}

.option-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.text-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.flight-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.flight-form {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.flight-form-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 12px;
  align-items: end;
}

.flight-form-row-secondary {
  grid-template-columns: 84px minmax(130px, 1fr) minmax(132px, 1fr) 105px minmax(126px, 1fr) 112px;
}

.flight-form button,
.flight-calendar-panel button {
  min-height: 42px;
}

.flight-calendar-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(56, 117, 101, 0.2);
  border-radius: 8px;
  background: #f7fbf8;
}

.flight-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.flight-calendar-head span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fdf3d2;
  color: #6d5f2f;
  font-size: 12px;
  font-weight: 900;
}

.flight-calendar-head strong {
  color: var(--ink);
  font-size: 15px;
}

.flight-calendar-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flight-calendar-results {
  display: grid;
  gap: 8px;
}

.flight-calendar-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(56, 117, 101, 0.14);
}

.flight-calendar-item strong {
  color: var(--ink);
  font-size: 13px;
}

.flight-calendar-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flight-calendar-item .price {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.flight-search-summary {
  min-height: 22px;
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.flight-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 0;
  margin-bottom: 12px;
}

.flight-decision-panel {
  margin-bottom: 12px;
}

.flight-decision-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(56, 117, 101, 0.2);
  border-radius: 8px;
  background: #f7fbf8;
}

.flight-decision-box.empty {
  background: #fbfbf7;
  border-style: dashed;
}

.flight-decision-box.sample {
  border-color: rgba(122, 79, 8, 0.28);
  background: #fffaf0;
}

.flight-decision-box span,
.flight-decision-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.flight-decision-box strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.flight-decision-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.flight-decision-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.flight-decision-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.flight-decision-metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.flight-decision-metrics strong {
  overflow-wrap: anywhere;
}

.sourcing-lab-panel {
  margin-top: 14px;
}

.sourcing-lab-panel .panel-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sourcing-lab-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sourcing-plan-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(32, 94, 120, 0.16);
  border-radius: 8px;
  background: #eef6f4;
}

.sourcing-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sourcing-plan-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sourcing-plan-head strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 900;
}

.sourcing-plan-head span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.sourcing-plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.sourcing-plan-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(32, 94, 120, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.sourcing-plan-grid span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.sourcing-plan-grid strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.sourcing-plan-grid small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.sourcing-plan-steps {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 16px;
  color: #245b91;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
}

.sourcing-plan-steps li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sourcing-source-matrix {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(32, 94, 120, 0.16);
  border-radius: 8px;
  background: #f7fafb;
}

.sourcing-source-matrix-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sourcing-source-matrix-head strong,
.sourcing-source-matrix-head span {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.sourcing-source-matrix-head strong {
  font-size: 14px;
  font-weight: 900;
}

.sourcing-source-matrix-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sourcing-source-matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.sourcing-source-matrix-grid div {
  display: grid;
  grid-template-rows: auto auto auto minmax(34px, auto) minmax(34px, auto);
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(32, 94, 120, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.sourcing-source-matrix-grid div.ready {
  border-color: rgba(49, 116, 96, 0.28);
  background: #eef8f2;
}

.sourcing-source-matrix-grid div.partial,
.sourcing-source-matrix-grid div.sample {
  border-color: rgba(180, 126, 35, 0.28);
  background: #fff8e8;
}

.sourcing-source-matrix-grid div.pending,
.sourcing-source-matrix-grid div.todo {
  border-color: rgba(157, 54, 54, 0.2);
  background: #fff7f5;
}

.sourcing-source-matrix-grid span,
.sourcing-source-matrix-grid strong,
.sourcing-source-matrix-grid em,
.sourcing-source-matrix-grid small {
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.sourcing-source-matrix-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sourcing-source-matrix-grid strong {
  font-size: 12px;
  font-weight: 900;
}

.sourcing-source-matrix-grid em {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(32, 94, 120, 0.1);
  color: #285f59;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.sourcing-source-matrix-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sourcing-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 107, 91, 0.14);
  border-radius: 8px;
  background: var(--surface);
}

.sourcing-card-head {
  display: grid;
  gap: 6px;
}

.sourcing-card-head span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f2ee;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sourcing-card-head strong {
  font-size: 1rem;
  line-height: 1.15;
}

.sourcing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.source-requirement-strip {
  display: grid;
  gap: 6px;
}

.source-requirement-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(23, 107, 91, 0.12);
  border-radius: 7px;
  background: #f8faf9;
}

.source-requirement-chip span {
  min-width: 44px;
  padding: 3px 5px;
  border-radius: 999px;
  background: #eef2f1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.source-requirement-chip strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.15;
}

.source-requirement-chip.ok {
  border-color: rgba(39, 121, 96, 0.24);
  background: #eff8f4;
}

.source-requirement-chip.ok span {
  background: #d7efe4;
  color: #1f6d57;
}

.source-requirement-chip.external {
  border-color: rgba(41, 105, 161, 0.22);
  background: #f1f7fd;
}

.source-requirement-chip.external span {
  background: #dbeafe;
  color: #245b91;
}

.source-requirement-chip.sample {
  border-color: rgba(162, 117, 31, 0.24);
  background: #fff8e8;
}

.source-requirement-chip.sample span {
  background: #f8e6b7;
  color: #7a5414;
}

.source-requirement-chip.pending {
  border-color: rgba(92, 104, 112, 0.22);
  background: #f5f6f7;
}

.source-requirement-chip.pending span {
  background: #e4e8eb;
  color: #4d5961;
}

.source-requirement-chip.todo {
  border-color: rgba(176, 68, 66, 0.22);
  background: #fff5f4;
}

.source-requirement-chip.todo span {
  background: #f7dada;
  color: #9a3b38;
}

.sourcing-test-steps {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(32, 94, 120, 0.12);
  border-radius: 8px;
  background: #f8faf9;
}

.sourcing-test-steps strong {
  color: #245b91;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.sourcing-test-steps span {
  position: relative;
  min-width: 0;
  padding-left: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.sourcing-test-steps span::before {
  position: absolute;
  left: 0;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 999px;
  background: #245b91;
  content: "";
}

.sourcing-protocol-grid {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(42, 113, 95, 0.16);
  border-radius: 8px;
  background: #f3f8f5;
}

.sourcing-protocol-grid div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sourcing-protocol-grid span {
  color: #2a715f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.sourcing-protocol-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.sourcing-meta-grid {
  display: grid;
  gap: 7px;
}

.sourcing-meta-grid div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sourcing-meta-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sourcing-meta-grid strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}

.sourcing-route-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(23, 107, 91, 0.14);
  border-radius: 8px;
  background: #f3f8f5;
}

.sourcing-route-brief div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sourcing-route-brief strong {
  color: #2a715f;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.sourcing-route-brief span,
.sourcing-route-brief small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.sourcing-route-brief small {
  grid-column: 1 / -1;
}

.sourcing-brief-fallback {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 104px;
  padding: 8px;
  border: 1px solid rgba(23, 107, 91, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: 700 11px/1.35 var(--font-sans);
  resize: vertical;
}

.sourcing-route-brief .secondary-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.sourcing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.sourcing-search-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sourcing-search-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-benchmark-panel {
  margin-top: 14px;
}

.sourcing-readiness-panel {
  margin-top: 12px;
}

.sourcing-readiness-box {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(41, 105, 161, 0.16);
  border-radius: 8px;
  background: #f6f9fc;
}

.sourcing-readiness-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.sourcing-readiness-head h4 {
  margin: 0;
  font-size: 1rem;
}

.sourcing-readiness-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.sourcing-readiness-head > span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e5eef7;
  color: #245b91;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sourcing-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sourcing-readiness-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(92, 104, 112, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.sourcing-readiness-item span {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef2f1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.sourcing-readiness-item strong,
.sourcing-readiness-item em,
.sourcing-readiness-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sourcing-readiness-item strong {
  font-size: 12px;
  line-height: 1.2;
}

.sourcing-readiness-item em {
  color: var(--ink);
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
}

.sourcing-readiness-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.sourcing-readiness-item.ok {
  border-color: rgba(39, 121, 96, 0.24);
  background: #f0f8f4;
}

.sourcing-readiness-item.ok span {
  background: #d7efe4;
  color: #1f6d57;
}

.sourcing-readiness-item.external {
  border-color: rgba(41, 105, 161, 0.22);
  background: #f1f7fd;
}

.sourcing-readiness-item.external span {
  background: #dbeafe;
  color: #245b91;
}

.sourcing-readiness-item.sample {
  border-color: rgba(162, 117, 31, 0.24);
  background: #fff8e8;
}

.sourcing-readiness-item.sample span {
  background: #f8e6b7;
  color: #7a5414;
}

.sourcing-readiness-item.pending {
  border-color: rgba(92, 104, 112, 0.22);
  background: #f7f8f8;
}

.sourcing-readiness-item.pending span {
  background: #e4e8eb;
  color: #4d5961;
}

.sourcing-readiness-item.todo {
  border-color: rgba(176, 68, 66, 0.22);
  background: #fff5f4;
}

.sourcing-readiness-item.todo span {
  background: #f7dada;
  color: #9a3b38;
}

.sourcing-decision-report {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(92, 104, 112, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sourcing-decision-report.ready {
  border-color: rgba(39, 121, 96, 0.22);
  background: #f0f8f4;
}

.sourcing-decision-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sourcing-decision-report-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.sourcing-decision-report-actions .secondary-button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.sourcing-decision-report-head strong {
  font-size: 13px;
}

.sourcing-decision-report-head span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e4e8eb;
  color: #4d5961;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.sourcing-decision-report.ready .sourcing-decision-report-head span {
  background: #d7efe4;
  color: #1f6d57;
}

.sourcing-decision-report-list {
  display: grid;
  gap: 7px;
}

.sourcing-decision-report-item {
  display: grid;
  grid-template-columns: minmax(118px, 0.75fr) minmax(150px, 1.25fr) minmax(82px, auto) minmax(180px, 1.2fr) minmax(132px, 0.85fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.sourcing-decision-report-item.ready {
  border-color: rgba(39, 121, 96, 0.2);
}

.decision-rank-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
  justify-items: start;
}

.decision-rank-chip {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef2f1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.decision-rank-chip.recommended {
  background: #d7efe4;
  color: #1f6d57;
}

.decision-rank-chip.backup {
  background: #dbeafe;
  color: #245b91;
}

.decision-rank-chip.incomplete {
  background: #f7dada;
  color: #9a3b38;
}

.decision-rank-chip.sample {
  background: #f8e6b7;
  color: #7a5414;
}

.decision-followup {
  display: grid;
  gap: 4px;
  min-width: 0;
  justify-items: start;
}

.decision-followup .text-link {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
}

.decision-followup small,
.decision-followup-note {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.decision-brief-button {
  min-height: 0;
  padding: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.decision-followup [data-copy-decision-brief-status] {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.sourcing-decision-report-item strong,
.sourcing-decision-report-item em,
.sourcing-decision-report-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sourcing-decision-report-item em {
  color: var(--ink);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sourcing-decision-report-item small,
.sourcing-decision-report p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.partnerapi-probe-panel {
  margin-top: 14px;
}

.partnerapi-probe-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 107, 91, 0.16);
  border-radius: 8px;
  background: #f7fbf8;
}

.partnerapi-probe-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.partnerapi-probe-head h4 {
  margin: 0;
  font-size: 1.02rem;
}

.partnerapi-probe-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.partnerapi-probe-head > span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e6f2ee;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.partnerapi-probe-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.partnerapi-probe-actions strong,
.partnerapi-probe-actions span,
.partnerapi-probe-empty,
.partnerapi-probe-result p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.partnerapi-probe-result {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.partnerapi-probe-result.ok {
  border-color: rgba(23, 107, 91, 0.28);
}

.partnerapi-probe-result.warning {
  border-color: rgba(182, 91, 42, 0.22);
}

.partnerapi-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.partnerapi-result-actions strong {
  margin-right: auto;
  font-size: 13px;
  font-weight: 900;
}

.partnerapi-result-actions span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.partnerapi-live-gate {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(32, 94, 120, 0.16);
  border-radius: 8px;
  background: #fff;
}

.partnerapi-live-gate.proven {
  border-color: rgba(40, 119, 91, 0.26);
  background: #e4f4ec;
}

.partnerapi-live-gate.pending {
  border-color: rgba(32, 94, 120, 0.2);
  background: #edf6f8;
}

.partnerapi-live-gate.sample,
.partnerapi-live-gate.needs-adapter {
  border-color: rgba(154, 119, 40, 0.26);
  background: #fff7df;
}

.partnerapi-live-gate.missing,
.partnerapi-live-gate.error {
  border-color: rgba(154, 64, 64, 0.24);
  background: #fbebeb;
}

.partnerapi-onboarding {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(32, 94, 120, 0.16);
  border-radius: 8px;
  background: #fff;
}

.partnerapi-onboarding > div {
  display: grid;
  gap: 3px;
}

.partnerapi-onboarding ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.partnerapi-onboarding small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.partnerapi-env-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.partnerapi-env-grid div,
.partnerapi-template-note,
.partnerapi-url-preview,
.partnerapi-body-preview {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.partnerapi-env-grid div.ok {
  border-color: rgba(23, 107, 91, 0.22);
  background: #eef8f2;
}

.partnerapi-env-grid div.missing {
  border-color: rgba(164, 91, 23, 0.22);
  background: #fff8ed;
}

.partnerapi-template-note {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.partnerapi-config-sheet {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(32, 94, 120, 0.14);
  border-radius: 8px;
  background: #f7fafb;
}

.partnerapi-config-sheet-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.partnerapi-config-sheet-head strong {
  font-size: 13px;
  font-weight: 900;
}

.partnerapi-config-sheet-head span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e5eef7;
  color: #245b91;
  font-size: 11px;
  font-weight: 900;
}

.partnerapi-config-rows {
  display: grid;
  gap: 7px;
}

.partnerapi-config-rows div {
  display: grid;
  grid-template-columns: auto minmax(160px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
}

.partnerapi-config-rows span {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef2f1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.partnerapi-config-rows strong,
.partnerapi-config-rows code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.partnerapi-config-rows strong {
  font-size: 12px;
  line-height: 1.25;
}

.partnerapi-config-rows code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.partnerapi-env-template {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(23, 107, 91, 0.14);
  border-radius: 8px;
  background: #f7fbf8;
}

.partnerapi-env-template-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.partnerapi-env-template-head strong {
  font-size: 13px;
  font-weight: 900;
}

.partnerapi-env-template-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.partnerapi-env-template textarea {
  min-width: 0;
  resize: vertical;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.partnerapi-sample-box {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(32, 94, 120, 0.14);
  border-radius: 8px;
  background: #f7fafb;
}

.partnerapi-sample-box label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.partnerapi-sample-box textarea {
  min-height: 96px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.partnerapi-sample-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.partnerapi-sample-actions span,
.partnerapi-sample-box label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.partnerapi-probe-metrics,
.partnerapi-mapped-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.partnerapi-quality-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.partnerapi-quality-summary {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(32, 94, 120, 0.16);
  border-radius: 8px;
  background: #fff;
}

.partnerapi-quality-summary.order-close {
  border-color: rgba(40, 119, 91, 0.24);
  background: #e4f4ec;
}

.partnerapi-quality-summary.decision-ready {
  border-color: rgba(32, 94, 120, 0.24);
  background: #e8f4f7;
}

.partnerapi-quality-summary.needs-adapter {
  border-color: rgba(154, 119, 40, 0.26);
  background: #fbf5df;
}

.partnerapi-quality-summary.not-usable,
.partnerapi-quality-summary.unknown {
  border-color: rgba(154, 64, 64, 0.24);
  background: #fbebeb;
}

.partnerapi-evidence {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(32, 94, 120, 0.16);
  border-radius: 8px;
  background: #fff;
}

.partnerapi-evidence.live {
  border-color: rgba(40, 119, 91, 0.22);
  background: #edf7f1;
}

.partnerapi-evidence.sample {
  border-color: rgba(154, 119, 40, 0.24);
  background: #fff8e4;
}

.partnerapi-probe-metrics div,
.partnerapi-mapped-preview div,
.partnerapi-quality-list div,
.partnerapi-template-diagnostics,
.partnerapi-key-list,
.partnerapi-adapter-hints {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.partnerapi-template-diagnostics.ok {
  border-color: rgba(40, 119, 91, 0.24);
  background: #edf7f1;
}

.partnerapi-template-diagnostics.todo {
  border-color: rgba(154, 119, 40, 0.26);
  background: #fbf5df;
}

.partnerapi-template-diagnostics.warning {
  border-color: rgba(154, 64, 64, 0.24);
  background: #fbebeb;
}

.partnerapi-quality-list div.ok {
  border-color: rgba(40, 119, 91, 0.24);
  background: #e8f4ed;
}

.partnerapi-quality-list div.todo {
  border-color: rgba(154, 86, 40, 0.26);
  background: #fbf0e7;
}

.partnerapi-mapped-preview div.ready {
  border-color: rgba(40, 119, 91, 0.24);
  background: #edf7f1;
}

.partnerapi-mapped-preview div.todo {
  border-color: rgba(154, 86, 40, 0.26);
  background: #fbf0e7;
}

.partnerapi-probe-metrics span,
.partnerapi-key-list span,
.partnerapi-live-gate span,
.partnerapi-onboarding span,
.partnerapi-quality-summary span,
.partnerapi-evidence span,
.partnerapi-quality-list span,
.partnerapi-mapped-preview span,
.partnerapi-template-diagnostics span,
.partnerapi-adapter-hints span,
.partnerapi-url-preview span,
.partnerapi-body-preview span,
.partnerapi-template-note span,
.partnerapi-env-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.partnerapi-probe-metrics strong,
.partnerapi-key-list strong,
.partnerapi-live-gate strong,
.partnerapi-onboarding strong,
.partnerapi-quality-summary strong,
.partnerapi-evidence strong,
.partnerapi-quality-list strong,
.partnerapi-mapped-preview strong,
.partnerapi-template-diagnostics strong,
.partnerapi-adapter-hints strong,
.partnerapi-url-preview strong,
.partnerapi-body-preview code,
.partnerapi-template-note strong,
.partnerapi-env-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
}

.partnerapi-body-preview code {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.partnerapi-quality-list small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.partnerapi-template-diagnostics small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.partnerapi-adapter-hints {
  border-color: rgba(154, 119, 40, 0.26);
  background: #fff9e8;
}

.partnerapi-adapter-hints ol {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding-left: 18px;
}

.partnerapi-adapter-hints li {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.partnerapi-live-gate small {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.partnerapi-quality-summary small {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.partnerapi-evidence small {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.partnerapi-mapped-preview .secondary-button {
  margin-top: 8px;
}

.partnerapi-candidate-readiness {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.source-benchmark-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(32, 94, 120, 0.16);
  border-radius: 8px;
  background: #f7fafb;
}

.source-benchmark-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.source-benchmark-head h4 {
  margin: 0;
  font-size: 1.02rem;
}

.source-benchmark-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.benchmark-report-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.benchmark-report-actions .secondary-button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.benchmark-report-actions span,
.benchmark-verdict {
  width: fit-content;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff7e6;
  color: #72491c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.benchmark-report-actions span {
  max-width: 220px;
  text-align: right;
}

.benchmark-verdict {
  max-width: 100%;
}

.benchmark-comparison-basis {
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(32, 94, 120, 0.18);
  border-radius: 8px;
  background: #eef6f4;
  color: #2d665f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.benchmark-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.benchmark-coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.benchmark-summary-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.benchmark-coverage-grid div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(92, 104, 112, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.benchmark-coverage-grid div.ready {
  border-color: rgba(23, 107, 91, 0.24);
  background: #eef8f2;
}

.benchmark-coverage-grid div.partial {
  border-color: rgba(176, 122, 43, 0.25);
  background: #fff8ed;
}

.benchmark-coverage-grid div.pending,
.benchmark-coverage-grid div.warning {
  border-color: rgba(154, 86, 40, 0.24);
  background: #fbf0e7;
}

.benchmark-summary-grid span,
.benchmark-summary-grid small,
.benchmark-coverage-grid span,
.benchmark-coverage-grid small,
.benchmark-row-head span,
.benchmark-source span,
.benchmark-row label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.benchmark-summary-grid strong {
  display: block;
  margin: 3px 0;
  overflow-wrap: anywhere;
}

.benchmark-coverage-grid strong {
  display: block;
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.benchmark-summary-grid small {
  display: block;
  text-transform: none;
}

.benchmark-coverage-grid small {
  display: block;
  text-transform: none;
}

.benchmark-scorecard {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(32, 94, 120, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.benchmark-scorecard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.benchmark-scorecard-head strong,
.benchmark-scorecard-head span {
  font-size: 12px;
  font-weight: 900;
}

.benchmark-scorecard-head span {
  color: var(--muted);
}

.benchmark-scorecard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.benchmark-scorecard-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(92, 104, 112, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.benchmark-scorecard-item span,
.benchmark-scorecard-item small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.benchmark-scorecard-item strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
}

.benchmark-scorecard-item.ready {
  border-color: rgba(23, 107, 91, 0.3);
  background: #eef8f2;
}

.benchmark-scorecard-item.ready strong {
  color: #16634f;
}

.benchmark-scorecard-item.partial {
  border-color: rgba(176, 122, 43, 0.28);
  background: #fff8ed;
}

.benchmark-scorecard-item.partial strong {
  color: #7a5414;
}

.benchmark-scorecard-item.stale {
  border-color: rgba(182, 84, 30, 0.32);
  background: #fff3e9;
}

.benchmark-scorecard-item.stale strong {
  color: #9b4a16;
}

.benchmark-scorecard-item.blocked {
  border-color: rgba(158, 72, 72, 0.26);
  background: #fff2f0;
}

.benchmark-scorecard-item.blocked strong {
  color: #9a3b38;
}

.benchmark-protocol-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.benchmark-protocol-strip div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(32, 94, 120, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.benchmark-protocol-strip strong {
  overflow-wrap: anywhere;
  color: #245b91;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.benchmark-protocol-strip span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.benchmark-rows {
  display: grid;
  gap: 8px;
}

.benchmark-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(130px, 0.75fr) minmax(92px, 0.65fr) minmax(72px, 0.5fr) minmax(130px, 0.9fr);
  gap: 8px;
  align-items: end;
}

.benchmark-row-head {
  display: none;
}

.benchmark-source {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.benchmark-source strong {
  display: block;
  overflow-wrap: anywhere;
}

.benchmark-source span {
  display: block;
  margin-top: 3px;
  text-transform: none;
}

.benchmark-row-readiness {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(92, 104, 112, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.benchmark-row-readiness strong,
.benchmark-row-readiness span {
  width: fit-content;
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.benchmark-row-readiness strong {
  background: #eef2f1;
  color: var(--muted);
}

.benchmark-row-readiness.ready strong {
  background: #d7efe4;
  color: #1f6d57;
}

.benchmark-row-readiness.pending strong {
  background: #f7dada;
  color: #9a3b38;
}

.benchmark-row-readiness span.ok {
  background: #edf8f3;
  color: #1f6d57;
}

.benchmark-row-readiness span.todo {
  background: #f4f1ec;
  color: #7a5414;
}

.benchmark-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.benchmark-row label small,
.benchmark-link-tools span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.benchmark-note-field,
.benchmark-detail-field,
.benchmark-snapshot-field,
.benchmark-link-tools,
.benchmark-row-actions {
  grid-column: 1 / -1;
}

.benchmark-snapshot-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 9px;
  border: 1px solid rgba(32, 94, 120, 0.12);
  border-radius: 8px;
  background: #fff;
}

.benchmark-snapshot-field textarea {
  min-height: 72px;
  resize: vertical;
}

.benchmark-snapshot-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.benchmark-snapshot-field .secondary-button {
  min-height: 38px;
  white-space: nowrap;
}

.benchmark-snapshot-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.benchmark-link-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.benchmark-link-tools span {
  flex: 1 1 240px;
}

.benchmark-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.benchmark-row-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.lodging-search-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.lodging-search-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(23, 107, 91, 0.14);
  border-radius: 8px;
  background: #fbfdfb;
}

.manual-flight-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(23, 107, 91, 0.16);
  border-radius: 8px;
  background: #f7fbf8;
  margin: -2px 0 14px;
}

.manual-flight-panel[hidden] {
  display: none;
}

.manual-flight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.manual-flight-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.manual-flight-grid .wide-field {
  grid-column: span 2;
}

.flight-action-note {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.flight-decision-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.flight-warning-list {
  display: grid;
  gap: 6px;
}

.flight-warning-list span {
  padding: 7px 9px;
  border: 1px solid rgba(182, 91, 42, 0.22);
  border-radius: 8px;
  background: #fff8ed;
  color: #73451f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.flight-card {
  gap: 11px;
}

.flight-results-section {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flight-results-section.decision-list {
  margin-bottom: 0;
}

.flight-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flight-results-head h4 {
  margin: 0;
  font-size: 15px;
}

.flight-results-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.flight-results-list {
  display: grid;
  gap: 10px;
}

.flight-result-gate,
.search-result-gate {
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.flight-result-gate.ready,
.search-result-gate.ready {
  color: var(--accent);
}

.flight-result-gate.blocked,
.search-result-gate.blocked {
  color: #8a4a20;
}

.flight-card-brief {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.flight-card-brief [data-copy-flight-brief-status] {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.flight-brief-fallback {
  flex: 1 0 100%;
  margin-top: 2px;
}

.demo-flight-card {
  border-style: dashed;
  background: #fffaf0;
}

.flight-trust-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.flight-trust-badge.sample {
  background: #7a4f08;
  color: #fffaf0;
}

.flight-trust-badge.external {
  background: #e6f2ee;
  color: var(--accent);
}

.flight-trust-badge.live {
  background: #1f6d57;
  color: #f5fffa;
}

.flight-trust-badge.benchmark {
  background: #245b91;
  color: #f5faff;
}

.flight-trust-badge.manual {
  background: #4d5961;
  color: #fff;
}

.flight-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.flight-meta,
.flight-price span,
.flight-leg span,
.flight-leg small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.flight-price {
  text-align: right;
}

.flight-price strong {
  margin: 0;
  white-space: nowrap;
}

.flight-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.flight-leg {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(23, 107, 91, 0.14);
  border-radius: 8px;
  background: var(--surface);
}

.flight-leg strong {
  margin: 0;
  font-size: 14px;
}

.leg-label {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e6f2ee;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.flight-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flight-chip-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.guest-layout {
  margin-bottom: 16px;
}

.guest-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guest-form label:nth-child(4),
.guest-form button {
  grid-column: 1 / -1;
}

.finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.finance-summary-item,
.deposit-row,
.expense-row,
.settlement-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(23, 107, 91, 0.12);
  border-radius: 8px;
  background: var(--surface);
}

.finance-summary-item span,
.deposit-row span,
.expense-row span,
.expense-row small,
.settlement-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.deposit-board,
.expense-list,
.settlement-list {
  display: grid;
  gap: 8px;
}

.deposit-row,
.expense-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.deposit-row.paid {
  background: #edf7f1;
}

.deposit-row.open {
  background: #fffaf0;
}

.expense-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.expense-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.expense-form .wide-field {
  grid-column: span 2;
}

.expense-split-box {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(23, 107, 91, 0.12);
  border-radius: 8px;
  background: #f7fbf8;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.expense-split-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.expense-split-members[hidden] {
  display: none;
}

.settlement-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
}

.timeline-day {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
}

.timeline-day h3,
.timeline-day p {
  margin: 0;
}

.timeline-day ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.program-catalog-section {
  margin-top: 18px;
}

.program-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.program-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.program-photo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  background: linear-gradient(135deg, #e8f4f0, #fff6df);
}

.program-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 166px;
  object-fit: cover;
}

.program-photo-missing {
  min-height: 166px;
}

.program-photo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 92px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(47, 112, 96, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.program-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.program-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.program-card h4,
.program-card p {
  margin: 0;
}

.program-card h4 {
  font-size: 16px;
  line-height: 1.25;
}

.program-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.program-category,
.program-area,
.program-focus-row span,
.program-focus-row a {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.program-category {
  display: inline-block;
  margin-bottom: 5px;
  background: #e6f2ee;
  color: var(--accent);
}

.program-area {
  background: var(--surface-soft);
  color: var(--muted);
  white-space: nowrap;
}

.program-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(74px, 0.7fr) minmax(82px, 0.8fr);
  gap: 6px;
}

.program-meta-grid div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.program-meta-grid strong {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  text-transform: uppercase;
}

.program-meta-grid span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.program-focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.program-focus-row span {
  background: #fffaf0;
  color: var(--ink);
}

.program-focus-row a {
  border: 1px solid rgba(23, 107, 91, 0.2);
  color: var(--accent);
}

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

.document-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.document-card-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.document-card-main span {
  color: var(--muted);
  font-size: 13px;
}

.document-delete {
  flex: 0 0 auto;
  min-height: 34px;
  width: 34px;
  color: var(--danger);
}

.mail-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(40, 107, 88, 0.2);
  border-radius: 8px;
  background: #eef7f2;
  color: var(--ink);
}

.mail-status span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-email-panel {
  margin-top: 16px;
}

.email-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.email-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.email-list {
  display: grid;
  gap: 8px;
}

.email-list-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
}

.email-list-item.active {
  border-color: var(--accent);
  background: #e8f4f0;
}

.email-list-item span,
.email-list-item small,
.email-muted {
  color: var(--muted);
  font-size: 13px;
}

.email-delete-check {
  display: grid;
  place-items: center;
  min-height: 36px;
}

.email-delete-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.email-open-button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.email-preview {
  min-width: 0;
}

.email-detail {
  display: grid;
  gap: 8px;
}

.email-detail h3,
.email-detail h4 {
  margin: 0;
}

.email-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.email-detail-header h3 {
  line-height: 1.15;
}

.email-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.email-meta-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: baseline;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.email-meta-line strong {
  color: var(--ink);
}

.email-action-row {
  display: grid;
  gap: 6px;
}

.email-action-row .fact-item {
  padding: 10px;
}

.email-action-row small {
  color: var(--muted);
}

.email-frame {
  width: 100%;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.attachment-row strong,
.attachment-row span {
  display: block;
}

.file-button {
  display: inline-grid;
  place-items: center;
}

.file-button input {
  display: none;
}

dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(12, 18, 16, 0.38);
}

.modal-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
}

#modalBody {
  display: grid;
  gap: 12px;
}

.import-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.import-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.import-status[data-status="ok"] {
  color: var(--accent);
}

.import-status[data-status="warning"] {
  color: var(--warning);
}

.import-status[data-status="error"] {
  color: var(--danger);
}

menu {
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .landing-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
  }

  .landing-copy {
    max-width: 680px;
  }

  .landing-login {
    justify-self: start;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-strip,
  .info-grid,
  .prep-grid,
  .overview-grid,
  .split-layout,
  .single-layout,
  .guest-layout,
  .lodging-decision-layout,
  .lodging-grid,
  .email-layout,
  .finance-grid,
  .form-grid,
  .preference-grid,
  .receipt-board,
  .document-grid,
  .program-catalog-grid,
  .sourcing-lab-grid,
  .genie-choice-grid {
    grid-template-columns: 1fr;
  }

  .sourcing-lab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sourcing-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sourcing-source-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partnerapi-env-grid,
  .partnerapi-quality-list,
  .partnerapi-package-grid,
  .booking-package-grid,
  .booking-handoff-route-grid,
  .sourcing-readiness-grid,
  .sourcing-decision-report-item,
  .partnerapi-config-rows div,
  .partnerapi-template-note {
    grid-template-columns: 1fr;
  }

  .flight-search-layout {
    grid-template-columns: 1fr;
  }

  .flight-form-row,
  .flight-form-row-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-flight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lodging-card {
    grid-template-columns: 1fr;
  }

  .lodging-search-card {
    grid-template-columns: 1fr;
  }

  .lodging-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lodging-score {
    text-align: left;
  }

  .hero-overlay {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-participants {
    width: 100%;
  }

  .hero-traveler-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-card-top {
    grid-template-columns: 72px minmax(0, 1fr) minmax(118px, 150px) minmax(104px, 128px) 40px 40px;
  }
}

@media (max-width: 620px) {
  .landing-content {
    width: min(100% - 28px, 520px);
    padding: 34px 0 70px;
  }

  .landing-copy h1 {
    font-size: 38px;
  }

  .landing-copy p {
    font-size: 16px;
    line-height: 1.52;
  }

  .landing-login {
    padding: 15px;
  }

  main {
    padding: 16px;
  }

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

  .nav-tabs,
  .metric-grid,
  .booking-handoff-summary,
  .booking-package-grid,
  .booking-handoff-grid,
  .booking-handoff-route-grid,
  .booking-handoff-actions,
  .booking-package-head,
  .handoff-card-head,
  .flight-search-layout,
  .flight-form,
  .flight-form-row,
  .flight-form-row-secondary,
  .manual-flight-grid,
  .sourcing-lab-grid,
  .sourcing-plan-grid,
  .sourcing-source-matrix-grid,
  .lodging-facts,
  .lodging-admin-row,
  .lodging-feedback-form,
  .lodging-decision-form,
  .flight-decision-head,
  .flight-decision-metrics,
  .partnerapi-probe-head,
  .partnerapi-probe-metrics,
  .partnerapi-quality-list,
  .partnerapi-mapped-preview,
  .sourcing-readiness-head,
  .sourcing-readiness-grid,
  .sourcing-decision-report-head,
  .sourcing-decision-report-item,
  .source-benchmark-head,
  .benchmark-report-actions,
  .benchmark-coverage-grid,
  .benchmark-summary-grid,
  .benchmark-scorecard-grid,
  .benchmark-protocol-strip,
  .benchmark-snapshot-field,
  .benchmark-row,
  .flight-card-header,
  .flight-route-grid,
  .guest-form,
  .prep-note-form,
  .access-form,
  .compact-access-form {
    grid-template-columns: 1fr;
  }

  .finance-summary-grid,
  .expense-form,
  .deposit-row,
  .expense-row,
  .settlement-row {
    grid-template-columns: 1fr;
  }

  .flight-decision-actions {
    justify-content: flex-start;
  }

  .benchmark-verdict {
    max-width: none;
    text-align: left;
  }

  .sourcing-decision-report-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sourcing-decision-report-actions {
    justify-content: flex-start;
  }

  .benchmark-row-head {
    display: none;
  }

  .expense-form .wide-field {
    grid-column: auto;
  }

  .manual-flight-grid .wide-field {
    grid-column: auto;
  }

  .flight-price {
    text-align: left;
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  .program-photo {
    max-height: 180px;
  }

  .program-card-top,
  .program-meta-grid,
  .genie-hero {
    grid-template-columns: 1fr;
  }

  .genie-hero {
    justify-items: center;
    text-align: center;
  }

  .genie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-strip {
    min-height: 520px;
    margin: -16px -16px 20px;
  }

  .hero-photo {
    min-height: 520px;
  }

  .hero-overlay {
    padding: 28px 18px 52px;
  }

  .hero-traveler-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .guest-form label:nth-child(4),
  .guest-form button {
    grid-column: auto;
  }

  .timeline-day {
    grid-template-columns: 1fr;
  }

  .member-card {
    padding: 12px;
  }

  .member-card-top {
    grid-template-columns: 68px minmax(0, 1fr) 40px 40px;
    grid-template-areas:
      "avatar identity identity identity"
      "status status paid remove"
      "deposit deposit deposit deposit";
  }

  .member-card-top.readonly {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "avatar identity"
      "status status"
      "deposit deposit";
  }

  .member-card-top.readonly .member-readonly-chip:nth-of-type(1) {
    grid-area: status;
  }

  .member-card-top.readonly .member-readonly-chip:nth-of-type(2) {
    grid-area: deposit;
  }

  .member-avatar-block {
    grid-area: avatar;
  }

  .member-identity {
    grid-area: identity;
  }

  .member-status-control {
    grid-area: status;
  }

  .member-deposit-control {
    grid-area: deposit;
  }

  .payment-toggle {
    grid-area: paid;
  }

  .member-remove-button {
    grid-area: remove;
  }

  .member-name-input {
    max-width: calc(100vw - 56px);
  }

  .email-meta-line {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .email-detail-actions {
    justify-content: flex-start;
  }
}
