:root {
  --rose-50: #fff6f9;
  --rose-100: #feeaf2;
  --rose-200: #f6cddc;
  --rose-300: #e7a9c2;
  --rose-500: #b85f82;
  --ink: #473842;
  --muted: #9b828f;
  --paper: rgba(255, 250, 252, 0.72);
  --paper-solid: #fffafb;
  --line: rgba(182, 117, 145, 0.18);
  --shadow: 0 28px 80px rgba(177, 100, 139, 0.18);
  --shadow-soft: 0 18px 44px rgba(177, 100, 139, 0.12);
  --radius-phone: 34px;
  --radius-card: 24px;
  --serif: "STZhongsong", "SimSun", "Songti SC", "Noto Serif CJK SC", serif;
  --sans: "Microsoft YaHei UI", "Yu Gothic UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.9), transparent 28rem),
    radial-gradient(circle at 80% 18%, rgba(247, 214, 235, 0.82), transparent 30rem),
    linear-gradient(135deg, #ffe8f1 0%, #fff8fb 44%, #f7ecff 100%);
  overflow: hidden;
}

button {
  font: inherit;
}

p,
span,
strong,
em,
button {
  overflow-wrap: anywhere;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
}

.ambient-one {
  width: 36rem;
  height: 36rem;
  left: -12rem;
  top: 10rem;
  background: rgba(255, 194, 216, 0.26);
}

.ambient-two {
  width: 28rem;
  height: 28rem;
  right: -10rem;
  bottom: 3rem;
  background: rgba(226, 205, 255, 0.34);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  place-items: center;
  margin: 0;
  padding: clamp(10px, 2.5vh, 22px);
}

.hero {
  display: none;
}

.eyebrow,
.tiny-label,
.phone-topline,
.paper-piece span,
.settings-card span,
.timeline time {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: end;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 18px 0 14px;
  font-size: clamp(2.7rem, 6.2vw, 4.8rem);
  line-height: 1.04;
}

.lead {
  max-width: 690px;
  margin: 0;
  color: #745f6c;
  font-size: 1.02rem;
  line-height: 2;
}

.house-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 250, 252, 0.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.house-note span {
  color: var(--rose-500);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.house-note strong {
  display: block;
  margin: 10px 0;
  font-family: var(--serif);
  font-size: 1.28rem;
}

.house-note p {
  margin: 0;
  color: #806b78;
  line-height: 1.8;
}

.phone-shell {
  position: relative;
  display: grid;
  width: min(430px, calc(100vw - 20px));
  height: min(890px, calc(100vh - 20px));
  height: min(890px, calc(100dvh - 20px));
  min-height: 620px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 46px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 12rem),
    linear-gradient(180deg, rgba(255, 241, 248, 0.88), rgba(255, 250, 252, 0.76));
  box-shadow:
    0 32px 90px rgba(177, 100, 139, 0.22),
    inset 0 0 0 8px rgba(255, 255, 255, 0.32);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 38px;
}

.phone-board {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.phone-card {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 24px 22px 116px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 249, 0.7)),
    var(--paper);
  box-shadow: 0 20px 52px rgba(177, 100, 139, 0.12), inset 0 0 0 6px rgba(255, 255, 255, 0.22);
  overflow: hidden auto;
  backdrop-filter: blur(22px);
  scrollbar-width: none;
}

.phone-card::-webkit-scrollbar,
.subpage-panel.active-subpage::-webkit-scrollbar,
.chat-thread::-webkit-scrollbar,
.profile-sheet::-webkit-scrollbar,
.chat-info-sheet::-webkit-scrollbar,
.chat-info-context pre::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-page {
  display: none;
  width: 100%;
  min-height: 0;
  margin: 0;
}

.app-page.active-page {
  display: block;
  animation: pageRise 280ms ease both;
}

@keyframes pageRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-card::before {
  display: none;
}

.home-card,
.room-card {
  grid-column: auto;
}

.archive-card,
.chat-card,
.timeline-card,
.more-card {
  grid-column: auto;
}

.phone-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  padding: 5px 9px;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c87a8d;
  box-shadow: 0 0 0 0 rgba(200, 122, 141, 0.34);
  animation: breathe-offline 1.8s ease-in-out infinite;
}

.service-pill b {
  color: #8b7480;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.service-pill.online {
  border-color: rgba(125, 170, 121, 0.26);
  background: rgba(248, 255, 244, 0.66);
}

.service-pill.online i {
  background: #79b36f;
  box-shadow: 0 0 0 0 rgba(121, 179, 111, 0.42);
  animation-name: breathe-online;
}

.service-pill.online b {
  color: #6c8763;
}

.service-pill.offline {
  border-color: rgba(216, 116, 140, 0.24);
  background: rgba(255, 242, 247, 0.68);
}

.service-pill.offline b {
  color: #a26578;
}

@keyframes breathe-online {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(121, 179, 111, 0.3);
    transform: scale(0.92);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(121, 179, 111, 0);
    transform: scale(1.08);
  }
}

@keyframes breathe-offline {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 122, 141, 0.28);
    transform: scale(0.92);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(200, 122, 141, 0);
    transform: scale(1.05);
  }
}

.resident-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.resident,
.room-tile,
.dock-item {
  cursor: pointer;
  border: 0;
}

.resident {
  display: flex;
  min-width: 138px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #6d5965;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(169, 93, 130, 0.1);
  transition: transform 180ms ease, background 180ms ease;
}

