:root {
  color-scheme: light;
  --ink: #121b36;
  --ink-soft: #65708b;
  --navy: #111a34;
  --navy-2: #1c2a50;
  --blue: #3f82ff;
  --blue-soft: #e9f1ff;
  --cyan: #63d9ed;
  --lime: #dfff91;
  --paper: #f5f7fb;
  --line: #e5e9f2;
  --white: #fff;
  --shadow: 0 18px 48px rgba(18, 27, 54, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background:
    radial-gradient(circle at 0 0, rgba(99, 217, 237, 0.2), transparent 28rem),
    linear-gradient(145deg, #edf4ff 0%, var(--paper) 42%, #f7f8fb 100%);
}

button, select, input { font: inherit; }
button { cursor: pointer; }
body.logs-open { overflow: hidden; }

.demo-nav { display: flex; align-items: center; gap: 10px; width: min(100%, 480px); min-height: 44px; margin: 0 auto; padding: 0 20px; color: var(--ink-soft); font-size: 12px; }
.demo-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; text-decoration: none; }
.demo-nav a:hover { text-decoration: underline; }
.demo-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.workspace-header { display: none; }

.site-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(18, 27, 54, 0.03), 0 24px 70px rgba(18, 27, 54, 0.1);
}

.app-screen { min-height: 100vh; padding-bottom: 34px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) 20px 15px;
  color: var(--white);
  background: var(--navy);
}

.topbar-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.topbar-subtitle { margin-top: 2px; color: #abb8da; font-size: 11px; }
.topbar-action { flex: 0 0 auto; }

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: linear-gradient(145deg, var(--lime), var(--cyan));
  font-size: 17px;
  font-weight: 900;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 22px 24px;
  color: var(--white);
  background: var(--navy);
}

.hero::before, .hero::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  content: "";
}

