/* ==========================================================================
   伯温智算AI · AI 经营助理
   ========================================================================== */

.ai-fab {
  position: fixed;
  right: 26px;
  bottom: 25px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 45px;
  padding: 0 16px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 145, 98, 0.35), transparent 9rem),
    linear-gradient(135deg, #1d252d, #27313a);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(22, 27, 35, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 36px rgba(22, 27, 35, 0.25);
}

.ai-fab__orb {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f48259, #e74d21);
  box-shadow: 0 0 0 4px rgba(237, 90, 42, 0.12);
}

.ai-fab__orb svg {
  width: 14px;
  height: 14px;
}

.ai-fab__status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #67d7ac;
  box-shadow: 0 0 0 3px rgba(103, 215, 172, 0.12);
}

.ai-fab__status.is-off {
  background: #e0b55e;
  box-shadow: 0 0 0 3px rgba(224, 181, 94, 0.12);
}

body.ai-open {
  overflow: hidden;
}

.ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(17, 20, 26, 0.36);
  backdrop-filter: blur(2px);
  animation: ai-fade 180ms ease both;
}

@keyframes ai-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ai-drawer {
  position: fixed;
  z-index: 111;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(456px, 100vw);
  display: flex;
  flex-direction: column;
  background: #f6f3ec;
  box-shadow: -28px 0 80px rgba(20, 17, 12, 0.2);
  animation: ai-in 300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes ai-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.ai-head {
  position: relative;
  flex: none;
  overflow: hidden;
  padding: 23px 24px 19px;
  color: #fff;
  background:
    radial-gradient(circle at 94% 4%, rgba(237, 90, 42, 0.25), transparent 13rem),
    linear-gradient(135deg, #1a2129, #252e37);
}

.ai-head::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.03), 0 0 0 52px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.ai-head__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ai-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-brandmark {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #f48259, #e74d21);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 5px 18px rgba(237, 90, 42, 0.25);
}

.ai-brandmark svg {
  width: 19px;
  height: 19px;
}

.ai-brandline h2 {
  font-size: 19.4px;
  font-weight: 760;
  letter-spacing: -0.4px;
}

.ai-brandline p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11.2px;
}

.ai-close {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.6);
  transition: background 150ms ease, color 150ms ease;
}

.ai-close:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.ai-close svg {
  width: 12px;
  height: 12px;
}

.ai-head__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.ai-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 550;
}

.ai-status-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9b76a;
}

.ai-status-chip.is-ready {
  color: #9cdec6;
}

.ai-status-chip.is-ready i {
  background: #67d7ac;
  box-shadow: 0 0 0 3px rgba(103, 215, 172, 0.12);
}

.ai-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}

.ai-context-chip svg {
  width: 10px;
  height: 10px;
}

.ai-clear {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9.8px;
}

.ai-clear:hover {
  color: rgba(255, 255, 255, 0.75);
}

.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 19px 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: #d7d1c4 transparent;
}

.ai-messages {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ai-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 92%;
}

.ai-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg__avatar {
  width: 25px;
  height: 25px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #9a7a68;
  border: 1px solid #ebe4d9;
  font-size: 9.8px;
  font-weight: 700;
}

.ai-msg--user .ai-msg__avatar {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.ai-msg__bubble {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #eae4d8;
  border-radius: 13px 13px 13px 4px;
  background: #fffefb;
  color: #4f5751;
  font-size: 13px;
  line-height: 1.75;
  box-shadow: 0 4px 14px rgba(45, 37, 20, 0.035);
}

.ai-msg--user .ai-msg__bubble {
  border-color: transparent;
  border-radius: 13px 13px 4px 13px;
  background: #1b232b;
  color: rgba(255, 255, 255, 0.84);
}

.ai-msg__bubble p {
  margin: 0;
}

.ai-msg__bubble p + p {
  margin-top: 8px;
}

.ai-msg__bubble strong {
  color: #2e3630;
  font-weight: 700;
}

.ai-msg--user .ai-msg__bubble strong {
  color: #fff;
}

.ai-msg__bubble h4 {
  margin: 3px 0 6px;
  color: #2b332d;
  font-size: 13px;
  font-weight: 700;
}

.ai-msg__bubble ul {
  margin: 4px 0;
  padding-left: 17px;
  list-style: disc;
}

.ai-msg__bubble li {
  margin: 3px 0;
}

.ai-msg__bubble code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f1eee7;
  color: #8c4a2c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.8px;
}