.resident:hover,
.resident.active {
  transform: translateY(-2px);
  background: rgba(255, 244, 249, 0.94);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.avatar.has-image {
  color: transparent;
  background-size: cover;
  background-position: center;
  text-shadow: none;
}

.moon {
  color: #866575;
  background: linear-gradient(135deg, #fff, #efd8e5);
}

.sun {
  color: #9e6682;
  background: linear-gradient(135deg, #fff1d8, #ffe1ec);
}

.terminal {
  color: #6f637d;
  background: linear-gradient(135deg, #f5f1ff, #ffe9f3);
}

.living {
  color: #7b6d54;
  background: linear-gradient(135deg, #fff7df, #fff0f5);
}

.home-center {
  width: min(390px, 100%);
  margin: 0 auto 30px;
  padding: 34px 26px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.46);
}

.home-center h2 {
  margin: 10px 0 12px;
  font-size: 1.72rem;
  line-height: 1.35;
}

.home-center p {
  margin: 0;
  color: #7e6875;
  line-height: 1.9;
}

.kept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kept-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
}

.kept-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.kept-grid strong {
  display: block;
  margin: 4px 0;
  color: #8e6175;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.18rem;
  font-weight: 500;
  line-height: 1;
}

.kept-grid em {
  color: #a58d99;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.home-status {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.home-status span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose-500);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.home-status p {
  margin: 0;
  color: #806c78;
  line-height: 1.75;
}

.room-list {
  margin-top: 0;
}

.room-tile {
  position: relative;
  min-width: 0;
  padding-left: 22px;
  padding-right: 58px;
  text-align: left;
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.room-tile:hover,
.room-tile.selected {
  transform: none;
  background: rgba(255, 250, 252, 0.84);
}

.room-tile .room-mark {
  position: absolute;
  right: 28px;
  bottom: 16px;
  color: rgba(184, 95, 130, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  pointer-events: none;
}

.room-tile strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.room-tile p,
.room-preview p,
.paper-piece p,
.timeline p,
.settings-card p {
  margin: 0;
  color: #806c78;
  line-height: 1.7;
}

.room-preview {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.92), transparent 9rem),
    transparent;
}

.room-preview span {
  color: var(--rose-500);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.room-preview h3,
.settings-card h3 {
  margin: 8px 0 10px;
  font-size: 1.36rem;
}

.fold-card h3 {
  margin-bottom: 12px;
  font-size: 1.42rem;
}

.fold-card p + .config-field,
.fold-card h3 + p {
  margin-top: 12px;
}

.room-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.room-actions button {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
}

.room-actions .room-chat-button {
  color: white;
  border: 0;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
  box-shadow: 0 16px 28px rgba(184, 95, 130, 0.22);
}

.room-actions .context-button {
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.18);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.room-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.context-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.context-field span {
  color: var(--muted);
  font-size: 0.82rem;
}

.context-field input {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.64);
}

.context-field input:focus {
  border-color: rgba(184, 95, 130, 0.38);
  box-shadow: 0 0 0 4px rgba(214, 126, 161, 0.12);
}

.context-output {
  max-height: 280px;
  margin: 16px 0 0;
  padding: 16px;
  white-space: pre-wrap;
  overflow: auto;
  color: #6f5a66;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 0.85rem;
  line-height: 1.65;
}

.archive-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.chat-window {
  display: grid;
  gap: 14px;
}

.chat-detail {
  display: none;
}

.chat-window.detail-open .conversation-list {
  display: none;
}

.chat-window.detail-open .chat-detail {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 250, 0.78)),
    var(--paper);
  animation: page-in 220ms ease both;
}

.chat-back {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #8a5870;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 1.55rem;
  line-height: 1;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.conversation-list {
  display: grid;
  gap: 10px;
}

.conversation-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  transition: transform 180ms ease, background 180ms ease;
}

.conversation-item:hover,
.conversation-item.active {
  transform: translateY(-1px);
  background: rgba(255, 244, 249, 0.88);
}

.conversation-item.is-pinned {
  border-color: rgba(198, 105, 144, 0.24);
  background:
    linear-gradient(90deg, rgba(203, 104, 145, 0.12), transparent 22%),
    rgba(255, 244, 249, 0.72);
  box-shadow: inset 3px 0 0 rgba(203, 104, 145, 0.32);
}

.conversation-avatar {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  font-family: var(--serif);
}

.conversation-item strong {
  min-width: 0;
  font-family: var(--serif);
  font-weight: 500;
}

.conversation-item time {
  color: #aa8798;
  font-size: 0.68rem;
  white-space: nowrap;
}

.conversation-item em {
  grid-column: 2 / 4;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-appbar {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(182, 117, 145, 0.14);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
}

.chat-app-avatar {
  grid-row: auto;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  cursor: pointer;
}

.chat-title-edit {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-app-actions {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-icon-button,
.chat-context-drawer summary {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  line-height: 1;
}

.chat-title-edit strong {
  min-width: 0;
  color: #7b415c;
  font-family: var(--serif);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-title-edit span,
.chat-note {
  color: #8b7480;
  font-size: 0.76rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-toast {
  position: absolute;
  z-index: 42;
  top: 76px;
  left: 50%;
  max-width: min(84%, 360px);
  padding: 9px 13px;
  color: #805d70;
  border: 1px solid rgba(182, 117, 145, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(177, 100, 139, 0.14);
  font-size: 0.76rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.chat-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.chat-toast.success {
  color: #6f7d62;
  border-color: rgba(146, 174, 126, 0.28);
  background: rgba(250, 255, 246, 0.86);
}

.chat-toast.warning {
  color: #9b6076;
  border-color: rgba(214, 126, 161, 0.28);
  background: rgba(255, 244, 249, 0.9);
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  max-height: none;
  padding: 18px 16px 24px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.88), transparent 9rem),
    rgba(255, 247, 250, 0.58);
  scrollbar-width: none;
}

#savedDraftsSlot {
  display: grid;
  gap: 14px;
  width: 100%;
}

#savedDraftsSlot:empty {
  display: none;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  padding: 13px 15px;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(177, 100, 139, 0.08);
}

.bubble.search-hit {
  border-color: rgba(202, 95, 140, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 207, 226, 0.58), 0 14px 30px rgba(177, 100, 139, 0.1);
}

.bubble + .bubble {
  margin-top: 0;
}

.bubble span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.bubble p {
  margin: 0;
  color: #715c68;
  line-height: 1.78;
}

.bubble small {
  display: block;
  margin-top: 7px;
  color: #aa8798;
  font-size: 0.68rem;
  line-height: 1.4;
}

.bubble.theirs {
  justify-self: start;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.72);
}

.bubble.dry-run-reply {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.58);
}

.bubble.mine {
  justify-self: end;
  margin-right: 0;
  background: rgba(255, 229, 240, 0.78);
}

.bubble.mine + .bubble.mine {
  margin-top: 0;
}

.bubble.theirs + .bubble.theirs {
  margin-top: 0;
}

.bubble.saved-draft {
  border-color: rgba(205, 135, 165, 0.3);
  background: rgba(255, 238, 246, 0.68);
}

.bubble-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.bubble.theirs .bubble-actions {
  justify-content: flex-start;
}

.bubble-actions button {
  padding: 5px 9px;
  color: #9b6076;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  font-size: 0.7rem;
  line-height: 1;
}

.bubble-actions button:hover {
  background: rgba(255, 244, 249, 0.82);
}

.bubble.system {
  justify-self: center;
  max-width: 94%;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  padding: 12px 14px 10px;
  border-top: 1px solid rgba(182, 117, 145, 0.14);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
}

.chat-composer textarea {
  min-width: 0;
  min-height: 46px;
  max-height: 138px;
  padding: 12px 16px;
  resize: none;
  overflow-y: auto;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 23px;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: none;
}

.chat-composer button {
  min-height: 46px;
  padding: 12px 16px;
  color: white;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
  box-shadow: 0 14px 24px rgba(184, 95, 130, 0.18);
}

.chat-note {
  margin: 0;
  padding: 0 16px 12px;
  border-top: 0;
  background: rgba(255, 255, 255, 0.74);
}

.chat-info-sheet {
  position: absolute;
  z-index: 24;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 250, 0.82)),
    var(--paper);
}

