:root {
  color-scheme: light;
  --ink: #332c2a;
  --mute: #776c68;
  --wine: #854d5c;
  --line: #e2d7d3;
  --paper: #fffcf8;
  --serif:
    "Baskerville", "Songti SC", "Noto Serif CJK SC", "Noto Serif CJK", "SimSun",
    serif;
  --sans: "Inter", "PingFang SC", "Microsoft Yahei", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 0%, #efdcd9 0, transparent 49%),
    linear-gradient(140deg, #fbf8f3, #f6eeeb 65%, #f1e4e4);
  font: 15px/1.55 var(--sans);
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: transparent;
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b87584;
  outline-offset: 3px;
}
button:hover {
  filter: brightness(0.95);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
}
a {
  color: var(--wine);
}
svg {
  flex: none;
  vertical-align: middle;
}
#shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #fbf7f2d9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 32px 19px 20px;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 0 7px 31px;
  color: #623c47;
}
.brand strong {
  display: block;
  font: italic 31px/1 var(--serif);
  letter-spacing: -1.3px;
}
.brand small {
  font-size: 11px;
  letter-spacing: 3px;
  color: #887773;
}
.navbtn {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 12px 16px;
  border-radius: 11px;
  width: 100%;
  font-size: 14px;
  color: #655d5a;
}
.navbtn.sel {
  background: #eddce0;
  color: #773c50;
  font-weight: 650;
}
.navrule {
  border-top: 1px solid var(--line);
  margin: 15px 9px;
}
.navtitle,
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #8b7275;
}
.navtitle {
  margin: 0 15px 6px;
}
.bottom {
  margin-top: auto;
}
.identity {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding: 19px 7px 0;
  margin-top: 14px;
}
.initial {
  background: #e6d0ca;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  font: italic 20px var(--serif);
  color: #775057;
}
.mini {
  font-size: 12px;
  color: var(--mute);
}
main {
  width: 100%;
  max-width: 1650px;
  margin: auto;
  align-self: start;
  padding: 0 clamp(22px, 3.5vw, 66px) 55px;
  min-width: 0;
  margin-top: 0;
}
#bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #726665;
}
.row,
.actions,
.head,
.meta,
.by,
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row,
.head {
  justify-content: space-between;
}
.head {
  margin: 26px 0 15px;
}
.head h2 {
  font-size: 25px;
}
.head h2 i,
.suben {
  font: italic 17px var(--serif);
  color: #8a7476;
  margin-left: 10px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 29px 0 24px;
}
.top h1 {
  font-size: clamp(31px, 3.35vw, 54px);
  line-height: 1.25;
  margin: 7px 0 0;
  letter-spacing: 1px;
}
.top p {
  color: var(--mute);
  margin-top: 8px;
  font-size: 14px;
}
.textbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--wine);
  font-size: 13px;
}
.iconbtn,
.round {
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: #fff9f4;
  border: 1px solid var(--line);
  font-size: 23px;
}
.btn,
.soft,
.ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 41px;
  padding: 10px 17px;
  border-radius: 30px;
  font-weight: 550;
  font-size: 13px;
}
.btn {
  background: var(--wine);
  color: white;
}
.soft {
  background: var(--paper);
  border: 1px solid var(--line);
}
.ghost {
  border: 1px solid currentColor;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(245px, 0.9fr);
  gap: 20px;
}
.hero {
  min-height: 343px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: #625a48;
  background-size: cover;
  background-position: center 52%;
  color: white;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
}
.hero:before {
  content: "";
  inset: 0;
  z-index: -1;
  position: absolute;
  background:
    linear-gradient(90deg, #2e2e2c66, transparent 80%),
    linear-gradient(0deg, #252222aa, transparent 76%);
}
.glass {
  background: #f6f1e92b;
  border: 1px solid #fff6;
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d3e5ae;
}
.hero h2 {
  font-size: clamp(27px, 2.6vw, 44px);
  margin: 8px 0 4px;
  font-weight: 550;
  line-height: 1.34;
}
.hero .meta {
  font-size: 12px;
  letter-spacing: 1px;
}
.hero p {
  font-size: 14px;
  opacity: 0.93;
}
.hero .actions {
  margin-top: 19px;
}
.hero .soft {
  color: #513b3d;
  border-color: white;
}
.hero .ghost {
  background: #342a2926;
  color: white;
  border-color: #fff7;
}
.stampcard {
  position: relative;
  background: linear-gradient(135deg, #fffaf1, #f7e9df);
  border: 1px solid #dccfc1;
  border-radius: 17px;
  padding: 21px 21px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stampcard:after {
  content: "";
  inset: 0 0 auto;
  height: 4px;
  position: absolute;
  background: repeating-linear-gradient(
    125deg,
    #a77574 0 10px,
    transparent 10px 20px,
    #82969a 20px 30px,
    transparent 30px 40px
  );
  opacity: 0.7;
}
.postmark {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 2px dashed #9b6766;
  border-radius: 50%;
  width: 51px;
  height: 51px;
  transform: rotate(14deg);
  color: #996967;
  display: grid;
  place-content: center;
  text-align: center;
  font: 9px/1.2 Georgia;
  letter-spacing: 1px;
  opacity: 0.77;
}
.stampcard h2 {
  font-size: 27px;
  margin: 5px 52px 0 0;
}
.script {
  font: italic 17px var(--serif);
  color: #97776d;
}
.timeline {
  margin: 15px 0 10px;
  flex: 1;
}
.stop {
  position: relative;
  display: grid;
  grid-template-columns: 10px 45px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}
.stop:before {
  content: "";
  height: calc(100% - 2px);
  width: 1px;
  background: #cebab2;
  position: absolute;
  left: 3px;
  top: 16px;
}
.stop:last-child:before {
  display: none;
}
.stop b {
  position: relative;
  width: 7px;
  height: 7px;
  background: #9e6f74;
  border-radius: 50%;
}
.stop time {
  color: #8c7475;
  font: 12px Georgia;
}
.stampcard footer {
  border-top: 1px dashed #cbb6ac;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.card,
.panel,
.bubblecard {
  background: #fffaf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.card {
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.photo {
  width: 100%;
  aspect-ratio: 1.92;
  object-fit: cover;
  display: block;
}
.pic {
  width: 100%;
  position: relative;
}
.pic .badge {
  position: absolute;
  bottom: 9px;
  right: 9px;
}
.badge {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  background: #fff8eddf;
  color: #5f504b;
}
.cardbody {
  padding: 14px 16px 16px;
  width: 100%;
}
.cardbody h3 {
  font-size: 21px;
  margin: 6px 0 8px;
  line-height: 1.35;
}
.by {
  gap: 6px;
  color: var(--mute);
  font-size: 11px;
}
.ava {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  background: #e5d1ca;
  display: inline-grid;
  place-items: center;
  color: #7c5359;
}
.by .ava {
  width: 20px;
  height: 20px;
}
.cardfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #786d68;
  font-size: 11px;
}
.panel {
  padding: 20px;
  margin-bottom: 14px;
}
.panel h3 {
  margin-bottom: 8px;
}
.listitem {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.listitem:last-child {
  border: 0;
}
.listitem .info {
  flex: 1;
  min-width: 0;
}
.info p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.tabs button {
  padding: 7px 15px;
  border-radius: 22px;
  background: #fff9f4;
  border: 1px solid var(--line);
  font-size: 13px;
}
.tabs .active {
  background: #714855;
  color: white;
}
.empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--mute);
}
.profileimg {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 13px;
}
.chatlog {
  min-height: 250px;
  max-height: 55vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 2px;
}
.bubble {
  align-self: flex-start;
  background: #fffaf6;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 14px;
  max-width: min(86%, 580px);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.bubble.me {
  align-self: flex-end;
  background: #f0dbe0;
}
.bubble small {
  display: block;
  color: var(--mute);
  font-size: 10px;
  margin-top: 5px;
}
.bubble img,
.bubble video,
.bubble audio {
  max-width: 100%;
  max-height: 250px;
  border-radius: 9px;
}
.compose {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compose input {
  flex: 1;
  min-width: 0;
}
.formrow {
  display: flex;
  gap: 12px;
}
.formrow > * {
  flex: 1;
  min-width: 0;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  background: #fffdfb;
  border: 1px solid #d8c8c7;
  border-radius: 10px;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
label {
  display: block;
  font-size: 13px;
  margin: 13px 0 5px;
  color: #605559;
}
label.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check input {
  width: auto;
}
.note {
  font-size: 13px;
  color: #785e61;
  background: #f6ece8;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}
.error {
  color: #933c4c;
  font-size: 13px;
}
.block {
  width: 100%;
  margin-top: 14px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff9f6;
  width: min(510px, 95vw);
  max-height: 90dvh;
  padding: 23px;
  color: var(--ink);
  box-shadow: 0 24px 100px #493c4040;
}
dialog::backdrop {
  background: #3d313367;
  backdrop-filter: blur(4px);
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
dialog header h2 {
  font-size: 25px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #49383e;
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  z-index: 30;
  display: none;
  max-width: 85vw;
  font-size: 13px;
}
#mobile {
  display: none;
}
.mediaframe {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #362e31;
  aspect-ratio: 1.45;
}
.mediaframe video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mediaframe #local {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28%;
  height: 40%;
  background: #191719;
  border: 1px solid #aaa;
  border-radius: 10px;
}
.mediaframe #local:not([data-show]) {
  display: none;
}
.words {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.iconimg {
  height: 110px;
  display: grid;
  place-items: center;
  background: #f1e5e1;
  color: var(--wine);
}
.muted {
  color: var(--mute);
}
.tag {
  font-size: 11px;
  background: #f0e6e1;
  border-radius: 12px;
  padding: 3px 8px;
  color: #766466;
}
.details {
  display: grid;
  gap: 8px;
}
.details p {
  margin: 4px 0;
}
.plain {
  padding: 0;
  text-align: left;
}
.activecolor {
  color: var(--wine);
  font-weight: 700;
}
#page {
  animation: arrive 0.3s ease-out;
}
@keyframes arrive {
  from {
    opacity: 0.5;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 395px;
  }
  .stampcard {
    padding: 28px;
  }
  .stop {
    padding: 9px 0;
  }
}
@media (max-width: 1100px) {
  #shell {
    grid-template-columns: 166px minmax(0, 1fr);
  }
  aside {
    padding: 27px 11px;
  }
  .brand strong {
    font-size: 26px;
  }
  main {
    padding-left: 21px;
    padding-right: 21px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1.6fr) minmax(225px, 1fr);
    gap: 13px;
  }
  .hero {
    padding: 20px;
    min-height: 326px;
  }
  .stampcard {
    padding: 17px;
  }
  .cards {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  #shell {
    display: block;
  }
  aside {
    display: none;
  }
  main {
    padding: 0 16px 100px;
  }
  #bar {
    height: 56px;
  }
  .top {
    margin: 23px 0 17px;
    align-items: center;
  }
  .top h1 {
    font-size: 32px;
  }
  .top p {
    font-size: 12px;
  }
  .dashboard {
    display: flex;
    flex-direction: column;
  }
  .hero {
    min-height: 300px;
    border-radius: 17px;
    background-position: 62% center;
  }
  .hero h2 {
    font-size: 32px;
  }
  .stampcard {
    padding: 16px 18px;
  }
  .stampcard .timeline {
    margin: 8px 0;
  }
  .stampcard .stop {
    padding: 3px 0;
  }
  .stampcard h2 {
    font-size: 23px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cardbody {
    padding: 11px;
  }
  .cardbody h3 {
    font-size: 17px;
  }
  .head {
    margin: 20px 0 12px;
  }
  .head h2 {
    font-size: 22px;
  }
  .head h2 i {
    font-size: 15px;
  }
  .head .textbtn {
    font-size: 12px;
  }
  .cardfoot {
    gap: 4px;
    flex-wrap: wrap;
  }
  #mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #faf5f1f5;
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 6px 1px max(6px, env(safe-area-inset-bottom));
    z-index: 5;
  }
  #mobile button {
    flex: 1;
    font-size: 10px;
    color: #776d69;
    display: grid;
    justify-items: center;
    gap: 2px;
    min-height: 44px;
  }
  #mobile .sel {
    color: #8b455b;
    font-weight: 700;
  }
  #toast {
    bottom: 75px;
  }
  .top .soft {
    padding: 9px 13px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .chatlog {
    max-height: 51dvh;
  }
  .suben {
    display: none;
  }
  .photo {
    aspect-ratio: 1.4;
  }
  .dashboard .stampcard {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    column-gap: 12px;
  }
  .dashboard .stampcard .postmark,
  .dashboard .stampcard .script {
    display: none;
  }
  .dashboard .stampcard .timeline {
    grid-column: 2;
    grid-row: 1/4;
    margin: 0;
  }
  .dashboard .stampcard footer {
    grid-column: 1/3;
    margin-top: 8px;
  }
  .dashboard .stampcard h2 {
    margin: 2px 0;
  }
  .top .eyebrow {
    font-size: 9px;
  }
  .top .soft {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

[hidden] {
  display: none !important;
}

/* Conversations have a fixed composer and a separately scrolling transcript. */
body[data-page="chat"] main {
  max-width: none;
  padding: 0;
  margin: 0;
  height: 100dvh;
}
body[data-page="chat"] #bar,
body[data-page="chat"] #mobile {
  display: none;
}
body[data-page="chat"] #page {
  height: 100%;
  padding: 0;
}
.messenger {
  display: grid;
  grid-template-columns: clamp(205px, 20vw, 302px) minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  background: #f8f7f5;
}
.thread-sidebar {
  background: #fffdfa;
  border-right: 1px solid #e4dfdb;
  overflow: auto;
}
.thread-sidebar > header,
.talk-header {
  height: 75px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e6e1de;
  padding: 0 22px;
}
.thread-sidebar > header {
  justify-content: space-between;
}
.thread-sidebar h2 {
  font: 600 21px var(--sans);
}
.talk-icon,
.sender-avatar {
  padding: 0;
  display: grid;
  place-items: center;
  flex: none;
}
.talk-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #514c49;
}
.talk-icon:hover,
.tool-cell:hover {
  background: #efeae7;
}
.thread-entry {
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: center;
  text-align: left;
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid #eeeae6;
}
.thread-entry.selected {
  background: #efe5e3;
}
.entry-info {
  min-width: 0;
  flex: 1;
}
.entry-info strong,
.entry-info small {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.entry-info small {
  color: #827973;
  font-size: 12px;
  margin-top: 3px;
}
.entry-end {
  font-size: 10px;
  align-self: flex-start;
  color: #817974;
  text-align: right;
}
.entry-end b {
  display: block;
  border-radius: 20px;
  background: #a74a61;
  color: white;
  width: max-content;
  min-width: 16px;
  margin: 5px 0 0 auto;
  text-align: center;
}
.threads-list,
.moments {
  background: #fffdfb;
  max-width: 820px;
  border: 1px solid #e4dfdb;
  border-radius: 16px;
  overflow: hidden;
}
.talk {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}
.talk-header {
  background: #fbfaf8;
  gap: 4px;
}
.talk-header > .talk-icon {
  display: none;
}
.talk-person {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 0;
}
.talk-person span > * {
  display: block;
}
.talk-person strong {
  font-size: 17px;
}
.talk-person small,
.msg-label {
  font-size: 11px;
  color: #807773;
}
.talk-actions {
  display: flex;
  margin-left: auto;
}
.talk .ava,
.thread-entry .ava,
.moment .ava,
.my-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 9px;
  flex: none;
}
.thread-entry .ava {
  width: 44px;
  height: 44px;
}
.my-avatar {
  background: #ddd2d4;
  color: #734759;
  display: grid;
  place-items: center;
}
.talk-history {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px clamp(16px, 3vw, 52px) 24px;
  min-height: 0;
  scrollbar-width: thin;
}
.msg-time,
.call-entry {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #7e7976;
  margin: 18px 0;
}
.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
}
.msg-row.outgoing {
  flex-direction: row-reverse;
}
.msg-content {
  max-width: min(72%, 530px);
  min-width: 0;
}
.speech {
  background: white;
  border: 1px solid #e7e1de;
  border-radius: 3px 12px 12px 12px;
  padding: 10px 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.outgoing .speech {
  background: #e5efdf;
  border-color: #d8e6d3;
  border-radius: 12px 3px 12px 12px;
}
.speech img,
.speech video,
.speech audio {
  display: block;
  max-width: 100%;
  max-height: 230px;
  border-radius: 7px;
}
.speech img {
  width: 260px;
  object-fit: cover;
  margin-bottom: 6px;
}
.msg-label {
  display: block;
  margin: 4px 2px;
}
.msg-save {
  opacity: 0;
  font-size: 11px;
  color: #807773;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 1px;
}
.msg-save svg {
  width: 14px;
}
.msg-row:hover .msg-save,
.msg-save:focus-visible {
  opacity: 1;
}
.talk-footer {
  background: #faf9f7;
  border-top: 1px solid #e2dedb;
  padding: 10px clamp(12px, 2vw, 36px) max(10px, env(safe-area-inset-bottom));
}
.talk-footer form {
  display: flex;
  align-items: center;
  gap: 7px;
}
.talk-footer input {
  flex: 1;
  min-width: 0;
  background: white;
  border: 1px solid #ddd9d6;
  outline-color: #926475;
  border-radius: 9px;
  font-size: 16px;
}
.send-chat {
  border-radius: 8px;
  padding: 9px 16px;
  background: #774653;
  color: white;
}
.talk-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.talk-tools[hidden],
.typing[hidden] {
  display: none;
}
.tool-cell {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 10px;
  min-width: 64px;
}
.typing {
  font-size: 11px;
  color: #807773;
  margin: 0 0 5px 50px;
}
.search-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.search-result small {
  display: block;
  color: #807773;
}
.moment {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid #eae5e2;
}
.moment-body {
  min-width: 0;
  flex: 1;
}
.moment-name,
.moment-comments b {
  color: #705262;
  font-weight: 650;
}
.moment-name {
  padding: 0;
}
.moment-body .words {
  margin: 6px 0 10px;
}
.moment-photo {
  display: block;
  padding: 0;
}
.moment-photo img,
.moment-body video {
  display: block;
  width: min(100%, 340px);
  max-height: 320px;
  border-radius: 6px;
  object-fit: cover;
}
.moment-body > small,
.moment footer {
  font-size: 12px;
  color: #817773;
}
.moment-body > small {
  display: block;
  margin-top: 9px;
}
.moment footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.moment footer time {
  margin-right: auto;
}
.moment-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 6px 1px;
}
.moment-link svg {
  width: 15px;
}
.moment-comments {
  background: #f4f1ee;
  padding: 8px 10px;
  margin-top: 6px;
  border-radius: 5px;
  font-size: 13px;
}
@media (max-width: 850px) {
  .messenger {
    display: block;
  }
  .thread-sidebar {
    display: none;
  }
  .talk {
    height: 100%;
  }
  .talk-header > .talk-icon {
    display: grid;
  }
  .talk-header {
    height: 61px;
    padding: 0 8px;
  }
  .talk-person {
    gap: 7px;
  }
  .talk-person .ava {
    display: none;
  }
  .msg-row {
    gap: 7px;
  }
  .msg-save {
    width: 22px;
    font-size: 0;
  }
  .talk-history {
    padding-inline: 12px;
  }
  .talk-footer {
    padding-inline: 7px;
  }
  .talk-footer .talk-icon {
    width: 34px;
  }
  .send-chat {
    padding-inline: 12px;
  }
  .moment {
    padding: 15px 12px;
  }
  .talk-footer input {
    height: 41px;
  }
  .talk .my-avatar,
  .talk .sender-avatar .ava {
    width: 34px;
    height: 34px;
  }
}