.ai-msg__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: #a09d94;
  font-size: 9.8px;
}

.ai-welcome {
  padding: 4px 1px 2px;
}

.ai-welcome__orb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 180, 141, 0.8), transparent 60%),
    linear-gradient(135deg, #1d252e, #2d3740);
  color: #ff9c76;
  box-shadow: 0 10px 30px rgba(22, 27, 35, 0.14);
}

.ai-welcome__orb svg {
  width: 24px;
  height: 24px;
}

.ai-welcome h3 {
  margin-top: 16px;
  color: #202832;
  font-size: 21.6px;
  font-weight: 760;
  letter-spacing: -0.5px;
}

.ai-welcome p {
  margin-top: 6px;
  color: #7f857e;
  font-size: 11.9px;
  line-height: 1.75;
}

.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
}

.ai-suggestion {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #e7e0d4;
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.72);
  color: #626a63;
  font-size: 11.9px;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ai-suggestion:hover:not(:disabled) {
  border-color: #e3b49f;
  background: #fffaf5;
  transform: translateX(2px);
}

.ai-suggestion:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ai-suggestion__icon {
  width: 23px;
  height: 23px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fbe9df;
  color: #b54d28;
}

.ai-suggestion__icon svg {
  width: 11px;
  height: 11px;
}

.ai-suggestion span:last-child {
  flex: 1;
}

.ai-suggestion small {
  color: #b3aea3;
  font-size: 9.8px;
}

.ai-setup {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #efe2d4;
  border-radius: 10px;
  background: #fff8f2;
}

.ai-setup__title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5f5249;
  font-size: 12.4px;
  font-weight: 650;
}

.ai-setup__title svg {
  width: 13px;
  height: 13px;
  color: #c98431;
}

.ai-setup p {
  margin-top: 5px;
  color: #918479;
  font-size: 11.2px;
  line-height: 1.6;
}

.ai-setup__actions {
  display: flex;
  gap: 6px;
  margin-top: 11px;
}

.ai-setup__actions a,
.ai-setup__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 10.6px;
  font-weight: 600;
}

.ai-setup__actions a {
  background: var(--accent);
  color: #fff;
}

.ai-setup__actions button {
  border: 1px solid #e5d8ca;
  background: #fff;
  color: #7d7167;
}

.ai-error {
  margin-top: 13px;
  padding: 10px 11px;
  border: 1px solid #f0d2c9;
  border-radius: 8px;
  background: #fdf0ec;
  color: #a14d37;
  font-size: 11.2px;
  line-height: 1.6;
}

.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 14px;
}

.ai-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a7aaa2;
  animation: ai-bounce 1s ease-in-out infinite;
}

.ai-typing i:nth-child(2) { animation-delay: 120ms; }
.ai-typing i:nth-child(3) { animation-delay: 240ms; }

@keyframes ai-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-compose {
  flex: none;
  padding: 11px 14px 13px;
  border-top: 1px solid #e7e0d4;
  background: rgba(255, 254, 250, 0.94);
  backdrop-filter: blur(10px);
}

.ai-compose__box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 7px 8px 7px 11px;
  border: 1px solid #ded6c8;
  border-radius: 12px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ai-compose__box:focus-within {
  border-color: #ceb8a4;
  box-shadow: 0 0 0 3px rgba(237, 90, 42, 0.055);
}

.ai-compose textarea {
  min-height: 36px;
  max-height: 120px;
  flex: 1;
  padding: 7px 0 4px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #323a34;
  font: inherit;
  font-size: 12.4px;
  line-height: 1.55;
}

.ai-compose textarea::placeholder {
  color: #a8a9a2;
}