.chat-info-sheet[hidden] {
  display: none;
}

.chat-info-card {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 14px 18px 22px;
  overflow: hidden auto;
  scrollbar-width: none;
}

.chat-info-header {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 46px;
}

.chat-info-header strong {
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
}

.chat-info-back {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 1.5rem;
  line-height: 1;
}

.chat-info-person {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(182, 117, 145, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.chat-info-person .conversation-avatar {
  width: 52px;
  height: 52px;
  border-radius: 19px;
}

.chat-info-person strong {
  display: block;
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 500;
}

.chat-info-person p {
  margin: 4px 0 0;
  color: #8b7480;
  font-size: 0.78rem;
  line-height: 1.45;
}

.chat-info-list {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(182, 117, 145, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
}

.chat-info-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  color: #715c68;
  border: 0;
  border-bottom: 1px solid rgba(182, 117, 145, 0.1);
  border-radius: 0;
  background: transparent;
}

.chat-info-row:last-child {
  border-bottom: 0;
}

.chat-info-row span {
  font-size: 0.92rem;
}

.chat-info-row b {
  color: #aa8798;
  font-size: 0.72rem;
  font-weight: 400;
  white-space: nowrap;
}

.chat-info-row.has-chevron {
  padding-right: 34px;
}

.chat-info-row.has-chevron::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgba(138, 88, 112, 0.48);
  border-right: 1.5px solid rgba(138, 88, 112, 0.48);
  transform: translateY(-50%) rotate(45deg);
}

.switch-pill {
  display: inline-flex;
  width: 42px;
  height: 24px;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(182, 117, 145, 0.14);
  transition: background 180ms ease;
}

.switch-pill i {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(128, 78, 102, 0.12);
  transition: transform 180ms ease;
}

.chat-info-row.is-on .switch-pill {
  background: rgba(214, 126, 161, 0.72);
}

.chat-info-row.is-on .switch-pill i {
  transform: translateX(18px);
}

.chat-info-row.danger span {
  color: #9b6076;
}

.chat-search-box {
  display: grid;
  gap: 8px;
}

.chat-search-box span,
.chat-info-context summary {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-search-box input {
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
}

.chat-info-status {
  margin: -8px 0 0;
  color: #9b8390;
  font-size: 0.74rem;
  line-height: 1.55;
}

.chat-search-results {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.chat-search-results::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.chat-search-result,
.chat-search-empty {
  width: 100%;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.68);
}

.chat-search-result {
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chat-search-result:hover {
  transform: translateY(-1px);
  border-color: rgba(195, 93, 135, 0.28);
  background: rgba(255, 248, 251, 0.9);
}

.chat-search-result:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.chat-search-result span {
  color: #a68293;
  font-size: 0.72rem;
}

.chat-search-result strong {
  color: #6e5b66;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
}

.chat-search-empty {
  margin: 0;
  padding: 12px 13px;
  color: #9b8390;
  font-size: 0.78rem;
}

.chat-info-context {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(182, 117, 145, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
}

.chat-info-context summary {
  cursor: pointer;
}

.chat-info-context pre {
  max-height: 180px;
  margin: 8px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #6f5a66;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 0.76rem;
  line-height: 1.6;
}

.profile-sheet {
  position: absolute;
  z-index: 24;
  inset: 66px 0 0;
  padding: 20px 18px;
  overflow: auto;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.96), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(255, 247, 251, 0.965));
  scrollbar-width: none;
}

.profile-sheet[hidden] {
  display: none;
}

.profile-sheet-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 14px 18px 18px;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 255, 255, 0.9), transparent 6rem),
    rgba(255, 255, 255, 0.78);
}

.profile-cover {
  position: relative;
  min-height: 118px;
  margin: -2px -6px 2px;
  overflow: hidden;
  border: 1px solid rgba(182, 117, 145, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.82), transparent 6rem),
    linear-gradient(135deg, rgba(255, 218, 232, 0.94), rgba(238, 226, 255, 0.88) 54%, rgba(255, 248, 236, 0.92));
  background-size: cover;
  background-position: center;
}

.profile-cover.has-image::after,
.moment-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(123, 65, 92, 0.2));
  pointer-events: none;
}

.profile-cover button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  color: #8a5870;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(14px);
  font-size: 0.76rem;
}

.my-profile-card {
  display: grid;
  gap: 18px;
}

.my-profile-cover {
  min-height: 146px;
  margin: 0;
  border-radius: 0 0 24px 24px;
}

.my-profile-hero {
  margin-top: -8px;
}

.profile-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #8a5870;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 1.55rem;
  line-height: 1;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-hero .conversation-avatar {
  width: 72px;
  height: 72px;
  border-radius: 25px;
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 30px rgba(177, 100, 139, 0.13);
}

