/* Axis 0.11.0 — actionable Lucy UI */
.axis110-chat {
  display: grid;
  gap: 12px;
  width: min(100%, 980px);
  margin: 10px auto 18px;
}
.axis110-chat .axis-chat-message {
  position: relative;
  max-width: min(78%, 720px);
  padding: 13px 16px 10px;
  border: 1px solid rgba(117, 105, 255, .26);
  border-radius: 18px 18px 18px 6px;
  background: rgba(14, 29, 52, .92);
  color: #f4f6ff;
  line-height: 1.45;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .12);
}
.axis110-chat .axis-chat-message.is-user {
  justify-self: end;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, rgba(111, 73, 255, .95), rgba(82, 56, 215, .95));
  border-color: rgba(151, 129, 255, .62);
}
.axis110-chat .axis-chat-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.axis110-chat .axis-chat-message time { display: block; margin-top: 5px; color: rgba(213, 220, 244, .62); font-size: 10px; text-align: right; }
.axis110-chat .axis-chat-message.is-user time { color: rgba(255,255,255,.64); }
.axis110-thinking { display: inline-flex !important; gap: 5px; align-items: center; width: 62px; min-height: 42px; }
.axis110-thinking i { width: 6px; height: 6px; border-radius: 50%; background: #8d7bff; animation: axis110Pulse 1s infinite ease-in-out; }
.axis110-thinking i:nth-child(2) { animation-delay: .14s; }
.axis110-thinking i:nth-child(3) { animation-delay: .28s; }
@keyframes axis110Pulse { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }

.axis110-action-card {
  width: min(100%, 820px);
  padding: 16px;
  border: 1px solid rgba(119, 92, 255, .55);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(21, 34, 61, .98), rgba(17, 27, 51, .98));
  box-shadow: 0 18px 48px rgba(3, 8, 22, .34), inset 0 1px 0 rgba(255,255,255,.025);
}
.axis110-action-card > header { display: flex; align-items: center; gap: 12px; }
.axis110-action-card > header > span { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; color: #b4a7ff; background: rgba(111, 78, 255, .16); }
.axis110-action-card > header div { min-width: 0; }
.axis110-action-card > header small { display: block; color: #8fa0c4; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.axis110-action-card > header strong { display: block; margin-top: 2px; color: #f7f8ff; font-size: 16px; }
.axis110-action-card__summary { margin: 14px 0 0; padding: 12px 14px; border-radius: 13px; background: rgba(8, 19, 38, .66); color: #dfe5fb; font-weight: 650; overflow-wrap: anywhere; }
.axis110-duplicate { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(255, 187, 61, .38); border-radius: 12px; background: rgba(255, 172, 35, .08); color: #ffd27d; font-size: 12px; line-height: 1.4; }
.axis110-action-editor { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(111, 130, 170, .18); }
.axis110-action-card.is-editing .axis110-action-editor { display: grid; }
.axis110-field { display: grid; gap: 6px; min-width: 0; }
.axis110-field.is-full { grid-column: 1 / -1; }
.axis110-field > span { color: #9ba9c8; font-size: 11px; }
.axis110-field input, .axis110-field select, .axis110-field textarea {
  width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid rgba(117, 132, 173, .28); border-radius: 11px;
  background: rgba(5, 15, 32, .78); color: #f5f7ff; padding: 10px 11px; font: inherit; outline: none;
}
.axis110-field textarea { min-height: 70px; resize: vertical; }
.axis110-field input:focus, .axis110-field select:focus, .axis110-field textarea:focus { border-color: #7458ff; box-shadow: 0 0 0 3px rgba(103, 75, 255, .13); }
.axis110-action-card > footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.axis110-btn { min-height: 42px; border-radius: 12px; padding: 0 14px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #edf1ff; font-weight: 700; cursor: pointer; }
.axis110-btn.is-primary { background: linear-gradient(135deg, #7653ff, #5c3ee3); box-shadow: 0 8px 22px rgba(94, 58, 225, .26); }
.axis110-btn.is-secondary { background: rgba(79, 68, 151, .23); border-color: rgba(126, 106, 255, .4); }
.axis110-btn.is-ghost { background: transparent; border-color: rgba(132, 145, 179, .22); color: #aeb9d5; }
.axis110-btn:hover { filter: brightness(1.08); }
.axis110-undo-warning { grid-column: 1 / -1; padding: 12px; border-radius: 12px; background: rgba(255, 190, 69, .08); color: #ffd98f; }

.axis110-history { display: grid; gap: 8px; margin-top: 4px; padding: 14px; border: 1px solid rgba(92, 112, 160, .22); border-radius: 18px; background: rgba(12, 25, 47, .72); }
.axis110-history > header { display: flex; align-items: center; gap: 8px; color: #d7ddf5; margin-bottom: 2px; }
.axis110-history > header span { color: #8978ff; }
.axis110-history article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border-radius: 12px; background: rgba(6, 16, 33, .62); }
.axis110-history article > div { min-width: 0; }
.axis110-history article strong { display: block; color: #eef1ff; font-size: 12px; overflow-wrap: anywhere; }
.axis110-history article small { display: block; margin-top: 3px; color: #7f8dab; font-size: 10px; }
.axis110-history article.is-undone strong, .axis110-history article.is-cancelled strong { color: #8591ad; text-decoration: line-through; }
.axis110-history button { min-height: 36px; flex: 0 0 auto; border: 1px solid rgba(121, 103, 255, .32); border-radius: 10px; background: rgba(85, 66, 184, .18); color: #cfc7ff; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

@media (max-width: 680px) {
  .axis110-chat { width: 100%; gap: 10px; margin: 8px 0 14px; }
  .axis110-chat .axis-chat-message { max-width: 88%; padding: 11px 13px 9px; font-size: 13px; }
  .axis110-action-card { padding: 13px; border-radius: 17px; }
  .axis110-action-card > header > span { width: 38px; height: 38px; flex-basis: 38px; }
  .axis110-action-card > header strong { font-size: 14px; }
  .axis110-action-card__summary { font-size: 13px; }
  .axis110-action-editor { grid-template-columns: 1fr; }
  .axis110-field.is-full { grid-column: auto; }
  .axis110-action-card > footer { display: grid; grid-template-columns: 1fr 1fr; }
  .axis110-action-card > footer .is-primary { grid-column: 1 / -1; grid-row: 1; }
  .axis110-btn { min-height: 46px; padding: 0 10px; font-size: 12px; }
  .axis110-history { padding: 11px; }
  .axis110-history article { align-items: flex-start; }
  .axis110-history button { min-height: 40px; font-size: 0; width: 40px; padding: 0; justify-content: center; }
}
.lucy-chat.axis110-hidden-demo { display: none !important; }
.axis110-empty-chat { display:flex; align-items:flex-start; gap:11px; padding:15px; border:1px dashed rgba(119,101,255,.34); border-radius:16px; background:rgba(14,26,49,.6); color:#a8b4d0; }
.axis110-empty-chat > svg { flex:0 0 auto; color:#8c79ff; margin-top:1px; }
.axis110-empty-chat strong { display:block; color:#edf0ff; font-size:13px; }
.axis110-empty-chat span { display:block; margin-top:4px; font-size:12px; line-height:1.45; }
