#ittyBits {
  margin-block: 0 20px;
  padding: clamp(16px, 5vw, 24px);
  color: #3b2940;
  background: linear-gradient(145deg, #fff0f7, #fff8fb 52%, #f0e7ff);
  border: 1px solid #dec4eb;
  border-radius: 24px;
}
#ittyBits .itty-bits-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #4d235a;
  font-size: clamp(24px, 7vw, 32px);
}
#ittyBits .itty-bits-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 14px;
  background: #eacff5;
  color: #57286b;
  font-size: 16px;
}
#ittyBits .itty-bits-intro { margin: 0 0 14px; line-height: 1.45; }
.itty-bits-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
}
#ittyBitsUpload {
  min-height: 48px;
  width: auto;
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 200px;
}
#ittyBitsStatus { margin: 12px 0 0; font-size: 0.875rem; }
#ittyBitsStatus:empty, #ittyBitsFeed:empty { display: none; }
#ittyBitsFeed { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
#ittyBitsFeed li { display: grid; gap: 6px; }
#ittyBitsFeed button { white-space: normal; overflow-wrap: anywhere; }
#ittyBitsEmpty {
  margin: 14px 0 0;
  padding: 12px;
  text-align: center;
  border: 1px dashed #bb8dce;
  border-radius: 16px;
  background: #fff9fd;
}
#ittyBitsEmpty strong { display: block; color: #57286b; }
#ittyBitsEmpty span { font-size: 0.875rem; }
.itty-bit-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.itty-bit-reactions .itty-bit-block {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  min-height: 44px;
  padding: 4px 10px;
  font-size: 12px;
}
.itty-bit-reactions .chat-reactions { margin: 0; }
.itty-bit-reactions .chat-reactions:empty { display: none; }
.itty-bit-reactions button[hidden] { display: none; }
.itty-bits-camera-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
dialog[aria-label="Record an Itty Bit"] video:not([hidden]) { display: block; width: 100%; max-height: 55dvh; }
dialog[aria-label="Record an Itty Bit"] label { display: block; margin-block: 8px; }
dialog[aria-label="Record an Itty Bit"] input { display: block; max-width: 100%; }
.itty-bit-caption { overflow-wrap: anywhere; white-space: pre-wrap; }
#ittyBitsPlayer .itty-bit-remove {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  font-size: 0.875rem;
  padding: 6px 12px;
}
#ittyBitsPlayer [hidden] { display: none; }

.itty-bit-reactions .chat-reaction-chip { border: 0; cursor: pointer; }
.itty-bit-reaction-list {
  width: min(390px, calc(100vw - 28px));
  max-height: 80dvh;
  overflow: auto;
  margin: auto;
}
.itty-bit-reaction-list ul { list-style: none; padding: 0; }
.itty-bit-reaction-list li { padding-block: 6px; overflow-wrap: anywhere; }
.itty-bit-reaction-list [role="status"]:empty,
.itty-bit-reaction-list ul:empty { display: none; }