.profile-kicker {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.profile-hero h3 {
  margin: 4px 0 5px;
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.profile-hero p {
  margin: 0;
  color: #806c78;
  font-size: 0.84rem;
  line-height: 1.55;
}

.profile-lines {
  display: grid;
  gap: 10px;
}

.profile-lines div {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(182, 117, 145, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.profile-lines span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-lines strong {
  color: #715c68;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
}

.profile-edit-field {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(182, 117, 145, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.profile-edit-field span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-edit-field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  color: #6f5261;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.profile-image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-actions button,
.profile-image-actions button {
  min-height: 42px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.profile-actions button:first-child {
  color: white;
  border: 0;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
  box-shadow: 0 14px 24px rgba(184, 95, 130, 0.16);
}

.conversation-avatar.has-image {
  color: transparent;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  text-shadow: none;
}

.moment-confirm-sheet {
  position: absolute;
  z-index: 11;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(75, 45, 62, 0.14);
  backdrop-filter: blur(10px);
}

.moment-confirm-sheet[hidden],
.app-dialog-sheet[hidden] {
  display: none;
}

.app-dialog-sheet {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px 18px 92px;
  background: rgba(75, 45, 62, 0.14);
  backdrop-filter: blur(10px);
}

.moment-confirm-card,
.app-dialog-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 24px;
  background: rgba(255, 250, 252, 0.94);
  box-shadow: 0 22px 46px rgba(128, 78, 102, 0.18);
}

.moment-confirm-card span,
.app-dialog-card span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.moment-confirm-card h3,
.moment-confirm-card p,
.app-dialog-card h3,
.app-dialog-card p {
  margin: 0;
}

.moment-confirm-card h3,
.app-dialog-card h3 {
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
}

.moment-confirm-card p,
.app-dialog-card p {
  color: #806c78;
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.moment-confirm-card textarea,
.app-dialog-card textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  line-height: 1.65;
}

.app-dialog-card textarea[hidden] {
  display: none;
}

.moment-confirm-actions,
.app-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.moment-confirm-actions button,
.app-dialog-actions button {
  min-height: 42px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.moment-confirm-actions button:last-child,
.app-dialog-actions button:last-child {
  color: white;
  border: 0;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
}

.chat-context-drawer {
  position: relative;
}

.chat-context-drawer summary {
  list-style: none;
  cursor: pointer;
}

.chat-context-drawer summary::-webkit-details-marker {
  display: none;
}

.chat-context-drawer pre {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 9;
  width: min(330px, calc(100vw - 72px));
  max-height: 290px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  color: #6f5a66;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(177, 100, 139, 0.16);
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 0.82rem;
  line-height: 1.65;
}

.archive-search,
.memory-confirm-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
}

.archive-search > span,
.memory-confirm-panel > span,
.archive-result-card span,
.archive-result-head span,
.confirmed-memory-card span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.memory-confirm-panel > strong {
  display: block;
  margin-top: 8px;
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
}

.memory-confirm-panel > p {
  margin: 9px 0 0;
  color: #806c78;
  line-height: 1.7;
}

.search-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  margin-top: 12px;
}

.search-row select,
.search-row input,
.memory-field input,
.memory-field select,
.memory-field textarea {
  min-width: 0;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.68);
}

.search-row select:focus,
.search-row input:focus,
.memory-field input:focus,
.memory-field select:focus,
.memory-field textarea:focus {
  border-color: rgba(184, 95, 130, 0.38);
  box-shadow: 0 0 0 4px rgba(214, 126, 161, 0.12);
}

.memory-row {
  margin-top: 14px;
}

.memory-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.memory-field span {
  color: var(--muted);
  font-size: 0.78rem;
}

.memory-field textarea {
  min-height: 132px;
  max-height: 220px;
  resize: vertical;
  overflow: auto;
  line-height: 1.7;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.memory-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.memory-sensitive-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  margin-top: 12px;
  padding: 0 12px;
  color: #846d79;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  white-space: nowrap;
}

.memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}

.memory-actions .archive-search-button {
  margin-top: 0;
}

.confirmed-memory-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  margin-top: 13px;
  overflow: auto;
}

.confirmed-memory-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.confirmed-memory-card strong {
  display: block;
  margin: 7px 0 6px;
  color: #7b415c;
  font-family: var(--serif);
  font-weight: 500;
}

.confirmed-memory-card p {
  margin: 0;
  color: #806c78;
  font-size: 0.84rem;
  line-height: 1.65;
}

.sensitive-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: #846d79;
  font-size: 0.84rem;
}

.archive-search-button {
  margin-top: 12px;
  padding: 11px 18px;
  color: white;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
  box-shadow: 0 14px 24px rgba(184, 95, 130, 0.18);
}

.archive-search-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.archive-results {
  display: grid;
  gap: 10px;
  max-height: 360px;
  margin-top: 14px;
  overflow: auto;
  color: #806c78;
  font-size: 0.9rem;
  line-height: 1.65;
}

.archive-result-head {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 252, 0.72);
}

.archive-result-head strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.archive-result-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(184, 95, 130, 0.07) 1px, transparent 1px),
    rgba(255, 255, 255, 0.58);
  background-size: 20px 20px;
}

.archive-result-card strong {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}

.archive-result-card p {
  margin: 0 0 8px;
  color: #806c78;
}

.archive-result-card em,
.archive-empty {
  color: #9b828f;
  font-size: 0.82rem;
}

.duplicate-pill {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 8px;
  padding: 5px 9px;
  color: #9a5573;
  border: 1px solid rgba(184, 95, 130, 0.2);
  border-radius: 999px;
  background: rgba(255, 229, 240, 0.64);
  font-size: 0.76rem;
}

.paper-piece {
  width: 100%;
  min-height: 130px;
  padding: 22px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(184, 95, 130, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.52);
  background-size: 22px 22px;
  box-shadow: 0 18px 34px rgba(177, 100, 139, 0.09);
  font: inherit;
}

button.paper-piece:hover {
  border-color: rgba(184, 95, 130, 0.28);
  background:
    linear-gradient(90deg, rgba(184, 95, 130, 0.1) 1px, transparent 1px),
    rgba(255, 248, 251, 0.82);
}

button.paper-piece:focus-visible {
  outline: 3px solid rgba(214, 126, 161, 0.22);
  outline-offset: 2px;
}

.paper-piece strong {
  display: block;
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
}

