/* LAUNCH_FIX15 J: iOS-safe chat fade, attributable daily prose, and shared composer chrome. */

/* A frosted bubble can become its own Safari compositing layer and escape the
   scroll owner's mask. Paper-color fills keep the same tone without creating
   that layer, so every bubble is clipped by the conversation fade. */
#blueink-r11 .r12-message-list .msg:is(.user,.assistant) .bubble {
  background:rgba(255,253,249,.88);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
#blueink-r11 .r12-message-list .msg.user .bubble { background:rgba(215,226,247,.86); }
#blueink-r11[data-theme="night"] .r12-message-list .msg.assistant .bubble { background:rgba(39,45,62,.94); }
#blueink-r11[data-theme="night"] .r12-message-list .msg.user .bubble { background:rgba(50,62,89,.94); }

/* FIX15 R2: 淮淮真机 — the solid band read as a flat beige strip over the paper.
   Daily has no band and dissolves through the scroll mask alone; chat now does
   the same. Nothing inside the list may keep a backdrop-filter, or Safari
   promotes it past the mask again (thinking, image/call cards, transcripts). */
#blueink-r11 .r12-chat-header::before { content:none; display:none; }
#blueink-r11 .r12-message-list * {
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

#blueink-r11 .chat-scroll:not(.r12-message-list) .day-divider {
  justify-content:center;
  gap:10px;
  margin:8px 0 22px;
  color:var(--ink-2);
  font:12px/1.5 var(--font-number);
}
#blueink-r11 .chat-scroll:not(.r12-message-list) .day-divider::before,
#blueink-r11 .chat-scroll:not(.r12-message-list) .day-divider::after {
  width:7px;
  height:7px;
  flex:0 0 7px;
  background:var(--gold);
  clip-path:polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%);
}

#blueink-r11 .daily-prose {
  position:relative;
  box-sizing:border-box;
  margin:0 0 22px;
  padding:5px 7px 7px;
  text-align:left;
}
#blueink-r11 .daily-prose > p:last-of-type { margin-bottom:0; }
#blueink-r11 .daily-prose--assistant { width:100%; }
#blueink-r11 .daily-prose--user {
  width:fit-content;
  max-width:82%;
  margin-left:auto;
  padding:10px 13px 8px;
  border:.5px solid color-mix(in srgb,var(--hair) 70%,rgba(255,255,255,.52));
  border-radius:16px 16px 6px 16px;
  background:rgba(225,233,248,.58);
  box-shadow:0 4px 14px rgba(70,56,40,.045),inset 0 1px 0 rgba(255,255,255,.38);
}
#blueink-r11[data-theme="night"] .daily-prose--user {
  border-color:rgba(255,255,255,.09);
  background:rgba(116,142,190,.16);
  box-shadow:0 4px 16px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.06);
}
#blueink-r11 .daily-prose > .message-time {
  position:static;
  display:block;
  width:fit-content;
  height:auto;
  margin:4px 0 0;
  padding:0;
  overflow:visible;
  clip:auto;
  clip-path:none;
  border:0;
  color:var(--ink-3);
  background:transparent;
  font:10px/1.25 var(--font-number);
  white-space:nowrap;
}
#blueink-r11 .daily-prose--user > .message-time { margin-left:auto; }
#blueink-r11 .daily-prose--assistant > .message-time { margin-right:auto; }

/* Daily keeps its own placeholder and ResizeObserver geometry, while sharing
   the same circular tools and arrow/stop send control as chat. */
#blueink-r11 .daily-composer .daily-media-tool {
  border-radius:50%;
}

#blueink-r11 .chat-scroll:not(.r12-message-list) .chat-history-end {
  margin:8px 0 14px;
  text-align:center;
  color:var(--ink-3);
  font:11px/1.5 var(--font-number);
  letter-spacing:.04em;
}

/* FIX15 R2: 淮淮真机 — control subpages cut every card short and would not scroll.
   Scrollers are flex columns; cards had flex-shrink:1 + overflow:hidden, so they
   were squeezed to fit one screen instead of overflowing into a scroll. */
#blueink-r11 .content[data-scroll] > * { flex-shrink:0; }

/* FIX15 R3: without the backing plate, solid chat bubbles stayed ~35% visible behind
   the status bar and header buttons (thin daily text does not read at that alpha).
   Chat keeps the status/button band fully clear and dissolves under the header's
   lower half instead. Daily keeps the mask 淮淮 already likes. */
#blueink-r11 [data-scroll="conversation"].r12-message-list {
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,transparent calc(var(--top-safe) + 30px),#000 calc(var(--top-safe) + 84px),#000 calc(100% - var(--scroll-fade-bottom)),transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,transparent calc(var(--top-safe) + 30px),#000 calc(var(--top-safe) + 84px),#000 calc(100% - var(--scroll-fade-bottom)),transparent 100%);
}