.ai-send {
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(145deg, #ff7a45, var(--accent) 55%, var(--accent-strong));
  color: #fff;
  box-shadow: 0 5px 14px rgba(240, 90, 42, .22);
  transition: background 150ms ease, opacity 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.ai-send:hover:not(:disabled) {
  background: var(--accent-strong);
}

.ai-send:active:not(:disabled) {
  transform: scale(0.96);
}

.ai-send:disabled {
  cursor: not-allowed;
  opacity: 1;
  border-color: rgba(240, 90, 42, .18);
  background: #fff0e6;
  color: #e45a2c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.ai-send:disabled svg { opacity: .85; }

.ai-send svg {
  width: 15px;
  height: 15px;
}

.ai-compose__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: #aaa69c;
  font-size: 9.8px;
}

.ai-compose__foot kbd {
  padding: 2px 4px;
  border: 1px solid #e4ded3;
  border-radius: 3px;
  background: #f8f5ef;
  font-family: inherit;
  font-size: 9.2px;
}

@media (max-width: 620px) {
  .ai-fab {
    right: 15px;
    bottom: 16px;
    height: 43px;
    padding: 0 12px 0 9px;
  }

  .ai-fab__label {
    display: none;
  }

  .ai-fab__status {
    display: none;
  }

  .ai-drawer {
    width: 100vw;
  }

  .ai-head {
    padding: 20px 18px 17px;
  }

  .ai-body {
    padding: 16px 15px 18px;
  }

  .ai-compose {
    padding: 10px 12px calc(11px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-fab,
  .ai-drawer,
  .ai-backdrop,
  .ai-typing i {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


/* ==========================================================================
   Daily prompts + QA history
   ========================================================================== */

.ai-head-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.ai-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.58);
  font-size: 9.8px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.ai-head-btn svg { width: 10px; height: 10px; }
.ai-head-btn b { color: #f0a17d; font-family: var(--font-num); font-size: 8.5px; font-weight: 600; }
.ai-head-btn:hover, .ai-head-btn.is-active { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1); color: #fff; }

.ai-welcome__hero {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.ai-welcome__hero > div:last-child { min-width: 0; flex: 1; }
.ai-welcome__hero h3 { margin-top: 3px; }
.ai-welcome__hero p { margin-top: 6px; }

.ai-daily {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #eadbc9;
  border-radius: 12px;
  background:
    radial-gradient(260px 100px at 100% 0%, rgba(240, 90, 42, 0.09), transparent 72%),
    linear-gradient(135deg, #fffaf2, #fdf3e7);
  box-shadow: 0 7px 20px rgba(94, 65, 35, 0.045);
}
.ai-daily__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ai-daily__head > div { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.ai-daily__head span { color: #9b6c50; font-size: 10.6px; font-weight: 700; letter-spacing: .04em; }
.ai-daily__head b { color: #b08a72; font-size: 8.5px; font-weight: 500; }
.ai-daily__head small { flex: none; padding: 2px 5px; border-radius: 3px; background: #f8e5d6; color: #b07550; font-size: 7.9px; }
.ai-daily__list { display: flex; flex-direction: column; margin-top: 8px; }
.ai-daily__item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 3px;
  border-top: 1px solid rgba(205, 168, 133, 0.22);
  color: #4e4a43;
  text-align: left;
}
.ai-daily__item:first-child { border-top: 0; }
.ai-daily__item:hover:not(:disabled) .ai-daily__main b { color: var(--accent); }
.ai-daily__item:disabled { opacity: .55; cursor: not-allowed; }
.ai-daily__num { flex: none; width: 20px; color: #cf9070; font-family: var(--font-num); font-size: 9.8px; }
.ai-daily__main { flex: 1; min-width: 0; }
.ai-daily__main b { display: block; overflow: hidden; color: #3f453f; font-size: 11.8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; transition: color 150ms ease; }
.ai-daily__main small { display: block; margin-top: 2px; color: #b29b88; font-size: 8.5px; }
.ai-daily__arrow { flex: none; color: #c6a994; }
.ai-daily__arrow svg { width: 11px; height: 11px; }

.ai-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 19px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eee6da;
  color: #8d7c6b;
  font-size: 10.6px;
  font-weight: 650;
}
.ai-section-head__history {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a38b79;
  font-size: 9.2px;
  font-weight: 500;
}
.ai-section-head__history svg { width: 10px; height: 10px; }
.ai-section-head__history b { min-width: 13px; padding: 1px 3px; border-radius: 3px; background: #f4e4d6; color: #ae704e; font-family: var(--font-num); font-size: 7.9px; text-align: center; }
.ai-section-head__history:hover { color: var(--accent); }
.ai-suggestions { margin-top: 8px; }

.ai-recent {
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid #eee6da;
}
.ai-recent__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8d7c6b; font-size: 10px; font-weight: 650; }
.ai-recent__head button { display: inline-flex; align-items: center; gap: 3px; color: #b09682; font-size: 8.5px; font-weight: 400; }
.ai-recent__head svg { width: 9px; height: 9px; }
.ai-recent__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 5px; padding: 7px 8px; border: 1px solid #ece4d8; border-radius: 6px; background: rgba(255, 254, 250, .6); text-align: left; }
.ai-recent__item span { overflow: hidden; color: #6e665d; font-size: 9.8px; text-overflow: ellipsis; white-space: nowrap; }
.ai-recent__item small { flex: none; color: #b4aa9d; font-size: 7.9px; }
.ai-recent__item:hover { border-color: #e5bda7; background: #fffaf5; }

/* QA history */
.ai-history { padding: 0 0 4px; }
.ai-history__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ai-history__head span { display: block; color: #b0937f; font-size: 9.2px; font-weight: 650; letter-spacing: .06em; }
.ai-history__head h3 { margin-top: 5px; color: #202832; font-size: 18.4px; font-weight: 750; letter-spacing: -.3px; }
.ai-history__back { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-top: 3px; padding: 5px 7px; border: 1px solid #e7ddd0; border-radius: 5px; color: #8c7c6e; font-size: 9.2px; }
.ai-history__back svg { width: 10px; height: 10px; }
.ai-history__back:hover { border-color: #e1b69f; color: var(--accent); }
.ai-history__list { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.ai-history__item { display: flex; align-items: stretch; overflow: hidden; border: 1px solid #e9e1d5; border-radius: 9px; background: rgba(255, 254, 250, .78); transition: border-color 150ms ease, background 150ms ease; }
.ai-history__item:hover { border-color: #e3bda8; background: #fffaf5; }
.ai-history__item.is-active { border-color: #efc8b4; background: #fff8f2; }
.ai-history__main { flex: 1; min-width: 0; padding: 10px 11px; text-align: left; }
.ai-history__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ai-history__top b { overflow: hidden; color: #3e4640; font-size: 11.2px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ai-history__top small { flex: none; color: #b3a697; font-family: var(--font-num); font-size: 7.9px; }
.ai-history__preview { display: -webkit-box; overflow: hidden; margin-top: 4px; color: #8a8277; font-size: 9.8px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ai-history__meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: #b2a89a; font-size: 7.9px; }
.ai-history__meta i { padding: 1px 4px; border-radius: 2px; background: #f5e8dc; color: #a97555; font-style: normal; }
.ai-history__delete { flex: none; width: 32px; display: grid; place-items: center; border-left: 1px solid #f0e7dc; color: #c0b3a5; }
.ai-history__delete svg { width: 12px; height: 12px; }
.ai-history__delete:hover { background: #fdf0ea; color: #c65e35; }
.ai-history__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #eee6da; color: #b3a697; font-size: 7.9px; }
.ai-history__foot button { color: #b27a60; font-size: 8.5px; }
.ai-history__foot button:hover { color: var(--danger); }
.ai-history__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 20px; text-align: center; }
.ai-history__empty > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: #f5e8dc; color: #b97652; }
.ai-history__empty > span svg { width: 20px; height: 20px; }
.ai-history__empty b { margin-top: 13px; color: #4a5049; font-size: 12.4px; }
.ai-history__empty p { max-width: 260px; margin-top: 5px; color: #9a958b; font-size: 10px; line-height: 1.7; }
.ai-history__start { margin-top: 13px; padding: 7px 11px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 9.8px; }

@media (max-width: 560px) {
  .ai-head-actions { width: 100%; margin-left: 0; }
  .ai-head-btn { flex: 1; justify-content: center; }
  .ai-welcome__hero { gap: 10px; }
  .ai-welcome__hero h3 { font-size: 19.4px; }
  .ai-daily { padding: 11px; }
  .ai-history__head h3 { font-size: 17.3px; }
}


/* Reset browser button chrome for daily prompts */
.ai-daily__item {
  border: 0;
  border-top: 1px solid rgba(205, 168, 133, 0.22);
  background: transparent;
  appearance: none;
}
.ai-daily__item:first-child { border-top: 0; }


/* Copy AI answer */
.ai-msg__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.ai-copy-btn {
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(56, 47, 38, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #9b8d7d;
  font: inherit;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.ai-copy-btn:hover,
.ai-copy-btn:focus-visible {
  border-color: rgba(226, 93, 47, .45);
  background: #fff;
  color: #d95d2f;
}
.ai-copy-btn:active { transform: translateY(1px); }