.paper-piece.locked {
  opacity: 0.84;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 8px 0 0;
  padding: 18px 18px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(var(--rose-300), rgba(214, 126, 161, 0.16), transparent);
}

.timeline li {
  position: relative;
  margin-left: 0;
  padding: 4px 0 4px 62px;
  border-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 10px;
  width: 13px;
  height: 13px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: var(--rose-300);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline strong {
  display: block;
  margin: 6px 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 500;
}

.timeline-live-card {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
}

.timeline-live-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.timeline-live-head div {
  display: grid;
  gap: 4px;
}

.timeline-live-head span,
.timeline-event-source {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-live-head strong {
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
}

.timeline-select-pair {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.timeline-live-head select,
.timeline-select-pair select {
  width: 132px;
  height: 38px;
  padding: 0 32px 0 13px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.8rem;
}

.timeline-live-head button,
.timeline-pager button {
  min-height: 32px;
  padding: 0 13px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.timeline-event-list {
  display: block;
  min-height: 390px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
}

.timeline-event-list::-webkit-scrollbar {
  display: none;
}

.timeline-event {
  display: block;
  min-height: 70px;
  margin-bottom: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(182, 117, 145, 0.11);
  border-radius: 18px;
  background: rgba(255, 251, 253, 0.72);
  overflow: visible;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.timeline-event:last-child {
  margin-bottom: 0;
}

.timeline-event[open] {
  border-color: rgba(199, 109, 151, 0.2);
  background: rgba(255, 250, 253, 0.9);
  box-shadow: 0 12px 24px rgba(170, 103, 136, 0.08);
}

.timeline-event summary {
  display: grid;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.timeline-event summary::-webkit-details-marker {
  display: none;
}

.timeline-event header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9a6680;
  font-size: 0.74rem;
}

.timeline-event strong {
  color: #7b415c;
  font-size: 0.86rem;
  font-weight: 500;
}

.timeline-event p,
.timeline-empty {
  margin: 0;
  color: #715c68;
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.timeline-event p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #6f5261;
  font-size: 0.9rem;
}

.timeline-event-meta {
  display: block;
  color: #a18896;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-event:not([open]) > .timeline-event-detail {
  display: none;
}

.timeline-event[open] summary > p {
  display: none;
}

.timeline-event[open] > .timeline-event-detail {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(182, 117, 145, 0.1);
}

.timeline-event-detail p {
  display: block;
  overflow: visible;
  color: #5f4c57;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.timeline-event-detail span {
  color: #a18896;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-pager {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.timeline-pager span {
  color: #8a6f7d;
  font-size: 0.78rem;
  text-align: center;
}

.timeline-pager button:disabled {
  cursor: default;
  opacity: 0.45;
}

.settings-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
}

.subpage-menu {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
}

.archive-menu {
  margin-bottom: 18px;
}

.subpage-entry {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 44px 16px 18px;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid rgba(182, 117, 145, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.subpage-entry:last-child {
  border-bottom: 0;
}

.subpage-entry::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  color: #b48a9d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.subpage-entry:hover {
  background: rgba(255, 244, 249, 0.68);
}

.subpage-entry.placeholder-entry {
  cursor: default;
  opacity: 0.7;
}

.subpage-entry.placeholder-entry::after {
  content: "";
}

.subpage-entry.placeholder-entry:hover {
  background: transparent;
}

.subpage-entry span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.subpage-entry strong {
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.subpage-entry p {
  margin: 0;
  color: #806c78;
  font-size: 0.86rem;
  line-height: 1.65;
}

.subpage-panel {
  display: none;
}

.more-card > .subpage-panel,
.archive-card > .subpage-panel,
.room-card > .subpage-panel {
  display: none;
}

.phone-card.subpage-open {
  overflow: hidden;
}

.phone-card.subpage-open > :not(.active-subpage):not(.subpage-appbar) {
  display: none;
}

.phone-card.subpage-open > .subpage-menu,
.phone-card.subpage-open > .phone-topline {
  display: none !important;
}

.subpage-panel.active-subpage {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  margin: 0;
  padding: 82px 18px 22px;
  overflow: hidden auto;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 250, 0.76)),
    var(--paper);
  box-shadow: none;
  scrollbar-width: none;
}

.more-card > .subpage-panel.active-subpage,
.archive-card > .subpage-panel.active-subpage,
.room-card > .subpage-panel.active-subpage {
  display: block;
}

.subpage-panel.active-subpage.fold-card {
  padding-bottom: 22px;
}

.subpage-panel.active-subpage:not(.fold-card) {
  padding-top: 82px;
}

.subpage-panel.active-subpage > summary {
  display: none !important;
}

.subpage-panel.active-subpage > summary::after {
  display: none !important;
  content: none;
}

.subpage-appbar {
  position: absolute;
  z-index: 7;
  top: 0;
  right: 0;
  left: 0;
  display: none;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(182, 117, 145, 0.14);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.subpage-back {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #8a5870;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  font-size: 1.55rem;
  line-height: 1;
}

.subpage-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.subpage-title {
  min-width: 0;
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.02rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moment-subpage-appbar {
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(125, 75, 98, 0.18), rgba(255, 255, 255, 0));
  backdrop-filter: none;
  pointer-events: none;
}

.moment-subpage-appbar .subpage-back {
  color: #fff;
  background: rgba(110, 65, 88, 0.18);
  box-shadow: 0 10px 26px rgba(127, 73, 101, 0.12);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.moment-subpage-appbar .subpage-title {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(88, 44, 68, 0.2);
}

.phone-card.subpage-open > .subpage-appbar {
  display: flex;
}

.phone-shell.moment-compose-focus .phone-card.subpage-open > .subpage-appbar {
  display: none;
}

#momentsPanel.subpage-panel.active-subpage {
  padding: 0 0 22px;
}

#momentsPanel.subpage-panel.active-subpage > :not(summary) {
  margin-right: 0;
  margin-left: 0;
}

#momentsPanel.subpage-panel.active-subpage.fold-card[open] > :not(summary) {
  margin-top: 0;
}

.fold-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.fold-card + .fold-card {
  margin-top: 16px;
}

.more-card > .fold-card {
  display: block;
  margin-top: 16px;
}

.more-card > .phone-topline + .fold-card {
  margin-top: 0;
}

.fold-card > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.fold-card > summary::-webkit-details-marker {
  display: none;
}

.fold-card > summary::after {
  content: "展开";
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 5px 10px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.fold-card[open] > summary::after {
  content: "收起";
}

.fold-card[open] > summary {
  border-bottom: 1px solid rgba(182, 117, 145, 0.12);
}

.fold-card > summary span {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.fold-card > summary strong {
  grid-column: 1;
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 500;
}

.fold-card > :not(summary) {
  margin-left: 20px;
  margin-right: 20px;
}

.fold-card[open] > :not(summary) {
  margin-top: 18px;
}

.fold-card[open] > p:first-of-type,
.fold-card[open] > h3:first-of-type {
  margin-top: 18px;
}

.fold-card > :last-child {
  margin-bottom: 20px;
}

.api-config-card {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.api-config-card.fold-card {
  display: block;
  gap: 0;
}

.more-card > .fold-card.subpage-panel,
.more-card > .api-config-card.fold-card.subpage-panel,
.archive-card > .subpage-panel,
.room-card > .subpage-panel {
  display: none;
}

.more-card > .fold-card.subpage-panel.active-subpage,
.more-card > .api-config-card.fold-card.subpage-panel.active-subpage,
.archive-card > .subpage-panel.active-subpage,
.room-card > .subpage-panel.active-subpage {
  display: block;
}

.api-config-card.fold-card[open] > p,
.api-config-card.fold-card[open] > .route-grid,
.api-config-card.fold-card[open] > .config-field,
.api-config-card.fold-card[open] > .provider-toolbar,
.api-config-card.fold-card[open] > .provider-detail,
.api-config-card.fold-card[open] > .config-lock,
.api-config-card.fold-card[open] > .config-save,
.api-config-card.fold-card[open] > .config-status {
  margin-top: 18px;
}

.wake-controls,
.wake-cardlet {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
}

.wake-cardlet span,
.wake-cardlet em,
.wake-page-note,
.wake-index {
  color: var(--muted);
  font-size: 0.76rem;
}

.wake-index {
  display: block;
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.1em;
}

.wake-cardlet strong {
  display: block;
  margin: 8px 0;
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.wake-cardlet p {
  margin: 0;
  color: #79636f;
  line-height: 1.7;
}

.moment-hero {
  position: relative;
  min-height: 294px;
  margin: 0 0 76px;
  border-radius: 0;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(98, 57, 78, 0.16), rgba(255, 255, 255, 0) 34%, rgba(255, 246, 250, 0.76) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.86), transparent 7rem),
    linear-gradient(135deg, rgba(255, 218, 232, 0.95), rgba(238, 226, 255, 0.9) 52%, rgba(255, 248, 236, 0.92));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -1px 0 rgba(182, 117, 145, 0.12);
}

.moment-camera {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: #8a5870;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px);
}

.moment-cover-button {
  position: absolute;
  top: 14px;
  right: 62px;
  z-index: 2;
  padding: 8px 10px;
  color: #8a5870;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  backdrop-filter: blur(14px);
}

.moment-cover-button:hover {
  background: rgba(255, 255, 255, 0.68);
}

.moment-camera svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.moment-all {
  position: absolute;
  top: 68px;
  left: 18px;
  padding: 8px 10px;
  color: #8a5870;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px);
}

.moment-all[hidden] {
  display: none;
}

.moment-owner {
  position: absolute;
  right: 22px;
  bottom: -48px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.moment-owner strong {
  margin-bottom: 10px;
  color: #7b415c;
  font-family: var(--serif);
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.moment-owner .conversation-avatar {
  width: 74px;
  height: 74px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  background-color: rgba(255, 247, 251, 0.96);
  box-shadow: 0 14px 28px rgba(177, 100, 139, 0.14);
  cursor: pointer;
}

.moment-owner .conversation-avatar.has-image {
  background-color: #fff;
}

.moment-composer {
  display: grid;
  gap: 12px;
  margin-right: 18px;
  margin-left: 18px;
  padding: 16px;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
}

#momentsPanel.is-composing {
  padding-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 251, 253, 0.98), rgba(255, 246, 250, 0.9)),
    var(--paper);
}

#momentsPanel.is-composing .moment-hero,
#momentsPanel.is-composing .moments-feed {
  display: none;
}

#momentsPanel.is-composing .moment-composer {
  min-height: 100%;
  margin: 0;
  padding: 18px;
  align-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.moment-compose-topbar {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: -2px -2px 10px;
}

.moment-compose-topbar strong {
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
}

.moment-compose-back {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.64);
}

.moment-compose-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.moment-compose-draft {
  padding: 8px 12px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

.moment-composer.is-collapsed {
  display: none;
}

.moment-auto-card {
  display: grid;
  gap: 10px;
  margin: 0;
}

.moment-auto-card .status-line {
  min-height: 56px;
  padding-inline: 18px;
}

.moment-auto-reader-list.is-open {
  max-height: 420px;
}

.moment-auto-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.moment-auto-times .config-field,
.moment-auto-field {
  background: rgba(255, 248, 251, 0.62);
}

.moment-auto-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 8px 0;
}

.moment-auto-preview-row span {
  color: #a18896;
  font-size: 0.76rem;
}

.moment-auto-preview-button {
  min-height: 34px;
  padding: 8px 13px;
  white-space: nowrap;
}

.moment-auto-preview {
  display: grid;
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  scrollbar-width: none;
}

.moment-auto-preview::-webkit-scrollbar {
  display: none;
}

.moment-auto-preview p {
  margin: 0;
  color: #715c68;
  font-size: 0.78rem;
  line-height: 1.5;
}

.moment-auto-preview strong {
  color: #8a5870;
  font-weight: 500;
}

.moment-auto-candidate {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(182, 117, 145, 0.1);
  border-radius: 14px;
  background: rgba(255, 250, 253, 0.7);
}

.moment-auto-candidate button {
  width: fit-content;
  min-height: 30px;
  justify-self: end;
  padding: 6px 11px;
  color: #985673;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

.moment-composer textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.68);
  font: inherit;
  line-height: 1.65;
}

.moment-image-preview:empty {
  display: none;
}

.moment-image-preview {
  position: relative;
}

.moment-image-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: #8a5870;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(128, 78, 102, 0.12);
  backdrop-filter: blur(12px);
}

