
  /* Orb pointing at something: a glow that pulses a few times. */
  .orbh-spot { outline: 3px solid var(--color-primary, #09517C); outline-offset: 4px; border-radius: 8px;
    animation: orbh-pulse 1.1s ease-in-out 4; position: relative; z-index: 1; }
  @keyframes orbh-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 179, 163, .55); } 50% { box-shadow: 0 0 0 12px rgba(47, 179, 163, 0); } }
  body.a11y-reduce-motion .orbh-spot { animation: none; }

  /* Cards under a reply: DO and SET. */
  .orbh-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .6rem;
    padding: .6rem .7rem; border-radius: 12px; background: rgba(9, 81, 124, .06); border: 1px solid rgba(9, 81, 124, .16); }
  .orbh-card-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 10rem; font-size: .88rem; line-height: 1.35; }
  .orbh-card-text span { color: var(--color-text-secondary, #4a5b6a); }
  .orbh-card-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
  body.dark-mode .orbh-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }

  /* Who's on duty. */
  .orbh-duty-list { margin-top: .4rem; display: flex; flex-direction: column; gap: .45rem; }
  .orbh-duty-note { margin: .2rem 0; font-size: .85rem; }
  .orbh-duty-sg { color: var(--color-text-secondary, #4a5b6a); font-size: .8rem; }
  .orbh-person { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem; border-radius: 10px;
    background: rgba(9, 81, 124, .05); }
  .orbh-person-main { flex: 1 1 9rem; min-width: 0; font-size: .86rem; line-height: 1.35; }
  .orbh-person-btns { display: flex; gap: .35rem; flex-wrap: wrap; }
  .orbh-sub { color: var(--color-text-secondary, #4a5b6a); font-size: .8rem; }
  .orbh-tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
    background: var(--color-primary, #09517C); color: #fff; vertical-align: middle; }
  .orbh-tag-sg { background: #8a3ffc; }
  .orbh-initials { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-primary, #09517C); color: #fff; font-weight: 700; font-size: .8rem; }
  body.dark-mode .orbh-person { background: rgba(255, 255, 255, .06); }
  .orbh-duty-box { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--color-surface, #fff);
    border: 1px solid rgba(9, 81, 124, .14); }
  .orbh-duty-box h3 { margin: 0 0 .3rem; font-size: 1rem; }
  .orbh-duty-box p { margin: 0 0 .7rem; font-size: .88rem; color: var(--color-text-secondary, #4a5b6a); }
  body.dark-mode .orbh-duty-box { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }

  /* Moments with more in them. */
  .orb-moment.orbh-moment { width: min(500px, calc(100vw - 32px)); }
  .orbh-moment-body { margin: 0 0 14px; text-align: left; }
  .orbh-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .orbh-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(9, 81, 124, .06);
    font-size: 14px; line-height: 1.4; }
  .orbh-list .orbh-ico { flex: 0 0 auto; width: 22px; text-align: center; }
  .orbh-list .orbh-li-text { flex: 1 1 auto; min-width: 0; }
  .orbh-list .btn { flex: 0 0 auto; }
  body.dark-mode .orbh-list li { background: rgba(255, 255, 255, .07); }
  .orbh-check { padding: 8px 10px; border-radius: 12px; border: 1px dashed rgba(9, 81, 124, .3); font-size: 14px; }
  .orbh-check-title { font-weight: 700; margin-bottom: 4px; }
  .orbh-check label { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-weight: 400; cursor: pointer; }
  .orbh-check .orbh-check-row { justify-content: space-between; flex-wrap: wrap; }
  .orbh-check .orbh-check-row span { display: flex; align-items: center; gap: 6px; }
  .orbh-ask { margin: 6px 0 0; font-weight: 700; text-align: center; }

  /* A light confetti burst inside a milestone moment. */
  .orbh-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
  .orbh-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
    animation-name: orbh-fall; animation-timing-function: cubic-bezier(.3, .6, .5, 1); animation-fill-mode: forwards; }
  @keyframes orbh-fall {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--drift), var(--fall, 300px)) rotate(var(--spin)); }
  }
  body.a11y-reduce-motion .orbh-confetti { display: none; }

  /* The glossary: a dotted line under RELAY's own words, and Orb's bubble. */
  .orb-gloss { text-decoration: underline dotted rgba(9, 81, 124, .55); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: help; }
  .orb-gloss:focus-visible { outline: 2px solid var(--color-primary, #09517C); outline-offset: 2px; border-radius: 3px; }
  body.dark-mode .orb-gloss { text-decoration-color: rgba(160, 210, 240, .7); }
  .orbh-gloss-tip { position: fixed; z-index: 2300; display: none; align-items: flex-start; gap: 8px; max-width: 300px;
    padding: 9px 12px; border-radius: 14px; background: #fff; color: #102a3c; font-size: 13px; line-height: 1.45; font-weight: 400;
    text-transform: none; letter-spacing: 0; box-shadow: 0 12px 32px -8px rgba(9, 40, 70, .35), inset 0 0 0 1px rgba(9, 81, 124, .14);
    opacity: 0; transition: opacity .15s ease; pointer-events: none; }
  .orbh-gloss-tip.show { opacity: 1; }
  .orbh-gloss-tip strong { color: #09517C; margin-right: 2px; }
  .orbh-gloss-face { flex: 0 0 auto; margin-top: 1px; }
  body.dark-mode .orbh-gloss-tip { background: #142c42; color: #e8f3fb; box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .12); }
  body.dark-mode .orbh-gloss-tip strong { color: #8fd3ff; }
