.af-widget-shell {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 344px;
  max-width: calc(100vw - 32px);
  background: #0b0d10;
  color: #f4f6fa;
  border: 1px solid #242b38;
  border-radius: 14px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.55);
  z-index: 9999;
  overflow: hidden;
  contain: layout style paint;
}
.af-fab-restore {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #0f131a;
  color: #f4f6fa;
  border: none;
  cursor: pointer;
  font-size: 13px;
}
.af-fab-restore span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e11d48;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}
.af-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0f131a;
  border-bottom: 1px solid #242b38;
}
.af-avatar-orb {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #e11d48, #161c26);
  border: 1px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
}
.af-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.af-meta strong { font-size: 13.5px; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-meta small { font-size: 11px; color: #9ba5b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-lang-select {
  min-height: 36px;
  background: #05070a;
  color: #f4f6fa;
  border: 1px solid #38404d;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
}
.af-min-btn {
  min-width: 36px;
  min-height: 36px;
  background: #161c26;
  color: #f4f6fa;
  border: 1px solid #242b38;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.af-widget-body { padding: 12px; }
.af-speech-bubble {
  margin: 0 0 10px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e2e8f0;
  background: #0f131a;
  border: 1px solid #242b38;
  border-radius: 10px;
  padding: 10px 12px;
}
.af-voice-row { margin-bottom: 10px; }
.af-voice-select {
  width: 100%;
  min-height: 38px;
  background: #05070a;
  color: #e2e8f0;
  border: 1px solid #242b38;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11.5px;
}
.af-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.af-btn {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #3a4250;
}
.af-btn-speak { background: #161c26; color: #f4f6fa; }
.af-btn-cta { background: #e11d48; color: #ffffff; border-color: #e11d48; }
.af-handoffs { display: flex; flex-direction: column; gap: 6px; }
.af-handoff-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: #9ba5b8; }
.af-chip {
  min-height: 38px;
  text-align: left;
  background: #0f131a;
  color: #dbe3f0;
  border: 1px solid #242b38;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11.5px;
  cursor: pointer;
}
.af-chip:hover { border-color: #9ba5b8; color: #ffffff; }
.af-widget-shell :focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}
.af-widget-footer {
  padding: 8px 12px;
  background: #05070a;
  border-top: 1px solid #1e232c;
  font-size: 10px;
  color: #9ba5b8;
  text-align: center;
}
@media (max-width: 480px) {
  .af-widget-shell {
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
  }
}