.moment-image-preview img,
.moment-photo {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 1px solid rgba(182, 117, 145, 0.12);
  border-radius: 18px;
}

.moment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.moment-actions .config-save,
.moment-actions .ghost-button {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  text-align: center;
  white-space: nowrap;
}

.moments-feed {
  display: grid;
  gap: 14px;
  margin-right: 18px;
  margin-left: 18px;
  margin-top: 16px;
}

.moment-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 12px;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.88), transparent 5rem),
    rgba(255, 255, 255, 0.5);
}

.moment-body {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.moment-body header {
  display: grid;
  gap: 2px;
  align-items: start;
  min-height: 0;
  padding-top: 0;
}

.moment-avatar-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.moment-card .moment-avatar-button .conversation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 16px;
}

.moment-body header strong {
  display: block;
  color: #7b415c;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
}

.moment-body time {
  color: #aa8798;
  font-size: 0.72rem;
  line-height: 1.2;
}

.moment-body > p {
  margin: 0;
  color: #715c68;
  line-height: 1.72;
  white-space: pre-wrap;
}

.moment-comments {
  padding: 10px 12px;
  color: #806c78;
  border-radius: 16px;
  background: rgba(255, 244, 249, 0.68);
  font-size: 0.84rem;
}

.moment-likes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

