.pip-card, .pip-detail :is(button, summary, label) { -webkit-tap-highlight-color: transparent }
.pip-card .scene {
  gap: 5px;
  margin-bottom: 6px;
}
.pip-card .encounter-people img { width: min(100%, clamp(43px, 12.4vw, 53px)) }
.pip-card .scene-caption { padding-block: 2px }
.pip-card .card-points {
  --pip-label-compression: .83;
}
.pip-card .card-points > span > span {
  min-width: 0;
  white-space: nowrap;
  transform: scaleX(var(--pip-label-compression));
  transform-origin: left center;
}
@media (max-width: 355px) {
  .pip-card .card-points { --pip-label-compression: .77 }
}
@media (max-width: 305px) {
  .pip-card .card-points > span > span { white-space: normal; transform: none }
}

.pip-detail {
  background: radial-gradient(ellipse at 60% 4%, #8950b138, transparent 48%), #241a35;
}
.pip-detail > h3 { margin: 1px 1px 9px; font-size: 15px }
.pip-event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pip-event-list li { min-width: 0 }
.pip-event-list button {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 3px;
  border: 1px solid #b59bda4d;
  border-radius: 8px;
  color: #e9d9fa;
  background: #1f152d;
  font: inherit;
  font-size: clamp(9px, 2.72vw, 11px);
  font-weight: 700;
  line-height: 1.22;
  text-align: left;
  cursor: pointer;
}
.pip-event-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  object-fit: cover;
}
.pip-event-list span { padding: 4px 2px 2px }
.pip-event-list button:hover { border-color: #b496d9 }
.pip-event-list button:disabled { cursor: default }
.pip-event-list button[aria-pressed="true"] {
  border-color: #e3bcff;
  background: #432e5d;
  box-shadow: 0 0 10px #ac73e256;
}
.pip-event-list button[aria-pressed="true"]::before {
  position: absolute;
  inset: 7px 7px auto auto;
  width: 16px;
  height: 16px;
  border: 1px solid #e6c8ff;
  border-radius: 50%;
  background: #6c3fa0;
  content: "";
}
.pip-event-list button[aria-pressed="true"]::after {
  position: absolute;
  inset: 10px 12px auto auto;
  width: 5px;
  height: 8px;
  border: solid #fff5ff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  content: "";
}
.pip-event-link { margin-top: 4px }
.pip-detail .pip-icebreaker { margin: 13px 0 10px }
.pip-detail .social-pair { grid-template-columns: 1fr 43px 1fr; margin-block: 13px }
.pip-detail .social-pair img { width: clamp(53px, 16vw, 68px); height: auto; aspect-ratio: 1 }
.pip-detail .social-pair-link { align-self: center; width: 43px; height: 43px; margin-top: -16px }
.pip-detail .social-pair-link .icon { width: 22px; height: 22px }
.pip-detail :is(summary, textarea):focus-visible { outline: 2px solid #e6c7ff; outline-offset: 2px }
.pip-compose {
  display: grid;
  gap: 8px;
}
.pip-note {
  padding: 10px 12px 8px;
  border: 1px solid #b597d862;
  border-radius: 11px;
  background: radial-gradient(ellipse at 80% 0%, #643c8952, transparent 68%), #1b1427;
}
.pip-note:focus-within { border-color: #d3a9fc; box-shadow: 0 0 15px #b07ce838 }
.pip-detail .pip-note label { margin: 1px 0 6px; font-size: 13px; font-weight: 610 }
.pip-note label strong { color: #f6e5ff; font-weight: 790 }
.pip-note textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 53px;
  max-height: 8.5em;
  resize: none;
  field-sizing: content;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
}
.pip-note textarea::placeholder { color: #d3bbeb }
.pip-detail .pip-note textarea:focus-visible { outline: none }
.pip-note-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid #b597d84d;
  color: #c2a9d5;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.pip-intention {
  border: 1px solid #b597d857;
  border-radius: 8px;
  background: linear-gradient(125deg, #382648, #22172f 68%);
}
.pip-detail :is(.pip-intention, .pip-connected-chat, .pip-plan) > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 9px;
  list-style: none;
  cursor: pointer;
}
.pip-detail :is(.pip-intention, .pip-connected-chat, .pip-plan) > summary::-webkit-details-marker { display: none }
.pip-intention summary { justify-content: space-between }
.pip-intention summary small { display: block; color: #ccb7e1; font-size: 10px }
.pip-intention summary strong {
  display: block;
  margin-top: 2px;
  color: #fcf0ff;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.pip-intention-arrow,
.pip-detail :is(.pip-connected-chat, .pip-plan) > summary::after {
  flex: none;
  width: 7px;
  height: 7px;
  margin-inline: auto 3px;
  border: solid #dbbafa;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}
.pip-intention[open] .pip-intention-arrow,
.pip-detail :is(.pip-connected-chat, .pip-plan)[open] > summary::after { transform: translateY(2px) rotate(225deg) }
.pip-intention fieldset {
  min-width: 0;
  margin: 0 6px 6px;
  padding: 4px 0 0;
  border: 0;
  border-top: 1px solid #b597d84d;
}
.pip-detail .pip-intention label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.pip-intention label:has(:checked) { background: #a374d433; color: #fff4ff }
.pip-intention label:hover { background: #a374d44d }
.pip-intention input { margin: 0; accent-color: #d3a6fb }
.pip-intention .pip-meeting-prompt { min-height: 49px }
.pip-meeting-prompt :is(strong, small) { display: block }
.pip-meeting-prompt small { margin-top: 2px; color: #dac5e8; font-size: 10px; font-weight: 560 }
.pip-meeting-chevron { width: 7px; height: 7px; margin: 0 4px 0 auto; border: solid #dcb6f8; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.pip-meeting-prompt:has(input:checked) .pip-meeting-chevron { transform: translateY(2px) rotate(225deg) }
.pip-meeting-event {
  margin: 0 6px 6px;
  padding: 6px 8px 8px;
  border: 1px solid #b597d84d;
  border-radius: 7px;
  background: #21162e;
}
.pip-detail .pip-meeting-event label {
  min-height: 0;
  margin: 0 0 5px;
  padding: 0;
  font-size: 11px;
  cursor: text;
}
.pip-detail .pip-meeting-event input { margin: 0 }
.pip-detail .pip-meeting-error { margin-top: 6px; color: #ffd1e7 }
.pip-meeting-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.pip-meeting-options button {
  min-height: 36px;
  padding: 3px 8px;
  border: 1px solid #b597d879;
  border-radius: 12px;
  background: #39254e;
  color: #f2dcff;
  font: inherit;
  font-size: 10.5px;
  font-weight: 710;
  cursor: pointer;
}
.pip-meeting-options button:hover { border-color: #e0bfff }
.pip-transmission {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 110px;
  padding-block: 6px;
}
.pip-transmission::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, #b079f661, transparent 52%),
    linear-gradient(90deg, transparent, #b48be47d 30%, #deb4ff 50%, #b48be47d 70%, transparent) center 43% / 95% 1px no-repeat,
    repeating-linear-gradient(90deg, #bc8de17b 0 2px, transparent 2px 9px) center 30% / 64% 1px no-repeat,
    repeating-linear-gradient(90deg, #bc8de154 0 2px, transparent 2px 9px) center 57% / 70% 1px no-repeat;
  content: "";
}
.pip-send {
  display: grid;
  gap: 9px;
  align-items: center;
  justify-items: center;
  min-width: 90px;
  padding: 5px 8px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff0ff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.pip-send-orb {
  position: relative;
  width: 55px;
  height: 55px;
  border: 1px solid #f0d4ff;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #b68bed, #7150ae 52%, #331847);
  box-shadow: inset 0 1px #f1d4ff95, 0 0 0 4px #dbb5fd36, 0 0 19px #cb96f9a1;
  transition: box-shadow .18s ease;
}
.pip-send-orb::before, .pip-send-orb::after {
  position: absolute;
  inset: -7px;
  border: 1px solid #dfbaff85;
  border-inline-color: transparent;
  border-radius: 50%;
  content: "";
}
.pip-send-orb::after { inset: -12px; border-style: dotted; transform: rotate(47deg) }
.pip-send-orb .icon { width: 28px; height: 28px }
.pip-send:is(:hover, :focus-visible) .pip-send-orb { box-shadow: inset 0 1px #f1d4ff95, 0 0 0 4px #dbb5fd55, 0 0 26px #e1b6fbe6 }
.pip-send strong { color: #f6e4ff; letter-spacing: -.025em; text-shadow: 0 0 12px #a668f29e }
.pip-detail[data-pip-stage="pending"] .social-pair-link { animation: pip-signal .9s ease-out }
.pip-detail[data-pip-stage="pending"] .social-pair-link::before {
  inset: auto;
  width: 31px;
  height: 2px;
  border-radius: 5px;
  background: linear-gradient(90deg, transparent, #f2cfff);
  box-shadow: 0 0 10px 1px #efbbff;
  animation: pip-sweep .62s ease-out both;
}
@keyframes pip-signal {
  from { box-shadow: 0 0 0 0 #d3a2ffcf, 0 0 23px #c68bf9 }
  to { box-shadow: 0 0 0 19px #d3a2ff00, 0 0 13px #bd8bff65 }
}
@keyframes pip-sweep {
  0% { transform: translateX(-87px); opacity: 0 }
  24% { opacity: 1 }
  100% { transform: translateX(87px); opacity: 0 }
}
@media (prefers-reduced-motion: reduce) {
  .pip-detail[data-pip-stage="pending"] .social-pair-link { animation: none }
  .pip-detail[data-pip-stage="pending"] .social-pair-link::before { animation: none; opacity: 0 }
  .pip-send-orb { transition: none }
}
.pip-greeting {
  margin: 7px 0;
  padding: 6px 8px;
  border-inline-start: 2px solid #ba8df0;
  color: #f2defe;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pip-detail .pip-reason { color: #d9bae9 }
.pip-detail[data-pip-stage="connected"] .social-pair-link {
  border-color: #bef4d9;
  background: radial-gradient(circle at 36% 22%, #665789, #3c435c 55%, #274a45);
  box-shadow: 0 0 0 3px #8fd8b627, 0 0 18px #8cebc16b;
}
.pip-detail[data-pip-stage="connected"] .social-pair-link::before,
.pip-detail[data-pip-stage="connected"] .social-pair-link::after {
  background: linear-gradient(90deg, #a3eec5b0, #c09deb50);
}
.pip-detail .social-state[data-state="active"] {
  display: table;
  margin: 0 auto 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(110deg, #2c65527a, #32435c60);
  font-size: 11.5px;
}
.pip-detail .social-state[data-state="active"]::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: #a5efca;
  box-shadow: 0 0 9px #91edbd99;
  vertical-align: 1px;
  content: "";
}
.pip-conversation {
  padding: 7px 9px 9px;
  border: 1px solid #ae8dda68;
  border-radius: 13px;
  background: radial-gradient(ellipse at 25% 0%, #5c3a7c53, transparent 73%), #1b1328;
}
.pip-detail .pip-connected-chat > summary { padding: 3px 1px 6px; gap: 9px }
.pip-connected-chat summary img {
  width: 37px;
  height: 37px;
  flex: none;
  border: 1px solid #d7b1fa;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #a97ae552;
}
.pip-connected-chat summary strong { display: block; font-size: 14px }
.pip-chat-caption { display: block; color: #d3bae9; font-size: 10px }
.pip-conversation ul {
  max-height: 240px;
  padding: 6px 3px;
  border-block: 1px solid #ae8dda37;
  overflow-y: auto;
  scrollbar-width: thin;
}
.pip-conversation ul:empty { display: none }
.pip-conversation li {
  justify-self: start;
  width: fit-content;
  max-width: 88%;
  padding: 6px 9px;
  border-color: #8969b057;
  border-radius: 11px 11px 11px 3px;
  background: #342346;
}
.pip-conversation .social-own-message {
  justify-self: end;
  border-color: #b791e76e;
  border-radius: 11px 11px 3px 11px;
  background: linear-gradient(145deg, #4d306b, #3b2556);
}
.pip-conversation .social-own-message strong { color: #ddbcff }
.pip-conversation li small { color: #f5e9ff; font-size: 12px; white-space: pre-wrap }
.pip-conversation .social-inline-form { margin-top: 7px }
.pip-detail .pip-conversation input { padding-inline: 10px; border-radius: 9px; background: #170e23 }
.pip-chat-send {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #d7b2f9b3;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 22%, #7959a9, #392450 75%);
  box-shadow: 0 0 12px #ae7be34f;
  color: #fbf0ff;
  cursor: pointer;
}
.pip-chat-send:hover { border-color: #f0d6ff }
.pip-chat-send .icon { width: 18px; height: 18px }
.pip-plans { display: grid; gap: 7px; margin-top: 17px }
.pip-plans h3 { margin-bottom: 3px; font-size: 14px }
.pip-plan:has([data-plan="together"]) { --plan-accent: #b5e8d0; --plan-tint: #57977c }
.pip-plan:has([data-plan="invite"]) { --plan-accent: #ffd3ab; --plan-tint: #aa6e4b }
.pip-plan {
  --plan-accent: #e3c2ff;
  --plan-tint: #9164bb;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--plan-tint) 63%, #20162c);
  border-radius: 11px;
  background: linear-gradient(112deg, color-mix(in srgb, var(--plan-tint) 24%, #241934), #21162b 80%);
}
.pip-detail .pip-plan > summary { min-height: 58px; gap: 10px; padding: 6px 10px }
.pip-plan summary strong, .pip-plan summary small { display: block }
.pip-plan summary strong { font-size: 13px }
.pip-plan summary small { margin-top: 2px; color: #d6c6e3; font-size: 10.5px; line-height: 1.25 }
.pip-plan[data-plan-state="pending"] summary small { color: #e5c7fa }
.pip-plan[data-plan-state="accepted"] summary small { color: #aee9cb }
.pip-plan summary .pip-plan-emblem {
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid var(--plan-tint);
  border-radius: 50%;
  background: color-mix(in srgb, var(--plan-tint) 34%, #261935);
  box-shadow: inset 0 0 0 3px #20182d60, 0 0 14px #09060e70;
  color: var(--plan-accent);
}
.pip-plan summary .icon { width: 17px; height: 17px }
.pip-plan form, .pip-plan-status, .pip-proposal-response { margin: 0 9px 9px }
.pip-plan [data-pip-events] {
  min-width: 0;
  margin: 0;
  padding: 3px 0 0;
  border: 0;
}
.pip-detail .pip-plan [data-pip-events] label {
  display: grid;
  grid-template-columns: 15px 40px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 4px;
  padding: 4px 6px;
  border: 1px solid #b597d84a;
  border-radius: 7px;
  background: #241a31;
  color: #efe3fb;
  cursor: pointer;
}
.pip-plan [data-pip-events] img {
  width: 40px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}
.pip-plan [data-pip-events] label :is(strong, small) { display: block }
.pip-plan [data-pip-events] label small { margin-top: 2px; color: #e0c8ee; font-size: 10px; font-weight: 550 }
.pip-plan [data-pip-events] label small:last-child { color: var(--plan-accent) }
.pip-map-link { margin-top: 3px }
.pip-map-custom input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1c1428;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.pip-map-custom .pip-meeting-error, .pip-plan form > .pip-meeting-error { margin-top: 5px; color: #ffd1e7 }
.pip-plan-status a { color: #dce7ff; font-size: 11px }
.pip-plan [data-pip-events] input { margin: 0; accent-color: var(--plan-accent) }
.pip-detail .pip-plan [data-pip-events] label:has(input:checked) { border-color: var(--plan-tint); background: #3b2a4c }
.pip-detail .pip-plan-status {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border-inline-start: 2px solid var(--plan-accent);
  border-radius: 5px;
  background: #54406455;
  color: #f5eaff;
  overflow-wrap: anywhere;
}
.pip-detail .pip-plan-status[data-state="accepted"] { border-color: #9de8c1; background: #244339; color: #bdf0d5 }
.pip-detail .pip-plan-status span { color: #ded0ea; font-size: 11px }
.pip-proposal-response { display: flex; justify-content: flex-end; gap: 6px }
.pip-proposal-response button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding-inline: 9px;
  border: 1px solid #b597d872;
  border-radius: 7px;
  background: #2e203e;
  color: #e9d6f9;
  font: inherit;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}
.pip-proposal-response button:last-child { border-color: #8cdbad8e; background: #244638; color: #d0f6e0 }
.pip-proposal-response .icon { width: 15px; height: 15px }
.pip-capsule-photos:not(:empty), .pip-capsule-album { display: grid; gap: 6px; margin-block: 7px }
.pip-plan > .pip-capsule-album { margin-inline: 9px }
.pip-capsule-event { min-width: 0; padding: 7px; border: 1px solid #bd93dd71; border-radius: 8px; background: linear-gradient(140deg, #452e59, #2a1b39 75%) }
.pip-capsule-event h4 { margin: 0 0 4px; color: #faeaff; font-size: 12px }
.pip-capsule-lane { min-width: 0; margin: 0; padding: 0; border: 0 }
.pip-capsule-lane + .pip-capsule-lane { margin-top: 6px; padding-top: 5px; border-block-start: 1px solid #b792d64d }
.pip-capsule-lane legend, #dialog-body .pip-capsule-lane p { margin: 0 0 4px; padding: 0; color: #e2c4ff; font-size: 10px; font-weight: 710 }
.pip-capsule-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px }
.pip-capsule-tiles :is(label, figure) {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b58bd598;
  border-radius: 6px;
  color: #f2e0ff;
  background: #271834;
}
.pip-capsule-tiles img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover }
.pip-capsule-tiles :is(span, figcaption) { padding: 3px 5px; font-size: 9px; font-weight: 630 }
.pip-capsule-tiles label { cursor: pointer }
.pip-capsule-tiles input {
  position: absolute; z-index: 1; top: 4px; right: 4px; width: 20px; height: 20px; margin: 0;
  appearance: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid #f2dbffc9; border-radius: 6px; background: #241333c9; box-shadow: 0 1px 5px #11091d99;
}
.pip-capsule-tiles input:checked { background: linear-gradient(145deg, #8557b8, #573382); box-shadow: 0 0 8px #d2a1f79c }
.pip-capsule-tiles input:checked::before { width: 8px; height: 5px; border: solid #fff1ff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); content: "" }
.pip-capsule-tiles label:has(input:checked) { border-color: #ebc0ff; box-shadow: inset 0 0 0 1px #bd87f4; background: #4b3269 }
.pip-capsule-tiles label:has(input:focus-visible) { outline: 2px solid #ead4ff; outline-offset: 2px }
.pip-capsule-review .demo-action .icon { width: 15px; height: 15px }
.joint-capsule { margin-top: 8px }
.pip-detail .social-simulate {
  margin: 9px 6px 0 0;
  padding-inline: 3px;
  color: #dfc7f5;
  font-size: 11px;
}
