/* ============================================================
   Study Buddy — modern AI tutor surface.
   The chat launcher explains the action; the Hex pet carries
   personality and emotional feedback.
   ============================================================ */

/* ---------- bottom-right launcher dock ---------- */
.pet-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pet-chat-fab,
.pet-fab {
  position: relative;
  border: 1px solid var(--dc-border);
  cursor: pointer;
  font-family: inherit;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pet-chat-fab {
  min-width: 76px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--dc-card);
  color: var(--dc-navy);
  box-shadow: 0 7px 22px rgba(5, 28, 44, .16);
  font-size: 13px;
  font-weight: 800;
}
.pet-chat-fab:hover,
.pet-chat-fab:focus-visible {
  transform: translateY(-2px);
  border-color: var(--dc-teal);
  box-shadow: 0 10px 26px rgba(5, 28, 44, .2);
}
.pet-chat-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pet-chat-icon path + path { stroke-width: 2.8; }
.pet-fab {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.pet-fab:hover,
.pet-fab:focus-visible {
  transform: translateY(-2px) scale(1.04);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.pet-fab .pet-face {
  display: block;
  width: 54px;
  height: 54px;
  line-height: 1;
}
.pet-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--dc-red);
  border: 2px solid var(--dc-card);
  display: none;
}
.pet-chat-fab .pet-dot { top: 4px; right: 5px; }
.pet-chat-fab.alert .pet-dot,
.pet-fab.alert .pet-dot { display: block; animation: pet-pulse 1.2s infinite; }
@keyframes pet-pulse { 50% { transform: scale(1.3); opacity: .65; } }

/* ---------- chat panel ---------- */
.pet-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 2100;
  width: min(410px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 124px));
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(5, 28, 44, .22), 0 2px 8px rgba(5, 28, 44, .08);
  transform-origin: bottom right;
  animation: pet-panel-in .18s ease-out;
}
.pet-panel[hidden] { display: none; }
@keyframes pet-panel-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.pet-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px 12px;
  background: var(--dc-card);
}
.pet-head .pet-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: block;
  line-height: 0;
}
.pet-head .pet-avatar .bs-avatar,
.pet-head .pet-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pet-head .pet-title { flex: 1; min-width: 0; }
.pet-head .pet-title strong {
  display: block;
  color: var(--dc-navy);
  font-size: 15px;
  letter-spacing: -.15px;
}
.pet-head .pet-title span {
  display: block;
  margin-top: 2px;
  color: var(--dc-muted);
  font-size: 11.5px;
  line-height: 1.35;
}
.pet-head .pet-tools { display: flex; gap: 6px; }
.pet-head .pet-tool,
.pet-tool-menu-btn,
.pet-compose-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dc-border);
  color: var(--dc-navy);
  background: var(--dc-card);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.pet-head .pet-tool {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 14px;
}
.pet-head .pet-tool:hover,
.pet-head .pet-tool:focus-visible,
.pet-tool-menu-btn:hover,
.pet-tool-menu-btn:focus-visible,
.pet-compose-tool:hover,
.pet-compose-tool:focus-visible {
  background: var(--dc-panel);
  border-color: var(--dc-teal);
}

/* context is intentionally separate from provider state */
.pet-context-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 14px;
  background: var(--dc-panel);
  border-top: 1px solid var(--dc-border);
  border-bottom: 1px solid var(--dc-border);
  color: var(--dc-muted);
  font-size: 11px;
}
.pet-presence,
.pet-ai-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--dc-green-dark);
}
.pet-context-chip {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dc-teal);
  padding: 3px 6px;
  font: 700 11px inherit;
  cursor: pointer;
}
.pet-context-chip:hover,
.pet-context-chip[aria-expanded="true"] { background: color-mix(in srgb, var(--dc-teal) 12%, transparent); }
.pet-context-details {
  position: absolute;
  top: calc(100% + 5px);
  right: 12px;
  z-index: 3;
  width: 270px;
  padding: 10px 11px;
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: 10px;
  box-shadow: var(--shadow-2);
  color: var(--dc-ink);
  font-size: 11px;
  line-height: 1.45;
}
.pet-context-details[hidden] { display: none; }