.moment-like-pill {
  display: inline-flex;
  align-items: center;
}

.moment-like-pill i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #9b6076;
  font-size: 0.66rem;
  font-style: normal;
}

.moment-comments {
  display: grid;
  gap: 7px;
}

.moment-comments p {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  margin: 0;
  line-height: 1.55;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-touch-callout: none;
}

.moment-comments p:hover {
  color: #7b415c;
}

.moment-comments p > span {
  min-width: 0;
  padding-top: 0;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.55;
}

.moment-comments p strong {
  display: inline;
  white-space: nowrap;
}

.moment-comments p em,
.moment-comments p b {
  display: inline;
  color: #aa8798;
  font-style: normal;
  font-weight: 400;
}

.moment-comments p em {
  margin: 0 0.35em;
}

.moment-comment-avatar {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-top: 0.08em;
  place-items: center;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.72);
  color: #9b6076;
  font-family: var(--serif);
  font-size: 0.62rem;
  box-shadow: 0 4px 10px rgba(177, 100, 139, 0.08);
}

.moment-comment-avatar.has-image {
  color: transparent;
  background-size: cover;
  background-position: center;
  text-shadow: none;
}

.moment-inline-comment {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(182, 117, 145, 0.12);
  border-radius: 18px;
  background: rgba(255, 250, 252, 0.72);
}

.moment-inline-comment textarea {
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  line-height: 1.55;
}

.moment-inline-comment div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.moment-inline-comment button {
  padding: 7px 12px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.moment-inline-comment button:last-child {
  color: white;
  border: 0;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
}

.moment-card-footer {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-height: 34px;
}

.moment-more-menu {
  position: relative;
  display: inline-grid;
  justify-items: end;
}

.moment-more-menu summary {
  display: grid;
  width: 36px;
  height: 30px;
  place-items: center;
  padding: 0;
  color: #9a6680;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  list-style: none;
}

.moment-more-menu summary::-webkit-details-marker {
  display: none;
}

.moment-more-menu summary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.moment-more-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 3;
  display: grid;
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 18px;
  background: rgba(255, 252, 254, 0.94);
  box-shadow: 0 18px 40px rgba(177, 100, 139, 0.14);
  backdrop-filter: blur(18px);
}

.moment-more-popover button {
  display: block;
  width: 100%;
  justify-content: start;
  padding: 7px 11px;
  color: #8a5870;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 0.78rem;
  text-align: left;
}

.moment-more-popover button:hover {
  background: rgba(255, 238, 246, 0.72);
}

.moment-more-popover .moment-delete-button {
  color: #a45170;
}

.wake-controls,
.wake-inbox {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.wake-controls.fold-card {
  display: block;
  padding: 0;
}

.wake-mini-panel summary {
  padding-block: 15px;
}

.wake-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wake-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid rgba(182, 117, 145, 0.2);
  line-height: 1;
}

.wake-control-actions .config-save {
  box-shadow: 0 10px 20px rgba(184, 95, 130, 0.14);
}

.wake-control-actions .ghost-button {
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 20px rgba(177, 100, 139, 0.08);
}

.wake-notice {
  margin: 10px 2px 0;
}

.wake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wake-actions button {
  padding: 7px 10px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
}

.wake-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.wake-pagination button {
  padding: 7px 11px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.wake-pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

.wake-pagination span {
  color: #8b7480;
  font-size: 0.78rem;
}

.wake-page-note {
  padding: 0 4px;
  text-align: center;
}

.bubble.jump-highlight {
  border-color: rgba(184, 95, 130, 0.48);
  box-shadow: 0 0 0 4px rgba(214, 126, 161, 0.14), 0 18px 36px rgba(177, 100, 139, 0.14);
  animation: jumpPulse 900ms ease-in-out 2;
}

@keyframes jumpPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.config-field {
  display: grid;
  gap: 8px;
}

.fold-card .config-field,
.fold-card .route-grid,
.fold-card .provider-detail,
.fold-card .provider-toolbar,
.fold-card .config-lock,
.fold-card .provider-actions,
.fold-card .config-save,
.fold-card .config-status {
  margin-top: 14px;
}

.fold-card .provider-detail .config-field:first-child,
.fold-card .route-grid .config-field {
  margin-top: 0;
}

.fold-card > .provider-detail {
  margin-top: 16px;
}

.more-card > .subpage-panel:not(.active-subpage),
.archive-card > .subpage-panel:not(.active-subpage),
.room-card > .subpage-panel:not(.active-subpage) {
  display: none;
}

.more-card > .subpage-panel.active-subpage,
.archive-card > .subpage-panel.active-subpage,
.room-card > .subpage-panel.active-subpage {
  display: block;
}

.config-field span,
.config-lock span,
.route-grid span,
.custom-provider-head span,
.provider-actions span,
.config-status {
  color: var(--muted);
  font-size: 0.78rem;
}

.config-field select,
.config-field input {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.68);
}