.hero::before { width: 340px; height: 340px; right: -180px; top: -178px; }
.hero::after { width: 250px; height: 250px; right: -135px; top: -132px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #90a3d1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); content: ""; }
.hero h1 { position: relative; max-width: 320px; margin: 12px 0 8px; font-size: clamp(29px, 8vw, 38px); line-height: 1.05; letter-spacing: -0.045em; }
.hero p { position: relative; max-width: 350px; margin: 0; color: #b5c0dc; font-size: 13px; line-height: 1.7; }
.demo-disclaimer { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #e4ebff; background: rgba(255,255,255,.08); font-size: 11px; line-height: 1.5; }
.demo-disclaimer strong { flex: 0 0 auto; color: var(--lime); font-size: 10px; letter-spacing: .06em; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-meta span, .api-count {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 7px 10px;
  color: #d7e1fa;
  background: rgba(255,255,255,.07);
  font-size: 11px;
  font-weight: 700;
}
.hero-doc { display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid rgba(223,255,145,.28); border-radius: 999px; color: var(--lime); background: rgba(223,255,145,.08); font-size: 11px; font-weight: 800; text-decoration: none; }

.main-pad { padding: 18px 16px 0; }
.section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 3px 3px 11px; }
.section-label h2 { margin: 0; font-size: 18px; letter-spacing: -0.025em; }
.section-label span { color: var(--ink-soft); font-size: 11px; }

.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 8px 24px rgba(18,27,54,.04); }
.search-card { padding: 17px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.select-wrap { position: relative; }
.select-wrap::after { position: absolute; right: 12px; top: 50%; color: #8290ac; content: "⌄"; font-size: 14px; pointer-events: none; transform: translateY(-55%); }
select, input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  outline: none;
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 650;
}
select { appearance: none; -webkit-appearance: none; -moz-appearance: none; }
input { padding: 0 12px; }
select:focus, input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63,130,255,.12); }
.field-hint { margin-top: -1px; color: #97a1b6; font-size: 10px; line-height: 1.45; }

.primary-button, .secondary-button, .outline-button, .text-button, .icon-button {
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button:active, .secondary-button:active, .outline-button:active, .icon-button:active { transform: scale(.98); }
.primary-button { min-height: 48px; padding: 0 16px; color: var(--navy); background: linear-gradient(105deg, var(--lime), var(--cyan)); box-shadow: 0 8px 18px rgba(81, 205, 217, .25); }
.primary-button.block { width: 100%; margin-top: 16px; }
.secondary-button { min-height: 43px; padding: 0 14px; color: var(--white); background: var(--blue); box-shadow: 0 7px 17px rgba(63,130,255,.2); }
.outline-button { min-height: 42px; padding: 0 13px; color: var(--blue); background: var(--white); border: 1px solid #cddcff; }
.text-button { padding: 5px 0; color: var(--blue); background: transparent; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; color: inherit; background: rgba(255,255,255,.1); font-size: 22px; line-height: 1; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.feature { min-height: 78px; padding: 11px 9px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.68); }
.feature strong { display: block; font-size: 18px; letter-spacing: -0.04em; }
.feature span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }

.api-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 13px; border-radius: 15px; color: #51617f; background: var(--blue-soft); font-size: 11px; line-height: 1.6; }
.api-note b { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; color: var(--blue); background: rgba(63,130,255,.12); font-size: 10px; }

.results-header { padding: 18px 16px 0; }
.results-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.summary-main { min-width: 0; }
.summary-route { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.summary-sub { margin-top: 4px; color: var(--ink-soft); font-size: 11px; }
.summary-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: var(--navy); background: linear-gradient(145deg, #dffaff, #efffb0); font-size: 20px; }
.result-list { display: grid; gap: 13px; padding: 13px 16px 0; }
.route-card { overflow: hidden; }
.route-visual { position: relative; height: 112px; padding: 15px; color: var(--white); background: linear-gradient(130deg, #122346 0%, #21446a 57%, #44b6bd 100%); }
.route-visual::after { position: absolute; right: -28px; bottom: -70px; width: 240px; height: 130px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 -13px 0 rgba(255,255,255,.1), 0 -26px 0 rgba(255,255,255,.08); content: ""; transform: rotate(-8deg); }
.visual-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ship-kicker { color: #d4e6ff; font-size: 10px; font-weight: 700; }
.ship-name { margin-top: 4px; font-size: 18px; font-weight: 850; letter-spacing: -.03em; }
.brand-pill { padding: 6px 8px; border-radius: 8px; color: var(--navy); background: rgba(223,255,145,.94); font-size: 10px; font-weight: 850; }
.route-body { padding: 14px; }
.route-line { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; }
.route-line i { flex: 1; height: 1px; background: var(--line); }
.route-dates { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 7px; }
.route-dates strong { font-size: 14px; }
.route-duration { color: var(--ink-soft); font-size: 11px; }
.route-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 15px; }
.price-caption { color: var(--ink-soft); font-size: 10px; }
.price { margin-top: 3px; color: var(--blue); font-size: 21px; font-weight: 900; letter-spacing: -.04em; }
.price small { margin-left: 3px; font-size: 11px; font-weight: 700; }

.back-button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; color: #b9c5e4; background: transparent; font-size: 12px; font-weight: 750; }
.page-content { padding: 16px; }
.detail-hero { position: relative; overflow: hidden; min-height: 166px; padding: 20px; border-radius: var(--radius-lg); color: var(--white); background: linear-gradient(135deg, #132344, #2b5676 65%, #5cc2c1); }
.detail-hero::after { position: absolute; right: -40px; bottom: -75px; width: 270px; height: 155px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 -14px 0 rgba(255,255,255,.08), 0 -28px 0 rgba(255,255,255,.07); content: ""; transform: rotate(-10deg); }
.detail-hero h1 { position: relative; z-index: 1; max-width: 280px; margin: 9px 0 7px; font-size: 25px; letter-spacing: -.04em; }
.detail-hero p { position: relative; z-index: 1; max-width: 280px; margin: 0; color: #d3e3ed; font-size: 12px; line-height: 1.6; }
.ship-facts { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 17px; }
.ship-facts span { padding: 6px 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 8px; color: #e2eff5; background: rgba(255,255,255,.08); font-size: 10px; }
.stack { display: grid; gap: 12px; margin-top: 16px; }
.stack h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.fare-section { overflow: hidden; }
.fare-section-head { display: flex; align-items: center; justify-content: space-between; padding: 15px; border-bottom: 1px solid var(--line); }
.fare-section-head span { color: var(--ink-soft); font-size: 11px; }
.fare-list { display: grid; gap: 10px; padding: 11px; }
.fare-card { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcff; }
.fare-icon { display: grid; width: 41px; height: 41px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: var(--blue); background: var(--blue-soft); font-size: 19px; }
.fare-info { flex: 1; min-width: 0; }
.fare-name { font-size: 13px; font-weight: 850; }
.fare-meta { margin-top: 4px; overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fare-price { text-align: right; }
.fare-price strong { display: block; color: var(--blue); font-size: 16px; }
.fare-price span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 10px; }

.cabin-toolbar { display: flex; align-items: center; gap: 7px; overflow-x: auto; margin: 12px 0; padding-bottom: 2px; scrollbar-width: none; }
.cabin-toolbar::-webkit-scrollbar { display: none; }
.deck-button { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); background: var(--white); font-size: 11px; font-weight: 800; }
.deck-button.active { border-color: var(--navy); color: var(--white); background: var(--navy); }
.cabin-map { position: relative; overflow: hidden; padding: 17px 13px; border-radius: var(--radius-lg); background: #e7edf4; }
.cabin-map::before { position: absolute; left: 50%; top: -50px; width: 80px; height: calc(100% + 100px); border-right: 2px dashed rgba(92,110,137,.22); border-left: 2px dashed rgba(92,110,137,.22); content: ""; transform: translateX(-50%); }
.cabin-map-header { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-bottom: 13px; color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.cabin-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px 11px; }
.cabin-button { min-height: 45px; border: 1px solid #cad6e5; border-radius: 11px; color: #3f597e; background: rgba(255,255,255,.88); font-size: 11px; font-weight: 850; box-shadow: 0 3px 5px rgba(44,64,93,.05); }
.cabin-button:hover, .cabin-button.selected { border-color: var(--blue); color: var(--white); background: var(--blue); box-shadow: 0 7px 12px rgba(63,130,255,.25); }
.cabin-button.sold { color: #b2bac8; background: #dce3ec; border-color: #d3dbe6; cursor: not-allowed; text-decoration: line-through; }
.cabin-legend { display: flex; gap: 14px; margin-top: 13px; color: var(--ink-soft); font-size: 10px; }
.legend { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: #fff; border: 1px solid #cad6e5; }
.legend i.selected { border-color: var(--blue); background: var(--blue); }
.legend i.sold { border-color: #d3dbe6; background: #dce3ec; }

.traveler-card { padding: 15px; }
.traveler-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.traveler-title strong { font-size: 14px; }
.traveler-title span { color: var(--ink-soft); font-size: 10px; }
.traveler-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.traveler-fields .field:first-child { grid-column: 1 / -1; }
.quote-card { padding: 16px; border-color: #cfe0ff; background: linear-gradient(145deg, #f8fbff, #eef5ff); }
.quote-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.quote-top span { color: var(--ink-soft); font-size: 10px; }
.quote-total { margin-top: 4px; color: var(--blue); font-size: 28px; font-weight: 900; letter-spacing: -.05em; }
.quote-total small { margin-left: 3px; font-size: 12px; }
.quote-expiry { padding: 6px 8px; border-radius: 7px; color: #2d7e59; background: #dcf8e9; font-size: 10px; font-weight: 800; }
.breakdown { display: grid; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #d9e5f7; }
.breakdown-row { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 11px; }
.breakdown-row strong { color: var(--ink); }
.dining-options { display: flex; gap: 8px; margin-top: 10px; }
.dining-option { flex: 1; padding: 10px 8px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); background: var(--white); text-align: center; font-size: 11px; }
.dining-option.selected { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); font-weight: 850; }

.success-screen { display: flex; min-height: 100vh; flex-direction: column; }
.success-main { flex: 1; padding: 32px 22px 24px; }
.success-icon { display: grid; width: 65px; height: 65px; place-items: center; border-radius: 22px; color: var(--navy); background: linear-gradient(145deg, var(--lime), var(--cyan)); font-size: 33px; box-shadow: 0 10px 24px rgba(74,190,190,.25); }
.success-main h1 { margin: 20px 0 8px; font-size: 29px; letter-spacing: -.05em; }
.success-main > p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.order-card { margin-top: 23px; padding: 16px; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-head strong { font-size: 16px; }
.status { padding: 6px 8px; border-radius: 7px; color: #347c57; background: #dcf8e9; font-size: 10px; font-weight: 850; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 17px; }
.order-grid span { display: block; color: var(--ink-soft); font-size: 10px; }
.order-grid strong { display: block; margin-top: 4px; font-size: 12px; }
.flow-card { margin-top: 14px; padding: 15px; }
.flow-card h3 { margin: 0 0 13px; font-size: 14px; }
.flow-step { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 13px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-dot { position: relative; display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 900; }
.flow-step:not(:last-child) .flow-dot::after { position: absolute; top: 22px; left: 10px; width: 1px; height: 24px; background: #d6e1f3; content: ""; }
.flow-step strong { display: block; font-size: 11px; }
.flow-step span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 10px; }

.floating-api { position: fixed; z-index: 10; right: max(16px, calc((100vw - 480px) / 2 + 16px)); bottom: max(17px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 7px; padding: 10px 12px; border: 0; border-radius: 999px; color: var(--white); background: rgba(17,26,52,.94); box-shadow: 0 9px 20px rgba(17,26,52,.25); font-size: 11px; font-weight: 850; }
.floating-api b { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--navy); background: var(--lime); font-size: 10px; }

.drawer { position: fixed; z-index: 30; inset: 0; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.drawer.open { visibility: visible; opacity: 1; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 31, .48); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; display: flex; width: min(100%, 440px); flex-direction: column; background: var(--paper); transform: translateX(100%); transition: transform .26s ease; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding: max(21px, env(safe-area-inset-top)) 18px 15px; color: var(--white); background: var(--navy); }
.drawer-header h2 { margin: 8px 0 0; font-size: 20px; letter-spacing: -.03em; }
.drawer-description { margin: 9px 0 0; color: #b5c0dc; font-size: 11px; line-height: 1.6; }
.drawer-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.drawer-actions .api-count { white-space: nowrap; }
.log-list { overflow: auto; flex: 1; min-height: 0; padding: 12px; overscroll-behavior: contain; }
.empty-logs { padding: 48px 24px; color: var(--ink-soft); text-align: center; font-size: 12px; line-height: 1.7; }
.log-item { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.log-item summary { display: flex; align-items: center; gap: 8px; padding: 12px; cursor: pointer; list-style: none; }
.log-item summary::-webkit-details-marker { display: none; }
.log-number { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 900; }
.log-summary-main { min-width: 0; flex: 1; }
.log-method { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.log-path { overflow: hidden; margin-top: 2px; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.log-time { color: #98a1b2; font-size: 9px; }
.log-content { display: grid; gap: 10px; padding: 0 12px 12px; }
.log-payload { min-width: 0; }
.log-label { margin: 9px 0 4px; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.log-label span { margin-left: 7px; color: #98a1b2; font-size: 10px; font-weight: 500; }
.log-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.log-label > span:first-child { min-width: 0; margin-left: 0; }
.json-view-switch { display: inline-flex; flex: 0 0 auto; margin-left: auto; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.json-view-switch .json-view-button { min-height: 22px; padding: 0 6px; border: 0; border-radius: 5px; color: var(--ink-soft); background: transparent; font-size: 9px; font-weight: 750; }
.json-view-switch .json-view-button.active { color: var(--blue); background: var(--blue-soft); }
.log-content pre { overflow: auto; max-height: 260px; margin: 0; padding: 12px; border-radius: 8px; color: #d9e7ff; background: #1b2948; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; overscroll-behavior: contain; }
.json-tree { overflow: auto; max-height: 260px; margin: 0; padding: 9px 10px; border-radius: 8px; color: #f9e8dd; background: #442720; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.65; overscroll-behavior: contain; }
.json-node summary { display: flex; align-items: center; gap: 5px; min-height: 20px; cursor: pointer; list-style: none; }
.json-node summary::-webkit-details-marker { display: none; }
.json-disclosure { display: inline-block; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #d1a899; transition: transform .15s ease; }
.json-node[open] > summary .json-disclosure { transform: rotate(90deg); }
.json-key { color: #f4d5c5; overflow-wrap: anywhere; }
.json-root > summary .json-key { color: #fff5ef; font-weight: 800; }
.json-type, .json-count { color: #bb9181; font-size: 10px; }
.json-count { margin-left: auto; }
.json-children { margin: 1px 0 2px 10px; padding-left: 10px; border-left: 1px solid rgba(209, 168, 153, .3); }
.json-leaf { display: flex; align-items: baseline; gap: 5px; min-height: 20px; padding-left: 10px; }
.json-colon { color: #b48a7c; }
.json-string { color: #c8e3ae; overflow-wrap: anywhere; }
.json-number { color: #f5c58d; }
.json-boolean { color: #f0acc5; }
.json-null { color: #c3a9a0; }
.drawer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-soft); background: var(--white); font-size: 10px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 78px; max-width: calc(100vw - 40px); padding: 10px 14px; border-radius: 10px; color: var(--white); background: rgba(17,26,52,.94); box-shadow: 0 8px 20px rgba(17,26,52,.2); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 620px) {
  .site-shell { margin: 22px auto; min-height: calc(100vh - 44px); border-radius: 32px; overflow: hidden; }
  .app-screen, .success-screen { min-height: calc(100vh - 44px); }
  .hero { padding-top: 35px; }
}

@media (min-width: 960px) {
  .demo-workspace { max-width: 1520px; margin: 0 auto; padding: 0 24px 24px; }
  .demo-nav { width: 100%; padding: 0; }
  .workspace-header { display: flex; height: 76px; align-items: center; justify-content: space-between; gap: 20px; }
  .workspace-header strong { font-size: 20px; letter-spacing: -.04em; }
  .workspace-header span { color: var(--ink-soft); font-size: 12px; }
  .workspace-header div span { margin-left: 16px; }
  .demo-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; height: calc(100vh - 144px); height: calc(100dvh - 144px); min-height: 440px; }
  .site-shell { width: 100%; min-width: 0; min-height: 0; height: 100%; margin: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .app-screen, .success-screen { min-height: calc(100vh - 144px); min-height: calc(100dvh - 144px); }
  .floating-api, .drawer-backdrop, .drawer-actions [data-action="close-logs"] { display: none; }
  .drawer { position: relative; z-index: auto; inset: auto; min-width: 0; min-height: 0; visibility: visible; opacity: 1; transition: none; }
  .drawer-panel { position: static; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); transform: none; transition: none; }
  .drawer-header { padding: 22px 20px 18px; }
  .log-list { padding: 16px; }
  .log-item summary { padding: 15px; }
  .log-method { font-size: 11px; }
  .log-path { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  .log-time { font-size: 10px; }
  .log-content { padding: 0 15px 15px; }
  .log-label { font-size: 12px; }
  .json-view-switch .json-view-button { font-size: 10px; }
  .log-content pre, .json-tree { max-height: 360px; font-size: 12px; }
  .drawer-footer { padding: 14px 20px; font-size: 11px; }
}

@media (min-width: 1280px) {
  .log-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; }
  .log-payload { display: flex; flex-direction: column; }
  .log-content pre, .json-tree { flex: 1; }
}

/* Hotel API Lab additions. The shared shell above keeps the interaction and
   responsive log drawer consistent with cruise-api-demo. */
:root {
  --navy: #102e3a;
  --navy-2: #1d4d55;
  --blue: #147d7c;
  --blue-soft: #e2f5f1;
  --cyan: #8be0cc;
  --lime: #e8f6b2;
  --paper: #f4f7f5;
  --line: #dfe9e5;
}

body {
  background: radial-gradient(circle at 0 0, rgba(139, 224, 204, .22), transparent 30rem), linear-gradient(145deg, #edf8f5 0%, var(--paper) 44%, #f8faf9 100%);
}

.hotel-hero-home { background: var(--navy); }
.hotel-hero-home::before { border-color: rgba(139, 224, 204, .2); }
.hotel-hero-home::after { border-color: rgba(232, 246, 178, .16); }
.hotel-detail-hero { min-height: 182px; }
.hotel-detail-hero::after { border-color: rgba(255, 255, 255, .25); }

.hotel-list { display: grid; gap: 13px; padding: 13px 16px 0; }
.hotel-card { overflow: hidden; }
.hotel-photo { position: relative; display: flex; height: 112px; align-items: flex-end; justify-content: space-between; padding: 15px; color: #fff; }
.hotel-photo::after { position: absolute; right: -30px; bottom: -70px; width: 230px; height: 135px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 -13px 0 rgba(255,255,255,.1), 0 -26px 0 rgba(255,255,255,.08); content: ""; transform: rotate(-8deg); }
.hotel-photo span, .hotel-photo em { position: relative; z-index: 1; }
.hotel-photo span { font-size: 27px; font-weight: 900; letter-spacing: -.07em; }
.hotel-photo em { padding: 6px 8px; border-radius: 8px; color: var(--navy); background: rgba(232,246,178,.92); font-size: 10px; font-style: normal; font-weight: 850; }
.hotel-card-body { padding: 15px; }
.hotel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hotel-title-row h3 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.hotel-title-row p { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; }
.hotel-code, .rate-code { padding: 5px 7px; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 800; }
.hotel-address { margin-top: 11px; color: var(--ink-soft); font-size: 10px; }
.hotel-tags, .rate-benefits, .room-attributes { display: flex; flex-wrap: wrap; gap: 6px; }
.hotel-tags { margin-top: 11px; }
.hotel-tags span, .rate-benefits span, .room-attributes span { padding: 5px 7px; border-radius: 7px; color: #4b726f; background: #eff7f4; font-size: 10px; }
.hotel-tags .promotion-tag { color: #a3652d; background: #fff2df; }
.hotel-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 15px; }
.hotel-card-footer small { display: block; color: var(--ink-soft); font-size: 10px; }
.hotel-card-footer strong { display: inline-block; margin-top: 2px; color: var(--blue); font-size: 23px; letter-spacing: -.05em; }
.hotel-card-footer strong i { margin-left: 3px; color: var(--ink-soft); font-size: 10px; font-style: normal; font-weight: 700; }
.hotel-card-footer .approx { display: inline; margin-left: 5px; color: #899a98; }

.hotel-room { overflow: hidden; padding: 15px; }
.room-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.room-head h3 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.room-head p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.room-size { flex: 0 0 auto; padding: 6px 8px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 850; }
.room-attributes { margin-top: 13px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.rate-list { display: grid; gap: 10px; padding-top: 11px; }
.rate-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfc; }
.rate-main { min-width: 0; flex: 1; }
.rate-name { color: var(--ink); font-size: 12px; font-weight: 850; line-height: 1.45; }
.rate-code { margin-left: 6px; padding: 3px 5px; font-size: 8px; font-weight: 700; }
.rate-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.breakfast-chip { color: #347c57; font-weight: 750; }
.rate-benefits { margin-top: 7px; }
.rate-benefits span { padding: 3px 5px; font-size: 9px; }
.rate-price { flex: 0 0 auto; text-align: right; }
.rate-price strong { display: block; color: var(--blue); font-size: 17px; }
.rate-price small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.rate-price .outline-button { min-height: 34px; margin-top: 9px; padding: 0 9px; font-size: 10px; }

.calendar-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 13px; padding: 14px 15px; }
.calendar-card strong { display: block; font-size: 13px; }
.calendar-card > div > span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.calendar-days { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 3px; }
.calendar-day { padding: 8px 4px; border: 1px solid var(--line); border-radius: 9px; text-align: center; background: #fbfdfc; }
.calendar-day.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.calendar-day small, .calendar-day strong { display: block; }
.calendar-day small { color: var(--ink-soft); font-size: 9px; }
.calendar-day strong { margin-top: 4px; font-size: 12px; }

.booking-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px; }
.booking-summary h2 { margin: 8px 0 4px; font-size: 18px; letter-spacing: -.035em; }
.booking-summary p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; }
.booking-summary > strong { flex: 0 0 auto; color: var(--blue); font-size: 23px; letter-spacing: -.05em; }
.section-kicker { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.rule-card { margin-top: 13px; padding: 16px; border-color: #cce8df; background: linear-gradient(145deg, #fbfffd, #effaf6); }
.rule-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rule-head h3 { margin: 6px 0 0; font-size: 15px; }
.verified { padding: 6px 8px; border-radius: 7px; color: #347c57; background: #dcf8e9; font-size: 10px; font-weight: 800; }
.rule-price { display: flex; align-items: baseline; gap: 8px; margin-top: 15px; }
.rule-price strong { color: var(--blue); font-size: 28px; letter-spacing: -.05em; }
.rule-price span { color: var(--ink-soft); font-size: 10px; }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #d7ece4; }
.rule-grid .full { grid-column: 1 / -1; }
.rule-grid small, .rule-grid b { display: block; }
.rule-grid small { color: var(--ink-soft); font-size: 10px; }
.rule-grid b { margin-top: 4px; color: var(--ink); font-size: 11px; line-height: 1.5; }
.rule-description { margin: 13px 0 0; color: #597572; font-size: 10px; line-height: 1.6; }
.payment-card { margin-top: 13px; padding: 15px; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.payment-option { display: flex; min-height: 54px; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fbfdfc; font-size: 11px; font-weight: 800; cursor: pointer; }
.payment-option input { width: auto; min-height: 0; margin: 0 0 3px; padding: 0; accent-color: var(--blue); }
.payment-option small { color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 500; }
.payment-option.selected { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.credit-card-form { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.credit-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.credit-card-heading strong { color: var(--ink); font-size: 12px; }
.credit-card-heading span { color: var(--ink-soft); font-size: 10px; }
.credit-card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.credit-card-fields .field.full { grid-column: 1 / -1; }
.special-request { width: 100%; min-height: 78px; margin-top: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; padding: 11px; color: var(--ink); outline: none; background: #fbfcfe; font-size: 12px; line-height: 1.5; }
.special-request:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,125,124,.12); }

@media (max-width: 380px) {
  .rate-row { flex-direction: column; }
  .rate-price { display: grid; width: 100%; grid-template-columns: 1fr auto; align-items: center; text-align: left; }
  .rate-price small { grid-column: 1; }
  .rate-price .outline-button { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

/* Hotel theme: warm editorial tones keep this demo visually distinct from the
   blue cruise workspace while preserving the compact mobile API explorer. */
:root {
  --ink: #302522;
  --ink-soft: #806f68;
  --navy: #3b211c;
  --navy-2: #5b3027;
  --blue: #a65336;
  --blue-soft: #f8e8dd;
  --cyan: #e8a276;
  --lime: #f4d486;
  --paper: #fbf6ef;
  --line: #eadbd0;
  --white: #fffdf9;
  --shadow: 0 18px 48px rgba(67, 37, 27, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  background: radial-gradient(circle at 90% 0, rgba(232, 162, 118, .23), transparent 25rem), linear-gradient(145deg, #f7ebe2 0%, var(--paper) 48%, #f9f2eb 100%);
}

.site-shell { box-shadow: 0 0 0 1px rgba(75, 39, 27, .05), 0 24px 70px rgba(75, 39, 27, .13); }
.topbar, .hero, .hotel-hero-home { background: var(--navy); }
.topbar-subtitle { color: #d5b9ad; }
.brand-mark { color: var(--navy); background: linear-gradient(145deg, var(--lime), var(--cyan)); }
.hero::before, .hero::after { border-color: rgba(244, 212, 134, .28); }
.eyebrow { color: #d5b9ad; }
.eyebrow::before { background: var(--lime); }
.hero p { color: #e0c9be; }
.hero-meta span, .api-count { border-color: rgba(255,255,255,.18); color: #f3e4dc; background: rgba(255,255,255,.08); }
.hero-doc { border-color: rgba(244, 212, 134, .46); color: var(--lime); background: rgba(244,212,134,.1); }
.primary-button { color: var(--navy); background: linear-gradient(105deg, var(--lime), var(--cyan)); box-shadow: 0 8px 18px rgba(181, 108, 70, .24); }
.secondary-button { color: var(--white); background: var(--blue); box-shadow: 0 7px 17px rgba(166, 83, 54, .23); }
.outline-button { color: var(--blue); border-color: #e0bda9; }
.text-button { color: var(--blue); }
.api-note { color: #765e54; background: var(--blue-soft); }
.api-note b { color: var(--blue); background: rgba(166,83,54,.12); }
.summary-icon { color: var(--navy); background: linear-gradient(145deg, #f4d486, #f4b38d); }
.hotel-photo em { color: var(--navy); background: rgba(244,212,134,.94); }
.hotel-tags span, .rate-benefits span, .room-attributes span { color: #80594a; background: #fbefe7; }
.hotel-tags .promotion-tag { color: #9a5a2e; background: #fff0cf; }
.hotel-code, .rate-code { color: var(--blue); background: var(--blue-soft); }
.room-size, .calendar-day.active { color: var(--blue); background: var(--blue-soft); }
.calendar-day.active { border-color: var(--blue); }
.breakfast-chip { color: #a05d3c; }
.payment-option input { accent-color: var(--blue); }
.payment-option.selected { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.rule-card { border-color: #efd0be; background: linear-gradient(145deg, #fffaf5, #f9eee6); }
.rule-price strong, .booking-summary > strong, .hotel-card-footer strong, .rate-price strong, .quote-total { color: var(--blue); }
.verified { color: #8a6335; background: #fff0c9; }
.drawer-panel, .drawer-footer, .card, .results-summary { background: var(--white); }
.log-number { color: var(--blue); background: var(--blue-soft); }
.log-method { color: var(--blue); }
.log-content pre { color: #f9e8dd; background: #442720; }
.toast { background: rgba(59, 33, 28, .95); }
.language-button { flex: 0 0 auto; min-width: 56px; min-height: 44px; padding: 0 14px; border: 1px solid var(--lime); border-radius: 999px; color: var(--navy); background: var(--lime); box-shadow: 0 4px 12px rgba(0,0,0,.16); font-size: 13px; font-weight: 850; }
.language-button:hover { border-color: var(--white); background: var(--white); }
.language-button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.hotel-hero-home > .eyebrow { min-height: 36px; padding-right: 72px; }
.hero-language { position: absolute; z-index: 1; top: 20px; right: 20px; }

@media (min-width: 960px) {
  .workspace-header strong { color: var(--navy); }
  .workspace-header span { color: var(--ink-soft); }
}