#liveSetup {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}
#dialog [hidden] {
  display: none !important;
}
#dialog details {
  margin: 10px 0;
  padding: 6px 0;
}
#dialog summary {
  cursor: pointer;
  color: var(--wine);
}
#liveLog {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 180px;
  font: 12px/1.6 var(--sans);
}
.reference-preview {
  max-height: 130px;
  max-width: 100%;
  object-fit: contain;
  margin: 8px 0;
}
#liveSetup:disabled {
  opacity: 0.7;
}

.reference-slot {
  height: 68px;
  display: flex;
  align-items: center;
}
.reference-slot img {
  max-height: 64px;
  margin: 0;
}
.reference-slot:has(img[hidden]) {
  background: #faf7f4;
  border-radius: 6px;
}

.talk:has(.journey-strip) {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.journey-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f0e9;
  color: #554938;
  border: 0;
  border-bottom: 1px solid #dfd8cd;
  padding: 8px 16px;
  text-align: left;
  border-radius: 0;
}
.journey-strip > span {
  flex: 1;
  min-width: 0;
}
[data-journey] > strong,
[data-journey] > span {
  display: block;
}
.journey-strip strong {
  font-size: 13px;
}
.journey-strip [data-journey] > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.journey-summary {
  display: grid;
  gap: 6px;
  padding: 15px;
  background: #f3ede6;
  border-radius: 14px;
}
.journey-summary small {
  color: #6a6259;
}
.journey-summary .textbtn {
  justify-self: start;
}
.stage-head,
.stage-bottom {
  display: none;
}
.expand-call,
.stage-button {
  border: none;
  color: white;
  background: rgba(30, 27, 30, 0.78);
  border-radius: 24px;
  padding: 9px 15px;
  min-height: 44px;
}
.expand-call {
  position: absolute;
  top: 10px;
  right: 10px;
}
#dialog.video-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: #191719;
  overflow: hidden;
}
.video-stage #form > header,
.video-stage #db > :not(.mediaframe),
.video-stage .expand-call {
  display: none;
}
.video-stage .mediaframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.video-stage .mediaframe #remote {
  display: block;
  object-fit: cover;
}
.video-stage .mediaframe #local {
  top: calc(78px + env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  bottom: auto;
  width: clamp(76px, 23vw, 144px);
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.video-stage .mediaframe.preview-only #local {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.video-stage .mediaframe.whole-frame #remote,
.video-stage .mediaframe.preview-only.whole-frame #local {
  object-fit: contain;
}
.stage-head,
.stage-bottom {
  position: absolute;
  left: 0;
  right: 0;
  color: white;
}
.video-stage .stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#0009, transparent);
  padding: calc(12px + env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) 22px
    max(16px, env(safe-area-inset-left));
  top: 0;
}
.stage-head strong,
.stage-head small {
  display: block;
}
.video-stage .stage-bottom {
  display: block;
  bottom: 0;
  background: linear-gradient(transparent, #171519db);
  padding: 32px max(12px, env(safe-area-inset-right))
    calc(14px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  text-align: center;
}
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.stage-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.stage-button[aria-pressed="true"] {
  background: white;
  color: #231f20;
}
.end-stage {
  background: #b63b48;
}
.ring-person {
  display: none;
}
.ordinary-call .mediaframe {
  background: #2f2928;
}
.ordinary-call .stage-head {
  z-index: 2;
}
.ordinary-call .stage-bottom {
  z-index: 3;
}
.ordinary-call .mediaframe:not(.answered) #remote,
.ordinary-call .mediaframe[data-mode="audio"] #remote {
  filter: blur(32px) brightness(0.44);
  transform: scale(1.15);
}
.ordinary-call .mediaframe:not(.answered) .ring-person,
.ordinary-call .mediaframe[data-mode="audio"] .ring-person {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 14px;
  left: 0;
  right: 0;
  top: calc(50% - 28px);
  transform: translateY(-50%);
  padding: 0 max(22px, env(safe-area-inset-left));
  text-align: center;
  color: white;
  text-shadow: 0 1px 12px #0007;
  font-size: 25px;
}
.ring-person .ava {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  object-fit: cover;
}
.ring-person small {
  font: 400 15px/1.5 system-ui, sans-serif;
  max-width: 30em;
  color: #f1ecea;
  overflow-wrap: anywhere;
}
.ordinary-call .mediaframe:not(.answered) #stageState,
.ordinary-call .mediaframe[data-mode="audio"] #stageState,
.ordinary-call .mediaframe.ended .ring-dots,
.ordinary-call .mediaframe.answered .ring-dots { display: none; }
.ordinary-call .stage-actions { gap: 10px; }
.ordinary-call .stage-button { justify-content: center; }
.ordinary-call .mediaframe.ended .stage-button { min-width: 108px; }
.ordinary-call .mediaframe.ended [data-act="stageDial"] { background: #fff; color: #292427; }
.ordinary-call .mediaframe.ended .end-stage { background: #454044; }
@media (max-height: 440px) {
  .ordinary-call .mediaframe .ring-person { gap: 5px; }
  .ring-person .ava { width: 54px; height: 54px; }
}
.ring-dots {
  font-size: 10px;
  letter-spacing: 5px;
  animation: ring-breathe 1.4s ease-in-out infinite alternate;
}
.answered .ring-dots,
.ended .ring-dots {
  visibility: hidden;
}
@keyframes ring-breathe {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.95;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ring-dots {
    animation: none;
  }
}
.ordinary-call #stageState {
  font-variant-numeric: tabular-nums;
}
.ordinary-call .end-stage {
  background: #c33e4c;
  min-width: 76px;
}
#dialog.ordinary-call.call-tools-open #controls:not([hidden]) {
  display: block;
  position: absolute;
  z-index: 4;
  max-height: 48dvh;
  overflow: auto;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 5%;
  right: 5%;
  padding: 18px;
  background: #fff9f6;
  border-radius: 18px;
}
.ordinary-call #controls > .actions,
.ordinary-call #controls details {
  display: none;
}
#dialog.call-sheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 540px);
  max-width: 100%;
  padding: 0 0 env(safe-area-inset-bottom);
  border: none;
  border-radius: 18px 18px 0 0;
  background: #efefef;
}
.call-sheet header {
  display: none;
}
.call-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 55px;
  background: white;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #eee;
  color: #242124;
  font-size: 17px;
}
.cancel-option {
  margin-top: 7px;
}
.talk-tools:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 6px;
  background: #f7f6f4;
  padding: 12px 6px;
}
.tool-cell {
  border: 0;
  background: transparent;
  min-width: 0;
  padding: 2px 0;
  color: #625c59;
  font-size: 12px;
}
.tool-cell > svg {
  width: 48px;
  height: 48px;
  padding: 13px;
  border-radius: 13px;
  background: #fff;
  color: #433e3b;
  box-shadow: 0 1px 3px #362e310b;
}
.stage-head small {
  font-size: 12px;
}
.ordinary-call .mediaframe:not(.answered) .stage-head strong,
.ordinary-call .mediaframe[data-mode="audio"] .stage-head strong {
  display: none;
}