.config-field input[type="file"] {
  color: #8a5870;
  border-style: dashed;
  background: rgba(255, 250, 252, 0.72);
  cursor: pointer;
}

.config-field input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  color: white;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.config-field input[type="file"]::-webkit-file-upload-button {
  margin-right: 10px;
  padding: 8px 12px;
  color: white;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.config-field input:disabled {
  color: #987686;
  background: rgba(255, 245, 249, 0.55);
}

.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.route-grid div,
.route-grid label,
.provider-detail,
.custom-provider-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.route-grid strong {
  color: #7b415c;
  font-family: var(--serif);
  font-weight: 500;
}

.provider-detail {
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 234, 243, 0.36), rgba(255, 255, 255, 0.5));
}

.provider-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.provider-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(182, 117, 145, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.custom-provider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.custom-provider-list {
  display: grid;
  gap: 10px;
}

.custom-provider-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-provider-title input {
  min-width: 0;
  color: #7b415c;
  font-family: var(--serif);
  font-size: 1rem;
}

.custom-provider-item input {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.68);
}

.ghost-button,
.custom-provider-remove {
  width: fit-content;
  padding: 8px 11px;
  color: #8a5870;
  border: 1px solid rgba(182, 117, 145, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.custom-provider-remove {
  color: #a26578;
}

.config-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(146, 174, 126, 0.24);
  border-radius: 16px;
  background: rgba(250, 255, 246, 0.62);
}

.config-lock strong {
  color: #6f7d62;
  font-size: 0.84rem;
  font-weight: 500;
}

.config-save {
  width: fit-content;
  padding: 11px 16px;
  color: white;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d67ea1, #b75f83);
  box-shadow: 0 14px 24px rgba(184, 95, 130, 0.16);
}

.config-status {
  margin: 0;
  line-height: 1.6;
}

.status-lines {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.status-rule-group,
.status-static-lines {
  display: grid;
  gap: 8px;
}

.status-rule-group,
.moment-auto-card {
  padding: 10px;
  border: 1px solid rgba(182, 117, 145, 0.1);
  border-radius: 22px;
  background: rgba(255, 250, 253, 0.38);
}

.status-rule-group .config-status,
.moment-auto-card .config-status {
  padding: 0 8px 2px;
  color: #8d7280;
  font-size: 0.78rem;
}

.status-line {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid rgba(182, 117, 145, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  font: inherit;
  text-align: left;
}

.status-line span,
.status-lines span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-line strong {
  font-size: 0.92rem;
  font-weight: 500;
  text-align: right;
}

.status-line.is-on .switch-pill {
  background: rgba(214, 126, 161, 0.72);
}

.status-line.is-on .switch-pill i {
  transform: translateX(18px);
}

.self-reader-list {
  display: grid;
  gap: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 160ms ease, opacity 120ms ease;
}

.self-reader-list.is-open {
  max-height: 180px;
  opacity: 1;
}

.self-reader-list .status-line {
  min-height: 46px;
  margin-left: 12px;
  width: calc(100% - 12px);
  padding-inline: 16px;
  border-radius: 16px;
  background: rgba(255, 248, 251, 0.62);
}

.self-reader-list .status-line span {
  color: #806c78;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
}

.dock {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 18px;
  left: 28px;
  display: flex;
  width: auto;
  margin: 0;
  padding: 8px 4px 4px;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-top: 1px solid rgba(182, 117, 145, 0.16);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 252, 0.9), rgba(255, 246, 250, 0.96));
  box-shadow: 0 -12px 28px rgba(255, 246, 250, 0.92);
  backdrop-filter: blur(22px);
}

.phone-shell.chat-focus .dock {
  display: none;
}

.phone-shell.subpage-focus .dock {
  display: none;
}

.dock-item {
  display: grid;
  place-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 2px 2px;
  color: #846d79;
  border-radius: 999px;
  background: transparent;
  font-size: 0.68rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dock-item i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #9a7183;
  border-radius: 999px;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dock-item i svg {
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-width 180ms ease, transform 180ms ease;
}

.dock-item i svg circle {
  fill: currentColor;
  stroke: none;
}

.dock-item span {
  color: currentColor;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dock-item:hover,
.dock-item.active {
  color: #7b415c;
  background: transparent;
  transform: translateY(-1px);
}

.dock-item.active i {
  color: #9b3f68;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.95), transparent 48%),
    rgba(255, 214, 232, 0.92);
  box-shadow: 0 9px 18px rgba(184, 95, 130, 0.16);
  transform: translateY(-2px);
}

.dock-item.active i svg {
  stroke-width: 2.15;
  transform: scale(1.04);
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .home-card,
  .room-card,
  .archive-card,
  .chat-card,
  .timeline-card,
  .more-card {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .shell {
    width: 100%;
    padding: 8px;
  }

  .phone-shell {
    width: min(100%, 430px);
    height: calc(100dvh - 16px);
    min-height: 560px;
    border-radius: 34px;
    padding: 10px;
  }

  p,
  .lead,
  .house-note p,
  .home-center p,
  .room-preview p,
  .paper-piece p,
  .timeline p,
  .settings-card p {
    word-break: break-all;
  }

  .phone-card {
    height: 100%;
    min-height: 0;
    padding: 20px 16px 108px;
    border-radius: 28px;
  }

  .phone-topline {
    font-size: 0.64rem;
  }

  .resident-row,
  .kept-grid {
    grid-template-columns: 1fr;
  }

  .resident-row {
    flex-direction: column;
  }

  .resident {
    width: 100%;
    min-width: 0;
  }

  .home-center {
    padding: 26px 18px;
  }

  .home-center h2 {
    font-size: 1.55rem;
    word-break: break-all;
  }

  .dock {
    right: 20px;
    bottom: 12px;
    left: 20px;
    overflow: visible;
    justify-content: center;
    padding: 7px 2px 3px;
    gap: 3px;
  }

  .dock-item {
    min-width: 0;
    min-height: 46px;
    padding-inline: 1px;
    font-size: 0.64rem;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .memory-form-grid {
    grid-template-columns: 1fr;
  }

  .memory-sensitive-check {
    width: fit-content;
  }

  .chat-composer {
    grid-template-columns: 1fr auto;
  }
}
