.recording-card-host,
.XE-message-bubble.recording-card-host {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: calc(100vw - 88px) !important;
  overflow: visible !important;
}
.recording-card-host .bubble-tail { display: none !important; }
.recording-card-host .bubble-message-text { min-width: 0; padding: 0 !important; }
.recording-card {
  position: relative;
  width: 288px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 15px 13px 12px;
  border: 1.5px solid #ff953b;
  border-radius: 16px;
  background: linear-gradient(125deg, #fffdf9 65%, #ffe3c8);
  color: #252525;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
}
.recording-card::before {
  position: absolute;
  content: "";
  width: 70px;
  height: 44px;
  top: -24px;
  left: -18px;
  border-radius: 50%;
  background: #ffe7c4;
  pointer-events: none;
}
.recording-card-title { position: relative; margin: 0; padding-right: 62px; font-size: 16px; line-height: 1.4; font-weight: 800; }
.recording-card-subtitle { position: relative; width: calc(100% - 62px); margin: 7px 0 12px; color: #77716b; font-size: 11.5px; }
.recording-card-mascot { position: absolute; top: 13px; right: 5px; width: 71px; height: 73px; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.recording-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  width: 100%;
  min-height: 45px;
  box-sizing: border-box;
  padding: 8px;
  border: 1.5px dashed #ffac64;
  border-radius: 10px;
  background: #fff9f2;
  color: #ef7c18;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.recording-card-action svg { width: 23px; height: 23px; flex: 0 0 auto; }
.recording-card-action:active { background: #fff0df; }
.recording-card-action:disabled { cursor: default; opacity: .65; }
.recording-card-action:focus-visible,
.recording-send-button:focus-visible,
.recording-dialog button:focus-visible { outline: 2px solid #de690c; outline-offset: 3px; }
.recording-card-hint { margin-top: 7px; color: #9a8878; font-size: 10px; text-align: center; overflow-wrap: anywhere; }
.recording-card-status { min-height: 15px; margin-top: 5px; color: #77716b; font-size: 11px; overflow-wrap: anywhere; }
.recording-card.is-uploaded .recording-card-action { border-style: solid; background: #fff0df; }
.recording-send-button {
  flex: 0 0 auto;
  height: 32px;
  margin-left: 3px;
  padding: 0 8px;
  border: 1px solid #f5c999;
  border-radius: 16px;
  background: #fff4e7;
  color: #a85b0d;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}
.input-box:has(.recording-send-button) .text-input { min-width: 0; }
.recording-send-button:disabled { opacity: .55; }
.recording-toast { position: fixed; z-index: 20010; top: 85px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 40px); padding: 10px 15px; border-radius: 10px; background: #342a22; color: #fff; font-size: 13px; }
.recording-overlay { position: fixed; z-index: 20000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; background: rgb(20 17 14 / 55%); }
.recording-dialog { width: 440px; max-width: 100%; max-height: calc(100dvh - 40px); box-sizing: border-box; overflow-y: auto; padding: 18px; border-radius: 18px; background: #fffdf9; color: #28231f; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.recording-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.recording-dialog-header h2 { margin: 0; font-size: 18px; }
.recording-dialog-close { padding: 5px 10px; border: 0; border-radius: 8px; background: #f3eae2; color: #69584a; font-size: 14px; cursor: pointer; }
.recording-dialog video { display: block; width: 100%; max-height: 58dvh; border-radius: 10px; background: #171717; }
.recording-dialog p { margin: 10px 0; color: #867467; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.recording-dialog a { display: inline-block; margin-top: 8px; color: #b56117; font-size: 13px; }
@media (max-width: 350px) {
  .recording-card { padding: 12px 10px 10px; }
  .recording-card-title { font-size: 15px; padding-right: 51px; }
  .recording-card-subtitle { width: calc(100% - 50px); font-size: 11px; }
  .recording-card-mascot { width: 60px; height: 62px; }
  .recording-send-button { padding: 0 6px; }
}