/* Travel journal map */
#dialog.travel-map-dialog {
  inset: 3vh 3vw;
  margin: auto;
  width: min(1180px, 94vw);
  height: 94dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fcf8f2;
}
.travel-map-dialog #form { height: 100%; display: grid; grid-template-rows: 64px minmax(0,1fr); }
.travel-map-dialog #form > header { padding: 12px 20px; margin: 0; border-bottom: 1px solid #e5ddd3; }
.travel-map-dialog #dt { font-size: 24px; }
.travel-map-dialog #db { min-height: 0; }
.travel-map-shell { height: 100%; display: grid; grid-template-columns: minmax(0,1fr) 340px; grid-template-rows: auto minmax(0,1fr); }
.map-toolbar { grid-column: 1/-1; display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #e7dfd4; }
.map-toolbar label { display: grid; gap: 3px; font-size: 11px; color: #817265; flex: 1; max-width: 260px; min-width: 0; margin: 0; }
.map-toolbar select { font-size: 14px; background: #fffdf9; min-height: 40px; padding: 6px 25px 6px 10px; width: 100%; border-radius: 12px; }
.map-canvas-wrap { position: relative; min-width: 0; min-height: 0; background: #dce8de; }
#travelMap { position: absolute; inset: 0; width: 100%; height: 100%; background: #e5eadf; font-family: inherit; z-index: 0; }
.map-floating { position: absolute; left: 16px; top: 16px; display: flex; gap: 7px; z-index: 500; }
.map-floating button { padding: 9px 13px; min-height: 42px; border: 1px solid #ddd5c9; border-radius: 13px; background: #fffdf7f2; color: #54493d; box-shadow: 0 3px 12px #403c2c16; }
.map-network { position: absolute; left: 12px; right: 48px; bottom: 25px; margin: 0; padding: 8px 12px; font-size: 12px; border-radius: 12px; background: #fff8e8; z-index: 500; }
.map-journal { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 18px; border-left: 1px solid #e2dbd0; }
#mapSummary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; align-items: baseline; color: #776758; }
#mapSummary strong { color: #3c4b40; font-size: 22px; font-family: var(--serif, serif); }
#mapSummary span { font-size: 12px; }
#mapSummary small { width: 100%; font-size: 11px; line-height: 1.6; }
.map-stop { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; background: transparent; color: #4b4036; border: 0; border-bottom: 1px solid #e7dfd5; padding: 14px 0; border-radius: 0; }
.map-stop.active { background: #eee9dd; border-radius: 12px; padding: 14px 8px; }
.map-stop > span:nth-child(2) { flex: 1; min-width: 0; }
.map-stop small { display: block; line-height: 1.5; font-size: 11px; color: #8a7c6d; margin-top: 4px; }
.map-stop img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.map-stop-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; border: 2px solid #a89a87; }
.map-stop-dot.done { background: #708876; border-color: #708876; }
.travel-pin { background: transparent; border: none; }
.travel-pin > span { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #aa7b65; background: #fffcf4; color: #815b4e; border-radius: 50% 50% 50% 6px; transform: none; font: 600 12px system-ui; box-shadow: 0 3px 8px #4c423b33; }
.travel-pin.visited > span { background: #667e6d; color: white; border-color: #fffdf6; }
.travel-pin img { width: 46px; height: 46px; display: block; object-fit: cover; border: 3px solid #fffdf5; border-radius: 12px; box-shadow: 0 4px 10px #48403540; }
.travel-pin img + span { position: absolute; right: -4px; bottom: -1px; width: 18px; height: 18px; border-radius: 50%; transform: none; font-size: 10px; border-width: 1px; }
.travel-pin.selected { filter: drop-shadow(0 0 4px #8b594b); }
.map-story { padding: 14px; margin-bottom: 14px; border-radius: 16px; background: #fffdf8; box-shadow: 0 2px 12px #665d4b0b; border: 1px solid #e5dccd; }
.map-story h3 { margin: 0 0 6px; font-size: 20px; }
.map-story .words { line-height: 1.8; font-size: 14px; }
.map-story .mini { overflow-wrap: anywhere; }
.map-photo { position: relative; width: 100%; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #e9e2d7; }
.map-photo img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.map-photo span { position: absolute; bottom: 8px; right: 8px; background: #332e28b3; color: white; font-size: 11px; padding: 4px 7px; border-radius: 8px; }
.map-search-row { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.map-search-row input { flex: 1 1 100%; min-width: 0; font-size: 14px; }
.map-search-row button { min-height: 42px; border: 1px solid #d9d1c5; border-radius: 10px; padding: 7px 13px; background: white; color: #514a40; }
.map-candidate { display: grid; gap: 5px; text-align: left; width: 100%; padding: 12px; margin: 6px 0; border-radius: 12px; border: 1px solid #dcd4c7; background: #fffdf8; color: #514637; }
.map-candidate small { font-size: 11px; overflow-wrap: anywhere; }
.map-candidate span { color: #627b67; font-size: 12px; }
.map-lightbox { position: absolute; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 55px 12px 20px; background: #1d1b1af2; }
.map-lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.map-lightbox button { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #ffffff20; color: white; font-size: 30px; }
@media (max-width: 700px) {
  #dialog.travel-map-dialog { inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .travel-map-dialog #form { grid-template-rows: calc(56px + env(safe-area-inset-top)) minmax(0,1fr); }
  .travel-map-dialog #form > header { padding: calc(8px + env(safe-area-inset-top)) 14px 8px; }
  .travel-map-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(180px,1fr) minmax(150px,35%); }
  .map-toolbar { gap: 7px; padding: 8px 12px; }
  .map-toolbar label { font-size: 10px; }
  .map-toolbar select { font-size: 12px; min-height: 36px; }
  .map-journal { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid #e0d5c5; }
  .map-floating { left: 10px; top: 10px; }
  .map-floating button { font-size: 12px; padding: 7px 10px; }
  #mapSummary { margin-bottom: 8px; }
}

.travel-cluster { display: grid; place-items: center; background: #718b7170; border-radius: 50%; }
.travel-cluster span { display: grid; place-items: center; width: 32px; height: 32px; background: #fdf8e9; color: #4d6755; border-radius: 50%; font: 600 13px system-ui; box-shadow: 0 2px 8px #4b554326; }

.travel-pin.current { outline: 3px solid #ccac68; outline-offset: 5px; border-radius: 50%; }

.map-toolbar select { appearance: none; -webkit-appearance: none; height: 40px; }
.map-network button { margin-left: 6px; border: 0; border-radius: 6px; padding: 4px 7px; background: #eee0c7; color: #67513b; }
@media(max-width:700px) { .map-toolbar select { height: 36px; } }

.call-wardrobe {
  position: absolute; z-index: 5; bottom: calc(105px + env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  max-height: 52dvh; overflow-y: auto; padding: 16px;
  border-radius: 20px; background: #fffaf4f5; color: #3c3330; box-shadow: 0 8px 35px #0004;
}
.outfit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.outfit-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(90px,1fr)); gap: 10px; margin: 12px 0; }
.outfit-grid button { padding: 0; border: 1px solid #ded4ca; border-radius: 12px; overflow: hidden; background: white; color: #433a35; text-align: left; }
.outfit-grid img { display: block; width: 100%; height: 90px; object-fit: cover; }
.outfit-grid span { display: block; padding: 7px; font-size: 12px; line-height: 1.4; }
.outfit-upload { display: block; font-size: 14px; margin: 10px 0; }
.outfit-upload input { margin-top: 7px; width: 100%; font-size: 12px; }
.outfit-progress { position: absolute; left: 14px; right: 14px; bottom: calc(95px + env(safe-area-inset-bottom)); z-index: 4; border-radius: 12px; padding: 10px 12px; color: white; background: #211d20c9; font-size: 13px; text-align: center; }

.history-notice { padding:8px 12px; font-size:12px; color:var(--muted); background:var(--surface,#faf8f7); flex-shrink:0; }
.history-notice[hidden]{display:none}.history-notice button{margin-left:8px;padding:3px 8px;font-size:12px}

/* In-call controls: a compact live room and one stable bottom sheet. */
.ordinary-call .stage-head {padding:calc(14px + env(safe-area-inset-top)) 18px 35px;pointer-events:none;background:linear-gradient(#15131888,transparent)}
.ordinary-call .stage-head strong {font:600 18px/1.4 var(--sans);letter-spacing:.2px}
.ordinary-call .stage-head small {font-size:11px;opacity:.8;margin-top:3px}
.ordinary-call .stage-bottom {padding:34px 14px calc(14px + env(safe-area-inset-bottom));bottom:var(--live-keyboard,0px);background:linear-gradient(transparent,#111017c9);transition:opacity .15s;max-width:100%}
.ordinary-call #stageState {font-size:12px;line-height:1.4;margin:0 0 9px;text-align:left;opacity:.76}
.ordinary-call .live-composer:not([hidden]) {display:flex;align-items:center;gap:8px;padding:5px 6px 5px 14px;border:1px solid #ffffff36;background:#1c1b2373;backdrop-filter:blur(16px);border-radius:25px;margin-bottom:14px}
.live-composer input {flex:1;min-width:0;width:100%;font:400 16px/1.3 var(--sans);background:transparent;border:0;color:#fff;padding:7px 0;outline:none;box-shadow:none}
.live-composer input::placeholder {color:#ffffffbd;font-size:13px}
.live-composer button {display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;border:0;color:white;background:#b75973;padding:0}
.ordinary-call .stage-actions {display:flex;align-items:center;justify-content:space-around;gap:2px;flex-wrap:nowrap}
.ordinary-call .stage-actions .stage-button {position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:4px 2px;min-width:0;min-height:52px;flex:1;background:transparent;border:0;color:#fff;border-radius:12px;font:500 10px/1.2 var(--sans);white-space:nowrap;text-align:center}
.ordinary-call .stage-actions .stage-button svg {width:22px;height:22px;flex:none}
.ordinary-call .stage-actions .stage-button[aria-pressed="true"] {background:#ffffff20}
.ordinary-call .stage-actions .end-stage {flex:0 0 52px;background:#e64d64;border-radius:50%;height:52px;min-width:52px;font-size:10px;gap:2px;margin-left:3px}
.ordinary-call .mediaframe.ended .stage-actions .stage-button,.ordinary-call .mediaframe:not(.answered) .stage-actions .stage-button {max-width:130px;flex:0 1 130px;border-radius:28px;min-height:52px;font-size:14px}
.ordinary-call .mediaframe.ended .stage-bottom,.ordinary-call .mediaframe:not(.answered) .stage-bottom {padding-bottom:calc(26px + env(safe-area-inset-bottom))}
.ordinary-call .mediaframe:not(.answered) .live-composer,.ordinary-call .mediaframe.ended .live-composer {display:none}
#liveUsingCount {position:absolute;top:0;right:calc(50% - 25px);min-width:17px;height:17px;padding:2px 4px;border-radius:9px;background:#bb6680;color:#fff;font:600 10px/13px var(--sans)}
.live-bubbles {display:none}
.ordinary-call .answered .live-bubbles:not([hidden]) {display:flex;flex-direction:column;gap:6px;position:absolute;z-index:3;left:14px;bottom:calc(191px + env(safe-area-inset-bottom));width:min(310px,75%);max-height:155px;overflow:auto;scrollbar-width:none;mask-image:linear-gradient(transparent,#000 12px);padding-top:12px;pointer-events:none}
.live-bubbles p {width:fit-content;max-width:100%;margin:0;padding:7px 11px;border-radius:4px 14px 14px;background:#17151d7d;backdrop-filter:blur(8px);color:#fff;font:400 12px/1.5 var(--sans);overflow-wrap:anywhere}
.live-bubbles strong {color:#f0b7cb;font-weight:600;margin-right:7px}
.live-bubbles .from-me strong {color:#d4d3e8}
.live-bubbles span {white-space:pre-wrap}
.live-sheet-shade {position:absolute;z-index:5;inset:0;width:100%;height:100%;border:0;border-radius:0;background:#05040b25;padding:0}
.live-panel-open .stage-bottom,.live-panel-open .live-bubbles,.live-panel-open .outfit-progress {visibility:hidden;pointer-events:none}
#dialog .call-wardrobe {--sheet-line:#ffffff14;position:absolute;z-index:6;inset:auto 0 var(--live-keyboard,0px);width:100%;max-width:560px;margin:0 auto;height:min(62dvh,540px);max-height:calc(100dvh - var(--live-keyboard,0px) - 90px);padding:0;border-radius:24px 24px 0 0;background:#1b1a22f7;color:#f8f5f7;box-shadow:0 -10px 50px #0005;backdrop-filter:blur(20px);overflow:hidden;display:flex;flex-direction:column;font-family:var(--sans);text-align:left;animation:live-sheet-in .18s ease-out}
#dialog .call-wardrobe[hidden],.live-sheet-shade[hidden],.live-more-panel[hidden] {display:none}
.live-sheet-grip {height:16px;flex:none;display:grid;place-items:center;touch-action:none;cursor:grab}
.live-sheet-grip span {width:34px;height:4px;background:#ffffff30;border-radius:3px}
.live-sheet-header {display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:5px 18px 12px!important;flex:none;border:0!important;background:transparent!important;position:relative!important;margin:0!important}
.live-sheet-header h3 {font:600 19px/1.4 var(--sans);margin:0!important;letter-spacing:.2px;color:#fff}
.live-sheet-header small {display:block;font-size:10px;color:#a4a1b0;letter-spacing:1px;margin-bottom:2px}
.live-sheet-header button,.live-more-panel header button {display:grid;place-items:center;min-width:36px!important;width:36px;height:36px;min-height:36px!important;padding:0!important;border-radius:50%;background:#ffffff12;border:1px solid #ffffff0c;color:#e7e3ec;flex:none}
.live-asset-tabs {display:flex;gap:22px;padding:0 18px;border-bottom:1px solid var(--sheet-line);flex:none}
.live-asset-tabs button {position:relative;padding:10px 0 12px;min-height:44px;color:#a39eae;background:transparent;border:0;border-radius:0;font:500 14px/1.4 var(--sans);white-space:nowrap}
.live-asset-tabs button[aria-selected="true"] {color:#fff;font-weight:600}
.live-asset-tabs button[aria-selected="true"]::after {content:"";height:3px;width:20px;border-radius:2px;background:#e49ab5;position:absolute;bottom:-1px;left:calc(50% - 10px)}
.live-library-search {display:flex;gap:10px;align-items:center;padding:12px 16px 10px;flex:none}
.live-library-search[hidden] {display:none}
.live-library-search label {display:flex;align-items:center;flex:1;gap:8px;min-width:0;border:1px solid #ffffff0b;border-radius:10px;background:#ffffff08;padding:0 10px;color:#9791a4}
.live-library-search input {margin:0;border:0;background:transparent;color:white;width:100%;min-width:0;padding:9px 0;font:400 16px/1.3 var(--sans);outline:0;box-shadow:none}
.live-library-search input::placeholder {font-size:12px;color:#a39baa}
.live-library-search>button {display:flex;align-items:center;gap:2px;min-height:40px;color:#f0c3d4;padding:5px 9px;background:#b9627e26;border:1px solid #b9627e40;border-radius:10px;font-size:12px;white-space:nowrap}
.live-asset-body {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:1px 16px 12px;scrollbar-width:thin;scrollbar-color:#ffffff22 transparent}
.live-asset-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.live-asset-grid[hidden] {display:none}
.live-asset-card {display:flex;flex-direction:column;padding:0 0 7px!important;min-width:0!important;margin:0!important;border:1px solid #ffffff13!important;border-radius:13px!important;background:#ffffff07!important;overflow:hidden;color:#eee8ef!important;text-align:center!important}
.live-asset-image {display:block;position:relative;width:100%;aspect-ratio:1;background:#f2f0ef;overflow:hidden}
.live-asset-image img {display:block;width:100%;height:100%;object-fit:contain}
.live-asset-image i {position:absolute;top:5px;right:5px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#b75c7b;color:#fff}
.live-asset-card strong {font:400 11px/1.4 var(--sans);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:30px;margin:7px 5px 6px;word-break:break-word}
.live-asset-card-action {font:500 10px/1.3 var(--sans);padding:4px 10px;border-radius:12px;background:#ffffff0c}
.live-asset-card.is-selected {border-color:#d484a2!important;background:#a9527124!important}
.live-asset-card.is-selected .live-asset-card-action {background:#b9627e33;color:#ffc9dd}
.live-asset-card:focus-visible,.call-wardrobe button:focus-visible,.stage-button:focus-visible,.live-composer input:focus-visible {outline:2px solid #f4adca;outline-offset:2px}
.live-asset-empty {padding:38px 15px;text-align:center;font-size:13px;color:#a59dad}
.live-active-row {display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--sheet-line)}
.live-active-row img {width:44px;height:44px;object-fit:contain;flex:none;background:#f4f2f1;border-radius:9px}
.live-active-row div {flex:1;min-width:0}
.live-active-row strong {display:block;color:#fff;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-active-row small {display:block;color:#a69bac;font-size:10px;margin-top:4px}
.live-active-row button {font-size:11px;padding:7px 9px;border-radius:15px;background:#ffffff10;color:#fff;white-space:nowrap;min-height:36px;flex:none}
.live-active-row .live-remove {background:#c3648022;color:#f5b7ce}
.live-task-status {display:flex;align-items:center;gap:10px;padding:9px 16px;background:#c46a8520;font-size:11px;flex:none;color:#f3cfdd}
.live-task-status[hidden] {display:none}
.live-task-status span {flex:1;min-width:0}
.live-task-status button {font-size:11px;color:#fff;border:1px solid #d487a25c;border-radius:15px;padding:6px 9px;min-height:32px;flex:none}
.live-sheet-footer {padding:10px 16px calc(12px + env(safe-area-inset-bottom));display:flex;gap:12px;align-items:center;border-top:1px solid var(--sheet-line);background:#15141b;flex:none}
.live-sheet-footer span {font-size:10px;line-height:1.5;color:#9a91a4;flex:1}
.live-sheet-footer button {font-size:11px;min-height:36px;padding:5px 10px;color:#c5b6c7;border:1px solid #ffffff1a;border-radius:8px;white-space:nowrap}
.live-upload-back {margin-right:auto}
.live-upload-body {flex:1;min-height:0;overflow:auto;padding:4px 18px 18px;overscroll-behavior:contain}
.live-upload-types {display:flex;gap:8px;margin:5px 0 16px}
.live-upload-types button {flex:1;color:#c7bdcd;border:1px solid #ffffff12;background:#ffffff06;border-radius:8px;min-height:38px;font-size:12px}
.live-upload-types button[aria-pressed="true"] {border-color:#c36b8c;background:#c36b8c22;color:#ffd2e2}
.live-upload-drop {display:grid;place-items:center;position:relative;min-height:145px;background:#ffffff06;border:1px dashed #ffffff35;border-radius:14px;cursor:pointer;text-align:center;padding:16px;color:#d89bb5}
#liveUploadPreview {display:flex;flex-direction:column;align-items:center;gap:8px}
#liveUploadPreview strong {font-size:13px;color:#ede3ee;font-weight:500}
#liveUploadPreview small {font-size:10px;color:#978da0}
#liveUploadPreview img {height:112px;max-width:100%;object-fit:contain;border-radius:8px}
.live-upload-drop input {position:absolute;width:1px;height:1px;opacity:0;inset:auto auto 0 50%}
.live-upload-name {display:block;margin-top:15px;font-size:11px;color:#b0a5b7}
.live-upload-name input {display:block;width:100%;margin:6px 0 0;padding:11px 12px;font-size:16px;background:#ffffff08;border:1px solid #ffffff18;border-radius:10px;color:#fff;box-shadow:none}
#liveUploadStatus {margin:8px 0 0;min-height:16px;font-size:11px;color:#d9a9be}
.live-upload-footer {display:flex;gap:10px;padding:12px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--sheet-line);flex:none}
.live-upload-footer button {flex:1;min-height:42px;font-size:13px;border:1px solid #ffffff20;background:#ffffff08;color:white;border-radius:11px}
.live-upload-footer .live-primary {background:#b75c7b;border-color:#b75c7b}
.ordinary-call .outfit-progress {z-index:4;left:14px;right:14px;bottom:calc(175px + env(safe-area-inset-bottom));padding:8px 11px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:11px;background:#1c1823da;backdrop-filter:blur(10px);border:1px solid #ffffff15;border-radius:10px;pointer-events:auto}
.ordinary-call .outfit-progress[hidden] {display:none}
.outfit-progress button {font-size:11px;border:1px solid #ffffff42;color:#fff;padding:5px 9px;border-radius:12px;white-space:nowrap;min-height:30px}
.live-more-panel {position:absolute;z-index:7;bottom:calc(172px + env(safe-area-inset-bottom));left:14px;right:14px;padding:16px;border-radius:18px;background:#1b1a22f7;color:#fff;box-shadow:0 0 35px #0004;border:1px solid #ffffff16}
.live-more-panel header {display:flex!important;align-items:center;justify-content:space-between;padding:0 0 12px!important;border:0!important;background:transparent!important}
.live-more-panel header strong {font-size:14px}
.live-more-panel>div {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.live-more-panel>div button {display:flex;flex-direction:column;align-items:center;gap:9px;padding:13px 5px;min-width:0;background:#ffffff09;color:#e9e2ed;border-radius:12px;font-size:11px;min-height:64px}
.live-more-panel p {font-size:10px;color:#a398af;margin:12px 0 0}
.live-keyboard-open .stage-actions,.live-keyboard-open .live-bubbles {display:none!important}
@keyframes live-sheet-in {from{transform:translateY(25px);opacity:.5}to{transform:translateY(0);opacity:1}}
@media(max-width:360px){.live-asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.live-asset-tabs{gap:19px}.ordinary-call .stage-actions .stage-button{font-size:9px}}
@media(max-height:500px) and (orientation:landscape){#dialog .call-wardrobe{max-width:460px;right:0;left:auto;height:100dvh;max-height:100dvh;border-radius:18px 0 0 18px}.live-asset-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.live-bubbles{display:none!important}.ordinary-call .stage-bottom{max-width:560px;margin:auto}.ordinary-call .stage-head{padding-top:10px}}
@media(prefers-reduced-motion:reduce){#dialog .call-wardrobe{animation:none}.ordinary-call .stage-bottom{transition:none}}
.ordinary-call .stage-actions .stage-button[hidden] {display:none!important}
.live-needs-reference {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;width:100%;height:100%;color:#aca0aa;background:linear-gradient(145deg,#f4efed,#e5dde1)}
.live-needs-reference small {font-size:9px;letter-spacing:.5px}
.live-sheet-header .live-sheet-close {width:44px;height:44px;min-width:44px!important;min-height:44px!important}
.live-more-panel>div {grid-template-columns:repeat(2,minmax(0,1fr))}
.live-more-panel {display:flex;flex-direction:column;max-height:calc(100dvh - 190px - env(safe-area-inset-bottom))}
.live-more-panel header,.live-more-panel>p {flex:none}
.live-more-panel>div {min-height:0;overflow:auto;overscroll-behavior:contain}
@media(max-height:500px){.live-more-panel{bottom:95px;max-height:calc(100dvh - 108px)}}
.ordinary-call .has-live-progress .live-bubbles {bottom:calc(226px + env(safe-area-inset-bottom))}
.live-keyboard-open .outfit-progress {display:none!important}
.live-composer button:disabled {background:#ffffff14;color:#ffffff62;cursor:default}
/* Contacts, owner identity and in-place Moments interactions. */
#side{overflow-y:auto}.owner-nav{border:0;width:100%;text-align:left;background:transparent;cursor:pointer;margin-top:24px}.owner-nav .ava{width:36px;height:36px;flex:none}.owner-nav small{display:block;font-size:11px;color:var(--muted)}
body[data-page="contacts"] #page,body[data-page="me"] #page,body[data-page="feed"] #page{max-width:820px;margin:0 auto;width:100%}
.contacts-search{position:sticky;top:64px;z-index:3;background:var(--bg,#f8f6f3);padding:6px 0 14px}.contacts-search label{display:flex;align-items:center;gap:10px;background:#edeae7;border-radius:12px;padding:0 14px;margin:0}.contacts-search input{border:0;background:transparent;margin:0;height:44px;font-size:15px;padding:10px 0;min-width:0;width:100%}.contact-group{font-size:12px;font-weight:500;color:#8d8581;background:#f0ede9;padding:9px 16px;margin:0}.contact-row{display:flex;align-items:center;gap:4px;min-height:78px;border-bottom:1px solid #e9e4df;padding:8px 12px;background:#fffdfb}.contact-main{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-align:left;border:0;background:none;padding:6px 0;cursor:pointer}.contact-main .ava{width:48px;height:48px;border-radius:13px;object-fit:cover;flex:none}.contact-main span{min-width:0}.contact-main strong{display:block;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-main small{display:block;color:#8a827d;font-size:12px;margin-top:5px}.contact-chat,.contact-pin{border:0;background:transparent;width:44px;height:44px;display:grid;place-items:center;cursor:pointer;color:#8b6270;flex:none}.contact-pin{color:#a9a29d}.contact-pin[aria-pressed="true"]{color:#874c60;background:#f3e8eb;border-radius:50%}.social-empty{text-align:center;padding:50px 16px;color:#817874}.social-empty strong{color:#4b4441}.social-empty p{font-size:14px}
.moments-cover{position:relative;height:235px;margin-bottom:35px;border-radius:18px 18px 0 0;background:#d5d8cc}.moments-cover>img{width:100%;height:100%;object-fit:cover;border-radius:inherit;filter:brightness(.78)}.moments-cover>div{position:absolute;inset:auto 20px -24px;display:flex;align-items:flex-end;justify-content:space-between;color:white}.moments-cover h1{font-size:25px;margin:0 0 40px;letter-spacing:2px}.moments-cover>div>button{background:none;border:0;display:flex;align-items:center;gap:12px;font-size:16px;font-weight:600;color:white;text-shadow:0 1px 6px #0008;cursor:pointer}.moments-cover .ava{width:74px;height:74px;object-fit:cover;border:4px solid #faf8f5;border-radius:17px;background:#ad8894;display:grid;place-items:center;text-shadow:none}.cover-publish{position:absolute;right:16px;top:16px;color:white;background:#0003;border:1px solid #fff4;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;cursor:pointer}
.social-feed{gap:0}.social-moment{padding:22px 4px;border-bottom:1px solid #e7e1dc;gap:12px;align-items:start;content-visibility:auto;contain-intrinsic-size:auto 320px}.social-moment .sender-avatar .ava{width:42px;height:42px;object-fit:cover;border-radius:10px}.social-moment .moment-body{min-width:0}.social-name{display:inline;border:0;background:none;padding:0;color:#6d5569;font-size:14px;font-weight:600;text-align:left;cursor:pointer;line-height:1.7}.social-moment>.moment-body>.social-name{font-size:16px}.social-moment .words{font-size:15px;line-height:1.7;margin:6px 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.social-moment .moment-photo{display:block;border-radius:5px;max-width:320px;overflow:hidden;padding:0}.social-moment .moment-photo img{max-height:380px;object-fit:cover;width:auto;max-width:100%;display:block}.moment-place{display:flex;align-items:center;gap:3px;font-size:12px;color:#837080;margin-top:10px}.social-moment footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0 0;flex-wrap:wrap}.social-moment footer time{font-size:12px;color:#a09892}.moment-actions{display:flex;gap:8px;margin-left:auto}.social-moment .moment-link{display:flex;align-items:center;justify-content:center;gap:4px;min-height:36px;padding:4px 7px;font-size:12px;border:0;color:#7d6a75;background:transparent;cursor:pointer}.moment-like[aria-pressed="true"]{color:#a75d74}.moment-like[aria-pressed="true"] svg{fill:#f0d2dc}.social-moment .moment-comments{font-size:13px;background:#eeebe7;padding:0;border-radius:6px;overflow:hidden;margin:7px 0 0}.moment-comments:empty{display:none}.moment-likes{display:flex;align-items:center;gap:7px;padding:7px 10px;border-bottom:1px solid #e4ded7;color:#8e6173}.moment-comment{padding:3px 10px;line-height:1.7;overflow-wrap:anywhere}.moment-comment:first-child{padding-top:7px}.moment-comment:last-child{padding-bottom:7px}.moment-comment .social-name{font-size:13px}.reply-word{padding:0 4px;color:#817b75}.comment-text{display:inline;border:0;background:none;padding:0;text-align:left;font:inherit;color:#38322f;cursor:pointer;white-space:pre-wrap;overflow-wrap:anywhere}.comment-state,.comment-error{font-size:11px;color:#9b8f86;margin-left:6px}.comment-error{border:0;background:none;padding:2px;color:#a35e4d;cursor:pointer}.comment-delete{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;margin-left:4px;background:none;border:0;color:#a79f99;cursor:pointer;vertical-align:middle}.moment-reply-pending{font-size:11px;color:#9b8a91;margin:0;padding:6px 10px}
#momentComposer{position:fixed;z-index:80;bottom:var(--moment-keyboard,0px);left:max(16px,calc((100vw - 680px)/2));right:max(16px,calc((100vw - 680px)/2));padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#faf8f5;border:1px solid #dfd8d3;border-radius:18px 18px 0 0;box-shadow:0 -8px 34px #2a202115}#momentComposer[hidden]{display:none}#momentComposer header{display:flex;align-items:center;justify-content:space-between;color:#8e7b82;font-size:12px;margin-bottom:5px}#momentComposer header button{width:34px;height:30px;border:0;background:transparent;color:#746a66;display:grid;place-items:center}#momentCommentForm{display:flex;align-items:flex-end;gap:9px}#momentCommentText{resize:none;border:1px solid #e2dcd7;background:white;border-radius:12px;padding:10px 12px;line-height:1.5;font:inherit;font-size:15px;min-height:44px;max-height:96px;margin:0;flex:1;min-width:0}#momentCommentCount{font-size:10px;color:#92837d}.social-primary{border:0;border-radius:11px;background:#845265;color:white;height:44px;padding:0 18px;font-weight:600;cursor:pointer}.social-primary:disabled{opacity:.4;cursor:default}.moment-composing{scroll-padding-bottom:180px}.moment-composing #mobile{display:none}.moment-detail-dialog .social-detail .moment{padding:0;border:0;content-visibility:visible}.moment-detail-dialog .detail-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.moment-detail-dialog .social-moment .moment-photo{max-width:100%}.moment-detail-dialog .social-moment .moment-photo img{max-height:42dvh}.moment-detail-dialog #db{max-height:75dvh;overflow:auto}
.my-profile{display:flex;align-items:center;gap:16px;padding:28px 4px}.my-profile .ava{width:78px;height:78px;border-radius:20px;object-fit:cover;display:grid;place-items:center;background:#e3d5da;color:#845265;font-size:30px}.owner-avatar{border:0;background:none;padding:0;cursor:pointer;flex:none}.my-profile>div{flex:1;min-width:0}.my-profile h1{font-size:25px;letter-spacing:1px;margin:0 0 8px;overflow-wrap:anywhere}.my-profile p{font-size:13px;line-height:1.6;color:#8b807a;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.my-profile small{display:flex;gap:4px;color:#9b8b83;margin-top:8px}.profile-edit{background:none;border:0;width:40px;height:40px;color:#8b6b78;flex:none;cursor:pointer}.my-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:18px 0;background:#fffdfb;border-radius:15px}.my-stats button{border:0;background:none;font-size:12px;color:#9b8c84;cursor:pointer}.my-stats strong{display:block;font-size:22px;font-weight:500;color:#544345;margin-bottom:5px}.my-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:20px 0}.my-shortcut{display:flex;flex-direction:column;align-items:center;gap:8px;background:none;border:0;padding:12px 0;font-size:12px;color:#74616a;cursor:pointer}.my-timeline,.my-interactions{background:#fffdfb;border-radius:16px;padding:18px;margin-top:12px}.my-timeline>header{display:flex;align-items:center;justify-content:space-between}.my-timeline h2,.my-interactions h2{font-size:16px;margin:0;font-weight:600}.social-muted{color:#a09289;font-size:13px;padding:20px 0;margin:0}.my-interactions>button{width:100%;display:flex;flex-direction:column;gap:6px;text-align:left;padding:16px 0;border:0;border-bottom:1px solid #eee9e3;background:none;cursor:pointer}.my-interactions>button strong{font-size:13px;color:#78616d}.my-interactions>button span{font-size:14px;color:#51463e}.my-interactions>button small{font-size:11px;color:#a4968d}.profile-photo-picker{display:flex;align-items:center;gap:14px;margin:0 0 22px;cursor:pointer}.profile-photo-picker .ava{width:62px;height:62px;border-radius:16px;object-fit:cover}.profile-photo-picker input,.moment-photo-picker input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.moment-photo-picker{display:flex;align-items:center;gap:9px;border:1px dashed #c7b9be;padding:18px;border-radius:14px;color:#8b6676;cursor:pointer;margin:14px 0}.moment-photo-picker.has-photo::after{content:attr(data-photo-ready);font-size:12px}.my-avatar .ava{width:100%;height:100%;object-fit:cover;border-radius:inherit}.social-name:focus-visible,.comment-text:focus-visible,.contact-main:focus-visible{outline:2px solid #b28496;outline-offset:3px}
@media(max-width:700px){#mobile{grid-template-columns:repeat(4,1fr)}body[data-page="feed"] #page{padding-top:0}.moments-cover{margin-left:-18px;margin-right:-18px;border-radius:0;height:230px}.social-moment{padding:20px 0;gap:10px;grid-template-columns:42px minmax(0,1fr)}.my-profile{padding-top:16px}.my-shortcuts{gap:0}.my-timeline,.my-interactions{padding:15px}.contacts-search{top:55px}.social-moment .moment-photo{max-width:280px}#momentComposer{left:0;right:0}.moment-detail-dialog #form{padding:20px}.moment-detail-dialog .social-moment{grid-template-columns:36px minmax(0,1fr)}.moment-detail-dialog .social-moment .sender-avatar .ava{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.social-moment{scroll-behavior:auto}}
#mobile{grid-template-columns:repeat(4,1fr)}.contacts-search input:focus{outline:none}.contacts-search label:focus-within{box-shadow:0 0 0 2px #b78b9d55}#momentComposer header button{width:44px;height:38px}
@media(max-width:700px){.moments-cover{margin-left:-16px;margin-right:-16px;width:calc(100% + 32px)}}
.contact-profile{padding:22px;background:#fffdfb;border-radius:16px;margin-bottom:24px}.contact-profile-head{display:flex;align-items:center;gap:18px}.contact-profile-head .ava{width:76px;height:76px;border-radius:20px;object-fit:cover;flex:none}.contact-profile-head h2{font-size:22px;margin:0 0 8px}.contact-profile-head p{font-size:13px;color:#8b7e79;line-height:1.7;margin:0;overflow-wrap:anywhere}.contact-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.contact-profile-actions button{display:flex;align-items:center;gap:6px;min-height:44px;font-size:13px}.contact-profile details{border-top:1px solid #eee5df;padding-top:16px}.contact-profile summary{font-size:13px;color:#917984;cursor:pointer}.contact-profile details .words{font-size:14px}.contact-moments>h2{font-size:16px;margin:0 0 8px}.contact-moments .social-moment{background:#fffdfb;padding:18px 12px}
/* First-class travel atlas */
#mobile{grid-template-columns:repeat(5,minmax(0,1fr))}.atlas-page{max-width:1400px;margin:auto}.atlas-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 24px}.atlas-heading h1{font:500 clamp(24px,3vw,36px)/1.3 var(--serif);margin:8px 0}.atlas-heading p{color:#8a7b75;font-size:14px;margin:0}.atlas-actions{display:flex;gap:8px;flex-shrink:0}.atlas-actions button{min-height:44px}.atlas-page #mapHost{height:calc(100dvh - 230px);min-height:560px;max-height:1000px;border:1px solid #e1dfd3;border-radius:24px;overflow:hidden;background:#faf9f4;box-shadow:0 12px 40px #3e4c3810;position:relative}.atlas-page .travel-map-shell{grid-template-columns:minmax(0,1fr) 340px}.atlas-page .map-toolbar{background:#fffdf9;padding:13px 18px;gap:16px}.atlas-page .map-toolbar label{color:#857e72;font-size:11px;max-width:none}.atlas-page .map-toolbar select{border-color:#e3dfd5}.atlas-page .map-journal{background:#faf9f4;padding:20px}.atlas-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:10px;padding:4px 0 14px}.atlas-stats div{display:grid;gap:4px}.atlas-stats strong{font:500 28px/1.2 var(--serif)!important;color:#435e50!important}.atlas-stats span{font-size:11px!important;color:#8b8478}.map-legend{font-size:10px;color:#958a79;display:flex;align-items:center;gap:5px;margin:0;width:100%}.map-legend>span{display:inline-block;width:7px;height:7px;border-radius:50%;border:1px solid #a17c68}.map-legend .legend-visited{background:#6a8373;border-color:#6a8373}.map-unlocated{font-size:11px;line-height:1.6;color:#9a7b50;margin:4px 0 0}.map-view-tabs{display:flex;gap:5px;margin:8px 0 14px;padding:4px;background:#edece5;border-radius:12px}.map-view-tabs button{flex:1;font-size:12px;padding:8px 4px;min-height:38px;border:0;border-radius:9px;background:transparent;color:#897e70;white-space:nowrap}.map-view-tabs button[aria-pressed=true]{background:#fffdf8;color:#425d4e;box-shadow:0 2px 6px #354e3410;font-weight:600}.map-coordinate{font-size:12px;color:#95887a;margin:12px 0}.map-coordinate summary{cursor:pointer;padding:8px 0}.atlas-page .map-lightbox{position:fixed;z-index:150}.atlas-page .leaflet-control-zoom a{width:38px;height:38px;line-height:38px}.atlas-page .map-floating button{backdrop-filter:blur(12px)}.atlas-page .map-stop{min-height:72px}.atlas-page .map-stop b{font-size:14px}.atlas-page .map-stop.active{background:#e7ece3}.atlas-page .map-stop img{width:48px;height:48px}.atlas-page .map-story{border-radius:18px;padding:16px;box-shadow:none}.atlas-page .map-story h3{font-size:19px}.atlas-page .map-photo img{max-height:200px}.atlas-page .map-network{right:12px;bottom:26px}.atlas-page .leaflet-container a{color:#4c6d5b}
@media(max-width:700px){#mobile button{font-size:10px;gap:4px;padding:8px 0}#mobile svg{width:21px;height:21px}.atlas-heading{display:block;margin:0 0 18px}.atlas-heading .eyebrow{font-size:10px;letter-spacing:2px}.atlas-heading h1{font-size:25px;margin:7px 0}.atlas-heading p{font-size:12px}.atlas-actions{margin-top:16px;gap:8px}.atlas-actions button{flex:1;justify-content:center;font-size:13px}.atlas-page #mapHost{height:auto;min-height:0;border-radius:20px;overflow:hidden}.atlas-page .travel-map-shell{height:auto;display:flex;flex-direction:column}.atlas-page .map-toolbar{padding:12px;gap:7px}.atlas-page .map-toolbar label{font-size:10px}.atlas-page .map-toolbar select{font-size:12px;height:40px;padding-left:8px;min-width:0}.atlas-page .map-canvas-wrap{height:clamp(280px,43dvh,440px);flex-shrink:0}.atlas-page .map-journal{overflow:visible;padding:16px;border-left:0;border-top:1px solid #e0ded2}.atlas-page .map-floating{left:10px;top:10px;max-width:calc(100% - 60px);flex-wrap:wrap}.atlas-page .map-floating button{min-height:40px;font-size:11px;padding:8px 10px}.atlas-page #mapSummary{margin:0 0 10px}.atlas-stats strong{font-size:26px!important}.atlas-page .map-stop{padding:14px 0}.atlas-page .map-photo img{max-height:270px}.atlas-page .map-view-tabs button{min-height:42px}.atlas-page .map-stop.active{padding:14px 8px}.atlas-page .map-network{font-size:11px;line-height:1.5}}
@media(prefers-reduced-motion:reduce){.leaflet-zoom-animated,.leaflet-pan-anim .leaflet-tile,.leaflet-marker-icon{transition:none!important}}
/* New updates: explicit content columns and bounded mobile controls. */
.social-feed{width:100%;max-width:820px;margin-inline:auto;min-width:0}
.social-moment{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:22px 18px;min-width:0;max-width:100%;content-visibility:visible;contain-intrinsic-size:none}
.social-moment>.sender-avatar{width:42px;height:42px;min-width:0;align-self:start;border-radius:10px;overflow:hidden}
.social-moment>.moment-body{width:100%;max-width:100%;min-width:0;flex:initial}
.social-moment .moment-body>.social-name{max-width:100%;overflow-wrap:anywhere;word-break:break-word;line-height:1.5}
.social-moment .moment-photo{width:fit-content;max-width:min(100%,320px);border:0}
.social-moment .moment-photo img{width:100%;max-width:100%;height:auto;max-height:380px;object-fit:cover}
.social-moment .moment-body video,.social-moment .moment-body audio{max-width:100%}
.social-moment .moment-place{display:flex;max-width:100%;align-items:baseline;overflow-wrap:anywhere;word-break:break-word;line-height:1.6}
.social-moment footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;width:100%;min-width:0;margin-top:10px}
.social-moment footer time{margin:0;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.social-moment .moment-actions{display:flex;min-width:0;gap:2px;margin:0;flex-wrap:wrap;justify-content:flex-end}
.social-moment .moment-link{min-height:40px;padding:6px;font-size:12px;white-space:nowrap}
.social-moment .moment-comments{width:100%;max-width:100%;min-width:0;margin-top:6px;overflow:visible;border-radius:8px;background:#f1eeeb;padding:3px 0}
.social-moment .moment-likes{flex-wrap:wrap;max-width:100%;padding:7px 10px;gap:5px;line-height:1.6;overflow-wrap:anywhere}
.social-moment .moment-comment{max-width:100%;min-width:0;padding:5px 10px;line-height:1.75;overflow-wrap:anywhere;word-break:break-word}
.social-moment .moment-comment .social-name,.social-moment .moment-likes .social-name{max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.social-moment .comment-text{max-width:100%;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;-webkit-appearance:none;appearance:none;border-radius:0}
.social-moment .moment-reply-pending{max-width:100%;overflow-wrap:anywhere}
.moments-cover{width:100%;max-width:820px;height:235px;margin:0 auto 18px;border-radius:18px;overflow:hidden}
.moments-cover>div{inset:auto 18px 16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,60%);align-items:end;gap:12px}
.moments-cover h1{font-size:25px;line-height:1.3;margin:0;letter-spacing:1px;text-shadow:0 1px 6px #0006}
.moments-cover>div>button{min-width:0;max-width:100%;justify-content:flex-end;gap:9px;padding:0;font-size:14px;text-align:right;line-height:1.5}
.moments-cover .cover-owner-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.moments-cover .ava{width:56px;height:56px;min-width:56px;flex:0 0 56px;border:3px solid #fffcf8;border-radius:15px;font-size:22px}
#momentComposer{box-sizing:border-box;max-width:100%;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
#momentComposer header{min-width:0;gap:8px}#momentReplyLabel{min-width:0;overflow-wrap:anywhere}#momentComposer header button{flex:0 0 44px}
#momentCommentForm{width:100%;min-width:0}#momentCommentText{width:0;flex:1 1 0%;font-size:16px}#momentCommentSend{flex:0 0 auto;min-width:64px;padding-inline:14px}
@media(max-width:700px){
  body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .moments-cover{width:100%;margin:0 0 18px;height:210px;border-radius:16px}
  body[data-page=feed] #page{padding-top:12px}
  .social-moment{grid-template-columns:40px minmax(0,1fr);padding:18px 12px;gap:10px}
  .social-moment>.sender-avatar,.social-moment>.sender-avatar .ava{width:40px;height:40px}
  .social-moment>.moment-body>.social-name{font-size:15px}
  .social-moment .words{font-size:15px;line-height:1.75;margin:5px 0 10px}
  .social-moment .moment-photo{max-width:min(100%,280px)}
  .moments-cover h1{font-size:23px}.moments-cover>div{inset:auto 14px 14px;gap:8px}
  .moments-cover>div>button{font-size:13px;gap:7px}.moments-cover .ava{width:52px;height:52px;min-width:52px;flex-basis:52px;border-radius:14px}
  .contact-moments .social-moment{padding:18px 12px}
  .moment-detail-dialog .social-moment{grid-template-columns:34px minmax(0,1fr);gap:9px;padding:0}
  .moment-detail-dialog .social-moment>.sender-avatar,.moment-detail-dialog .social-moment>.sender-avatar .ava{width:34px;height:34px}
  #momentComposer{left:0;right:0;width:auto;border-left:0;border-right:0}
}
@media(max-width:350px){.social-moment{padding:16px 10px;gap:8px;grid-template-columns:36px minmax(0,1fr)}.social-moment>.sender-avatar,.social-moment>.sender-avatar .ava{width:36px;height:36px}.social-moment footer{grid-template-columns:1fr;gap:0}.social-moment .moment-actions{justify-content:flex-end}.moments-cover>div{grid-template-columns:minmax(0,1fr) minmax(0,62%)}.moments-cover h1{font-size:21px}}
/* Warehouse collection: product-first grid and recoverable management. */
.warehouse-mode{display:flex;gap:18px;border-bottom:1px solid #e5dbd5;margin:4px 0 18px}.warehouse-mode button{padding:10px 0 13px;font-size:15px;border-bottom:2px solid transparent;color:#9a8c85}.warehouse-mode button[aria-pressed=true]{color:#73485b;border-color:#8c596e;font-weight:600}.warehouse-mode span{display:inline-block;background:#ede5e3;padding:0 7px;margin-left:4px;border-radius:8px;font-size:11px;color:#8b777b}.warehouse-tools{display:flex;gap:10px;align-items:center}.warehouse-search{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:1px solid #ddd4ce;background:#fffdf9;border-radius:12px;padding:0 12px;color:#a49192}.warehouse-search input{width:100%;min-width:0;border:0!important;background:none!important;box-shadow:none!important;margin:0;padding:12px 0;font-size:16px;outline:none}.warehouse-tools select{width:auto;max-width:130px;font-size:13px;min-height:46px;background:#fffdf9;border:1px solid #ddd4ce;border-radius:12px;padding:8px}.warehouse-categories{margin:18px 0 10px;overflow:auto;flex-wrap:nowrap}.warehouse-categories button{white-space:nowrap;min-height:40px}.warehouse-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:16px}.warehouse-card{min-width:0;border:1px solid #e5dbd3;background:#fffdfa;border-radius:18px;overflow:hidden;display:flex;flex-direction:column}.warehouse-card-image{position:relative;aspect-ratio:1;background:white}.warehouse-open{display:block;width:100%;height:100%;padding:0}.warehouse-open img{width:100%;height:100%;object-fit:contain;padding:12px;display:block}.warehouse-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:170px;height:100%;background:#f4f1eb;color:#b29b93;padding:24px;text-align:center}.warehouse-placeholder small{font-size:12px;color:#94857d;line-height:1.7}.warehouse-placeholder.processing svg{animation:warehouse-pulse 2s ease-in-out infinite}.warehouse-select{position:absolute;top:4px;left:4px;display:grid;place-items:center;width:44px;height:44px;margin:0;cursor:pointer}.warehouse-select input{appearance:none;-webkit-appearance:none;width:21px;height:21px;border:1px solid #c7b6b3;background:#fffdfce8;border-radius:7px;margin:0;cursor:pointer}.warehouse-select input:checked{background:#89566c;border-color:#89566c}.warehouse-select input:checked:after{content:'✓';display:block;color:white;text-align:center;font:14px/19px system-ui}.warehouse-card-info{padding:12px 14px;min-width:0;display:flex;flex:1;flex-direction:column}.warehouse-category{font-size:10px;letter-spacing:1px;color:#a88b91;margin-bottom:5px}.warehouse-name{font-size:15px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;word-break:break-word;text-align:left;padding:0;min-width:0}.warehouse-state{font-size:11px;line-height:1.6;color:#ac8b70;margin:8px 0}.warehouse-state.ready{color:#7a8f7c}.warehouse-card-actions{display:flex;justify-content:space-between;gap:4px;margin-top:auto;border-top:1px solid #eee7e0;padding-top:5px}.warehouse-card-actions button{min-height:38px;font-size:12px;padding:6px 2px}.warehouse-card-actions button:last-child{color:#a4757b}#warehouseBulk{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;font-size:11px;color:#9c8982}#warehouseBulk>div{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}#warehouseBulk button{font-size:11px;min-height:36px;padding:5px}.warehouse-footer{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px}.warehouse-footer button{font-size:12px;min-height:40px}.warehouse-note{font-size:12px;line-height:1.8;color:#a08e83;margin:12px 0;overflow-wrap:anywhere}.warehouse-empty{grid-column:1/-1;padding:50px 20px;text-align:center;color:#b09a8d}.warehouse-empty svg{margin-bottom:16px}.warehouse-empty h2{font-size:18px;margin:0 0 8px;color:#6f5f57}.warehouse-empty p{font-size:13px;line-height:1.8;margin:0 0 22px}.warehouse-detail-picture{display:block;width:100%;max-width:100%;max-height:48dvh;object-fit:contain;background:white;border-radius:14px;overflow:auto}.warehouse-detail-picture img{display:block;width:100%;height:auto;object-fit:contain}.warehouse-detail-picture.product{padding:14px}.warehouse-source-switch{display:flex;justify-content:center;gap:18px;margin:10px 0}.warehouse-source-switch button{font-size:12px;min-height:40px}.warehouse-detail-state{color:#8f6e7e;font-size:13px;margin:10px 0}.warehouse-detail .words{font-size:14px;line-height:1.8;margin:10px 0}.warehouse-detail small{font-size:12px;color:#ac998c}.warehouse-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.warehouse-detail-actions button{font-size:12px;min-height:42px;padding:8px 12px}.warehouse-delete-list{padding-left:20px;line-height:1.9;font-size:14px;overflow-wrap:anywhere}.warehouse-dialog #db{overflow:auto;max-height:76dvh}.warehouse-dialog{max-width:520px}
@keyframes warehouse-pulse{50%{opacity:.35}}
@media(max-width:700px){.warehouse-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.warehouse-card{border-radius:14px}.warehouse-card-info{padding:10px 11px}.warehouse-name{font-size:14px}.warehouse-placeholder{min-height:130px;padding:12px}.warehouse-placeholder small{font-size:11px}.warehouse-tools{gap:7px}.warehouse-tools select{max-width:108px;font-size:12px}.warehouse-mode{margin-bottom:14px}.warehouse-dialog #form{padding:18px}.warehouse-dialog #dt{font-size:20px}.warehouse-detail-actions{gap:7px}.warehouse-detail-actions button{font-size:12px}.warehouse-categories{gap:5px}.warehouse-categories button{font-size:12px;padding:7px 11px}}
@media(prefers-reduced-motion:reduce){.warehouse-placeholder.processing svg{animation:none}}
.warehouse-tools select{height:46px;appearance:none;-webkit-appearance:none;padding-right:26px;background-color:#fffdf9;background-image:linear-gradient(45deg,transparent 50%,#927b82 50%),linear-gradient(135deg,#927b82 50%,transparent 50%);background-position:calc(100% - 13px) 21px,calc(100% - 8px) 21px;background-size:5px 5px;background-repeat:no-repeat}
/* Decoded, small photo markers: no full-size images or extra filter layers. */
.travel-pin .map-pin-photo{box-sizing:border-box;width:46px;height:46px;border:3px solid #fffdf5;border-radius:12px;overflow:hidden;background:#eee9df;position:relative;box-shadow:0 3px 8px #48403530}.travel-pin .map-pin-photo img{display:block;width:100%;height:100%;object-fit:cover;border:0;border-radius:0;box-shadow:none;position:absolute;inset:0}.map-thumb-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#8a8173;font:600 20px system-ui;background:#eee9df}.map-pin-photo.ready .map-thumb-placeholder{display:none}.map-pin-photo.failed{background:#f0e6da}.travel-pin>.map-pin-badge{position:absolute;right:-4px;bottom:-1px;width:18px;height:18px;border-radius:50%;font-size:10px;border-width:1px;box-shadow:none}.travel-pin.selected{filter:none}.travel-pin.selected .map-pin-photo{outline:2px solid #85586b;outline-offset:2px}.map-photo-status{position:absolute;bottom:30px;left:10px;z-index:500;display:flex;align-items:center;gap:9px;max-width:calc(100% - 22px);border:1px solid #ded7c9;border-radius:12px;padding:7px 10px;background:#fffaf2f2;color:#726450;font-size:11px;box-shadow:0 2px 6px #423b3010}.map-photo-status[hidden],#mapPhotoRetry[hidden]{display:none}.map-photo-status button{border:0;background:transparent;color:#775063;font:inherit;font-size:12px;font-weight:600;min-height:32px;padding:4px 6px}.atlas-page .map-floating button{backdrop-filter:none}.map-story img{background:#eee9df}.map-stop img{background:#eee9df}

/* Shared media cards: stable sizing, visible feedback, inline mobile playback. */
.media-player{position:relative;width:100%;max-width:440px;aspect-ratio:4/3;max-height:360px;overflow:hidden;border-radius:12px;background:#e9e3df;margin:0 0 10px;isolation:isolate}
.media-player video,.speech .media-player video,.bubble .media-player video,.pet-section .media-player video{display:block;width:100%;height:100%;max-height:none;object-fit:contain;background:#e9e3df;border-radius:inherit}
.media-player .media-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:transparent;border:0;color:white;cursor:pointer}
.media-play span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#2229;font-size:22px;padding-left:3px;box-shadow:0 1px 10px #0002}
.media-player .media-play small{color:white;background:#2229;border-radius:12px;padding:3px 9px;font-size:12px}
.media-state{position:absolute;left:10px;right:10px;bottom:42px;text-align:center;color:white;background:#222c;border-radius:8px;padding:7px;font-size:12px;pointer-events:none}
.media-retry{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-height:44px;padding:8px 20px;border:1px solid #d4c6c8;border-radius:22px;background:#fff;color:#704554;cursor:pointer}
.media-player [hidden]{display:none!important}
.media-image-error{min-height:44px;background:#eee7e3;color:#74645f;object-fit:contain}
@media(max-width:700px){.media-player{max-width:100%;max-height:300px}.media-play span{width:48px;height:48px}}

/* Keep the base call mounted while an edited stream warms up or recovers. */
.mediaframe video.tryon-output {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0.001;z-index:1}
.mediaframe video.tryon-output.tryon-visible {opacity:1;transition:opacity 140ms ease}
.mediaframe.whole-frame video.tryon-output {object-fit:contain}
.mediaframe #local {z-index:3}
@media (prefers-reduced-motion:reduce){.mediaframe video.tryon-output {transition:none}}