.pet-ai-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 35px;
  padding: 7px 14px;
  color: var(--dc-muted);
  font-size: 10.5px;
}

/* --- voice status pill: shown while speech synthesizes / plays ---------- */
.pet-voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dc-teal) 12%, transparent);
  color: var(--dc-teal);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.pet-voice-pill[hidden] { display: none; }
.pet-voice-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 9px;
}
.pet-voice-wave i {
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  height: 40%;
}
/* Synthesizing: equalizer bars dance; Speaking: bars pulse steadily. */
.pet-voice-pill[data-mode="synth"] .pet-voice-wave i { animation: pet-wave-dance .9s ease-in-out infinite; }
.pet-voice-pill[data-mode="synth"] .pet-voice-wave i:nth-child(2) { animation-delay: .15s; }
.pet-voice-pill[data-mode="synth"] .pet-voice-wave i:nth-child(3) { animation-delay: .3s; }
.pet-voice-pill[data-mode="speak"] .pet-voice-wave i { animation: pet-wave-pulse 1.4s ease-in-out infinite; }
.pet-voice-pill[data-mode="speak"] .pet-voice-wave i:nth-child(2) { animation-delay: .2s; }
.pet-voice-pill[data-mode="speak"] .pet-voice-wave i:nth-child(3) { animation-delay: .4s; }
@keyframes pet-wave-dance {
  0%, 100% { height: 30%; opacity: .55; }
  50% { height: 100%; opacity: 1; }
}
@keyframes pet-wave-pulse {
  0%, 100% { height: 45%; }
  50% { height: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  .pet-voice-wave i { animation: none !important; height: 60%; }
}
.pet-ai-state { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.pet-ai-dot { background: var(--dc-teal); }
.pet-panel[aria-busy="true"] .pet-ai-dot { animation: pet-thinking 1s ease-in-out infinite; }
@keyframes pet-thinking { 50% { transform: scale(1.8); opacity: .45; } }
.pet-tool-wrap { position: relative; }
.pet-tool-menu-btn {
  min-width: 28px;
  width: auto;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.pet-tools-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  width: 178px;
  padding: 5px;
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: 10px;
  box-shadow: var(--shadow-2);
}
.pet-tools-menu[hidden] { display: none; }
.pet-tools-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dc-navy);
  padding: 8px 9px;
  text-align: left;
  font: 600 11.5px inherit;
  cursor: pointer;
}
.pet-tools-menu button:hover,
.pet-tools-menu button:focus-visible { background: var(--dc-panel); }
/* web-search toggle: shows an "on" state so the learner knows answers use the web */
.pet-tools-menu button#pet-web-btn { display: flex; align-items: center; gap: 7px; }
.pet-tools-menu button#pet-web-btn.active,
.pet-tools-menu button#pet-speak-btn.active {
  color: var(--dc-teal);
  font-weight: 700;
}
.pet-tools-menu button#pet-web-btn.active::after,
.pet-tools-menu button#pet-speak-btn.active::after {
  content: '';
  margin-left: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dc-green);
  box-shadow: 0 0 6px var(--dc-green);
}
/* voice picker label + select inside the tools menu */
.pet-tools-label {
  display: block;
  padding: 7px 9px 2px;
  font: 700 10px inherit;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--dc-muted);
}
.pet-tools-menu .pet-voice {
  display: block;
  width: calc(100% - 14px);
  margin: 2px 7px 6px;
  padding: 6px 8px;
  border: 1px solid var(--dc-border);
  border-radius: 7px;
  background: var(--dc-card);
  color: var(--dc-navy);
  font: 600 11.5px inherit;
  cursor: pointer;
}
.pet-tools-menu .pet-voice:focus-visible { outline: 2px solid var(--dc-teal); outline-offset: 1px; }
/* a small speaker affordance on each message bubble */
.pet-msg .pet-speak {
  float: right;
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--dc-muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  opacity: .55;
  transition: opacity .15s, color .15s;
}
.pet-msg .pet-speak:hover { opacity: 1; color: var(--dc-teal); }

