/* Chat references: floating iMessage contact and Wabi's pinned-widget thread. */
body .wabi-screen { background: #fff; color: #171717; }
body .wabi-screen::before { background: linear-gradient(180deg,#fcf0e6 0,#fdf7f1 170px,#fff 410px); }
body .reference-header {
  position: absolute; top: 0; left: 0; right: 0; height: 132px;
  z-index: 10; border: 0; padding: 24px 28px; align-items: flex-start;
}
body .chat-head.reference-header { background: linear-gradient(#fffffff5 35%,#ffffffa6 75%,#fff0); }
body .wabi-nav.reference-header { background: transparent; justify-content: space-between; gap: 10px; }
body .header-control {
  width: 50px; height: 50px; flex: none; display: flex; align-items: center;
  justify-content: center; border: 1px solid #d8d6d4; border-radius: 50%;
  background: #ffffff60; box-shadow: inset 0 1px 1px #fff,0 1px 3px #00000003;
  backdrop-filter: blur(15px); color: #111;
}
body .header-control > svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body .instinct-back { position: absolute; left: 28px; width: 88px; gap: 4px; border-radius: 28px; }
body .instinct-back > span:not(.lg-material) { display: grid; place-items: center; background: #111; color: white; min-width: 30px; height: 24px; border-radius: 15px; font-size: 13px; }
body .video-call { position: absolute; right: 28px; }
body .video-call > svg { width: 29px; height: 27px; }
body .contact { flex-direction: column; gap: 0; position: relative; top: -1px; }
body .instinct-contact-avatar { display: block; width: 63px; height: 63px; border-radius: 50%; background: #d8cec0; position: relative; z-index: 1; }
body .contact b {
  font-size: 18px; font-weight: 650; line-height: 1; border: 1px solid #cdd1d2;
  background: #ffffff85; backdrop-filter: blur(18px); box-shadow: inset 0 1px 1px #fff,0 2px 5px #0000000b;
  padding: 10px 15px; border-radius: 24px; margin-top: -4px; white-space: nowrap;
}
body .contact b > span:not(.lg-material) { font-size: 24px; vertical-align: -1px; color: #8a8d8d; margin-left: 4px; }
body .chat-title-pill {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 4px 18px 4px 5px;
  border-radius: 30px; border: 1px solid #e3ded8; background: #fff;
  box-shadow: 0 1px 2px #50443707; font-size: 17px; font-weight: 600; min-width: 0;
}
body .chat-title-pill img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 5px #473e2830; }
body .chat-title-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .messages { top: 158px; }
body .bubble.sent { background: #40b7f6; }
body .bubble.sent .bubble-tail { filter: none; }
body .bubble { border-radius: 24px; padding: 12px 16px; }
body .chat-compose { background: transparent; gap: 12px; }
body .chat-compose .add {
  width: 47px; height: 47px; border-radius: 50%; border: 1px solid #d7d8dc;
  display: grid; place-items: center; color: #111; background: #ffffffbd;
  font-size: 34px; flex: none; backdrop-filter: blur(15px); font-weight: 300;
}
body .chat-compose>div { height: 47px; font-size: 17px; color: #afb1b4; background: #ffffffb3; backdrop-filter: blur(16px); box-shadow: inset 0 1px 1px #fff; }
body .waveform-icon { width: 25px; height: 25px; fill: none; stroke: #aeb2ba; stroke-width: 3; stroke-linecap: round; }
body .widget-shelf {
  position: absolute; top: 110px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 64px); max-width: 560px; height: 210px; z-index: 6;
  pointer-events: none;
}
body .pinned-widget {
  position: relative; width: 206px; height: 206px; border-radius: 32px; overflow: hidden;
  border: 1px solid #ffffffdd; background: #f3f5f4;
  box-shadow: 0 18px 35px -14px #42434330; isolation: isolate;
}
body .pinned-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
body .pinned-widget::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#fff0 15%,#f9fafade 53%,#f8f9f8 100%); }
body .pinned-caption { position: absolute; left: 16px; right: 15px; bottom: 23px; }
body .pinned-caption small { font: 9px Selecta,sans-serif; color: #70817e; letter-spacing: .08em; }
body .pinned-caption h2 { font: 500 24px/1.1 Selecta,Arial,sans-serif; letter-spacing: -.8px; margin: 8px 0 9px; color: #142526; font-weight: 500; }
body .pinned-caption p { margin: 0; font-size: 12px; color: #586c69; }
body .widget-info { position: absolute; right: 12px; bottom: 12px; width: 19px; height: 19px; display: grid; place-items: center; color: white; background: #101414; border: 3px solid #fff; box-sizing: content-box; border-radius: 50%; font: bold 13px Georgia,serif; }
body .countdown-widget { background: #eef1f2; }
body .countdown-widget .pinned-caption { bottom: auto; top: 23px; }
body .countdown-widget .pinned-caption h2 { font-size: 29px; }
body .countdown-widget .pinned-photo { opacity: .26; }
body .countdown-widget::after { background: linear-gradient(#edf2f277,#eff2f3 66%); }
body .countdown-widget .countdown { position: absolute; bottom: 27px; left: 11px; right: 11px; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; border-radius: 0; }
body .countdown-widget .countdown-top { display: none; }
body .countdown-widget .widget-info { bottom: 6px; right: 8px; width: 14px; height: 14px; border-width: 2px; font-size: 10px; }
body .pinned-map { position: absolute; inset: 0; z-index: -2; }
body .pinned-map .map-tiles { inset: -10% -20%; filter: saturate(.45) contrast(.6) brightness(1.2); }
body .friend-marker { position: absolute; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 2px solid white; background: #70ada6; color: white; font-size: 9px; box-shadow: 0 2px 8px #55707322; }
body .friend-marker.anna { background: #aa97bc; } body .friend-marker.leo { background: #c59f7b; } body .friend-marker.mia { background: #c598b1; }
body .location-widget .pinned-caption { bottom: 25px; }
body .location-widget::after { background: linear-gradient(#fff0 30%,#f6f8f7ee 65%); }
body .widget-map-credit { position: absolute; bottom: 6px; left: 13px; font-size: 6px; color: #677776; pointer-events: auto; }
body .wabi-content { top: 158px; bottom: 99px; padding: 0 4px 16px; width: calc(100% - 64px); max-width: 560px; }
body .has-widget .wabi-content { top: 344px; mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 8px), transparent); }
body .wabi-thread-entry { margin: 0 0 15px; position: relative; }
body .wabi-bubble { font-size: 18px; line-height: 1.45; white-space: pre-line; width: fit-content; max-width: 91%; border-radius: 28px; padding: 15px 20px; background: #f5f5f5; color: #111; }
body .wabi-bubble.sent { background: #171717; color: #fff; margin-left: auto; max-width: 87%; border-radius: 30px; }
body .sender-name { margin: 0 0 6px 18px; color: #8c8c8c; font-size: 12px; }
body .chat-event { font-size: 12px; color: #8c8c8c; text-align: center; margin: 19px 0; }
body .chat-artifact { display: flex; align-items: center; gap: 15px; width: fit-content; max-width: 94%; padding: 9px 20px 9px 9px; border: 1px solid #fff; background: #f8f8f8; box-shadow: inset 0 0 0 1px #ffffff9c,0 10px 24px -15px #0003; border-radius: 25px; font-size: 19px; line-height: 1.3; }
body .chat-artifact img { width: 75px; height: 75px; object-fit: cover; border-radius: 20px; }
body .chat-artifact small { display: block; font-size: 13px; color: #999; margin-top: 6px; }
body .chat-place-list { max-width: 94%; border-radius: 25px; background: #f7f7f7; padding: 12px; }
body .chat-place-list>div { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 16px; }
body .chat-place-list img { width: 55px; height: 55px; object-fit: cover; border-radius: 14px; }
body .chat-place-list small { display: block; font-size: 12px; color: #909090; margin-top: 4px; }
body .wabi-compose { background: #ffffffed; border: 1px solid #dedede; box-shadow: inset 0 1px 1px #fff,0 0 0 8px #ffffff85; height: 52px; color: #868686; font-size: 18px; gap: 16px; padding: 8px 19px; border-radius: 30px; }
body .wabi-compose>span:first-child { display: block; font-size: 32px; line-height: 1; color: #111; font-weight: 300; }
body .mic-icon { margin-left: auto; height: 24px; width: 24px; fill: none; stroke: #626262; stroke-width: 1.8; stroke-linecap: round; flex: none; }
@media (max-width:900px) {
  body .reference-header { padding: 20px 18px; height: 125px; }
  body .instinct-back { left: 18px; width: 69px; }
  body .video-call { right: 18px; }
  body .header-control { width: 44px; height: 44px; }
  body .instinct-back { width: 69px; }
  body .chat-title-pill { gap: 7px; height: 44px; font-size: 15px; padding-right: 12px; }
  body .chat-title-pill img { width: 34px; height: 34px; }
  body .widget-shelf, body .wabi-content { width: calc(100% - 36px); }
  body .pinned-widget { width: 180px; height: 180px; border-radius: 28px; }
  body .widget-shelf { height: 180px; top: 100px; }
  body .has-widget .wabi-content { top: 306px; }
  body .pinned-caption h2, body .countdown-widget .pinned-caption h2 { font-size: 26px; }
  body .wabi-bubble { font-size: 16px; padding: 13px 16px; border-radius: 25px; }
  body .chat-artifact { font-size: 16px; gap: 12px; padding-right: 12px; }
  body .chat-artifact img { width: 62px; height: 62px; border-radius: 17px; }
  body .chat-artifact small { font-size: 12px; }
  body .wabi-compose { font-size: 16px; gap: 12px; }
}
@media (max-width:520px) {
  body .reference-header { padding: 15px 9px; height: 115px; }
  body .header-control { width: 33px; height: 33px; }
  body .header-control > svg { width: 20px; height: 20px; }
  body .instinct-back { left: 9px; width: 48px; gap: 0; }
  body .instinct-back > span:not(.lg-material) { min-width: 21px; height: 19px; font-size: 10px; }
  body .instinct-back svg { width: 18px; }
  body .video-call { right: 9px; }
  body .instinct-contact-avatar { width: 43px; height: 43px; }
  body .contact { top: 20px; }
  body .contact b { font-size: 14px; padding: 7px 10px; }
  body .contact b > span:not(.lg-material) { font-size: 17px; }
  body .chat-title-pill { height: 35px; padding: 3px 8px 3px 3px; gap: 4px; font-size: 12px; }
  body .chat-title-pill img { width: 26px; height: 26px; }
  body .wabi-nav.reference-header { gap: 5px; }
  body .add-person { display: none; }
  body .widget-shelf { top: 76px; width: calc(100% - 20px); height: 150px; }
  body .pinned-widget { width: min(150px,100%); height: 150px; border-radius: 24px; }
  body .pinned-caption { left: 12px; right: 10px; bottom: 23px; }
  body .pinned-caption h2, body .countdown-widget .pinned-caption h2 { font-size: 22px; }
  body .pinned-caption small { font-size: 7px; }
  body .pinned-caption p { font-size: 10px; }
  body .countdown-widget .pinned-caption { top: 17px; }
  body .widget-info { width: 14px; height: 14px; font-size: 10px; right: 8px; bottom: 8px; }
  body .messages, body .wabi-content { top: 135px; bottom: 90px; }
  body .has-widget .wabi-content { top: 247px; }
  body .wabi-content { width: calc(100% - 16px); }
  body .wabi-bubble { font-size: 14px; padding: 11px 13px; border-radius: 22px; max-width: 96%; }
  body .wabi-bubble.sent { max-width: 96%; }
  body .wabi-thread-entry { margin-bottom: 12px; }
  body .chat-artifact { font-size: 14px; gap: 7px; padding: 7px; border-radius: 19px; max-width: 100%; }
  body .chat-artifact img { width: 43px; height: 52px; border-radius: 12px; }
  body .chat-artifact small { font-size: 10px; }
  body .chat-place-list { max-width: 100%; padding: 8px; }
  body .chat-place-list>div { gap: 7px; font-size: 13px; }
  body .chat-place-list img { width: 35px; height: 42px; border-radius: 9px; }
  body .chat-place-list small { font-size: 10px; }
  body .wabi-compose { height: 44px; padding: 7px 12px; font-size: 14px; gap: 8px; }
  body .wabi-compose>span:first-child { font-size: 27px; }
  body .mic-icon { width: 20px; height: 20px; }
  body .chat-compose { gap: 7px; }
  body .chat-compose .add { width: 35px; height: 35px; font-size: 27px; }
  body .chat-compose>div { min-width: 0; height: 40px; font-size: 13px; padding: 7px 10px; }
  body .waveform-icon { width: 19px; height: 19px; }
}
@media (max-height:640px) and (min-width:521px) {
  body .widget-shelf { top: 95px; height: 150px; }
  body .pinned-widget { width: 150px; height: 150px; border-radius: 24px; }
  body .pinned-caption h2, body .countdown-widget .pinned-caption h2 { font-size: 23px; }
  body .has-widget .wabi-content { top: 268px; }
}
@media (prefers-reduced-transparency:reduce) {
  body .header-control, body .contact b, body .chat-compose>div { background: #fff; backdrop-filter: none; }
}
