#chatbot-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #152e57;
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
}

#chatbot-box {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 440px;
  height: auto;
  max-height: 70rem;
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

#chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px;
  background: #152e57;
  color: white;
}

#chatbot-log {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  height: 70rem;
}

#chatbot-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
}

#chatbot-input {
  display: flex;
}

#chatbot-input input {
  flex: 1;
  padding: 10px;
  border: solid 1px #152e57;
  border-radius: 10px;
  outline: none;
  width: 100%;
}

#chatbot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#chatbot-actions button {
  padding: 10px 14px;
  border: none;
  background: white;
  color: #152e57;
}

#chatbot-actions button:hover {
  padding: 10px 14px;
  border: none;
  background: #152e57;
  color: white;
}

#chatbot-record {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}

#chatbot-record svg {
  display: block;
}

#chatbot-record.recording {
  background: #b91c1c;
  color: #fff;
}

#chatbot-send {
  background: #152e57;
  color: #fff;
}

#chatbot-record-progress {
  display: none;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 8px 10px;
}

#chatbot-record-cancel,
#chatbot-record-accept {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#chatbot-record-cancel {
  background: #b91c1c;
  color: #ffffff;
  font-size: xx-large;
}

#chatbot-record-accept {
  background: #111827;
  color: #ffffff;
}

#chatbot-record-progress-track {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

#chatbot-record-progress-bar {
  width: 0%;
  height: 100%;
  background: #111827;
  transition: width 0.1s linear;
}

#chatbot-record-time {
  font-size: 20px;
  color: #111827;
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.msg { margin-bottom: 8px; }
.bot { color: #374151; }

/* Quick action buttons (inside bot messages) */
.quick-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-btn {
  width: 100%;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.quick-btn.secondary {
  background: #eef2ff;
  color: #152e57;
}

.quick-btn:hover {
  filter: brightness(0.95);
  border: 2px solid #ff5402;
}

/* Status card */
.status-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  min-width: 260px;
}

.status-card-title {
  font-weight: 600;
  color: #152e57;
  margin-bottom: 8px;
}

.status-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.status-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
}

.status-tab.active {
  background: #152e57;
  color: #ffffff;
}

.status-content {
  margin-top: 10px;
  font-size: 13px;
  color: #374151;
}

.status-skeleton {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.status-skeleton-bar {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: statusShimmer 1.2s ease-in-out infinite;
}

.status-skeleton-bar.short {
  width: 60%;
}

.status-error {
  color: #b91c1c;
  margin-bottom: 8px;
}

.status-retry {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Pricing card */
.pricing-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  min-width: 260px;
}

.pricing-card-title {
  font-weight: 600;
  color: #152e57;
  margin-bottom: 10px;
}

.pricing-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-card-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
}

.pricing-card-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #152e57;
  margin-bottom: 4px;
}

.pricing-card-item-description {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 6px;
}

.pricing-card-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #a35300;
}

/* Property accordion (structured property cards) */
.property-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.property-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.property-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: #f8fafc;
  cursor: pointer;
  border: none;
  text-align: left;
}

.property-header:disabled {
  cursor: default;
}

.property-chevron {
  width: 18px;
  height: 18px;
  color: #152e57;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.property-item.is-open .property-chevron {
  transform: rotate(90deg);
}

.property-title {
  font-weight: 600;
  color: #152e57;
  flex: 1;
}

.property-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #374151;
}

.property-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid transparent;
}

.property-badge.complete {
  background: #e6f4ea;
  color: #1b5e20;
  border-color: #c8e6c9;
}

.property-badge.incomplete {
  background: #fff3e0;
  color: #a35300;
  border-color: #ffe0b2;
}

.property-body {
  display: none;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.property-item.is-open .property-body {
  display: block;
}

.property-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.property-missing-line {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.property-chip {
  background: #f3f4f6;
  color: #4b5563;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.property-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.property-action-btn {
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  background: #ffedf3;
  color: brown;
  border: 1px solid brown;
}

.property-action-btn.secondary {
  background: #eef2ff;
  color: #152e57;
}

@keyframes statusShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loader */
.loader {
  width: 60px;
  aspect-ratio: 4;
  --_g: no-repeat radial-gradient(circle closest-side,#000 90%,#0000);
  background:
    var(--_g) 0%   50%,
    var(--_g) 50%  50%,
    var(--_g) 100% 50%;
  background-size: calc(100%/3) 100%;
  animation: l7 1s infinite linear;
  margin: 8px 0;
}

@keyframes l7 {
  33% {
    background-size: calc(100%/3) 0%,
                     calc(100%/3) 100%,
                     calc(100%/3) 100%;
  }
  50% {
    background-size: calc(100%/3) 100%,
                     calc(100%/3) 0%,
                     calc(100%/3) 100%;
  }
  66% {
    background-size: calc(100%/3) 100%,
                     calc(100%/3) 100%,
                     calc(100%/3) 0%;
  }
}