/* ---------- message log ---------- */
.pet-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--dc-card);
  scroll-behavior: smooth;
}
.pet-msg {
  position: relative;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pet-msg.tutor {
  align-self: flex-start;
  background: var(--dc-panel);
  color: var(--dc-ink);
  border-bottom-left-radius: 5px;
}
.pet-msg.user {
  align-self: flex-end;
  background: var(--dc-teal);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.pet-msg.win {
  background: var(--dc-green-soft);
  color: var(--dc-navy);
  border: 1px solid var(--dc-green-dark);
}
.pet-msg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
}
.pet-msg-action {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--dc-muted);
  padding: 2px 4px;
  font: 600 10px inherit;
  cursor: pointer;
}
.pet-msg-action:hover,
.pet-msg-action:focus-visible { background: color-mix(in srgb, var(--dc-teal) 12%, transparent); color: var(--dc-teal); }
.pet-thinking {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--dc-muted);
  font-size: 12px;
  font-style: italic;
}
.pet-thinking i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pet-dot-bounce 1s infinite ease-in-out; }
.pet-thinking i:nth-child(2) { animation-delay: .12s; }
.pet-thinking i:nth-child(3) { animation-delay: .24s; }
@keyframes pet-dot-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }

/* ---------- course citations ---------- */
.pet-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.pet-citation {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--dc-teal) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--dc-teal) 8%, transparent);
  color: var(--dc-teal);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
}

/* ---------- prompt suggestions ---------- */
.pet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--dc-border);
  background: var(--dc-card);
}
.pet-chip {
  border: 1px solid var(--dc-border);
  border-radius: 999px;
  background: var(--dc-card);
  color: var(--dc-navy);
  font-size: 11.5px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .12s;
}
.pet-chip:hover,
.pet-chip:focus-visible { background: var(--dc-panel); border-color: var(--dc-teal); transform: translateY(-1px); }

/* ---------- modern expanding composer ---------- */
.pet-composer {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 8px 12px 12px;
  background: var(--dc-card);
}
.pet-compose-tool {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 20px;
  line-height: 1;
}
.pet-composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 112px;
  resize: none;
  overflow-y: auto;
  border: 1px solid var(--dc-border);
  border-radius: 12px;
  background: var(--dc-panel);
  color: var(--dc-ink);
  padding: 8px 10px;
  font: 13px/1.4 inherit;
  outline: none;
}
.pet-composer textarea:focus { border-color: var(--dc-teal); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dc-teal) 16%, transparent); }
.pet-composer textarea::placeholder { color: var(--dc-muted); }
.pet-send {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--dc-green);
  color: #04331a;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.pet-send:hover,
.pet-send:focus-visible { background: var(--dc-green-dark); transform: translateY(-1px); }
.pet-send:disabled { opacity: .5; cursor: wait; transform: none; }
.pet-send svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- profile card ---------- */
.pet-profile {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 2110;
  width: min(410px, calc(100vw - 32px));
  background: var(--dc-card);
  border: 1px solid var(--dc-border);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  padding: 18px;
  overflow-y: auto;
  max-height: min(650px, calc(100vh - 124px));
}
.pet-profile[hidden] { display: none; }
.pet-profile h3 { margin: 0 0 4px; color: var(--dc-navy); font-size: 18px; }
.pet-profile .pp-sub { font-size: 12px; color: var(--dc-muted); margin-bottom: 14px; }
.pet-profile .pp-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--dc-border); font-size: 13px; }
.pet-profile .pp-row b { color: var(--dc-green-dark); }
.pet-profile .pp-sec { margin-top: 14px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--dc-muted); }
.pet-profile .pp-tag { display: inline-block; margin: 4px 6px 0 0; padding: 4px 10px; border-radius: 6px; background: var(--dc-panel); color: var(--dc-ink); font-size: 12px; }
.pet-profile .pp-close { float: right; border: 1px solid var(--dc-border); background: var(--dc-card); border-radius: 8px; color: var(--dc-navy); width: 30px; height: 30px; cursor: pointer; }

