/* CHAT FAVORITES v1 — compact hardware drawer */
#input-area { position: relative; }
#composer-plus-menu {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 7px);
  z-index: 25;
  display: none;
  width: 154px;
  padding: 7px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-block) 94%, transparent);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#composer-plus-menu.open { display: grid; gap: 4px; }
.composer-plus-item {
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  text-align: left;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: 12px;
}
.composer-plus-item:active { background: var(--bg-block-alt); }
#attach-btn {
  width: 36px;
  height: 36px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: color-mix(in srgb, var(--accent) 82%, white);
  font: 300 25px/1 system-ui, sans-serif;
  text-shadow: 0 0 4px color-mix(in srgb, var(--accent) 85%, transparent), 0 0 11px color-mix(in srgb, var(--accent) 50%, transparent);
}

#input-area { padding: 8px 13px 9px; }
#input-area .input-row { gap: 7px; align-items: flex-end; }
#input-area textarea {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 20px;
}
#send-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  border: 1px solid var(--border-light) !important;
  box-shadow: none !important;
}
#send-btn svg { width: 18px; height: 18px; }
#send-btn.voice-mode { color: var(--text-secondary); background: var(--bg-block-alt); }
html[data-shell="angel-white"][data-theme="light"] #send-btn.voice-mode {
  color: #71848d;
  background: rgba(241,246,248,.94);
  background-image: none;
  background-clip: padding-box;
  border: 1px solid rgba(101,126,139,.25) !important;
  box-shadow: none !important;
}
#send-btn.recording {
  color: #fff;
  background: #b55767;
  animation: voice-recording-pulse 1.25s ease-in-out infinite;
}
@keyframes voice-recording-pulse { 50% { box-shadow: 0 0 0 6px rgba(181,87,103,.14); } }

.message-action-preview {
  max-height: 118px;
  overflow: auto;
  margin: 4px 0 12px;
  padding: 11px 12px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-secondary);
  background: var(--bg-block-alt);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.message-action-list { display: grid; gap: 7px; }
.message-action-list button {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-light);
  border-radius: 11px;
  color: var(--text-primary);
  background: var(--bg-block);
  font: inherit;
  text-align: left;
}

.favorite-sheet-card { min-height: 58vh; }
.favorite-filter-group { display: flex; gap: 6px; margin-bottom: 8px; }
.favorite-kind-group { margin-bottom: 13px; }
.favorite-tab,
.favorite-owner {
  flex: 1;
  padding: 6px 13px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--bg-block);
  font: inherit;
  font-size: 11px;
}
.favorite-owner { border-radius: 9px; }
.favorite-tab.active,
.favorite-owner.active { color: var(--accent); border-color: var(--accent); background: var(--bg-block-alt); }
.favorite-list { display: grid; gap: 9px; }
.favorite-empty { padding: 56px 12px; color: var(--text-dim); text-align: center; font-size: 12px; }
.favorite-item {
  position: relative;
  padding: 12px 42px 12px 13px;
  border: 1px solid var(--border-light);
  border-radius: 13px;
  background: var(--bg-block);
}
.favorite-item-head { margin-bottom: 7px; color: var(--text-dim); font-size: 10px; letter-spacing: .03em; }
.favorite-item-body { color: var(--text-primary); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.favorite-item-translation { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-light); color: var(--text-dim); font-size: 12px; line-height: 1.55; }
.favorite-item audio { width: 100%; height: 34px; margin-bottom: 7px; }
.favorite-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  color: var(--text-dim);
  background: transparent;
  font-size: 18px;
}

html[data-shell="angel-white"] .favorite-sheet-card,
html[data-shell="angel-white"] #message-action-sheet .backup-sheet-card {
  border: 1px solid var(--angel-line);
  background: rgba(247,250,251,.97);
}
html[data-shell="angel-white"]:not([data-theme="light"]) .favorite-sheet-card,
html[data-shell="angel-white"]:not([data-theme="light"]) #message-action-sheet .backup-sheet-card {
  color: #d0d2d9;
  border-color: rgba(210,216,228,.13);
  background: rgba(18,20,25,.98);
  box-shadow: 0 -18px 46px rgba(0,0,0,.5);
}
html[data-shell="angel-white"]:not([data-theme="light"]) #composer-plus-menu {
  border-color: rgba(210,216,228,.14);
  background: rgba(20,22,27,.95);
}
html[data-shell="angel-white"]:not([data-theme="light"]) #attach-btn {
  color: #c7b7e8;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: 0 0 4px rgba(190,164,238,.88), 0 0 12px rgba(166,125,230,.54);
}
html[data-shell="angel-white"]:not([data-theme="light"]) #send-btn.voice-mode {
  color: #c2bccd;
  background: rgba(31,33,40,.9);
  border: 1px solid rgba(210,216,227,.13) !important;
  box-shadow: none !important;
}

#paw-btn {
  padding: 0 !important;
  color: color-mix(in srgb, var(--accent) 84%, white) !important;
  font-size: 18px !important;
  letter-spacing: 0 !important;
  text-shadow: 0 0 4px color-mix(in srgb, var(--accent) 82%, transparent), 0 0 11px color-mix(in srgb, var(--accent) 48%, transparent);
}
html[data-shell="angel-white"]:not([data-theme="light"]) #paw-btn {
  color: #bca9df !important;
  text-shadow: 0 0 4px rgba(190,164,238,.82), 0 0 12px rgba(157,117,221,.5);
}
