:root {
  --bg: #eef2f7;
  --border: #d7deea;
  --text: #1b2741;
  --muted: #5d6983;
  --assistant: #ffffff;
  --user: #324c7b;
  --user-text: #f4f7ff;
  --accent: #d4adc7;
  --accent-soft: #eedce8;
  --card: #ffffff;
  --card-shadow: 0 10px 24px rgba(28, 41, 70, 0.08);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f9fbff 0%, var(--bg) 45%, #e6edf8 100%);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
  gap: 20px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.01em;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.domain-switch,
.scenario-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: #e8eef9;
}

.preview-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: #e8eef9;
}

.domain-btn,
.scenario-btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 13px;
  background: transparent;
  color: #324a76;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.preview-btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 13px;
  background: transparent;
  color: #324a76;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.domain-btn.is-active,
.scenario-btn.is-active {
  background: #324c7b;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(50, 76, 123, 0.24);
}

.preview-btn.is-active {
  background: #324c7b;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(50, 76, 123, 0.24);
}

.btn {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.btn-ghost {
  background: #eff3fb;
  color: #394c6e;
}

.scenario-master {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 340px;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f8fafe;
  box-shadow: 0 20px 44px rgba(30, 47, 77, 0.13);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 18;
}

.scenario-master-head {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.scenario-master-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.scenario-master-controls {
  display: grid;
  gap: 8px;
}

.scenario-master-controls .preview-switch,
.scenario-master-controls .domain-switch,
.scenario-master-controls .scenario-switch {
  width: 100%;
}

.scenario-master-controls .preview-btn,
.scenario-master-controls .domain-btn,
.scenario-master-controls .scenario-btn {
  flex: 1;
}

.scenario-master-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.scenario-master-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.scenario-master-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-phase-row {
  border: 1px solid #ccd8ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
}

.scenario-phase-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
}

.scenario-phase-label {
  font-size: 13px;
  color: #2c416a;
  line-height: 1.3;
}

.widget-shell {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 620px;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f8fafe;
  box-shadow: 0 20px 44px rgba(30, 47, 77, 0.13);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.widget-head {
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.widget-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #48c57b;
  box-shadow: 0 0 0 3px rgba(72, 197, 123, 0.18);
}

.widget-status {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pinned-selection {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f4f8ff 0%, #edf3ff 100%);
  padding: 10px 14px;
}

.pinned-toggle {
  width: 100%;
  border: 1px solid #c6d5ef;
  border-radius: 12px;
  background: #ffffff;
  min-height: 38px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(76, 101, 145, 0.12);
}

.pinned-title {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a5f86;
  font-weight: 700;
}

.pinned-arrow {
  font-size: 12px;
  color: #4a5f86;
}

.cart-view {
  position: fixed;
  right: 664px;
  bottom: 24px;
  width: 520px;
  height: 760px;
  z-index: 21;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.cart-view.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.cart-panel {
  border: 1px solid #cad7ef;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
  box-shadow: 0 16px 38px rgba(31, 46, 75, 0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #d5dff0;
  background: rgba(255, 255, 255, 0.8);
}

.cart-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #243a61;
}

.cart-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: #5d6f8f;
}

.cart-content {
  flex: 1;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
}

.cart-main {
  min-width: 0;
  overflow: visible;
  padding-right: 0;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-line {
  border: 1px solid #cfdbef;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.cart-line-media {
  width: 86px;
  height: 70px;
}

.cart-line-image,
.cart-line-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.cart-line-image {
  object-fit: cover;
  display: block;
}

.cart-line-placeholder {
  background: linear-gradient(180deg, #e7eefb 0%, #dce7fa 100%);
  color: #415a86;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-line-main {
  min-width: 0;
}

.cart-line-name {
  margin: 0;
  color: #1f3458;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.cart-line-meta {
  margin: 4px 0 0;
  color: #667695;
  font-size: 12px;
  line-height: 1.35;
}

.cart-line-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4deef;
  border-radius: 999px;
  background: #f7faff;
  height: 30px;
  padding: 0 3px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #304a76;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #2f4570;
}

.cart-remove-btn {
  border: 0;
  background: transparent;
  color: #7a355a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-remove-btn:hover {
  text-decoration: underline;
}

.cart-line-price {
  text-align: right;
  white-space: nowrap;
}

.cart-line-unit {
  margin: 0;
  color: #6b7b99;
  font-size: 12px;
}

.cart-line-total {
  margin: 5px 0 0;
  color: #243b63;
  font-size: 16px;
  font-weight: 800;
}

.cart-summary {
  min-width: 0;
  display: block;
}

.cart-summary-card {
  position: static;
  margin-top: 0;
  border: 1px solid #cfdaef;
  border-radius: 12px;
  background: #ffffff;
  padding: 11px;
  box-shadow: 0 8px 20px rgba(53, 72, 112, 0.12);
}

.cart-summary-title {
  margin: 0 0 9px;
  font-size: 14px;
  color: #213863;
  font-weight: 800;
}

.cart-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: #3d537d;
  font-size: 13px;
}

.cart-summary-row strong {
  color: #233a63;
  font-size: 15px;
}

.cart-checkout-btn,
.cart-continue-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  min-height: 36px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.cart-checkout-btn {
  margin-top: 12px;
  background: #324c7b;
  color: #ffffff;
}

.cart-continue-btn {
  margin-top: 7px;
  background: #e9effb;
  color: #324c7b;
}

.cart-empty {
  margin: 30px 0;
  text-align: center;
  color: #5e6f8d;
  font-size: 13px;
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.draft-selection {
  border-top: 1px solid var(--border);
  background: #f7faff;
  padding: 8px 12px 10px;
}

.draft-selection-toggle {
  width: 100%;
  border: 1px solid #d6dfef;
  border-radius: 10px;
  background: #ffffff;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #324b77;
}

.draft-selection-toggle[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.draft-selection-arrow {
  font-size: 12px;
}

.draft-selection-details {
  margin-top: 0;
  border: 1px solid #d6dfef;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  padding: 8px 10px;
  max-height: 130px;
  overflow-y: auto;
}

.draft-selection-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #2f4064;
  font-size: 13px;
}

.widget-composer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.composer-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  background: #f8faff;
  outline: none;
}

.composer-input:focus {
  border-color: #8da2c8;
  box-shadow: 0 0 0 3px rgba(141, 162, 200, 0.2);
}

.composer-send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--user);
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.message {
  display: flex;
}

.message-assistant {
  justify-content: flex-start;
}

.message-user {
  justify-content: flex-end;
}

.message-user-stack {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.message-bubble {
  max-width: 65%;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--assistant);
}

.message-user-bubble {
  background: var(--user);
  color: var(--user-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.message-text {
  margin: 0;
}

.message-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.indicator-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #e5edfb;
  color: #2f4470;
  cursor: pointer;
  white-space: nowrap;
}

.indicator-button[data-open="true"] {
  background: #d8f2e5;
  color: #1f6a45;
}

.message-selection-card {
  width: 65%;
  border: 1px solid #adc0e2;
  border-radius: 12px;
  background: linear-gradient(180deg, #ebf3ff 0%, #dfeafb 100%);
  box-shadow: 0 8px 18px rgba(50, 76, 123, 0.16);
  overflow: hidden;
}

.message-selection-toggle {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #223760;
  height: 38px;
  padding: 0 10px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.message-selection-toggle[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.message-selection-badge {
  display: inline-flex;
  align-items: center;
  background: #324c7b;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.message-selection-arrow {
  font-size: 12px;
  color: #2e456f;
}

.message-selection-details {
  border-top: 1px solid #c4d3ee;
  padding: 8px 10px 9px;
  background: rgba(255, 255, 255, 0.55);
}

.message-selection-list {
  margin: 0;
  padding-left: 17px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #253b64;
}

.extra-view {
  position: fixed;
  right: 664px;
  bottom: 24px;
  width: 520px;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f8fafe;
  box-shadow: 0 20px 44px rgba(30, 47, 77, 0.13);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 19;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.extra-view.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.extra-view-head {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  padding: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.extra-view-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.extra-view-subtitle {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.extra-view-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.extra-view-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.rooms-list,
.services-list {
  display: grid;
  gap: 12px;
}

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

.room-card,
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.room-card.is-selected,
.service-card.is-selected {
  border-color: #8da2c8;
  box-shadow: 0 0 0 3px rgba(141, 162, 200, 0.22);
}

.room-summary {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.room-media {
  position: relative;
  padding: 10px 10px 0;
}

.room-cover {
  width: 100%;
  height: 146px;
  object-fit: cover;
  border-radius: 12px;
}

.room-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(19, 33, 59, 0.86);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 8px;
}

.room-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  padding: 10px 10px 11px;
  flex: 1;
}

.room-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.room-meta {
  margin: 0 0 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.room-highlights {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  color: #7b879f;
  font-size: 11px;
  line-height: 1.3;
}

.room-description {
  margin: 0;
  color: #2f456d;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.room-price {
  margin: auto 0 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  align-self: flex-start;
  text-align: left;
}

.room-price strong {
  display: inline-block;
  font-size: 18px;
  color: #1e335a;
}

.room-price span {
  font-size: 12px;
  color: var(--muted);
}

.room-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e6ecf7;
}

.room-cover-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
}

.room-cover-open:focus-visible {
  outline: 2px solid #4e6792;
  outline-offset: 2px;
}

.action {
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.action-primary {
  background: var(--accent);
  color: #322132;
}

.action-primary.is-selected {
  background: #c5e8d4;
  color: #20573c;
}

.action-secondary {
  background: var(--accent-soft);
  color: #5d3d56;
}

.room-actions .action {
  flex: 1;
  min-height: 32px;
}

.room-detail-view {
  display: flex;
  flex-direction: column;
}

.room-detail-view.is-selected .room-detail-cover {
  box-shadow: 0 0 0 3px rgba(141, 162, 200, 0.22);
}

.back-link {
  align-self: flex-start;
  border: 0;
  background: #e5edfb;
  color: #2f4470;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
}

.room-detail-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.thumbs-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.thumb.is-active {
  border-color: #4e6792;
  box-shadow: 0 0 0 3px rgba(78, 103, 146, 0.16);
}

.room-detail-head {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.room-detail-title {
  margin: 0;
  font-size: 20px;
}

.room-detail-price {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.room-detail-price span {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.detail-tabs {
  margin-top: 10px;
  display: inline-flex;
  border: 1px solid #cfdbef;
  border-radius: 10px;
  background: #f5f8ff;
  padding: 3px;
}

.detail-tab {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4b5f86;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  padding: 0 11px;
  cursor: pointer;
}

.detail-tab.is-active {
  background: #ffffff;
  color: #243a61;
  box-shadow: 0 2px 8px rgba(53, 72, 112, 0.14);
}

.detail-panel {
  margin-top: 10px;
}

.detail-copy {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.detail-copy-toggle {
  margin-top: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2f4470;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  align-self: flex-start;
}

.detail-copy-toggle:hover {
  text-decoration: underline;
}

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

.detail-spec-row {
  border: 1px solid #d6e0f2;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.detail-spec-label {
  color: #6a7996;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.detail-spec-value {
  color: #2a406a;
  font-size: 14px;
  font-weight: 700;
}

.detail-perks {
  margin-top: 10px;
}

.detail-perks-title {
  margin: 0 0 6px;
  color: #2c426c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-perk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.detail-perk-item {
  border: 1px solid #d6e0f2;
  border-radius: 10px;
  background: #ffffff;
  padding: 7px 9px;
  color: #2f466f;
  font-size: 13px;
  line-height: 1.35;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-pill {
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  background: #fff;
}

.detail-cta-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.action-detail {
  padding: 10px 14px;
  font-size: 13px;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
}

.service-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-name {
  margin: 0;
  font-size: 15px;
}

.service-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.service-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.service-price {
  margin: 0;
  font-weight: 700;
  color: #2d4268;
}

.compare-market {
  display: grid;
  gap: 12px;
}

.compare-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-product-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.compare-product-cover {
  width: 100%;
  height: 154px;
  object-fit: cover;
}

.compare-product-body {
  padding: 10px;
}

.compare-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.compare-product-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.compare-best-badge {
  flex-shrink: 0;
  border-radius: 999px;
  background: #c5e8d4;
  color: #20573c;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
}

.compare-product-price {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #23375f;
}

.compare-product-price span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.compare-product-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.compare-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.compare-table-wrap {
  border: 1px solid #d4deef;
  border-radius: 14px;
  background: #ffffff;
  overflow: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid #e5ebf6;
  vertical-align: top;
  padding: 10px;
  font-size: 13px;
  text-align: left;
}

.compare-table thead th {
  background: #f5f8ff;
  font-weight: 700;
  color: #2a4069;
  position: sticky;
  top: 0;
  z-index: 1;
}

.compare-table tbody th {
  width: 154px;
  background: #f9fbff;
  color: #3a4f77;
  font-weight: 700;
}

.compare-cell-price {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #223760;
}

.compare-cell-period {
  display: block;
  margin-top: 2px;
  color: #667595;
  font-size: 12px;
}

.compare-spec-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  color: #2f446c;
}

.compare-desc-cell {
  color: #33496f;
  line-height: 1.4;
}

.compare-flag-cell {
  font-size: 16px;
  font-weight: 700;
  text-align: center !important;
}

.compare-flag-cell.is-yes {
  color: #1f7a4a;
}

.compare-flag-cell.is-no {
  color: #95a2ba;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 35, 0.86);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-img {
  max-width: min(1280px, 92vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

body.preview-mobile .widget-shell {
  width: 402px;
  height: 874px;
  border-radius: 24px;
  right: 24px;
  bottom: 24px;
}

body.preview-mobile .extra-view {
  right: 24px;
  bottom: 24px;
  width: 402px;
  height: 874px;
  z-index: 30;
  border-radius: 24px;
  transform: translateY(16px);
}

body.preview-mobile .extra-view.open {
  transform: translateY(0);
}

body.preview-mobile .topbar {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

body.preview-mobile .topbar-controls {
  width: 100%;
  display: grid;
  gap: 8px;
}

body.preview-mobile .preview-switch,
body.preview-mobile .domain-switch,
body.preview-mobile .scenario-switch {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

body.preview-mobile .preview-switch::-webkit-scrollbar,
body.preview-mobile .domain-switch::-webkit-scrollbar,
body.preview-mobile .scenario-switch::-webkit-scrollbar {
  display: none;
}

body.preview-mobile .preview-btn,
body.preview-mobile .domain-btn,
body.preview-mobile .scenario-btn {
  white-space: nowrap;
  padding: 8px 11px;
  font-size: 12px;
}

body.preview-mobile .widget-head {
  height: 52px;
  padding: 0 12px;
}

body.preview-mobile .widget-status {
  display: none;
}

body.preview-mobile .pinned-selection {
  padding: 8px 10px;
}

body.preview-mobile .cart-view {
  right: 24px;
  bottom: 24px;
  width: 402px;
  height: 874px;
  border-radius: 24px;
  z-index: 32;
  transform: translateY(16px);
}

body.preview-mobile .cart-view.open {
  transform: translateY(0);
}

body.preview-mobile .cart-head {
  padding: 10px;
}

body.preview-mobile .cart-title {
  font-size: 16px;
}

body.preview-mobile .cart-content {
  padding: 10px;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.preview-mobile .cart-main {
  padding-right: 0;
}

body.preview-mobile .cart-line {
  grid-template-columns: 76px minmax(0, 1fr);
}

body.preview-mobile .cart-line-media {
  width: 76px;
  height: 62px;
}

body.preview-mobile .cart-line-price {
  grid-column: 2;
  text-align: left;
  margin-top: 2px;
}

body.preview-mobile .cart-summary-card {
  position: static;
}

body.preview-mobile .chat-feed {
  gap: 10px;
  padding: 12px;
}

body.preview-mobile .message-bubble,
body.preview-mobile .message-selection-card {
  max-width: 86%;
  width: auto;
}

body.preview-mobile .message-bubble {
  padding: 12px;
}

body.preview-mobile .message-indicator {
  flex-direction: column;
  align-items: flex-start;
}

body.preview-mobile .indicator-button {
  margin-top: 4px;
}

body.preview-mobile .draft-selection {
  padding: 7px 10px 8px;
}

body.preview-mobile .draft-selection-toggle {
  height: 34px;
}

body.preview-mobile .widget-composer {
  padding: 10px;
  gap: 8px;
}

body.preview-mobile .composer-input {
  height: 42px;
  font-size: 13px;
}

body.preview-mobile .composer-send {
  width: 42px;
  height: 42px;
}

body.preview-mobile .compare-products {
  grid-template-columns: 1fr;
}

body.preview-mobile .compare-product-cover {
  height: 148px;
}

body.preview-mobile .compare-table {
  min-width: 520px;
}

body.preview-mobile .rooms-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.preview-mobile .extra-view-head {
  padding: 10px;
}

body.preview-mobile .extra-view-title {
  font-size: 16px;
}

body.preview-mobile .extra-view-subtitle {
  font-size: 12px;
}

body.preview-mobile .extra-view-content {
  padding: 10px;
}

body.preview-mobile .room-summary {
  grid-template-columns: 1fr;
  gap: 8px;
}

body.preview-mobile .room-cover {
  height: 118px;
}

body.preview-mobile .room-main {
  gap: 6px;
  padding: 8px 8px 9px;
}

body.preview-mobile .room-actions {
  justify-content: space-between;
}

body.preview-mobile .room-highlights {
  gap: 3px;
  font-size: 11px;
}

body.preview-mobile .room-description {
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
}

body.preview-mobile .room-price {
  align-self: flex-start;
  text-align: left;
}

body.preview-mobile .service-card {
  grid-template-columns: 1fr;
  gap: 8px;
}

body.preview-mobile .service-side {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

body.preview-mobile .room-detail-cover {
  height: 190px;
}

body.preview-mobile .image-lightbox {
  padding: 14px;
}

body.preview-mobile .image-lightbox-close {
  top: 10px;
  right: 10px;
}

body.preview-mobile .image-lightbox-img {
  max-width: 96vw;
  max-height: 86vh;
}

body.preview-mobile .thumb img {
  height: 60px;
}

body.preview-mobile .room-detail-head {
  flex-direction: column;
  gap: 4px;
}

body.preview-mobile .room-detail-title {
  font-size: 18px;
}

body.preview-mobile .detail-cta-row {
  justify-content: flex-start;
}

@media (max-width: 1620px) {
  body {
    min-width: 1620px;
  }
}