/* visible keyboard focus */
.pet-dock button:focus-visible,
.pet-panel button:focus-visible,
.pet-profile button:focus-visible { outline: 3px solid color-mix(in srgb, var(--dc-blue) 55%, transparent); outline-offset: 2px; }

@media (max-width: 720px) {
  .pet-dock { right: 14px; bottom: 14px; gap: 7px; }
  /* on pages with the fixed bottom-nav (lesson/course), keep the dock
     above the 56px nav band instead of sitting on top of it */
  body.in-lesson .pet-dock,
  body.in-course .pet-dock { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .pet-panel, .pet-profile { right: 12px; width: calc(100vw - 24px); bottom: 84px; border-radius: 16px; }
  .pet-panel { height: min(610px, calc(100vh - 100px)); }
  .pet-chat-fab { min-width: 48px; width: 48px; padding: 0; }
  .pet-chat-label { display: none; }
  .pet-fab { width: 54px; height: 54px; }
  .pet-fab .pet-face { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .pet-panel { animation: none; }
  .pet-chat-fab, .pet-fab, .pet-chip, .pet-send { transition: none; }
  .pet-panel *, .pet-panel *::before, .pet-panel *::after,
  .pet-profile *, .pet-profile *::before, .pet-profile *::after,
  .pet-dock *, .pet-dock *::before, .pet-dock *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- accessibility and privacy hardening ---------- */
.pet-head .pet-tool,
.pet-tool-menu-btn,
.pet-context-chip,
.pet-tools-menu button,
.pet-tools-menu .pet-voice,
.pet-send,
.pet-profile .pp-close {
  min-width: 44px;
  min-height: 44px;
}
.pet-head .pet-tool { width: 44px; height: 44px; }
.pet-tool-menu-btn { padding-inline: 12px; }
.pet-context-chip { padding: 8px 10px; }
.pet-tools-menu .pet-voice { min-height: 44px; }
.pet-msg-action,
.pet-msg .pet-speak {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pet-chip { min-height: 40px; }
.pet-privacy-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--dc-green-dark) 35%, transparent);
  border-radius: 999px;
  color: var(--dc-green-dark);
  background: color-mix(in srgb, var(--dc-green-dark) 10%, transparent);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.pet-privacy-state[data-state="shared"] {
  color: #8a4d00;
  border-color: color-mix(in srgb, #d88918 52%, transparent);
  background: color-mix(in srgb, #f2b84b 18%, transparent);
}
[data-theme="dark"] .pet-privacy-state { color: #a7f3c5; border-color: rgba(140,235,177,.42); background: rgba(99,216,155,.14); }
[data-theme="dark"] .pet-privacy-state[data-state="shared"] { color: #ffdc83; border-color: rgba(248,214,117,.52); background: rgba(248,214,117,.15); }
.pet-privacy-note {
  margin: 3px 5px 7px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--dc-muted);
  background: var(--dc-panel);
  font-size: 10.5px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .pet-head .pet-tool { width: 44px; height: 44px; }
  .pet-tool-menu-btn { min-width: 48px; }
  .pet-chip { min-height: 44px; padding-inline: 12px; }
  .pet-msg-action, .pet-msg .pet-speak { min-width: 44px; min-height: 44px; }
  .pet-profile .pp-close { width: 44px; height: 44px; }
}

/* ---------- dark study buddy palette ---------- */
[data-theme="dark"] .pet-chat-fab,
[data-theme="dark"] .pet-panel,
[data-theme="dark"] .pet-profile { border-color: rgba(180, 213, 230, .22); }
[data-theme="dark"] .pet-panel { box-shadow: 0 20px 56px rgba(0, 0, 0, .46), 0 2px 10px rgba(0, 0, 0, .24); }
[data-theme="dark"] .pet-head { background: #152b3c; }
[data-theme="dark"] .pet-context-row { background: #1b3a4b; border-color: rgba(111, 225, 223, .20); color: #b8d0da; }
[data-theme="dark"] .pet-context-chip { color: #7ce7e4; }
[data-theme="dark"] .pet-context-chip:hover,
[data-theme="dark"] .pet-context-chip[aria-expanded="true"] { background: rgba(111, 225, 223, .14); }
[data-theme="dark"] .pet-ai-bar { background: #152636; }
[data-theme="dark"] .pet-ai-dot,
[data-theme="dark"] .pet-presence { box-shadow: 0 0 0 3px rgba(111, 225, 223, .10); }
[data-theme="dark"] .pet-voice-pill { background: rgba(111, 225, 223, .14); color: #7ce7e4; }
[data-theme="dark"] .pet-body { background: #10202e; }
[data-theme="dark"] .pet-msg.tutor { background: #203b4d; color: #e4edf4; }
[data-theme="dark"] .pet-msg.user { background: #247b81; color: #f3ffff; }
[data-theme="dark"] .pet-msg.win { background: rgba(99, 216, 155, .18); color: #d9ffe7; border-color: rgba(140, 235, 177, .48); }
[data-theme="dark"] .pet-chips { background: #152636; border-top-color: rgba(180, 213, 230, .18); }
[data-theme="dark"] .pet-chip { background: #1b3040; color: #e4edf4; border-color: rgba(180, 213, 230, .28); }
[data-theme="dark"] .pet-chip:hover,
[data-theme="dark"] .pet-chip:focus-visible { background: #244457; border-color: #6fe1df; }
[data-theme="dark"] .pet-composer { background: #152636; }
[data-theme="dark"] .pet-composer textarea { background: #0f1e2b; border-color: rgba(180, 213, 230, .26); color: #e4edf4; }
[data-theme="dark"] .pet-composer textarea:focus { border-color: #6fe1df; box-shadow: 0 0 0 3px rgba(111, 225, 223, .16); }
[data-theme="dark"] .pet-composer textarea::placeholder { color: #8fa8b8; }
[data-theme="dark"] .pet-send { background: #8cebb1; color: #073420; }
[data-theme="dark"] .pet-send:hover,
[data-theme="dark"] .pet-send:focus-visible { background: #b0f3c9; }
[data-theme="dark"] .pet-head .pet-tool,
[data-theme="dark"] .pet-tool-menu-btn,
[data-theme="dark"] .pet-compose-tool { background: #193044; border-color: rgba(180, 213, 230, .28); color: #e4edf4; }
[data-theme="dark"] .pet-head .pet-tool:hover,
[data-theme="dark"] .pet-head .pet-tool:focus-visible,
[data-theme="dark"] .pet-tool-menu-btn:hover,
[data-theme="dark"] .pet-tool-menu-btn:focus-visible,
[data-theme="dark"] .pet-compose-tool:hover,
[data-theme="dark"] .pet-compose-tool:focus-visible { background: #244457; border-color: #6fe1df; }
[data-theme="dark"] .pet-tools-menu,
[data-theme="dark"] .pet-context-details { background: #172c3d; border-color: rgba(180, 213, 230, .26); }
[data-theme="dark"] .pet-tools-menu button { color: #e4edf4; }
[data-theme="dark"] .pet-tools-menu button:hover,
[data-theme="dark"] .pet-tools-menu button:focus-visible { background: #244457; }
[data-theme="dark"] .pet-tools-menu .pet-voice { background: #10202e; border-color: rgba(180, 213, 230, .26); color: #e4edf4; }
[data-theme="dark"] .pet-privacy-note { background: #203b4d; color: #a8bfcc; }
[data-theme="dark"] .pet-citation { background: rgba(111, 225, 223, .12); border-color: rgba(111, 225, 223, .34); color: #7ce7e4; }
[data-theme="dark"] .pet-profile .pp-tag { background: #203b4d; color: #e4edf4; }
[data-theme="dark"] .pet-profile .pp-close { background: #193044; color: #e4edf4; }
[data-theme="dark"] .pet-dock .pet-chat-fab:hover,
[data-theme="dark"] .pet-dock .pet-chat-fab:focus-visible { border-color: #6fe1df; }

