.admin-ai-chat {
  font:
    15px/1.5 Titillium,
    Arial,
    sans-serif;
  color: var(--ink);
}
.rich-content .rich-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}
.rich-content table,
.rich-editable table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.rich-content td,
.rich-content th,
.rich-editable td,
.rich-editable th {
  border: 1px solid #d5e0ea;
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 55px;
}
.rich-content th,
.rich-editable th {
  background: #edf4fb;
  font-weight: 700;
}
.rich-content td p,
.rich-content th p {
  margin: 0 0 5px;
}
.trip-ai-description-tools {
  margin: 15px 0 22px;
  padding: 16px;
  background: #f2f7fd;
  border: 1px solid #dce8f5;
  border-radius: 10px;
}
.trip-ai-description-tools p {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.trip-ai-description-tools .text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  text-decoration: underline;
}
.public-ai-chat {
  font:
    15px/1.5 Titillium,
    Arial,
    sans-serif;
  color: var(--ink);
}
.ai-markdown {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ai-markdown > :first-child {
  margin-top: 0;
}
.ai-markdown > :last-child {
  margin-bottom: 0;
}
.ai-markdown h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 18px 0 9px;
}
.ai-markdown h4 {
  font-size: 15px;
  line-height: 1.4;
  margin: 14px 0 7px;
}
.ai-markdown p {
  margin: 0 0 12px;
}
.ai-markdown ul,
.ai-markdown ol {
  padding-left: 23px;
  margin: 9px 0 14px;
}
.ai-markdown li {
  margin: 5px 0;
}
.ai-markdown li > p {
  margin: 0;
}
.ai-markdown blockquote {
  border-left: 3px solid #b4cfea;
  margin: 12px 0;
  padding-left: 13px;
  color: var(--muted);
}
.ai-markdown a {
  color: var(--blue);
  text-decoration: underline;
}
.ai-markdown pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f6fb;
  padding: 10px;
  border-radius: 7px;
}
.ai-markdown code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9em;
}
.ai-markdown-fallback {
  white-space: pre-wrap;
}
.ai-panel .ai-markdown h3 {
  font-size: 18px;
  margin: 18px 0 9px;
}
.ai-panel .ai-markdown h4 {
  font-size: 15px;
  margin: 14px 0 7px;
}
.ai-panel .ai-markdown p {
  margin: 0 0 12px;
}
.ai-human-preview {
  padding: 2px 14px 12px;
}
.ai-preview-field {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ai-preview-field:last-child {
  border-bottom: 0;
}
.ai-preview-original {
  margin-top: 8px;
  font-size: 0.9em;
}
.ai-preview-original > summary {
  color: var(--muted, #64748b);
  cursor: pointer;
}
.ai-panel .ai-preview-field > h4 {
  margin: 0 0 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.ai-preview-after {
  font-size: 14px;
  line-height: 1.6;
}
.ai-preview-before {
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: #f7f8fa;
  font-size: 12px;
  color: var(--muted);
}
.ai-preview-before > span:first-child,
.ai-value-caption {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
}
.ai-value-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-value-empty {
  color: var(--muted);
  font-style: italic;
}
.ai-value-list {
  margin: 0;
  padding-left: 19px;
}
.ai-value-list li {
  margin: 4px 0;
}
.ai-value-fields {
  margin: 0;
}
.ai-value-fields dt {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.ai-value-fields dd {
  margin: 2px 0 0;
}
.ai-preview-after .rich-content h2 {
  font-size: 18px;
  margin: 18px 0 9px;
}
.ai-preview-after .rich-content h3 {
  font-size: 15px;
  margin: 14px 0 7px;
}
.ai-preview-after .rich-content p {
  margin: 0 0 10px;
}
.ai-preview-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ai-preview-photo {
  max-width: 160px;
  max-height: 120px;
  border-radius: 8px;
  object-fit: cover;
}
.ai-delete-notice {
  color: #9b352b;
  font-weight: bold;
}
.ai-saved-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.ai-saved-links strong {
  font-size: 13px;
}
.ai-saved-links a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
  font-size: 13px;
}
.ai-saved-links small {
  color: var(--muted);
  font-size: 11px;
}
.ai-attached-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}
.ai-attached-photos > div {
  position: relative;
  width: 78px;
}
.ai-attached-photos img {
  width: 78px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.ai-attached-photos a > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.ai-panel .ai-attached-photos button {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 50%;
  background: white;
  font-size: 15px;
  box-shadow: 0 1px 5px #0002;
}
.ai-panel .ai-upload {
  width: 36px;
  min-width: 36px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.ai-upload .icon {
  width: 20px;
  height: 20px;
}
.ai-upload-status {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.ai-diff .ai-markdown h3,
.ai-diff .rich-content h2 {
  font-size: 14px;
}
.ai-diff .ai-markdown h4,
.ai-diff .rich-content h3 {
  font-size: 12px;
}
.public-ai-close {
  display: grid;
  place-items: center;
}
.public-ai-close svg {
  width: 18px;
  height: 18px;
}
.public-ai-offer {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid #d7e4ef;
  border-radius: 12px;
  background: #fff;
}
.public-ai-offer > small {
  font-size: 11px;
  color: var(--muted);
}
.public-ai-offer h3 {
  font-size: 17px;
  margin: 5px 0;
  line-height: 1.4;
}
.public-ai-offer h3 a:hover {
  color: var(--blue);
}
.public-ai-offer p {
  font-size: 13px;
  margin: 9px 0;
}
.public-ai-duration {
  font-size: 11px;
  color: var(--muted);
}
.public-ai-pickup-details {
  margin: 12px 0;
  font-size: 12px;
}
.public-ai-pickup-details summary {
  cursor: pointer;
  font-weight: bold;
}
.public-ai-pickup-details > div {
  margin-top: 12px;
}
.public-ai-pickups {
  margin: 7px 0;
  padding-left: 18px;
}
.public-ai-pickups li {
  margin: 6px 0;
}
.public-ai-pickups span {
  display: block;
  color: var(--muted);
}
.public-ai-excerpt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  max-height: 240px;
  overflow: auto;
}
.public-ai-muted {
  font-size: 12px;
  color: var(--muted);
}
.public-ai-dates {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.public-ai-dates li {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.public-ai-dates li > button {
  flex-basis: 100%;
  text-align: left;
  font-size: 13px;
}
.public-ai-dates li > .public-ai-muted {
  flex-basis: 100%;
}
.public-ai-offer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}
.public-ai-offer-actions > .ai-nav-link {
  margin: 0;
}
.public-ai-offer .public-ai-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  margin: 12px 0;
  border: 1px solid var(--blue);
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.public-ai-offer .public-ai-primary:hover:not(:disabled) {
  background: var(--navy);
  border-color: var(--navy);
}
.public-ai-offer-actions .public-ai-primary {
  margin: 0;
}
.public-ai-offer .public-ai-secondary {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid #bfd1e7;
  border-radius: 8px;
  color: var(--blue);
  font-weight: 700;
  background: #f2f7ff;
  text-decoration: none;
}
.public-ai-prefill {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.public-ai-prefill summary {
  cursor: pointer;
  color: #36516e;
  font-weight: 700;
}
.public-ai-prefill dl {
  margin: 10px 0;
}
.public-ai-prefill dl > div {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr);
  gap: 8px;
  padding: 4px 0;
}
.public-ai-prefill dt {
  color: var(--muted);
}
.public-ai-prefill dd {
  margin: 0;
}
.public-ai-booking-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  line-height: 1.4;
  padding: 0;
  margin-bottom: 8px;
  color: var(--muted);
}
.public-ai-booking-note button {
  padding: 4px 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}
.ai-footer > .public-ai-muted {
  font-size: 12px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.public-ai-dates strong {
  flex-shrink: 0;
  color: var(--blue);
}
@media print {
  .public-ai-chat {
    display: none !important;
  }
}
.ai-launcher {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 60px;
  height: 56px;
  padding: 0 20px;
  border: 1px solid #ffffff30;
  border-radius: 30px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 28px #0b234035;
  font-weight: 700;
  transition:
    transform 0.18s,
    background 0.18s;
}
.ai-launcher:hover {
  background: var(--blue);
  transform: translateY(-2px);
}
.ai-launcher svg {
  display: block;
  width: 25px;
  height: 25px;
}
.ai-launcher.is-open {
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  font-size: 30px;
}
.ai-panel {
  position: fixed;
  right: 26px;
  bottom: 90px;
  z-index: 850;
  width: 480px;
  max-width: calc(100vw - 32px);
  height: min(480px, calc(100dvh - 116px));
  max-height: calc(100dvh - 116px);
  transition: height 180ms ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 18px 80px #0b234033,
    0 2px 12px #0b234012;
}
.ai-panel button {
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 7px 11px;
  line-height: 1.4;
  min-height: 36px;
}
.ai-panel button:hover:not(:disabled) {
  background: #eef5fd;
  border-color: #b5cee9;
}
.ai-panel button:disabled {
  cursor: default;
}
.ai-panel p {
  margin: 7px 0 12px;
}
.ai-panel h2,
.ai-panel h3 {
  margin: 0;
  color: var(--navy);
}
.ai-header {
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 20px;
}
.ai-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  background: #ffffff0c;
}
.ai-brand svg {
  width: 25px;
  height: 25px;
}
.ai-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.ai-brand small {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}
.ai-header button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 27px;
  padding: 0;
  width: 36px;
}
.ai-header button:hover:not(:disabled) {
  background: #ffffff18;
  border: 0;
}
.ai-toolbar {
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  flex-shrink: 0;
}
.ai-toolbar button {
  border: 0;
  padding: 5px 8px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--blue);
}
.ai-toolbar > span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
}
.ai-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  --chat-padding: 20px;
  padding: var(--chat-padding);
  padding-bottom: calc(var(--chat-padding) + var(--chat-tail, 0px));
  overflow-anchor: none;
  scroll-behavior: auto;
  scrollbar-width: thin;
  background: linear-gradient(180deg, #f8fbff 0, #fff 200px);
}
.ai-welcome {
  text-align: center;
  padding: 22px 12px 12px;
}
.ai-welcome-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #e8f2ff;
  border: 1px solid #d9e9fb;
  border-radius: 16px;
  margin: 0 auto 16px;
  color: var(--blue);
}
.ai-welcome-mark svg {
  width: 29px;
  height: 29px;
}
.ai-welcome h2 {
  font-size: 25px;
  font-weight: 700;
}
.ai-welcome p {
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
  margin: 10px auto 22px;
}
.ai-history {
  margin: 14px 0 22px;
}
.ai-history h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 10px;
}
.ai-history-item {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  align-items: center;
}
.ai-history-item > button:first-child {
  text-align: left;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 6px;
}
.ai-history-item strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 14px;
}
.ai-history-item small {
  color: var(--muted);
  font-size: 11px;
}
.ai-history-item > button:nth-child(2) {
  border: 0;
  background: transparent;
  color: #8290a0;
  padding: 8px;
}
.ai-history-item .icon {
  width: 16px;
  height: 16px;
}
.ai-delete-confirm {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px;
  background: #fff2ee;
  border-radius: 8px;
  font-size: 12px;
}
.ai-delete-confirm span {
  width: 100%;
}
.ai-delete-confirm button {
  font-size: 12px;
}
.ai-suggestions {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.ai-suggestions button {
  text-align: left;
  padding: 12px 14px;
  background: #fff;
  border-radius: 11px;
  color: #36516e;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ai-suggestions span {
  color: #8ba5bf;
  font-size: 17px;
}
.ai-footer {
  padding: 14px 16px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.ai-footer form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid #cad8e8;
  border-radius: 13px;
  padding: 7px;
  background: #fff;
}
.ai-footer form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #0860d610;
}
.ai-footer textarea {
  font: inherit;
  flex: 1;
  min-width: 0;
  resize: none;
  max-height: 140px;
  border: 0;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent;
  padding: 5px 6px;
  line-height: 1.45;
  font-size: 14px;
  color: var(--ink);
}
.ai-panel .ai-send {
  height: 38px;
  min-width: 38px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: white;
}
.ai-panel .ai-send:hover:not(:disabled) {
  background: var(--navy);
}
.ai-send .icon {
  width: 21px;
  height: 21px;
  transform: rotate(-90deg);
}
.ai-footer > small {
  display: block;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
  margin: 8px 4px 0;
}
.ai-message {
  margin: 0 0 21px;
  min-width: 0;
}
.ai-message-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin: 0 2px 6px;
}
.ai-message-text {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.ai-message-user {
  margin-left: 35px;
}
.ai-message-user .ai-message-text {
  background: #eaf2ff;
  border: 1px solid #dce8fa;
  padding: 12px 15px;
  border-radius: 14px 14px 3px 14px;
}
.ai-message-user .ai-message-label {
  text-align: right;
}
.ai-message-assistant {
  margin-right: 5px;
}
.ai-message-error .ai-message-text {
  color: #9b352b;
}
.ai-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
}
.ai-thinking > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  animation: ai-pulse 1.2s infinite alternate;
}
@keyframes ai-pulse {
  to {
    opacity: 0.3;
    transform: scale(0.8);
  }
}
.ai-error {
  padding: 11px 16px;
  background: #fff0ec;
  border-bottom: 1px solid #efc8bf;
  color: #9b352b;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ai-error button {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 0;
}
.ai-nav-link,
.ai-result-link {
  display: inline-block;
  margin: 10px 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ai-proposal {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #c8d9ee;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 3px 12px #0b234005;
  font-size: 12px;
}
.ai-batch-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ai-batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}
.ai-batch-table thead th {
  position: sticky;
  top: 0;
  background: #edf3fa;
  z-index: 1;
}
.ai-batch-table th,
.ai-batch-table td {
  padding: 9px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  min-width: 90px;
  overflow-wrap: anywhere;
}
.ai-batch-table tbody th {
  min-width: 150px;
  width: 30%;
  font-weight: 600;
  background: #f8fafc;
}
.ai-batch-table small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
}
.ai-batch-table td:last-child {
  background: #f1f9f3;
}
.ai-proposal-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-proposal-heading > strong {
  font-size: 15px;
}
.ai-proposal-heading > span {
  color: #956100;
  font-size: 11px;
}
.ai-proposal-completed {
  border-color: #b3d9be;
}
.ai-proposal-completed .ai-proposal-heading > span {
  color: #287545;
}
.ai-proposal-rejected,
.ai-proposal-failed {
  border-color: #e3d6d3;
}
.ai-proposal-failed .ai-proposal-heading > span {
  color: #9b352b;
}
.ai-proposal > p {
  color: var(--muted);
  font-size: 12px;
}
.ai-proposal details {
  margin: 9px 0;
}
.ai-proposal summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #36516e;
  overflow-wrap: anywhere;
}
.ai-change {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.ai-change > summary {
  padding: 9px;
  background: #f4f8fc;
}
.ai-diff {
  max-height: 350px;
  overflow: auto;
  scrollbar-width: thin;
}
.ai-diff table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}
.ai-diff th,
.ai-diff td {
  padding: 7px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.ai-diff th:first-child {
  width: 23%;
}
.ai-diff thead {
  background: #f8fbff;
}
.ai-diff td:nth-child(2) {
  background: #fff9f7;
}
.ai-diff td:nth-child(3) {
  background: #f4fbf5;
}
.ai-proposal pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.5 ui-monospace,
    SFMono-Regular,
    monospace;
  margin: 0;
}
.ai-raw {
  max-height: 320px;
  overflow: auto;
  background: #f5f8fc;
  padding: 10px;
  margin-top: 8px !important;
  border-radius: 7px;
}
.ai-side-effects {
  margin: 12px 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff8e7;
  border: 1px solid #e9d9aa;
}
.ai-side-effects dl {
  margin: 10px 0 0;
}
.ai-side-effects dt {
  font-weight: 700;
}
.ai-side-effects dd {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.ai-approval {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.ai-approval > strong {
  font-size: 13px;
}
.ai-approval p {
  color: var(--muted);
  font-size: 12px;
}
.ai-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ai-row button {
  font-size: 12px;
}
.ai-panel .ai-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.ai-panel .ai-primary:hover:not(:disabled) {
  background: var(--navy);
  color: white;
}
@media (max-width: 600px) {
  .ai-launcher {
    right: 16px;
    bottom: 16px;
    height: 52px;
  }
  .ai-launcher > span {
    display: none;
  }
  .ai-launcher.is-open > span {
    display: block;
  }
  .ai-panel {
    right: 10px;
    bottom: 80px;
    width: calc(100vw - 20px);
    max-width: none;
    height: min(480px, calc(100dvh - 96px));
    max-height: calc(100dvh - 96px);
    border-radius: 16px;
  }
  .ai-body {
    --chat-padding: 16px;
  }
  .ai-header {
    padding: 14px 16px;
  }
  .ai-footer {
    padding: 12px;
  }
  .ai-welcome {
    padding-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-panel {
    transition: none;
  }
  .ai-thinking > span {
    animation: none;
  }
  .ai-launcher {
    transition: none;
  }
}
@media print {
  .admin-ai-chat {
    display: none !important;
  }
}
