
.chat-bankcard-dialog {
  max-width: 314px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.chat-asset-amount-dialog {
  max-width: 314px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.chat-bankcard-modal-copy {
  color: #87909D;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: -8px;
}

.chat-asset-amount-copy {
  color: #87909D;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: -8px;
}

.chat-bankcard-field {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.chat-bankcard-field span {
  color: #A0A7B1;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.chat-bankcard-input {
  border-radius: 12px;
  background: #F5F6F8;
  color: #4F5864;
  font-size: 16px;
  padding: 12px 12px;
}

.chat-bankcard-input:focus {
  border: 1px solid rgba(52,57,65,0.34);
  box-shadow: none;
}

.chat-stock-ticker {
  position: relative;
  min-height: 178px;
  margin-top: 6px;
  padding: 2px 0 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.chat-stock-ticker-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.chat-stock-ticker-top span {
  color: #A0A7B1;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-style: normal;
}

.chat-stock-ticker-top em {
  color: #A0A7B1;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-style: normal;
}

.chat-stock-section-head span {
  color: #A0A7B1;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  font-style: normal;
}

.chat-stock-index {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.chat-stock-index strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 0.9;
  letter-spacing: -0.025em;
  font-style: italic;
  color: #343941;
}

.chat-stock-index span {
  color: #B45F51;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chat-stock-sheet-price span {
  color: #B45F51;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chat-stock-project-delta {
  color: #B45F51;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chat-stock-index span.is-down {
  color: #4E7E6B;
}

.chat-stock-sheet-price span.is-down {
  color: #4E7E6B;
}

.chat-stock-project-delta.is-down {
  color: #4E7E6B;
}

.chat-stock-chart {
  width: 100%;
  height: 86px;
  margin-top: 8px;
  overflow: visible;
}

.chat-stock-chart path {
  fill: none;
  stroke: #343941;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}

.chat-stock-ticker-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(150,158,168,0.16);
}

.chat-stock-ticker-item {
  min-width: 0;
  padding: 10px 0 9px;
  border: 0;
  border-bottom: 1px solid rgba(150,158,168,0.12);
  background: transparent;
  color: #343941;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name delta" "price price";
  align-items: end;
  column-gap: 10px;
  text-align: left;
  cursor: pointer;
}

.chat-stock-ticker-item span {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #707984;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.chat-stock-ticker-item strong {
  grid-area: price;
  margin-top: 6px;
  color: #343941;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.chat-stock-ticker-item em {
  grid-area: delta;
  color: #B45F51;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  font-style: normal;
}

.chat-stock-ticker-item em.is-down {
  color: #4E7E6B;
}

.chat-stock-ticker-item:active {
  opacity: 0.58;
}

.chat-stock-events {
  margin-top: 24px;
}

.chat-stock-projects {
  margin-top: 24px;
}

.chat-stock-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(150,158,168,0.16);
}

.chat-stock-section-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 22px;
  line-height: 1;
  font-style: italic;
  letter-spacing: -0.04em;
  color: #4F5864;
}

.chat-stock-event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
}

.chat-stock-event {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(150,158,168,0.12);
}

.chat-stock-event time {
  color: #B4BAC4;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.chat-stock-event p {
  margin: 0;
  color: #68717D;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.chat-stock-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 15px;
}

.chat-stock-project {
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
  color: #4F5864;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(150,158,168,0.16);
  cursor: pointer;
  text-align: left;
}

.chat-stock-project h4 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-style: italic;
  color: #343941;
}

.chat-stock-project p {
  margin: 0;
  color: #9AA2AD;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.chat-stock-project-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.chat-stock-project-price strong {
  color: #343941;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1;
}

.chat-bottom-sheet-modal {
  padding: 24px;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 35, 0.4);
}

.chat-bottom-sheet {
  width: 100%;
  max-width: 318px;
  max-height: calc(var(--one-shell-lock-height, var(--one-layout-vh, 100svh)) - max(48px, calc(env(safe-area-inset-top) + env(safe-area-inset-bottom) + 36px)));
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.26s cubic-bezier(0.22, 0.74, 0.22, 1), opacity 0.22s ease;
  padding: 24px 20px 18px;
  overflow-y: auto;
}

.chat-bottom-sheet-modal.show .chat-bottom-sheet {
  transform: translateY(0) scale(1);
}

.chat-bottom-sheet-grabber {
  display: none;
}

.chat-stock-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chat-stock-sheet-head span {
  display: block;
  margin-bottom: 7px;
  color: #A0A7B1;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.chat-stock-sheet-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-style: italic;
  color: #343941;
}

.chat-stock-ask {
  border: 0;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  cursor: pointer;
  position: relative;
  height: auto;
  padding: 0 0 5px;
  border-radius: 0;
  background: transparent;
  color: rgba(52,57,65,0.68);
  gap: 0;
  line-height: 1;
  letter-spacing: 0.11em;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.chat-stock-ask::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.34;
  transform: scaleX(0.46);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat-stock-ask-mark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(52,57,65,0.20);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1;
  font-style: italic;
  display: none;
}

.chat-stock-ask:active {
  opacity: 0.72;
}

.chat-stock-ask:active::after {
  opacity: 0.86;
  transform: scaleX(1);
}

.chat-stock-sheet-body {
  padding-top: 20px;
}

.chat-stock-sheet-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 18px;
}

.chat-stock-sheet-price strong {
  color: #343941;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 0.9;
  letter-spacing: -0.025em;
  font-style: italic;
}

.chat-stock-sheet-meta {
  padding: 14px 0;
  border-top: 1px solid rgba(150,158,168,0.16);
  border-bottom: 1px solid rgba(150,158,168,0.16);
}

.chat-stock-sheet-meta span {
  color: #A0A7B1;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.chat-stock-sheet-grid span {
  color: #A0A7B1;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.chat-stock-sheet-meta p {
  margin: 8px 0 0;
  color: #68717D;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.chat-stock-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
}

.chat-stock-sheet-grid div {
  min-height: 66px;
  padding: 13px 12px;
  border-radius: 18px;
  background: #F6F7F8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat-stock-sheet-grid strong {
  color: #343941;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1;
}

.chat-stock-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.chat-stock-sheet-actions button {
  height: 46px;
  border: 0;
  border-radius: 0;
  background: var(--one-quality-button, #111111);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.chat-stock-sheet-actions button + button {
  background: #F2F3F5;
  color: #4F5864;
}

.chat-thread-bubble.is-redpacket-card {
  width: 220px;
  height: 120px;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.chat-thread-bubble.is-transfer-card {
  width: 220px;
  height: 120px;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.chat-thread-bubble.is-chat-record-card {
  width: 220px;
  height: 120px;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.chat-thread-bubble.is-account-impersonation-card {
  width: 220px;
  height: 120px;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.chat-thread-bubble.is-stock-inquiry-card {
  width: 220px;
  height: 120px;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-shadow: none;
}

.chat-thread-row.is-ta .chat-thread-bubble.is-stock-inquiry-card::before {
  content: none;
  display: none;
}

.chat-thread-row.is-me .chat-thread-bubble.is-stock-inquiry-card::after {
  content: none;
  display: none;
}

.chat-thread-stock-card {
  position: relative;
  width: 220px;
  height: 120px;
  border: 0;
  border-radius: 14px;
  padding: 14px 15px 12px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
  color: #000;
  background: #f3f1ed;
  box-shadow: 0 6px 14px rgba(52, 56, 65, 0.034);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.chat-thread-stock-card::before {
  content: none;
}

.chat-thread-stock-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 15px;
  right: 15px;
  bottom: 28px;
  height: 1px;
  background: rgba(52, 56, 65, 0.09);
  transform: scaleY(0.7);
  transform-origin: center;
}

.chat-thread-stock-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.chat-thread-stock-head span {
  order: 2;
  position: absolute;
  left: 0;
  bottom: -85px;
  max-width: 124px;
  color: rgba(52, 56, 65, 0.38);
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-stock-head strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 17px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-style: italic;
  font-weight: 400;
}

.chat-thread-stock-price {
  position: relative;
  z-index: 2;
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.chat-thread-stock-price strong {
  color: rgba(52, 56, 65, 0.76);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.chat-thread-stock-price em {
  color: #8A5F55;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-style: normal;
  font-weight: 400;
}

.chat-thread-stock-card.is-down .chat-thread-stock-price em {
  color: #4E7E6B;
}

.chat-thread-stock-desc {
  position: relative;
  z-index: 2;
  display: block;
  width: 150px;
  margin: 6px 0 0;
  color: rgba(52, 56, 65, 0.50);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-stock-foot {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 11px;
  max-width: 82px;
  display: block;
  text-align: right;
  color: rgba(52, 56, 65, 0.38);
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-stock-foot span {
  display: none;
}

.chat-thread-stock-foot span:first-child {
  display: inline;
}

.chat-thread-stock-tag {
  z-index: 2;
  position: absolute;
  right: 15px;
  top: 14px;
  color: rgba(52, 56, 65, 0.42);
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  font-style: normal;
}

.chat-stock-ask-target-modal.show .chat-stock-ask-dialog {
  transform: translateY(0);
}

.chat-stock-ask-head em {
  display: block;
  margin-top: 8px;
  color: #9AA2AD;
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  font-style: normal;
  font-weight: 400;
}

.chat-stock-ask-target-card .chat-news-char-note {
  -webkit-line-clamp: 2;
}

.chat-thread-pay-card {
  position: relative;
  width: 220px;
  height: 120px;
  border: 0;
  border-radius: 14px;
  padding: 14px 15px 12px;
  box-sizing: border-box;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  color: #000;
  background: #f7f1ed;
  box-shadow: 0 6px 14px rgba(52, 56, 65, 0.035);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chat-thread-pay-card.is-transfer {
  background: #eef3f3;
  box-shadow: 0 6px 14px rgba(52, 56, 65, 0.032);
}

.chat-thread-pay-card::before {
  content: none;
}

.chat-thread-pay-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 15px;
  right: 15px;
  bottom: 28px;
  height: 1px;
  background: rgba(52, 56, 65, 0.095);
  transform: scaleY(0.7);
  transform-origin: center;
}

.chat-thread-pay-card.is-transfer::after {
  background: rgba(52, 56, 65, 0.085);
}

.chat-thread-pay-card:active {
  transform: translateY(1px);
}

.chat-thread-pay-meta {
  position: absolute;
  z-index: 2;
  left: 15px;
  bottom: 11px;
  color: rgba(52, 56, 65, 0.38);
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: none;
}

.chat-thread-pay-title {
  position: relative;
  z-index: 2;
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 17px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #000;
  font-weight: 400;
}

.chat-thread-pay-money {
  position: relative;
  z-index: 2;
  margin-top: 7px;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(52, 56, 65, 0.76);
}

.chat-thread-pay-desc {
  position: relative;
  z-index: 2;
  max-width: 150px;
  margin-top: 6px;
  color: rgba(52, 56, 65, 0.50);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-pay-foot {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 11px;
  max-width: 120px;
  color: rgba(52, 56, 65, 0.38);
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

.chat-thread-pay-icon {
  position: absolute;
  z-index: 1;
  right: -68px;
  top: -22px;
  width: 212px;
  height: 122px;
  border-radius: 0;
  border: 0;
  color: rgba(52,56,65,0.075);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-align: right;
  background: transparent;
  transform: rotate(-9deg);
}

.chat-redpacket-modal {
  z-index: 10000;
}

.chat-transfer-modal {
  z-index: 10000;
}

.chat-pay-status-modal {
  z-index: 10000;
}

.chat-pay-send-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 3px;
  text-align: left;
}

.chat-pay-send-head span {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(52,57,65,0.45);
  text-transform: uppercase;
}

.chat-pay-send-head strong {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #000;
}

.chat-pay-send-head em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(52,57,65,0.52);
}

.chat-pay-send-dialog .btn-save.is-loading {
  opacity: 0.48;
  pointer-events: none;
}

.chat-pay-send-dialog .btn-save:disabled {
  opacity: 0.48;
  pointer-events: none;
}

.chat-pay-status-content {
  gap: 16px;
}

.chat-pay-status-card {
  position: relative;
  min-height: 118px;
  border-radius: 16px;
  padding: 16px 17px;
  overflow: hidden;
  background: #f7f1ed;
  border: 0;
  color: #000;
}

.chat-pay-status-card.is-transfer {
  background: #eef3f3;
}

.chat-pay-status-card::after {
  content: none;
}

.chat-pay-status-card span {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(52,57,65,0.46);
  text-transform: uppercase;
}

.chat-pay-status-card strong {
  display: block;
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 0.96;
  color: #000;
}

.chat-pay-status-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 16px;
  color: rgba(52,57,65,0.78);
}

.chat-pay-status-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(52,57,65,0.08);
}

.chat-pay-status-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(52,57,65,0.06);
}

.chat-pay-status-lines div[hidden] {
  display: none;
}

.chat-pay-status-lines div.is-hidden {
  display: none;
}

.chat-pay-status-lines span {
  color: rgba(52,57,65,0.42);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chat-pay-status-lines strong {
  min-width: 0;
  max-width: 180px;
  color: rgba(52,57,65,0.74);
  font-size: 12px;
  line-height: 1.42;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-pay-pass-modal {
  padding: 0;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(30, 30, 35, 0.32);
  z-index: 14000;
}

.chat-thread-row.is-system {
  justify-content: center;
  padding: 4px 0 6px;
}

.chat-thread-bubble.is-system-text {
  min-height: 0;
  max-width: 78%;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(52, 57, 65, 0.10);
  color: rgba(52, 57, 65, 0.52);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: none;
}

.chat-thread-bubble.is-system-text::before {
  display: none;
}

.chat-thread-bubble.is-system-text::after {
  display: none;
}

.chat-thread-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
  position: relative;
}

.chat-thread-row > * {
  position: relative;
  z-index: 1;
}

@keyframes chat-wallpaper-area-pulse {
0%, 100% { opacity: 0.18; }
    50% { opacity: 0.48; }
}

.chat-quickbar.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-quickbar::after {
  content: none;
  display: none;
}

.chat-quickbar.is-below::after {
  content: none;
  display: none;
}

.chat-quickbar-window {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.chat-quickbar-track {
  width: 200%;
  display: flex;
  transition: transform .22s cubic-bezier(.22, .9, .24, 1);
  will-change: transform;
}

.chat-quickbar button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  margin: 0;
  padding: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.chat-quickbar-page button:active {
  transform: scale(0.96);
  background: var(--chat-clear-glass-bg-strong);
}

.chat-quickbar-nav:active {
  transform: scale(0.96);
  background: var(--chat-clear-glass-bg-strong);
}

.chat-quickbar-page button.is-disabled {
  opacity: .32;
  pointer-events: none;
}

.chat-quickbar-dots {
  display: none;
}

.chat-thread-text-content {
  display: block;
  width: 100%;
  white-space: pre;
  text-align: left;
  line-height: 1.34;
  transform: translateY(0.5px);
}

.chat-thread-bubble.is-text.has-translation {
  min-width: 138px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 7px;
  white-space: normal;
}

.chat-thread-bubble.has-translation .chat-thread-text-content {
  white-space: pre;
}

.chat-thread-translation {
  display: block;
  width: 100%;
  margin-top: 1px;
  padding-top: 7px;
  border-top: 1px solid rgba(52, 56, 65, 0.10);
  color: rgba(52, 56, 65, 0.58);
  font-size: 11px;
  line-height: 1.46;
  letter-spacing: 0.02em;
  white-space: pre;
  text-align: left;
}

.chat-thread-translation::before {
  content: attr(data-lang);
  display: block;
  margin-bottom: 4px;
  color: rgba(52, 56, 65, 0.36);
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-thread-row.is-me .chat-thread-translation {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.70);
}

.chat-thread-row.is-me .chat-thread-translation::before {
  color: rgba(255, 255, 255, 0.46);
}

.chat-ta-diary-view {
  padding: max(22px, calc(env(safe-area-inset-top) + 12px)) 24px max(56px, calc(env(safe-area-inset-bottom) + 38px));
  background: transparent;
  color: var(--chat-ink);
}

.chat-ta-subpage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  margin-bottom: 14px;
}

.chat-ta-subpage-title {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  color: var(--chat-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.chat-heart-kicker {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(52,57,65,0.42);
  font-style: normal;
}

.chat-ta-diary-card-kicker {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(52,57,65,0.42);
  font-style: normal;
}

.chat-ta-diary-paper-top span {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(52,57,65,0.42);
  font-style: normal;
}

.chat-ta-diary-top-action {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(247,244,238,0.76);
  color: rgba(48,55,64,0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(30,34,40,0.05);
  -webkit-tap-highlight-color: transparent;
}

.chat-ta-diary-top-action:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 10px rgba(30,34,40,0.04);
}

.chat-ta-diary-action-icon {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
}

.chat-ta-diary-action-icon path,
.chat-ta-diary-action-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-ta-diary-action-text {
  display: none;
}

.chat-ta-diary-entry-page[hidden] {
  display: none;
}

.chat-ta-diary-detail-page[hidden] {
  display: none;
}

.chat-ta-diary-hero {
  position: relative;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(117,124,135,0.12);
  border-bottom: 1px solid rgba(117,124,135,0.12);
}

.chat-ta-diary-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.chat-ta-diary-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-ta-diary-card-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: start;
}

.chat-ta-diary-card time {
  color: rgba(52,57,65,0.40);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-align: right;
}

.chat-ta-diary-paper-top time {
  color: rgba(52,57,65,0.40);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-align: right;
}

.chat-ta-diary-card-actions button {
  border-right: 0;
  color: rgba(132,74,74,0.58);
}

.chat-ta-diary-list:not(.is-managing) .chat-ta-diary-card-actions {
  display: none;
}

.chat-ta-diary-empty {
  display: none;
  min-height: 220px;
  place-items: center;
  text-align: center;
  color: rgba(52,57,65,0.44);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.chat-ta-diary-empty.show {
  display: grid;
}

.chat-heart-content {
  position: relative;
  z-index: 2;
  padding: 23px 22px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(80vh, 640px);
  overflow-y: auto;
  scrollbar-width: none;
}

.chat-heart-content::-webkit-scrollbar {
  display: none;
}

.chat-heart-content::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 93px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, rgba(160, 171, 188, 0), rgba(160, 171, 188, 0.28), rgba(160, 171, 188, 0));
  pointer-events: none;
}

.chat-heart-content::after {
  content: "";
  position: absolute;
  right: 23px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(160, 171, 188, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(160, 171, 188, 0.035);
  pointer-events: none;
}

.chat-heart-head {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  padding: 2px 68px 17px 0;
  border-bottom: 1px solid rgba(117,124,135,0.14);
}

.chat-heart-head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 64px;
  height: 1px;
  background: rgba(52,57,65,0.36);
}

.chat-heart-avatar {
  width: 60px;
  height: 60px;
  border-radius: 22px;
  background: #edf0f2;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: rgba(52,57,65,0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: inset 0 0 0 1px rgba(117,124,135,0.08), 0 10px 20px rgba(76,72,64,0.07);
}

.chat-heart-avatar.has-image {
  color: transparent;
}

.chat-heart-name {
  min-width: 0;
}

.chat-heart-name strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.058em;
  font-weight: 400;
  font-style: italic;
  color: #343941;
}

.chat-heart-name em {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(52,57,65,0.50);
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.045em;
}

.chat-heart-note-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.chat-heart-note {
  position: relative;
  padding: 14px 14px 14px 16px;
  border-bottom: 0;
  border-radius: 18px;
  background: rgba(248,250,253,0.88);
  box-shadow: inset 0 0 0 1px rgba(117,124,135,0.08);
}

.chat-heart-note:first-child {
  padding-top: 14px;
}

.chat-heart-note:last-child {
  padding-bottom: 14px;
}

.chat-heart-note::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(146, 159, 181, 0.42);
  box-shadow: 0 0 0 4px rgba(146, 159, 181, 0.055);
}

.chat-heart-note strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(52,57,65,0.46);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

.chat-heart-note strong::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(117,124,135,0.10);
}

.chat-heart-note p {
  margin: 10px 0 0;
  color: rgba(52,57,65,0.72);
  font-size: 13px;
  line-height: 1.72;
  letter-spacing: 0.025em;
  white-space: pre-wrap;
}

.chat-heart-note-life {
  padding-right: 14px;
}

.chat-heart-life-grid {
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.chat-heart-life-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(117,124,135,0.07);
}

.chat-heart-life-item span {
  color: rgba(52,57,65,0.42);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.14em;
}

.chat-heart-life-item em {
  margin: 0;
  color: rgba(52,57,65,0.76);
  font-style: normal;
  font-size: 12px;
  line-height: 1.58;
  letter-spacing: 0.02em;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-ta-diary-generate:disabled {
  opacity: 0.58;
  pointer-events: none;
}

.chat-thread-bubble.is-diary-forward-card {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-shadow: none;
  overflow: visible;
}

.chat-thread-row.is-ta .chat-thread-bubble.is-diary-forward-card::before {
  content: none;
  display: none;
}

.chat-thread-row.is-me .chat-thread-bubble.is-diary-forward-card::after {
  content: none;
  display: none;
}

.chat-ta-schedule-view {
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: max(34px, calc(env(safe-area-inset-top) + 22px)) 24px max(22px, calc(env(safe-area-inset-bottom) + 14px));
  background: radial-gradient(circle at 18% 12%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.22) 30%, transparent 56%),
        radial-gradient(circle at 84% 18%, rgba(217,226,232,0.70) 0%, rgba(217,226,232,0.14) 30%, transparent 58%),
        linear-gradient(180deg, #f9f7f3 0%, #f7f2ed 42%, #fdfcf9 100%);
  color: var(--chat-ink, #343941);
  position: relative;
  overflow: hidden;
  --chat-schedule-bottom-reserve: 76px;
}

.chat-ta-schedule-view.active {
  display: block;
  min-height: 0;
  animation: chat-soft-enter 0.28s ease both;
}

.chat-app-page.ta-schedule-open {
  --chat-paper: #FFFFFF;
  --chat-paper-2: #FFFFFF;
  background-color: #f9f7f3;
  background-image: linear-gradient(180deg, rgba(252,251,247,0.94) 0%, rgba(246,238,232,0.92) 48%, rgba(255,253,248,0.96) 100%);
}

.chat-app-page.ta-schedule-open::before {
  content: none;
  display: none;
}

.chat-ta-schedule-shell {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 390px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  padding-bottom: 0;
  box-sizing: border-box;
  display: block;
  overflow: visible;
}

.chat-ta-schedule-mist {
  display: none;
}

.chat-ta-schedule-top {
  min-height: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.chat-ta-schedule-back {
  justify-self: start;
  border: 0;
  border-bottom: 1px solid rgba(52, 57, 65, .46);
  border-radius: 0;
  padding: 0 0 2px;
  background: transparent;
  color: rgba(52, 57, 65, .62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .16em;
  font-weight: 400;
}

.chat-ta-schedule-search {
  justify-self: stretch;
  min-width: 0;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 22px rgba(76, 84, 96, 0.075), inset 0 1px 0 rgba(255,255,255,0.90), inset 0 0 0 1px rgba(150,158,168,0.10);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 5px;
  padding: 3px 5px 3px 4px;
  color: rgba(52, 57, 65, .72);
}

.chat-ta-schedule-search-lens {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(150,158,168,0.10);
}

.chat-ta-schedule-search-lens svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
}

.chat-ta-schedule-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(47, 52, 59, .86);
  font-size: 16px;
  letter-spacing: .045em;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.chat-ta-schedule-search-input::placeholder {
  color: rgba(80, 88, 99, .32);
}

.chat-ta-schedule-search-star {
  justify-self: end;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #f0f2f4;
  color: #626c78;
  display: grid;
  place-items: center;
  padding: 0;
}

.chat-ta-schedule-search-star svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.chat-ta-schedule-season {
  min-height: 0;
  overflow: visible;
  width: 100%;
  margin: 10px 0 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7f8996;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: .038em;
  text-align: left;
  white-space: nowrap;
}

.chat-ta-schedule-season i {
  flex: 0 0 1px;
  width: 1px;
  height: 14px;
  background: rgba(117, 124, 135, .36);
}

.chat-ta-schedule-season span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-ta-schedule-divider {
  min-height: 0;
  overflow: visible;
  height: 1px;
  margin: 16px 0 18px;
  background: linear-gradient(90deg, rgba(127,137,150,.38) 0 48%, transparent 48% 100%);
  background-size: 11px 1px;
}

.chat-ta-schedule-hero {
  position: relative;
  min-height: 156px;
  margin: 0 0 18px;
  padding: 16px 16px 14px;
  border-radius: 30px;
  background-image: radial-gradient(circle at 18% 16%, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.24) 32%, transparent 58%),
        radial-gradient(circle at 84% 18%, rgba(217,226,232,0.62) 0%, rgba(217,226,232,0.16) 31%, transparent 60%),
        linear-gradient(135deg, rgba(233,237,241,0.92) 0%, rgba(246,238,232,0.92) 62%, rgba(255,253,248,0.96) 100%);
  box-shadow: 0 18px 46px rgba(82, 90, 102, 0.09), inset 0 0 0 1px rgba(255,255,255,0.76);
  overflow: hidden;
  isolation: isolate;
}

.chat-ta-schedule-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .3;
  background-image: linear-gradient(rgba(128, 137, 148, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 137, 148, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.chat-ta-schedule-directory {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  max-width: none;
}

.chat-ta-schedule-directory-label {
  position: relative;
  display: inline-flex;
  min-width: 74px;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(134, 145, 158, .22);
  background: rgba(255,255,255,0.70);
  color: #7f8996;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: .10em;
}

.chat-ta-schedule-directory-label::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-left: 1px solid rgba(117, 124, 135, .20);
  border-bottom: 1px solid rgba(117, 124, 135, .20);
  background: rgba(255,255,255,0.86);
  transform: translate(1px, -1px) rotate(45deg);
}

.chat-ta-schedule-directory-list {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.chat-ta-schedule-directory-list span {
  display: inline-grid;
  grid-template-columns: 13px auto;
  align-items: center;
  gap: 5px;
  width: auto;
  max-width: 100%;
  color: #7f8996;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .035em;
  white-space: nowrap;
}

.chat-ta-schedule-directory-list svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #7f8996;
  stroke-width: 1.30;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-ta-schedule-pair {
  position: absolute;
  left: 50%;
  top: 15px;
  z-index: 1;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 66px 38px 66px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.chat-ta-schedule-avatar-wrap {
  display: grid;
  grid-template-rows: 66px auto;
  justify-items: center;
  gap: 6px;
  color: #68717D;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 12px;
  line-height: 1;
}

.chat-ta-schedule-avatar-wrap em {
  font-style: normal;
  font-weight: 400;
  opacity: .72;
}

.chat-ta-schedule-avatar-ring {
  grid-area: 1 / 1;
  width: 66px;
  height: 66px;
  border: 1.2px solid rgba(134, 145, 158, .28);
  border-radius: 50%;
  box-shadow: 0 9px 24px rgba(82, 90, 102, 0.06);
}

.chat-ta-schedule-avatar-core {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eef0f2;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: rgba(104, 113, 125, .62);
  font-size: 13px;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72);
}

.chat-ta-schedule-avatar-core.has-image {
  color: transparent;
}

.chat-ta-schedule-heartline {
  width: 38px;
  height: 22px;
  fill: none;
  stroke: rgba(98, 108, 120, .54);
  stroke-width: 1.22;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-ta-schedule-week {
  min-height: 0;
  overflow: visible;
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding: 0 2px;
}

.chat-ta-schedule-day {
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 7px 0 8px;
  display: grid;
  justify-items: center;
  gap: 5px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  color: rgba(127, 137, 150, .74);
}

.chat-ta-schedule-day span:first-child {
  font-size: 10px;
  line-height: 1;
}

.chat-ta-schedule-day span:last-child {
  font-size: 14px;
  line-height: 1;
  letter-spacing: .03em;
}

.chat-ta-schedule-day.is-today:not(.is-selected) {
  color: rgba(74, 78, 89, .72);
  background: rgba(255,255,255,0.46);
}

.chat-ta-schedule-day.is-selected {
  color: #303740;
  background: #fff;
  box-shadow: 0 8px 18px rgba(82,90,102,0.11), inset 0 -1px 0 rgba(98,108,120,.28), inset 0 0 0 1px rgba(150,158,168,0.10);
}

.chat-ta-schedule-day.is-selected span:first-child {
  font-weight: 600;
}

.chat-ta-schedule-day.is-selected span:last-child {
  font-weight: 600;
}

.chat-ta-schedule-split {
  min-height: 0;
  overflow: visible;
  position: relative;
  height: 1px;
  display: block;
  margin-top: 18px;
}

.chat-ta-schedule-split::before {
  content: "";
  position: absolute;
  left: 0;
  width: 45%;
  height: 1px;
  background: rgba(74, 78, 89, .34);
}

.chat-ta-schedule-item-line::before {
  content: "";
  position: absolute;
  left: 0;
  width: 45%;
  height: 1px;
  background: rgba(74, 78, 89, .34);
}

.chat-ta-schedule-split::after {
  content: "";
  position: absolute;
  right: 0;
  width: 55%;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(117, 124, 135, .26) 0 48%, transparent 48% 100%);
  background-size: 9px 1px;
}

.chat-ta-schedule-item-line::after {
  content: "";
  position: absolute;
  right: 0;
  width: 55%;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(117, 124, 135, .26) 0 48%, transparent 48% 100%);
  background-size: 9px 1px;
}

.chat-ta-schedule-month-row {
  min-height: 0;
  overflow: visible;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #7f8996;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 10px;
  letter-spacing: .07em;
}

.chat-ta-schedule-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--chat-schedule-scroll-top, 356px);
  bottom: 0;
  margin-top: 0;
  min-height: 220px;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  scroll-padding-bottom: var(--chat-schedule-bottom-reserve);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.chat-ta-schedule-scroll::-webkit-scrollbar {
  display: none;
}

.chat-ta-schedule-scroll::after {
  content: "";
  display: block;
  height: var(--chat-schedule-bottom-reserve);
  flex: 0 0 var(--chat-schedule-bottom-reserve);
  pointer-events: none;
}

.chat-ta-schedule-list {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 0;
}

.chat-ta-schedule-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 52px;
  width: 1px;
  background: rgba(117, 124, 135, .14);
}

.chat-ta-schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 18px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.chat-ta-schedule-index {
  padding-top: 12px;
  color: #8d96a2;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .045em;
  text-align: right;
  white-space: nowrap;
}

.chat-ta-schedule-node {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-top: 11px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(117, 124, 135, .28);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.chat-ta-schedule-card {
  position: relative;
  min-height: 94px;
  padding: 14px 15px 12px 15px;
  border-radius: 20px;
  background: rgba(255,255,255,0.84);
  color: rgba(52, 57, 65, .86);
  box-shadow: 0 12px 24px rgba(82, 90, 102, 0.06), inset 0 0 0 1px rgba(150,158,168,0.10);
}

.chat-ta-schedule-card h3 {
  margin: 0 0 9px;
  color: #303740;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: .018em;
  font-weight: 500;
}

.chat-ta-schedule-card p {
  margin: 0;
}

.chat-ta-schedule-meta {
  display: grid;
  gap: 6px;
  margin-top: 1px;
}

.chat-ta-schedule-mood {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 0;
  color: #7f8996;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .035em;
  vertical-align: middle;
}

.chat-ta-schedule-place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 0;
  color: #7f8996;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .035em;
  vertical-align: middle;
}

.chat-ta-schedule-mood-icon {
  display: inline-flex;
  width: 11px;
  height: 11px;
  align-items: center;
  justify-content: center;
  color: #7f8996;
}

.chat-ta-schedule-mood-icon svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.chat-ta-schedule-place svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #7f8996;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-ta-schedule-desc {
  display: block;
  margin-top: 9px;
  color: #68717D;
  font-size: 12px;
  line-height: 1.72;
  letter-spacing: .022em;
}

.chat-ta-schedule-item-line {
  position: relative;
  height: 1px;
  display: block;
  margin-top: 12px;
}

.chat-ta-schedule-select {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(117, 124, 135, .24);
  border-radius: 50%;
  background: #fff;
  color: rgba(52, 57, 65, .88);
  font-size: 16px;
  line-height: 1;
}

.chat-ta-schedule-card.is-selecting {
  padding-right: 42px;
}

.chat-ta-schedule-card.is-selected .chat-ta-schedule-select {
  background: rgba(52, 57, 65, .90);
  color: #fff;
}

.chat-ta-schedule-empty {
  display: none;
  min-height: 140px;
  flex: 1 0 auto;
  place-items: center;
  text-align: center;
  color: rgba(104, 113, 125, .50);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .06em;
}

.chat-ta-schedule-empty.show {
  display: grid;
}

.chat-ta-schedule-float {
  position: absolute;
  right: max(18px, calc(env(safe-area-inset-right) + 16px));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px));
  z-index: 8;
  display: none;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

.chat-app-page.ta-schedule-open .chat-ta-schedule-float {
  display: grid;
}

.chat-ta-schedule-action-stack {
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.chat-ta-schedule-float.is-open .chat-ta-schedule-action-stack {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-ta-schedule-action-stack button {
  min-width: 118px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px 0 9px;
  background: rgba(255,255,255,0.88);
  color: rgba(104, 113, 125, .70);
  box-shadow: 0 10px 22px rgba(76, 84, 96, 0.075), inset 0 0 0 1px rgba(150,158,168,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .045em;
  font-weight: 400;
}

.chat-ta-schedule-action-stack button[data-schedule-action="add"] {
  color: rgba(47, 52, 59, .92);
  background: #fff;
  box-shadow: 0 12px 24px rgba(76, 84, 96, 0.095), inset 0 0 0 1px rgba(117,124,135,0.16);
}

.chat-ta-schedule-action-stack button[data-schedule-action="generate"] {
  color: rgba(47, 52, 59, .92);
  background: #fff;
  box-shadow: 0 12px 24px rgba(76, 84, 96, 0.095), inset 0 0 0 1px rgba(117,124,135,0.16);
}

.chat-ta-schedule-action-stack svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-ta-schedule-plus {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 30px rgba(76, 84, 96, 0.15), inset 0 0 0 1px rgba(117,124,135,0.18), inset 0 0 0 7px rgba(245,243,238,0.82);
  display: grid;
  place-items: center;
  color: rgba(47, 52, 59, .86);
}

.chat-ta-schedule-plus span {
  content: "";
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
}

.chat-ta-schedule-plus span::after {
  content: "";
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transform: rotate(90deg);
}

.chat-ta-schedule-float.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.chat-ta-schedule-node.chat-ta-schedule-select {
  position: relative;
  right: auto;
  top: auto;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 7px;
  padding: 0;
  border: 1px solid rgba(117, 124, 135, .28);
  border-radius: 50%;
  background: #fff;
  color: rgba(52, 57, 65, .82);
  font-size: 16px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px #fff;
}

.chat-ta-schedule-card.is-selected {
  box-shadow: 0 10px 24px rgba(74,78,89,0.10), inset 0 0 0 1px rgba(52,57,65,0.18);
}

.chat-ta-schedule-card.is-jump-target {
  box-shadow: 0 10px 24px rgba(74,78,89,0.10), inset 0 0 0 1px rgba(52,57,65,0.18);
}

.chat-ta-schedule-node.chat-ta-schedule-select.is-selected {
  background: rgba(52,57,65,.90);
  color: #fff;
  border-color: transparent;
  box-shadow: none;
}

.chat-ta-schedule-manage-bar {
  position: absolute;
  left: max(18px, calc(env(safe-area-inset-left) + 16px));
  right: max(18px, calc(env(safe-area-inset-right) + 16px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 9;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  border: 1px solid rgba(117,124,135,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 18px 36px rgba(52,57,65,.13);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .16s ease, transform .18s ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.chat-app-page.ta-schedule-open .chat-ta-schedule-manage-bar.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-ta-schedule-manage-bar span {
  text-align: center;
  color: rgba(52,57,65,.78);
  font-size: 12px;
  letter-spacing: .08em;
}

.chat-ta-schedule-manage-bar button {
  border: 0;
  background: transparent;
  color: rgba(52,57,65,.72);
  font-size: 12px;
  letter-spacing: .08em;
  min-height: 36px;
}

.chat-ta-schedule-manage-bar button:last-child {
  color: rgba(20,20,20,.92);
}

@media (max-width: 390px) {
  .chat-ta-schedule-view {
  padding-left: 18px;
  padding-right: 18px;
  }

  .chat-ta-schedule-top {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 8px;
  }

  .chat-ta-schedule-search {
  grid-template-columns: 27px minmax(0, 1fr) 25px;
  }

  .chat-ta-schedule-hero {
  min-height: 150px;
  padding-left: 16px;
  padding-right: 16px;
  }

  .chat-ta-schedule-directory {
  left: 16px;
  right: 16px;
  }

  .chat-ta-schedule-pair {
  grid-template-columns: 64px 36px 64px;
  gap: 8px;
  }

  .chat-ta-schedule-avatar-wrap {
  grid-template-rows: 64px auto;
  }

  .chat-ta-schedule-avatar-ring {
  width: 64px;
  height: 64px;
  }

  .chat-ta-schedule-avatar-core {
  width: 52px;
  height: 52px;
  }

  .chat-ta-schedule-heartline {
  width: 36px;
  }

  .chat-ta-schedule-list::before {
  left: 50px;
  }

  .chat-ta-schedule-item {
  grid-template-columns: 42px 18px minmax(0, 1fr);
  }

  .chat-ta-schedule-card {
  padding-left: 13px;
  padding-right: 13px;
  }
}

.chat-ta-schedule-forward-card {
  position: relative;
  width: 220px;
  height: 120px;
  border: 0;
  border-radius: 14px;
  padding: 14px 15px 12px;
  box-sizing: border-box;
  background: #eef3f3;
  color: #000;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(52, 56, 65, 0.032);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chat-ta-schedule-forward-card::before {
  content: none;
}

.chat-ta-schedule-forward-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 15px;
  right: 15px;
  bottom: 28px;
  height: 1px;
  background: rgba(52, 56, 65, 0.085);
  transform: scaleY(0.7);
  transform-origin: center;
}

.chat-thread-bubble.is-schedule-forward-card {
  display: inline-flex;
  width: 220px;
  height: 120px;
  min-height: 120px;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.chat-thread-row.is-ta .chat-thread-bubble.is-schedule-forward-card::before {
  content: none;
  display: none;
}

.chat-thread-row.is-me .chat-thread-bubble.is-schedule-forward-card::after {
  content: none;
  display: none;
}

.chat-ta-schedule-forward-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #000;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 17px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-style: italic;
  font-weight: 400;
}

.chat-ta-schedule-forward-card span {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 150px;
  margin-top: 8px;
  color: rgba(52, 56, 65, 0.50);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-ta-schedule-forward-card em {
  position: absolute;
  z-index: 2;
  left: 15px;
  right: 15px;
  bottom: 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(52, 56, 65, 0.38);
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: none;
  font-style: normal;
}

.chat-ta-schedule-forward-card em i {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.chat-heart-refresh:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.chat-heart-note-history {
  padding-bottom: 16px;
}

@media (max-width: 340px) {
  .chat-heart-head {
  grid-template-columns: 52px minmax(0,1fr);
  padding-right: 46px;
  }

  .chat-heart-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  }

  .chat-heart-dialog::after {
  right: 20px;
  }
}

.chat-thread-composer > .chat-thread-plus {
  grid-column: 1;
  grid-row: 2;
}

.chat-thread-composer > .chat-thread-input {
  grid-column: 2;
  grid-row: 2;
}

.chat-thread-composer > .chat-thread-input-glass {
  grid-column: 2;
  grid-row: 2;
}

.chat-thread-composer > .chat-thread-sendbar {
  grid-column: 3;
  grid-row: 2;
}

.chat-pay-status-actions button[hidden] {
  display: none;
}

.chat-pay-status-actions {
  gap: 0;
}

.chat-pay-status-actions .btn-cancel {
  min-width: 0;
}

.chat-pay-status-actions .btn-save {
  min-width: 0;
}

.chat-thread-pay-card.is-done {
  filter: ;
  opacity: 0.82;
}

.chat-thread-pay-card.is-expired {
  filter: ;
  opacity: 0.82;
}

.chat-thread-pay-card.is-refunded {
  filter: ;
  opacity: 0.82;
}

.chat-thread-pay-card.is-done .chat-thread-pay-icon {
  background: transparent;
  color: rgba(52,56,65,0.06);
}

.chat-thread-pay-card.is-expired .chat-thread-pay-icon {
  background: transparent;
  color: rgba(52,56,65,0.06);
}

.chat-thread-pay-card.is-refunded .chat-thread-pay-icon {
  background: transparent;
  color: rgba(52,56,65,0.06);
}

.chat-app-page.offline-open .chat-bottom-dock {
  display: none;
}

.chat-offline-view.active ~ .chat-bottom-dock {
  display: none;
}

.chat-offline-view {
  padding: max(22px, calc(env(safe-area-inset-top) + 12px)) 20px max(92px, calc(env(safe-area-inset-bottom) + 82px));
  overflow: hidden;
  color: #2F333A;
  background: #FCFBF7;
}

.chat-offline-view::before {
  content: none;
  display: none;
}

.chat-offline-view.has-custom-bg {
  background-color: #FCFBF7;
  background-image: var(--chat-offline-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.chat-offline-visual-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.chat-offline-visual-item {
  position: absolute;
  top: -9vh;
  pointer-events: none;
  will-change: transform, opacity;
}

.chat-offline-visual-item.is-snow {
  width: var(--size, 4px);
  height: var(--size, 4px);
  opacity: var(--alpha, 0.72);
  transform-origin: center center;
  animation: chatOfflineSnowFall var(--dur, 10s) linear var(--delay, 0s) infinite;
}

.chat-offline-visual-item.is-snowdot {
  border-radius: var(--snow-radius, 58% 42% 62% 38% / 48% 55% 45% 52%);
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,0.98) 0 18%, rgba(255,255,255,0.88) 19% 56%, rgba(255,255,255,0.70) 100%);
  box-shadow: 0 0 7px rgba(255,255,255,0.28);
}

.chat-offline-visual-item.is-snowflake {
  border-radius: 0;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size, 13px);
  height: var(--size, 13px);
  font-size: var(--size, 13px);
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
  font-weight: 400;
  text-shadow: 0 0 5px rgba(255,255,255,0.30);
}

.chat-offline-visual-item.is-rain {
  width: 1px;
  height: var(--len, 18px);
  border-radius: 999px;
  background: rgba(255,255,255,var(--alpha,0.74));
  transform: rotate(8deg);
  animation: chatOfflineRainFall var(--dur, 1.2s) linear var(--delay, 0s) infinite;
}

@keyframes chatOfflineSnowFall {
0% { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
    10% { opacity: var(--alpha, 0.82); }
    48% { transform: translate3d(var(--drift, 18px), 50vh, 0) rotate(calc(var(--spin, 90deg) * 0.52)); }
    100% { transform: translate3d(calc(var(--drift, 18px) * -0.45), 112vh, 0) rotate(var(--spin, 90deg)); opacity: 0; }
}

@keyframes chatOfflineRainFall {
0% { transform: translate3d(0, -12vh, 0) rotate(8deg); opacity: 0; }
    12% { opacity: var(--alpha, 0.74); }
    100% { transform: translate3d(var(--drift, -12px), 112vh, 0) rotate(8deg); opacity: 0; }
}

.chat-app-page.offline-open .chat-offline-view {
  background-color: #FCFBF7;
}

.chat-app-page.offline-open .chat-offline-head {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  border: 0;
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
}

.chat-app-page.offline-open .chat-offline-stage {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  border: 0;
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
}

.chat-app-page.offline-open .chat-offline-timeline {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  border: 0;
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
}

.chat-app-page.offline-open .chat-offline-composer {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  border: 0;
  -webkit-backdrop-filter: var(--chat-clear-glass-filter);
  backdrop-filter: var(--chat-clear-glass-filter);
}

.chat-app-page.offline-open::before {
  background: none;
  opacity: 0;
  content: none;
  display: none;
}

.chat-app-page.offline-open .chat-offline-head::before {
  content: none;
  display: none;
}

.chat-app-page.offline-open .chat-offline-head::after {
  content: none;
  display: none;
}

.chat-app-page.offline-open .chat-offline-composer::before {
  content: none;
  display: none;
}

.chat-app-page.offline-open .chat-offline-composer::after {
  content: none;
  display: none;
}

.chat-app-page.offline-open .chat-offline-stage::before {
  content: none;
  display: none;
}

.chat-app-page.offline-open .chat-offline-stage::after {
  content: none;
  display: none;
}

.chat-offline-head {
  position: relative;
  z-index: 6;
  display: block;
  width: 100%;
  min-height: 106px;
  background: transparent;
}

.chat-offline-head::after {
  display: none;
  content: none;
}

.chat-offline-left {
  min-width: 0;
  display: grid;
  grid-template-columns: 153px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 10px;
  text-align: left;
  padding-top: 2px;
}

.chat-offline-left-controls {
  display: none;
}

.chat-offline-day-ring {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #343941;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 90px;
  justify-self: start;
  align-self: start;
}

.chat-offline-day-ring:active {
  transform: scale(0.97);
}

.chat-offline-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.chat-offline-ring-track {
  fill: none;
  stroke-width: 12;
  stroke: rgba(52,57,65,0.10);
}

.chat-offline-ring-progress {
  fill: none;
  stroke-width: 12;
  stroke: #343941;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
}

.chat-offline-ring-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.chat-offline-ring-core strong {
  display: block;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #2F333A;
}

.chat-offline-ring-core em {
  display: block;
  font-style: normal;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(52,57,65,0.46);
  white-space: nowrap;
}

.chat-offline-date-stack {
  min-width: 0;
  min-height: 0;
  height: 101px;
  display: grid;
  justify-items: end;
  align-content: end;
  align-self: center;
  gap: 4px;
  padding-top: 0;
  text-align: right;
}

.chat-offline-archive-title {
  display: block;
  max-width: 100%;
  color: #4a4e59;
  font-family: "Georgia", serif;
  font-size: 20px;
  line-height: 1.02;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.chat-offline-date-year {
  display: none;
}

.chat-offline-date-line {
  display: block;
  max-width: 100%;
  color: #2F333A;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 19px;
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.chat-offline-date-month {
  display: none;
  font-size: 16px;
  color: rgba(47,51,58,0.82);
}

.chat-offline-date-day {
  display: none;
  font-size: 16px;
  color: rgba(47,51,58,0.82);
}

.chat-offline-date-week {
  display: none;
  margin-bottom: 1px;
  max-width: 100%;
  margin-top: 0;
  color: rgba(52,57,65,0.54);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 15px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-offline-season-copy {
  display: block;
  max-width: 100%;
  margin-top: 0;
  color: #343941;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.chat-offline-location {
  display: none;
  max-width: 100%;
  margin-top: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: rgba(52,57,65,0.50);
  font-size: 11px;
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-align: right;
}

.chat-offline-location svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: currentColor;
  stroke: none;
}

.chat-offline-location em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.chat-offline-person {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 0;
  padding: 0;
}

.chat-offline-person::before {
  display: none;
  content: none;
}

.chat-offline-person-main {
  position: relative;
  width: 153px;
  height: 101px;
  min-width: 153px;
  max-width: 100%;
}

.chat-offline-person-main-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.chat-offline-avatar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 101px;
  height: 101px;
  border-radius: 0;
  background: #E9EAEC;
  color: rgba(52,57,65,0.54);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 16px;
  line-height: 1;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(76,72,64,0.06), 0 0 0 1px rgba(52,57,65,0.03);
  overflow: hidden;
}

.chat-offline-avatar.has-image {
  color: transparent;
}

.chat-offline-vinyl {
  position: absolute;
  right: 0;
  top: 0;
  width: 101px;
  height: 101px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #E6DDCF 0 5%, #2B2F36 6% 9%, #050608 10% 12%, transparent 13%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.045) 0 1px, rgba(0,0,0,0.0) 1px 3px, rgba(255,255,255,0.025) 3px 4px, rgba(0,0,0,0.0) 4px 6px),
        conic-gradient(from 180deg at 50% 50%, #0B0C0F 0%, #1A1D23 11%, #050608 24%, #2B3037 36%, #07080B 49%, #181B21 62%, #040507 73%, #30343B 86%, #090A0D 100%);
  box-shadow: 0 10px 22px rgba(76,72,64,0.08), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.chat-offline-vinyl::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 0 0 8px rgba(0,0,0,0.11),
        inset 0 0 0 16px rgba(255,255,255,0.03),
        inset 0 0 0 26px rgba(0,0,0,0.13);
}

.chat-offline-vinyl::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 13px;
  width: 42px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.22), rgba(255,255,255,0.0));
  filter: blur(0.2px);
  transform: rotate(-24deg);
}

.chat-offline-vinyl-groove {
  position: absolute;
  pointer-events: none;
  inset: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04),
        inset 0 0 0 10px rgba(0,0,0,0.08),
        inset 0 0 0 19px rgba(255,255,255,0.02);
  opacity: 0.88;
}

.chat-offline-vinyl-label {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  inset: 34px;
  background: radial-gradient(circle, #F6F0E5 0 18%, #DCCDB6 19% 54%, #AA9170 55% 64%, #2B2F36 65% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10);
}

.chat-offline-accent-row {
  display: none;
}

.chat-offline-accent-swatch {
  display: none;
}

.chat-offline-mode-pill {
  margin-top: 4px;
  align-self: end;
  justify-self: end;
  width: auto;
  max-width: 100%;
  min-height: 31px;
  padding: 1px 2px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 10px 22px rgba(76,72,64,0.045), inset 0 0 0 1px rgba(52,57,65,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  overflow: visible;
  transition: box-shadow .24s ease;
}

.chat-offline-mode-pill button {
  position: relative;
  width: 29px;
  height: 29px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #FFFFFF;
  color: rgba(52,57,65,0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform .18s ease, color .2s ease, background .2s ease, opacity .2s ease;
}

.chat-offline-mode-pill button::after {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 4px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(52,57,65,0.28);
  opacity: 0;
  transform: translateX(-50%);
}

.chat-offline-mode-pill button.is-active {
  background: transparent;
  color: rgba(52,57,65,0.62);
}

.chat-offline-mode-pill button.is-active::after {
  opacity: 0.72;
}

.chat-offline-mode-pill button[data-offline-visual="settings"] {
  color: rgba(52,57,65,0.62);
}

.chat-offline-mode-pill button[data-offline-visual="star"] {
  color: rgba(52,57,65,0.62);
}

.chat-offline-mode-pill button[data-offline-visual="snow"] {
  color: rgba(52,57,65,0.62);
}

.chat-offline-mode-pill button[data-offline-visual="rain"] {
  color: rgba(52,57,65,0.62);
}

.chat-offline-mode-pill button[data-offline-visual="music"] {
  color: rgba(52,57,65,0.62);
}

.chat-offline-mode-pill button:active {
  transform: translateY(1px) scale(0.94);
  background: transparent;
}

.chat-offline-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: block;
  pointer-events: auto;
  background: transparent;
}

.chat-offline-scene-card {
  border: 0;
  border-radius: 28px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 10px 25px rgba(76,72,64,0.045);
  min-height: 132px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: radial-gradient(circle at 84% 18%, rgba(216,226,241,0.24), transparent 28%),
        linear-gradient(148deg, rgba(255,255,255,0.94), rgba(247,248,251,0.92));
}

.chat-offline-kicker {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(52,57,65,0.42);
  text-transform: uppercase;
}

.chat-offline-note-card span {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(52,57,65,0.42);
  text-transform: uppercase;
}

.chat-offline-scene-card h2 {
  margin: 12px 0 8px;
  max-width: 278px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(25px, 7vw, 36px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #2F333A;
}

.chat-offline-scene-card p {
  margin: 0;
  color: rgba(52,57,65,0.60);
  font-size: 13px;
  line-height: 1.64;
}

.chat-offline-memory-card {
  border: 0;
  border-radius: 28px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 10px 25px rgba(76,72,64,0.045);
  display: none;
}

.chat-offline-memory-head {
  display: none;
}

.chat-offline-memory-head span {
  display: none;
}

.chat-offline-memory-head em {
  display: none;
  letter-spacing: 0.12em;
}

.chat-offline-timeline {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: max(142px, calc(env(safe-area-inset-top) + 130px)) 0 max(120px, calc(env(safe-area-inset-bottom) + 104px));
  scroll-padding-top: max(142px, calc(env(safe-area-inset-top) + 130px));
  scroll-padding-bottom: max(120px, calc(env(safe-area-inset-bottom) + 104px));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
}

.chat-offline-load-more {
  width: calc(100% - 40px);
  margin: 0 auto 2px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(52,57,65,0.48);
  font-size: 11px;
  letter-spacing: 0.06em;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.chat-offline-timeline::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.chat-offline-record {
  position: relative;
  width: min(340px, calc(100% - 40px));
  max-width: min(340px, calc(100% - 40px));
  min-height: max-content;
  height: auto;
  margin: 0 auto;
  padding: 18px 18px 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(76,72,64,0.07), inset 0 0 0 1px rgba(76,72,64,0.055);
  color: rgba(31,36,42,0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.chat-offline-record:active {
  transform: none;
  box-shadow: none;
}

.chat-offline-record.is-loading {
  pointer-events: none;
  opacity: .82;
}

.chat-offline-record.is-loading .chat-offline-record-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  text-align: center;
}

.chat-offline-record.is-loading .chat-offline-typing-dot {
  flex: 0 0 auto;
}

.chat-offline-typing-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 3px;
  border-radius: 50%;
  background: rgba(52,57,65,0.38);
  animation: chatOfflineTypingDot 1.15s ease-in-out infinite;
}

.chat-offline-typing-dot:nth-child(2) {
  animation-delay: .16s;
}

.chat-offline-typing-dot:nth-child(3) {
  animation-delay: .32s;
}

@keyframes chatOfflineTypingDot {
0%, 100% { transform: translateY(0); opacity: .35; }
    45% { transform: translateY(-3px); opacity: .85; }
}

.chat-offline-record > * {
  position: relative;
  z-index: 1;
}

.chat-offline-record::before {
  content: "";
  display: none;
}

.chat-offline-record::after {
  content: attr(data-watermark);
  position: absolute;
  right: 18px;
  bottom: 28px;
  z-index: 0;
  color: rgba(52,57,65,0.016);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
  font-style: italic;
  letter-spacing: -0.035em;
  pointer-events: none;
}

.chat-offline-record.is-me {
  background: rgba(255,255,255,0.88);
}

.chat-offline-record.is-ta {
  background: rgba(255,255,255,0.88);
}

.chat-offline-record-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #ECECEC;
  color: rgba(52,57,65,0.56);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 13px;
  line-height: 1;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 16px rgba(76,72,64,0.06), inset 0 0 0 1px rgba(52,57,65,0.03);
  overflow: hidden;
}

.chat-offline-record-avatar.has-image {
  color: transparent;
}

.chat-offline-record-name {
  display: block;
  margin: 0;
  color: #343941;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.chat-offline-record-time {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 1px 0 4px;
  color: rgba(52,57,65,0.44);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-offline-record-time::before {
  content: none;
  display: none;
}

.chat-offline-record-time::after {
  content: none;
  display: none;
}

.chat-offline-record-time-block {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chat-offline-record-floor-block {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chat-offline-record-time-block::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: rgba(52,57,65,0.11);
  flex: 0 0 3px;
}

.chat-offline-record-floor-block::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: rgba(52,57,65,0.11);
  flex: 0 0 3px;
}

.chat-offline-record-time-divider {
  width: 12px;
  height: 1px;
  background: rgba(52,57,65,0.10);
  flex: 0 0 12px;
}

.chat-offline-record-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 36px;
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.72;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: rgba(31,36,42,0.82);
  text-align: left;
  white-space: normal;
}

.chat-offline-record-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.chat-offline-record-line {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.chat-offline-record-line.is-action {
  color: rgba(52,57,65,0.56);
  font-size: 12px;
  line-height: 1.74;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: italic;
}

.chat-offline-record-line.is-speak {
  color: rgba(31,36,42,0.88);
  font-size: 13px;
  line-height: 1.74;
  font-weight: 500;
}

.chat-offline-record-line.is-text {
  color: rgba(31,36,42,0.78);
  font-size: 13px;
  line-height: 1.74;
}

.chat-offline-record-brand {
  position: relative;
  margin-top: 10px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(52,57,65,0.32);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-offline-record-brand::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 4px;
  flex: 0 0 22px;
  background: linear-gradient(90deg, rgba(52,57,65,0) 0%, rgba(52,57,65,0.08) 100%) left center / 14px 1px no-repeat,
        linear-gradient(rgba(52,57,65,0.11), rgba(52,57,65,0.11)) right center / 3px 3px no-repeat;
}

.chat-offline-record-brand::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 4px;
  flex: 0 0 22px;
  background: linear-gradient(rgba(52,57,65,0.11), rgba(52,57,65,0.11)) left center / 3px 3px no-repeat,
        linear-gradient(90deg, rgba(52,57,65,0.08) 0%, rgba(52,57,65,0) 100%) right center / 14px 1px no-repeat;
}

.chat-offline-empty {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  text-align: center;
  padding: 16px 12px;
  color: rgba(52,57,65,0.42);
  font-size: 12px;
  line-height: 1.7;
}

.chat-offline-empty.show {
  display: block;
}

.chat-thread-bubble.is-offline-memory {
  background: #FCFCFE;
  color: rgba(47,51,58,0.88);
  box-shadow: 0 7px 18px rgba(75,66,52,0.055), inset 0 0 0 1px rgba(80,72,60,0.04);
  border-radius: 16px;
  padding: 10px 12px;
}

.chat-thread-offline-card {
  width: min(220px, 58vw);
  display: grid;
  gap: 7px;
}

.chat-thread-offline-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(52,57,65,0.48);
}

.chat-thread-offline-text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(31,36,42,0.86);
  word-break: break-word;
}

.chat-thread-offline-place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(52,57,65,0.44);
  font-size: 11px;
  line-height: 1.2;
}

.chat-thread-offline-place svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.chat-offline-note-card {
  border: 0;
  border-radius: 28px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 10px 25px rgba(76,72,64,0.045);
  padding: 15px 17px 17px;
}

.chat-offline-note-card p {
  margin: 0;
  color: rgba(52,57,65,0.60);
  font-size: 13px;
  line-height: 1.64;
  margin-top: 8px;
}

.chat-offline-composer {
  left: 0;
  right: 0;
  bottom: var(--one-visual-bottom-gap, 0px);
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  padding: 8px 20px var(--chat-composer-bottom-gap, 20px);
  align-items: end;
}

.chat-offline-composer::before {
  content: none;
  display: none;
}

.chat-offline-composer > .chat-offline-input {
  grid-column: 1;
  grid-row: 2;
}

.chat-offline-composer > .chat-offline-sendbar {
  grid-column: 2;
  grid-row: 2;
}

.chat-offline-continue svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
  stroke: none;
}

.chat-offline-send.chat-thread-send.footer-btn-side .fas {
  font-size: 18px;
  line-height: 1;
  color: #000000;
}

.chat-offline-send.chat-thread-send.footer-btn-side:active {
  background: #FFFFFF;
  transform: none;
  opacity: 0.82;
}

.chat-offline-input {
  min-height: 50px;
  max-height: 100px;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 20px;
}

.chat-offline-input.is-multiline {
  border-radius: 22px;
  overflow-y: auto;
}

.chat-offline-input::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.chat-offline-brand {
  display: none;
}

.chat-app-page.thread-settings-open .chat-bottom-dock {
  display: none;
}

.chat-thread-settings-view.active ~ .chat-bottom-dock {
  display: none;
}

.chat-thread-settings-view {
  padding: max(38px, calc(env(safe-area-inset-top) + 22px)) 24px max(44px, calc(env(safe-area-inset-bottom) + 38px));
  background: radial-gradient(circle at 10% 3%, rgba(240, 233, 221, 0.20), transparent 24%),
        radial-gradient(circle at 88% 1%, rgba(221, 228, 233, 0.10), transparent 20%),
        linear-gradient(180deg, #FFFFFF 0%, #FCFBF9 76%, #F9F7F3 100%);
  color: #2F333A;
  overflow-x: hidden;
}

.chat-setting-head {
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}

.chat-setting-title {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.chat-setting-block {
  position: relative;
  margin: 0 0 34px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(47,51,58,0.07);
}

.chat-setting-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 40px;
  height: 1px;
  background: rgba(47,51,58,0.13);
}

.chat-setting-block-head {
  position: relative;
  display: block;
  margin: 0 0 18px;
  min-height: 56px;
}

.chat-setting-block-head > div {
  position: relative;
  z-index: 1;
}

.chat-setting-block-no {
  position: absolute;
  right: 0;
  top: -10px;
  z-index: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  color: rgba(47,51,58,0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 0.88;
  font-style: italic;
  letter-spacing: -0.035em;
  pointer-events: none;
  user-select: none;
}

.chat-setting-block-head strong {
  display: block;
  margin: 0 0 5px;
  color: #30353C;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.chat-setting-block-head p {
  margin: 0;
  color: rgba(47,51,58,0.42);
  font-size: 12px;
  line-height: 1.65;
}

.chat-setting-avatar-line {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 0 4px;
}

.chat-setting-avatar-card {
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #333941;
}

.chat-setting-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.26)),
        #F0F2EE;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.88),
        0 12px 28px rgba(80,75,67,0.08);
  color: rgba(63,75,82,0.45);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
}

.chat-setting-avatar.has-image {
  color: transparent;
}

.chat-setting-avatar-card em {
  color: rgba(47,51,58,0.34);
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chat-setting-link-mark {
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-setting-link-mark::before {
  content: "";
  width: 38px;
  height: 1px;
  background: rgba(47,51,58,0.10);
}

.chat-setting-link-mark span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(47,51,58,0.12);
  background: #FFFFFF;
  left: 5px;
}

.chat-setting-link-mark i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(47,51,58,0.12);
  background: #FFFFFF;
  right: 5px;
}

.chat-setting-inline-fields {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.chat-setting-editors {
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.chat-setting-field {
  display: grid;
  gap: 9px;
}

.chat-setting-field > span {
  color: rgba(47,51,58,0.38);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.chat-setting-option-title {
  color: rgba(47,51,58,0.38);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.chat-setting-field input {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 0 12px;
  background: transparent;
  border-bottom: 1px solid rgba(47,51,58,0.10);
  color: #2F333A;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.chat-setting-field select {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 0 12px;
  background: transparent;
  border-bottom: 1px solid rgba(47,51,58,0.10);
  color: #2F333A;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.chat-setting-field textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 0 12px;
  background: transparent;
  border-bottom: 1px solid rgba(47,51,58,0.10);
  color: #2F333A;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  min-height: 110px;
  resize: vertical;
}

.chat-setting-field input:focus {
  border-bottom-color: rgba(47,51,58,0.28);
}

.chat-setting-field textarea:focus {
  border-bottom-color: rgba(47,51,58,0.28);
}

.chat-setting-field select:focus {
  border-bottom-color: rgba(47,51,58,0.28);
}

.chat-setting-list {
  display: grid;
  counter-reset: chat-setting-row;
}

.chat-setting-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(47,51,58,0.07);
}

.chat-setting-row div {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 16px 0;
}

.chat-setting-row div::before {
  counter-increment: chat-setting-row;
  content: counter(chat-setting-row, decimal-leading-zero);
  color: rgba(47,51,58,0.18);
  font-family: "Courier New", monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.chat-setting-row strong {
  color: #333941;
  font-size: 15px;
  line-height: 1.16;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.chat-setting-row span {
  color: rgba(47,51,58,0.42);
  font-size: 11px;
  line-height: 1.56;
}

.chat-setting-switch {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.chat-setting-expand {
  display: none;
  padding: 18px 0 22px 0;
  border-bottom: 1px solid rgba(47,51,58,0.07);
  gap: 16px;
}

.chat-setting-expand.show {
  display: grid;
}

.chat-setting-language-grid {
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.chat-setting-list-summary {
  margin-bottom: 16px;
}

.chat-setting-run {
  border: 0;
  min-width: 58px;
  height: 32px;
  border-radius: 999px;
  padding: 0 16px;
  background: #3E434B;
  color: #FFFFFF;
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 18px rgba(47,51,58,0.12);
}

.chat-setting-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 2px;
}

.chat-setting-stats div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 10px;
  border-top: 1px solid rgba(47,51,58,0.08);
}

.chat-setting-stats span {
  color: rgba(47,51,58,0.36);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.chat-setting-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #30353C;
}

.chat-setting-poke-grid {
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

@media (max-width: 360px) {
  .chat-quickbar {
  width: min(318px, calc(100vw - 16px));
  }

  .chat-quickbar-page button span {
  font-size: 10px;
  }

  .chat-quickbar-page button em {
  font-size: 8px;
  }

  .chat-offline-view {
  padding-left: 16px;
  padding-right: 16px;
  }

  .chat-offline-head {
  min-height: 100px;
  }

  .chat-offline-left {
  grid-template-columns: 131px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  }

  .chat-offline-date-stack {
  min-height: 0;
  height: 87px;
  justify-items: end;
  text-align: right;
  align-content: end;
  align-self: center;
  gap: 6px;
  }

  .chat-offline-date-week {
  font-size: 14px;
  }

  .chat-offline-season-copy {
  font-size: 11px;
  line-height: 1.16;
  }

  .chat-offline-location {
  display: none;
  font-size: 10px;
  gap: 6px;
  }

  .chat-offline-person-main {
  width: 131px;
  min-width: 131px;
  height: 87px;
  }

  .chat-offline-avatar {
  width: 87px;
  height: 87px;
  top: 0;
  }

  .chat-offline-vinyl {
  width: 87px;
  height: 87px;
  }

  .chat-offline-vinyl-label {
  inset: 29px;
  }

  .chat-offline-mode-pill {
  justify-self: end;
  justify-content: flex-end;
  width: auto;
  min-height: 29px;
  padding: 1px 2px;
  gap: 1px;
  }

  .chat-offline-mode-pill button {
  width: 25px;
  height: 27px;
  }

  .chat-offline-mode-pill svg {
  width: 15px;
  height: 15px;
  }

  .chat-offline-mode-pill .chat-offline-snow-svg {
  width: 15px;
  height: 15px;
  }

  .chat-offline-stage {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  }

  .chat-offline-scene-card {
  border-radius: 26px;
  padding: 20px 18px;
  min-height: 126px;
  }

  .chat-offline-timeline {
  padding-top: max(134px, calc(env(safe-area-inset-top) + 122px));
  padding-bottom: max(108px, calc(env(safe-area-inset-bottom) + 92px));
  scroll-padding-top: max(134px, calc(env(safe-area-inset-top) + 122px));
  scroll-padding-bottom: max(108px, calc(env(safe-area-inset-bottom) + 92px));
  gap: 22px;
  }

  .chat-offline-record {
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  padding: 18px 18px 22px;
  border-radius: 26px;
  }

  .chat-offline-record-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 12px;
  }

  .chat-offline-record-name {
  font-size: 10px;
  }

  .chat-offline-record-time {
  font-size: 9px;
  }

  .chat-offline-record-time-block {
  gap: 4px;
  }

  .chat-offline-record-floor-block {
  gap: 4px;
  }

  .chat-offline-record-time-block::before {
  width: 2px;
  height: 2px;
  flex-basis: 2px;
  }

  .chat-offline-record-floor-block::after {
  width: 2px;
  height: 2px;
  flex-basis: 2px;
  }

  .chat-offline-record-time-divider {
  width: 8px;
  flex-basis: 8px;
  }

  .chat-offline-record-text {
  font-size: 12px;
  line-height: 1.58;
  }

  .chat-offline-composer {
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 10px;
  padding-left: 18px;
  padding-right: 18px;
  }

  .chat-offline-sendbar {
  height: 50px;
  grid-template-columns: 45px 45px;
  }

  .chat-offline-continue svg {
  width: 22px;
  height: 22px;
  }

  .chat-thread-settings-view {
  padding-left: 18px;
  padding-right: 18px;
  }

  .chat-setting-block-head {
  min-height: 50px;
  }

  .chat-setting-block-no {
  font-size: 52px;
  top: -8px;
  }

  .chat-setting-avatar {
  width: 74px;
  height: 74px;
  }

  .chat-setting-link-mark {
  height: 74px;
  }

  .chat-setting-language-grid {
  grid-template-columns: 1fr;
  }

  .chat-setting-stats {
  grid-template-columns: 1fr;
  }

  .chat-setting-poke-grid {
  grid-template-columns: 1fr;
  }
}

.chat-assets-bill-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(150,158,168,0.12);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chat-assets-bill-item:active {
  opacity: 0.62;
  transform: translateY(1px);
}

.chat-bill-detail-dialog {
  max-width: min(360px, calc(100vw - 44px));
}

.chat-bill-detail-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-bill-detail-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-bill-detail-head span {
  color: #A9B0BA;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.chat-bill-detail-head strong {
  color: #424954;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.chat-bill-detail-head em {
  color: #929AA6;
  font-size: 12px;
  line-height: 1.5;
  font-style: normal;
}

.chat-bill-detail-amount {
  align-self: flex-start;
  color: #4E5661;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.chat-bill-detail-amount.is-in {
  color: #556B5E;
}

.chat-bill-detail-amount.is-out {
  color: #7A5D56;
}

.chat-bill-detail-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(150,158,168,0.14);
}

.chat-bill-detail-lines div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(150,158,168,0.12);
  align-items: baseline;
}

.chat-bill-detail-lines span {
  color: #A5ADB8;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chat-bill-detail-lines strong {
  min-width: 0;
  color: #515A66;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

.phone-app-page {
  display: none;
  --phone-bg: #ffffff;
  --phone-card: #ffffff;
  --phone-ink: #1a1a1a;
  --phone-muted: rgba(26, 26, 26, 0.42);
  --phone-faint: rgba(26, 26, 26, 0.08);
  --phone-line: rgba(26, 26, 26, 0.08);
  --phone-soft: rgba(26, 26, 26, 0.035);
  --phone-soft-2: rgba(26, 26, 26, 0.055);
  position: fixed;
  inset: 0;
  z-index: 9010;
  overflow: hidden;
  background: #ffffff;
  color: var(--phone-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.19, 1, 0.22, 1);
  isolation: isolate;
  font-family: var(--phone-font-ui, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Noto Sans SC", sans-serif);
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  min-height: 0;
  height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
  max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
}

.phone-app-page.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.phone-app-page button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.phone-app-page input {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.phone-view {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: max(48px, calc(env(safe-area-inset-top) + 34px)) 25px max(118px, calc(env(safe-area-inset-bottom) + 110px));
}

.phone-view::-webkit-scrollbar {
  display: none;
}

.phone-view.active {
  display: block;
}

.phone-view[data-phone-view="keypad"] {
  overflow: hidden;
  padding: 0 25px max(86px, calc(env(safe-area-inset-bottom) + 78px));
  background: #ffffff;
}

.phone-view[data-phone-view="keypad"].active {
  display: block;
}

.phone-view[data-phone-view="keypad"] .phone-match-card:not(.show) {
  min-height: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.phone-view-head {
  margin-bottom: 22px;
}

.phone-view-head--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.phone-title-btn {
  display: block;
  border: 0;
  background: transparent;
  color: var(--one-quality-soft-ink, #211F1C);
  padding: 0;
  margin: 0;
  font-size: 28px;
  line-height: 1.04;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.025em;
  text-align: left;
  cursor: pointer;
}

.phone-title-meta {
  margin-top: 10px;
  color: var(--phone-muted);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.phone-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--phone-line);
  margin-bottom: 12px;
}

.phone-segment button {
  position: relative;
  border: 0;
  background: transparent;
  height: 38px;
  color: rgba(26,26,26,0.34);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.phone-segment button.active {
  color: var(--phone-ink);
}

.phone-segment button.active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--phone-ink);
}

.phone-recents-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-recent-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--phone-ink);
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,26,26,0.06);
  text-align: left;
}

.phone-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--phone-card);
  border: 1px solid rgba(26,26,26,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,26,26,0.42);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.phone-contact-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--phone-card);
  border: 1px solid rgba(26,26,26,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,26,26,0.42);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.phone-row-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-row-icon.missed {
  color: #c7554f;
}

.phone-recent-row.missed .phone-row-name {
  color: #c7554f;
}

.phone-row-main {
  min-width: 0;
}

.phone-row-name {
  display: block;
  color: var(--phone-ink);
  font-size: 16px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-row-sub {
  display: block;
  color: rgba(26,26,26,0.38);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0px;
}

.phone-row-side {
  color: rgba(26,26,26,0.34);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  letter-spacing: 0.04em;
}

.phone-contact-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--phone-ink);
  min-height: 62px;
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,26,26,0.06);
  text-align: left;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.phone-contact-call {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.phone-contact-call svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

.phone-search-wrap {
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(26,26,26,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  margin-bottom: 18px;
}

.phone-search-wrap svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: rgba(26,26,26,0.32);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-search-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--phone-ink);
  font-size: 16px;
}

.phone-search-wrap input::placeholder {
  color: rgba(26,26,26,0.26);
}

.phone-empty-state {
  display: none;
  min-height: 310px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: rgba(26,26,26,0.34);
  gap: 8px;
}

.phone-empty-state.show {
  display: flex;
}

.phone-empty-state svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: rgba(26,26,26,0.16);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 8px;
}

.phone-empty-state strong {
  color: rgba(26,26,26,0.5);
  font-size: 16px;
  font-weight: 500;
}

.phone-empty-state span {
  font-size: 12px;
}

.phone-keypad-stage {
  height: calc(100svh - max(72px, calc(env(safe-area-inset-bottom) + 62px)));
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 170px;
  padding-bottom: 18px;
  box-sizing: border-box;
}

.phone-match-card {
  min-height: 58px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--phone-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  margin-bottom: 10px;
}

.phone-match-card.show {
  min-height: 54px;
  opacity: 1;
  pointer-events: auto;
}

.phone-match-card strong {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.phone-match-card span {
  margin-top: 4px;
  color: rgba(26,26,26,0.36);
  font-size: 12px;
}

.phone-number-display {
  min-height: 46px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--phone-ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.phone-number-display.is-placeholder {
  color: rgba(26,26,26,0.17);
  font-size: 21px;
  letter-spacing: 0.02em;
}

.phone-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 34px;
  margin: 12px 22px 18px;
}

.phone-keypad-key {
  border: 0;
  background: transparent;
  height: 52px;
  color: var(--phone-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  transition: background 0.16s ease, transform 0.16s ease;
}

.phone-keypad-key:active {
  background: rgba(255,255,255,0.62);
  transform: scale(0.96);
}

.phone-keypad-key strong {
  font-size: 29px;
  font-weight: 300;
  line-height: 0.92;
}

.phone-keypad-key span {
  margin-top: 7px;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(26,26,26,0.28);
  min-height: 9px;
}

.phone-keypad-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 4px 40px 0;
}

.phone-call-main {
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(26,26,26,0.12);
  transition: transform 0.16s ease;
}

.phone-call-main:active {
  transform: scale(0.95);
}

.phone-call-main svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
}

.phone-delete-key {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: rgba(26,26,26,0.36);
  opacity: 0;
  pointer-events: none;
}

.phone-delete-key.show {
  opacity: 1;
  pointer-events: auto;
}

.phone-delete-key svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-bottom-nav {
  position: absolute;
  z-index: 3;
  left: 26px;
  right: 26px;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 18px));
  height: 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  pointer-events: auto;
  background: transparent;
}

.phone-bottom-nav button {
  position: relative;
  width: 42px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(26,26,26,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.phone-bottom-nav button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translateX(-50%) scale(0.65);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.phone-bottom-nav button.active {
  background: transparent;
  color: #1a1a1a;
  transform: none;
}

.phone-bottom-nav button.active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.phone-bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-voicemail-generate {
  border: 0;
  border-left: 1px solid rgba(26,26,26,0.12);
  background: transparent;
  color: rgba(26,26,26,0.52);
  margin-top: 4px;
  padding: 4px 0 4px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.phone-voicemail-generate:active {
  color: #1a1a1a;
}

.phone-voicemail-card {
  margin-top: 42px;
  min-height: 250px;
  border-radius: 30px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(26,26,26,0.05);
  padding: 28px 24px;
  color: var(--phone-ink);
}

.phone-tape-mark {
  height: 82px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(26,26,26,0.06), rgba(255,255,255,0.9));
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 22px;
}

.phone-tape-mark span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(26,26,26,0.08);
  box-shadow: inset 0 0 0 9px rgba(26,26,26,0.035);
}

.phone-voicemail-card strong {
  display: block;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 10px;
}

.phone-voicemail-card p {
  margin: 0;
  color: rgba(26,26,26,0.42);
  font-size: 13px;
  line-height: 1.8;
}

.phone-call-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--phone-ink);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.24s ease, transform 0.34s cubic-bezier(0.19, 1, 0.22, 1);
}

.phone-call-layer.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.phone-call-layer::before {
  content: none;
  display: none;
}

.phone-call-topline span::before {
  content: none;
  display: none;
}

.phone-call-chat::before {
  content: none;
  display: none;
}

.phone-call-topline {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(25px, calc(env(safe-area-inset-top) + 14px)) 22px 8px;
  color: rgba(26,26,26,0.34);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.phone-call-topline span {
  display: inline;
  padding-left: 0;
}

.phone-call-topline button {
  width: 32px;
  min-width: 0;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(26,26,26,0.04);
  color: rgba(26,26,26,0.55);
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.phone-call-identity {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  margin: 0;
  padding: 14px 26px 12px;
  border: 0;
  text-align: center;
}

.phone-call-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  font-size: 30px;
  background: #ffffff;
  color: rgba(26,26,26,0.16);
  margin: 0 0 18px;
  border: 1px solid rgba(26,26,26,0.04);
  box-shadow: none;
}

.phone-call-avatar.has-image {
  color: transparent;
  border-radius: 50%;
}

.phone-call-identity h2 {
  margin: 0 0 8px;
  max-width: 100%;
  color: var(--phone-ink);
  font-size: 38px;
  line-height: 0.98;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.025em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-call-status {
  margin-top: 0;
  padding-left: 0;
  color: rgba(26,26,26,0.38);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.phone-call-status::before {
  content: none;
  display: none;
}

.phone-call-status.is-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fc76f;
  margin-right: 8px;
  vertical-align: 1px;
  animation: phonePulse 1.1s ease-in-out infinite;
}

@keyframes phonePulse {
50% { opacity: .35; transform: scale(.78); }
}

.phone-call-chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 26px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-call-chat::-webkit-scrollbar {
  display: none;
}

.phone-call-bubble {
  max-width: 86%;
  width: fit-content;
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.58;
  word-break: break-word;
  box-shadow: none;
}

.phone-call-bubble.me {
  align-self: flex-end;
  background: #1a1a1a;
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.phone-call-bubble.ta {
  align-self: flex-start;
  background: rgba(26,26,26,0.035);
  color: rgba(26,26,26,0.64);
  border: 0;
  border-bottom-left-radius: 6px;
}

.phone-call-bubble.system {
  border: 0;
  border-bottom-left-radius: 6px;
  align-self: center;
  max-width: 92%;
  background: transparent;
  color: rgba(26,26,26,0.38);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.04em;
}

.phone-call-typing {
  width: 58px;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 11px 15px;
  border-radius: 22px;
  background: #ffffff;
}

.phone-call-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26,26,26,0.36);
  animation: phoneBounce 1s infinite ease-in-out;
}

.phone-call-typing i:nth-child(2) {
  animation-delay: .15s;
}

.phone-call-typing i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes phoneBounce {
50% { transform: translateY(-4px); opacity: .5; }
}

.phone-call-input {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  padding: 10px 28px 8px;
  opacity: 1;
}

.phone-call-input.show {
  display: grid;
}

.phone-call-input.is-disabled {
  opacity: .52;
}

.phone-call-input input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 18px;
  outline: none;
  background: rgba(26,26,26,0.035);
  color: var(--phone-ink);
  padding: 0 16px;
  box-shadow: none;
  font-size: 16px;
}

.phone-call-input input:disabled {
  color: rgba(26,26,26,0.28);
}

.phone-call-send {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.phone-call-send:disabled {
  background: rgba(26,26,26,0.12);
  color: rgba(26,26,26,0.32);
}

.phone-call-send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-call-controls {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding: 8px 32px max(30px, calc(env(safe-area-inset-bottom) + 18px));
}

.phone-call-side {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  color: rgba(26, 26, 26, 0.34);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: none;
  outline: 0;
}

.phone-hangup {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 8px;
  color: rgba(26, 26, 26, 0.34);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: none;
  outline: 0;
}

.phone-call-control-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.phone-call-side .phone-call-control-orb {
  width: 58px;
  height: 58px;
  background: rgba(26,26,26,0.035);
  color: #1a1a1a;
  border: 1px solid transparent;
}

.phone-hangup .phone-call-control-orb {
  width: 74px;
  height: 74px;
  background: #FF3B30;
  color: #ffffff;
  border: 0;
  box-shadow: 0 18px 32px rgba(255,59,48,0.20);
}

.phone-hangup:active .phone-call-control-orb {
  transform: scale(0.95);
}

.phone-call-side:active .phone-call-control-orb {
  transform: scale(0.95);
  background: #1a1a1a;
  color: #ffffff;
}

.phone-call-side.is-active .phone-call-control-orb {
  background: #1a1a1a;
  color: #ffffff;
}

.phone-speaker.is-muted .phone-call-control-orb {
  color: rgba(26,26,26,0.35);
}

#phoneSpeaker.is-muted .phone-call-control-orb {
  color: rgba(26,26,26,0.35);
}

.phone-call-side svg {
  box-sizing: border-box;
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.phone-hangup svg {
  box-sizing: border-box;
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
  transform: rotate(135deg);
}

.phone-call-control-label {
  color: rgba(26,26,26,0.30);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.phone-hangup span {
  color: rgba(26,26,26,0.30);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.phone-call-side span {
  color: rgba(26,26,26,0.30);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.phone-detail-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--phone-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity .22s ease, transform .28s cubic-bezier(.19, 1, .22, 1);
}

.phone-detail-layer.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.phone-detail-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: max(30px, calc(env(safe-area-inset-top) + 18px)) 24px 12px;
}

.phone-detail-back {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(26,26,26,0.04);
  color: rgba(26,26,26,0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.phone-detail-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-detail-head strong {
  display: block;
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.05em;
}

.phone-detail-head span {
  display: block;
  margin-top: 4px;
  color: rgba(26,26,26,0.34);
  font-size: 9px;
  letter-spacing: .24em;
}

.phone-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 25px max(24px, calc(env(safe-area-inset-bottom) + 18px));
  scrollbar-width: none;
}

.phone-detail-body::-webkit-scrollbar {
  display: none;
}

.phone-detail-hero {
  text-align: center;
  padding: 14px 0 22px;
}

.phone-detail-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 28px;
  background: rgba(26,26,26,0.035);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26,26,26,0.24);
  font-size: 28px;
}

.phone-detail-hero h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.025em;
}

.phone-detail-hero p {
  margin: 9px 0 0;
  color: rgba(26,26,26,0.38);
  font-size: 12px;
  letter-spacing: .08em;
}

.phone-detail-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(26,26,26,0.08);
  border-bottom: 1px solid rgba(26,26,26,0.08);
  margin-bottom: 18px;
}

.phone-detail-card div {
  min-width: 0;
  padding: 14px 8px;
  text-align: center;
}

.phone-detail-card div + div {
  border-left: 1px solid rgba(26,26,26,0.06);
}

.phone-detail-card span {
  display: block;
  color: rgba(26,26,26,0.34);
  font-size: 9px;
  letter-spacing: .24em;
}

.phone-detail-summary span {
  display: block;
  color: rgba(26,26,26,0.34);
  font-size: 9px;
  letter-spacing: .24em;
}

.phone-detail-transcript > span {
  display: block;
  color: rgba(26,26,26,0.34);
  font-size: 9px;
  letter-spacing: .24em;
}

.phone-detail-card strong {
  display: block;
  margin-top: 7px;
  color: rgba(26,26,26,0.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.phone-detail-summary {
  margin-top: 16px;
}

.phone-detail-transcript {
  margin-top: 16px;
}

.phone-detail-summary p {
  margin: 10px 0 0;
  color: rgba(26,26,26,0.58);
  font-size: 13px;
  line-height: 1.75;
}

.phone-detail-line {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: flex-start;
}

.phone-detail-line.me {
  flex-direction: row-reverse;
}

.phone-detail-line span {
  flex: 0 0 auto;
  color: rgba(26,26,26,0.32);
  font-size: 9px;
  letter-spacing: .18em;
  margin-top: 10px;
}

.phone-detail-line p {
  max-width: 74%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 16px;
  background: rgba(26,26,26,0.035);
  color: rgba(26,26,26,0.62);
  font-size: 12px;
  line-height: 1.55;
}

.phone-detail-line.me p {
  background: #1a1a1a;
  color: #ffffff;
}

.phone-detail-empty {
  margin-top: 10px;
  color: rgba(26,26,26,0.34);
  font-size: 12px;
}

.phone-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.phone-detail-actions button {
  height: 42px;
  border: 0;
  border-radius: 18px;
  background: rgba(26,26,26,0.045);
  color: rgba(26,26,26,0.68);
  font-size: 12px;
  letter-spacing: .08em;
}

.phone-detail-actions button:first-child {
  background: #1a1a1a;
  color: #ffffff;
}

.phone-voicemail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.phone-voicemail-item {
  border: 0;
  border-top: 1px solid rgba(26,26,26,0.07);
  background: transparent;
  text-align: left;
  padding: 13px 0 2px;
  color: var(--phone-ink);
}

.phone-voicemail-item span {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
}

.phone-voicemail-item em {
  float: right;
  color: rgba(26,26,26,0.34);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .08em;
}

.phone-voicemail-item p {
  clear: both;
  margin: 8px 0 0;
  color: rgba(26,26,26,0.54);
  font-size: 12px;
  line-height: 1.65;
}

html.one-phone-app-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.one-phone-app-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.show-phone-shell .phone-app-page {
  position: fixed;
  isolation: isolate;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: var(--one-shell-base-width, 390px);
  height: var(--one-shell-base-height, 912px);
  max-height: var(--one-shell-base-height, 912px);
  border-radius: calc(var(--one-shell-scale, 1) * 38px);
  overflow: hidden;
  transform: translate(-50%, -48%) scale(var(--one-shell-scale, 1));
  transform-origin: center center;
  background: #ffffff;
}

body.show-phone-shell .phone-app-page.show {
  transform: translate(-50%, -50%) scale(var(--one-shell-scale, 1));
}

body.show-phone-shell .phone-keypad-stage {
  height: calc(var(--one-shell-base-height, 912px) - 72px);
  padding-top: 170px;
}

body.show-phone-shell .phone-keypad-grid {
  gap: 50px 34px;
  margin: 12px 22px 18px;
}

body.show-phone-shell .phone-keypad-key {
  height: 52px;
  border-radius: 18px;
}

body.show-phone-shell .phone-bottom-nav {
  bottom: 18px;
}

body.shell-switching .phone-app-page {
  transition: none;
}

@media (max-height: 780px) {
  .phone-keypad-stage {
  padding-top: 128px;
  }

  body.show-phone-shell .phone-keypad-stage {
  padding-top: 128px;
  }

  .phone-keypad-grid {
  gap: 38px 28px;
  }

  body.show-phone-shell .phone-keypad-grid {
  gap: 38px 28px;
  }

  .phone-keypad-key {
  height: 48px;
  }

  body.show-phone-shell .phone-keypad-key {
  height: 48px;
  }
}

@media (max-height: 740px) {
  .chat-ta-schedule-view {
  padding-top: max(22px, calc(env(safe-area-inset-top) + 12px));
  }

  .chat-ta-schedule-top {
  margin-bottom: 8px;
  }

  .chat-ta-schedule-season {
  margin-top: 6px;
  }

  .chat-ta-schedule-divider {
  margin: 12px 0 14px;
  }

  .chat-ta-schedule-hero {
  min-height: 146px;
  margin-bottom: 14px;
  padding-top: 15px;
  padding-bottom: 12px;
  }

  .chat-ta-schedule-week {
  margin-top: 8px;
  }

  .chat-ta-schedule-split {
  margin-top: 8px;
  }

  .chat-ta-schedule-month-row {
  margin-top: 8px;
  }

  .phone-call-identity {
  padding-top: 12px;
  }

  .phone-call-avatar {
  width: 92px;
  height: 92px;
  margin-bottom: 14px;
  }

  .phone-call-identity h2 {
  font-size: 30px;
  }

  .phone-call-controls {
  gap: 28px;
  padding: 14px 30px max(28px, calc(env(safe-area-inset-bottom) + 22px));
  }

  .phone-call-side .phone-call-control-orb {
  width: 60px;
  height: 60px;
  }

  .phone-hangup .phone-call-control-orb {
  width: 74px;
  height: 74px;
  }
}

@media (max-height: 700px) {
  .phone-keypad-stage {
  padding-top: 94px;
  }

  body.show-phone-shell .phone-keypad-stage {
  padding-top: 94px;
  }

  .phone-keypad-grid {
  gap: 28px 24px;
  }

  body.show-phone-shell .phone-keypad-grid {
  gap: 28px 24px;
  }

  .phone-keypad-key strong {
  font-size: 27px;
  }

  .phone-call-identity {
  padding-top: 22px;
  }

  .phone-call-avatar {
  width: 68px;
  height: 68px;
  }

  .phone-call-controls {
  padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px));
  }
}

.chat-thread-row.is-quickbar-row::before {
  top: -6px;
  bottom: -6px;
  background: rgba(52, 56, 65, 0.14);
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  z-index: 0;
  border-radius: 20px;
  pointer-events: none;
  animation: chat-wallpaper-area-pulse 1.28s ease-in-out infinite;
}

.chat-thread-row.is-wallpaper-flash::before {
  top: -6px;
  bottom: -6px;
  background: rgba(52, 56, 65, 0.14);
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  z-index: 0;
  border-radius: 20px;
  pointer-events: none;
  animation: chat-wallpaper-area-pulse 1.28s ease-in-out infinite;
}

.chat-quickbar.is-page-first [data-chat-quick-nav="prev"] {
  visibility: hidden;
  pointer-events: none;
}

.chat-quickbar.is-page-second [data-chat-quick-nav="next"] {
  visibility: hidden;
  pointer-events: none;
}

.chat-thread-sendbar {
  height: 44px;
  border-radius: 999px;
  border: 0;
  display: grid;
  grid-template-columns: 48px 48px;
  align-items: center;
  overflow: hidden;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: auto;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(31, 36, 42, 0.055);
}
.chat-thread-emoji {
  width: 48px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  color: #000000;
}
.chat-thread-send {
  width: 48px;
  height: 44px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  color: #000000;
}
.chat-thread-send:active {
  background: rgba(0, 0, 0, 0.055);
}
.chat-thread-emoji:active {
  background: rgba(0, 0, 0, 0.055);
}
.chat-thread-view {
  --chat-bubble-ta: #ffffff;
  --chat-text-me: #ffffff;
  --chat-text-ta: #000000;
  --chat-bubble-radius-ta: 18px;
  --chat-bubble-radius-me: 18px;
  --chat-thread-font-size: 12px;
  --chat-avatar-display-ta: inline-flex;
  --chat-avatar-display-me: inline-flex;
  --chat-avatar-frame-display: block;
  --chat-avatar-ta-scale: 1;
  --chat-avatar-ta-x: 0px;
  --chat-avatar-ta-y: 0px;
  --chat-avatar-ta-rotate: 0deg;
  --chat-avatar-me-scale: 1;
  --chat-avatar-me-x: 0px;
  --chat-avatar-me-y: 0px;
  --chat-avatar-me-rotate: 0deg;
  padding: 0;
  overflow: hidden;
  color: var(--chat-ink);
  background: transparent;
  isolation: isolate;
  --chat-bubble-me: #000000;
}

.chat-thread-row.is-ta .chat-thread-quote-preview {
  border-left-color: rgba(52, 56, 65, .24);
  background: rgba(52, 56, 65, 0.045);
}

.chat-thread-composer:not(.chat-offline-composer) > .chat-thread-sendbar {
  background: #000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.chat-thread-composer:not(.chat-offline-composer) > .chat-thread-sendbar .chat-thread-emoji {
  color: #ffffff;
}
.chat-thread-composer:not(.chat-offline-composer) > .chat-thread-sendbar .chat-thread-send.footer-btn-side {
  background: #ffffff;
  color: #000;
}
.chat-thread-composer:not(.chat-offline-composer) > .chat-thread-sendbar .chat-thread-emoji:active {
  background: rgba(255,255,255,0.14);
}
.chat-thread-composer:not(.chat-offline-composer) > .chat-thread-sendbar .chat-thread-send:active {
  background: #ECECEC;
}
.modal-round-action.chat-thread-sendbar {
  background: #FFFFFF;
  box-shadow: 0 10px 22px rgba(52,57,65,0.12), inset 0 1px 0 rgba(255,255,255,0.96);
}

.modal-round-action .modal-round-action-icon {
  background: #111111;
  color: #FFFFFF;
}

.chat-quickbar-page {
  width: 50%;
  flex: 0 0 50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.chat-quickbar-page button {
  height: 48px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: background .16s ease, opacity .16s ease, transform .16s ease;
}

@media (max-width: 365px) {
  .phone-view {
  padding-left: 22px;
  padding-right: 22px;
  }

  .phone-title-btn {
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--one-quality-soft-ink, #211F1C);
  }

  .phone-call-identity h2 {
  font-size: 33px;
  }

  .phone-keypad-grid {
  gap: 50px 34px;
  margin-left: 4px;
  margin-right: 4px;
  }

  body.show-phone-shell .phone-keypad-grid {
  gap: 50px 34px;
  margin-left: 4px;
  margin-right: 4px;
  }

  .phone-keypad-key {
  height: 50px;
  }

  body.show-phone-shell .phone-keypad-key {
  height: 50px;
  }

  .phone-keypad-key strong {
  font-size: 28px;
  }

  .chat-quickbar-page button span {
  font-size: 9px;
  }

  .chat-quickbar-page button em {
  font-size: 6.5px;
  }

  .chat-quickbar {
  width: min(236px, calc(100vw - 68px));
  padding-left: 3px;
  padding-right: 3px;
  }
}

.chat-thread-bubble.is-text.has-quote {
  align-items: stretch;
  gap: 6px;
  text-align: left;
  white-space: normal;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.chat-thread-bubble.has-quote {
  align-items: stretch;
  gap: 6px;
  text-align: left;
  white-space: normal;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.chat-thread-quote-preview {
  border: 0;
  outline: 0;
  box-shadow: none;
  width: 100%;
  max-width: none;
  align-self: stretch;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 7px 9px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.34);
  border-left: 2px solid rgba(52, 56, 65, .18);
}

.chat-thread-row.is-me .chat-thread-quote-preview {
  background: rgba(255, 255, 255, 0.18);
  border-left-color: rgba(255, 255, 255, .48);
}

.chat-thread-quote-top {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.chat-thread-quote-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(52, 56, 65, .58);
}

.chat-thread-quote-time {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  max-width: 70px;
  font-family: "Courier New", monospace;
  font-size: 9px;
  line-height: 1;
  font-weight: 400;
  color: rgba(52, 56, 65, .38);
  opacity: .92;
  letter-spacing: .04em;
}

.chat-thread-quote-text {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 400;
  color: rgba(52, 56, 65, .58);
}

.chat-thread-row.is-me .chat-thread-quote-name {
  color: rgba(255,255,255,.72);
}

.chat-thread-row.is-me .chat-thread-quote-time {
  color: rgba(255,255,255,.72);
}

.chat-thread-row.is-me .chat-thread-quote-text {
  color: rgba(255,255,255,.72);
}

.chat-thread-composer > .chat-quote-dock {
  grid-row: 1;
  grid-column: 2;
}

.chat-quote-dock-copy {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-quote-dock-head {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chat-quote-dock-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  color: rgba(52, 56, 65, .62);
  text-transform: uppercase;
}

.chat-quote-dock-time {
  flex: 0 0 auto;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Courier New", monospace;
  font-style: normal;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .02em;
  font-weight: 400;
  color: rgba(52, 56, 65, .38);
}

.chat-quote-dock-copy span {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 400;
  color: rgba(52, 56, 65, .64);
  max-width: 100%;
  line-height: 1.2;
}

.chat-quote-dock-close:active {
  background: rgba(118, 118, 128, 0.26);
  color: rgba(52, 56, 65, 0.62);
}

.chat-thread-translation:not([data-lang])::before {
  display: none;
  content: none;
}

.chat-thread-translation[data-lang=""]::before {
  display: none;
  content: none;
}

.chat-thread-translation[data-lang="中文"]::before {
  display: none;
  content: none;
}

.chat-thread-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--one-visual-bottom-gap, 0px);
  z-index: 7;
  min-height: 64px;
  padding: 8px 20px var(--chat-composer-bottom-gap, 20px);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 96px;
  align-items: end;
  gap: 10px;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
}

.chat-quote-dock {
  outline: 0;
  position: relative;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  align-self: stretch;
  margin: 0 0 -2px 0;
  border-radius: 15px;
  color: #000;
  display: flex;
  gap: 8px;
  box-sizing: border-box;
  pointer-events: auto;
  overflow: visible;
  grid-column: 2 / 3;
  margin-bottom: -2px;
  padding: 7px 8px 7px 11px;
  background: #F8F9FB;
  border: 1px solid rgba(52, 56, 65, .08);
  box-shadow: 0 8px 18px rgba(40, 44, 52, 0.08);
  align-items: center;
  justify-content: space-between;
}

.chat-quote-dock-close {
  position: absolute;
  border: 0;
  border-radius: 50%;
  line-height: 1;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  top: -9px;
  right: -9px;
  z-index: 3;
  opacity: 0.88;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  background: #000;
  color: #fff;
  font-size: 16px;
}

.chat-watch-tv-icon {
  position: relative;
  height: 18px;
  display: inline-block;
  box-sizing: border-box;
  color: #000;
  background: transparent;
  transform: none;
  width: 24px;
  border: 1.8px solid #000;
  border-radius: 6px;
}

.chat-watch-tv-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: currentColor;
  border: 0;
  border-radius: 1px;
}

.chat-watch-tv-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 9px;
  background: radial-gradient(circle at 7px 2px, currentColor 0 2px, transparent 2.15px),
        radial-gradient(circle at 17px 2px, currentColor 0 2px, transparent 2.15px),
        linear-gradient(currentColor, currentColor) center 8px / 17px 2px no-repeat;
  opacity: 0.9;
}

:where(body, input, textarea, button, select) {
  font-family: var(--one-global-font-family, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif);
}

:where(.settings-app-page, .settings-app-page *, .worldbook-app-page, .worldbook-app-page *, .chat-app-page, .chat-app-page *, .phone-app-page, .phone-app-page *, .memory-app-page, .memory-app-page *, .onephone-app-module, .onephone-app-module *) {
  font-weight: var(--one-ui-font-weight, inherit);
}

.settings-app-editor-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-mini-control {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: #8C95A3;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.settings-mini-control input[type="color"] {
  width: 100%;
  height: 28px;
  border: 1px solid rgba(150,158,168,0.22);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.settings-mini-control input[type="range"] {
  width: 100%;
}

.settings-app-editor-icon.custom-icon .icon-logo-frame {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.settings-app-editor-icon.custom-icon .app-custom-logo {
  object-fit: cover;
  border-radius: inherit;
}

.settings-app-editor-icon.custom-icon svg {
  display: none;
}

.settings-live-note {
  margin-top: 8px;
  color: #8C95A3;
  font-size: 11px;
  line-height: 1.7;
}

.settings-icon-radius-control {
  margin-top: 28px;
  padding-top: 12px;
}

.settings-icon-radius-control .settings-range-top {
  margin-bottom: 14px;
}

.settings-app-editor-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  padding-bottom: 7px;
}

.settings-app-editor-main::after {
  content: "";
  display: block;
  width: 4em;
  height: 1px;
  margin-top: 7px;
  background: rgba(150, 158, 168, 0.24);
}

.memory-dimension-list[hidden] {
  display: none;
}

#wbSettingToneRow .wb-tone-custom {
  display: none;
}

.chat-ta-diary-top-action.is-loading {
  opacity: 0.54;
  cursor: default;
}

.chat-ta-diary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  pointer-events: none;
  left: 0;
  top: 20px;
  width: 18px;
  height: 1px;
  background: rgba(52,57,65,0.34);
}

.chat-ta-diary-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20px;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, rgba(117,124,135,0.12), transparent);
  pointer-events: none;
}

.chat-ta-diary-card-mark {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  margin-bottom: 16px;
  color: rgba(52,57,65,0.32);
}

.chat-ta-diary-card-head strong {
  display: block;
  margin: 7px 0 0;
  color: #343941;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: -0.04em;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.04;
}

.chat-thread-diary-forward-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 11px;
  gap: 10px 14px;
}

.chat-ta-diary-card-meta {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 12px;
  gap: 6px;
}

.chat-ta-diary-card-excerpt {
  display: block;
  margin: 16px 0 0;
  color: rgba(52,57,65,0.62);
  font-size: 12px;
  line-height: 1.78;
  letter-spacing: 0.025em;
  padding-right: 12px;
}

.chat-ta-diary-card-actions {
  display: none;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(117,124,135,0.10);
  margin-left: 30px;
}

.chat-ta-diary-list.is-managing .chat-ta-diary-card-actions {
  display: grid;
}

.chat-ta-diary-view.is-detail-open .chat-ta-diary-generate,
.chat-ta-diary-view:not(.is-detail-open) .chat-ta-diary-detail-forward {
  display: none;
}

.chat-ta-diary-detail-delete {
  border: 0;
  border-bottom: 1px solid rgba(117,124,135,0.12);
  border-radius: 0;
  background: transparent;
  color: rgba(52,57,65,0.70);
  padding: 12px 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.chat-ta-diary-manage.is-active {
  background: transparent;
  color: #303740;
  border-bottom-color: rgba(52,57,65,0.30);
}

.chat-thread-diary-forward-card strong {
  margin-top: 9px;
  display: block;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-style: italic;
  font-weight: 400;
}

.chat-ta-diary-view.is-detail-open .chat-ta-subpage-title {
  visibility: visible;
  pointer-events: auto;
}

.chat-ta-diary-detail-forward {
  width: 34px;
  min-width: 0;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  color: rgba(48,55,64,0.88);
}

.chat-ta-diary-detail-forward .chat-ta-diary-action-icon {
  width: 18px;
  height: 18px;
}

.chat-ta-diary-detail-forward .chat-ta-diary-action-text {
  display: none;
}

.chat-ta-diary-meta-item {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  color: rgba(48,55,64,0.88);
  font-style: normal;
  line-height: 1.34;
  letter-spacing: 0.038em;
}

.chat-ta-diary-meta-item svg {
  width: 21px;
  height: 21px;
  margin-top: 0;
  color: currentColor;
  overflow: visible;
}

.chat-ta-diary-meta-item svg path,
.chat-ta-diary-meta-item svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-ta-diary-meta-copy {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: currentColor;
}

.chat-ta-diary-meta-copy b {
  color: currentColor;
  font-size: 10px;
  line-height: 1.34;
  letter-spacing: 0.09em;
  font-weight: 400;
}

.chat-ta-diary-meta-copy em {
  color: currentColor;
  font-size: 12px;
  line-height: 1.34;
  letter-spacing: 0.026em;
  font-style: normal;
  font-weight: 400;
  word-break: break-word;
}

.chat-ta-diary-manage {
  border: 0;
  border-bottom: 1px solid rgba(117,124,135,0.12);
  background: transparent;
  color: rgba(52,57,65,0.70);
  padding: 12px 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  min-width: 56px;
  text-align: right;
  border-radius: 0;
  box-shadow: none;
}

.chat-ta-diary-card {
  position: relative;
  border: 0;
  border-top: 1px solid rgba(117,124,135,0.16);
  border-bottom: 1px solid rgba(117,124,135,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08));
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.chat-ta-diary-card-main {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 22px 4px 22px 30px;
  border-radius: 0;
  box-shadow: none;
}

.chat-ta-diary-card-actions button {
  border: 0;
  color: rgba(132,74,74,0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 11px 8px 12px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.chat-ta-diary-generate {
  color: rgba(48,55,64,0.88);
}

.chat-ta-diary-card-meta .chat-ta-diary-meta-item {
  min-height: 21px;
}

.chat-thread-diary-forward-meta em {
  font-style: normal;
  font-size: 11px;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 9px;
  background: transparent;
  box-shadow: none;
  color: rgba(52,57,65,0.52);
  border-left: 1px solid rgba(117,124,135,0.20);
  line-height: 1.35;
  letter-spacing: 0.055em;
}

.chat-thread-row.is-ta .chat-thread-bubble.is-diary-forward-card {
  color: inherit;
  text-shadow: none;
  width: 220px;
  height: 120px;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.chat-thread-row.is-me .chat-thread-bubble.is-diary-forward-card {
  color: inherit;
  text-shadow: none;
  width: 220px;
  height: 120px;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.chat-thread-diary-forward-card {
  position: relative;
  text-align: left;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  border-left: 3px solid rgba(52,57,65,0.28);
  width: 220px;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  align-items: flex-start;
  justify-content: flex-start;
  border: 0;
  border-radius: 14px;
  padding: 14px 15px 12px;
  box-sizing: border-box;
  background: #f7f1ed;
  color: #000;
  box-shadow: 0 6px 14px rgba(52, 56, 65, 0.035);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.chat-thread-diary-forward-card::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  pointer-events: none;
  left: 12px;
  right: 12px;
  top: 0;
  background: rgba(52,57,65,0.18);
  content: none;
}

.chat-thread-diary-forward-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 15px;
  right: 15px;
  bottom: 28px;
  height: 1px;
  background: rgba(52,56,65,0.095);
  transform: scaleY(0.7);
  transform-origin: center;
  pointer-events: none;
}

.chat-thread-diary-forward-title {
  position: relative;
  z-index: 2;
  display: block;
  margin: 2px 0 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 17px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-style: italic;
  font-weight: 400;
  color: #000;
}

.chat-thread-diary-forward-excerpt {
  letter-spacing: 0.025em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 2;
  max-width: 150px;
  margin-top: 8px;
  color: rgba(52,56,65,0.50);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-thread-diary-forward-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid rgba(117,124,135,0.12);
  font-family: "Courier New", Courier, monospace;
  font-size: 8.5px;
  line-height: 1;
  position: absolute;
  z-index: 2;
  left: 15px;
  right: 15px;
  bottom: 11px;
  color: rgba(52,56,65,0.38);
  letter-spacing: 0.12em;
  text-transform: none;
}

.chat-thread-diary-forward-foot em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.chat-thread-diary-forward-foot em:last-child {
  text-align: right;
}

.chat-thread-diary-forward-kicker {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(52,57,65,0.42);
  font-style: normal;
  display: none;
}

.chat-thread-diary-forward-tail {
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  margin-top: 13px;
  color: rgba(52,57,65,0.34);
  display: none;
}

.chat-ta-diary-detail-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-ta-diary-paper {
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 18px 0 28px;
  background: transparent;
}

.chat-ta-diary-paper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(52,57,65,0.26), rgba(52,57,65,0.08));
  pointer-events: none;
}

.chat-ta-diary-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(52,57,65,0.12), rgba(52,57,65,0.03));
  pointer-events: none;
}

.chat-ta-diary-note-pin {
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 8px;
  background: rgba(52,57,65,0.32);
}

.chat-ta-diary-paper-top {
  padding-right: 2px;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.chat-ta-diary-paper-top span {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(52,57,65,0.42);
}

.chat-ta-diary-paper-top time {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(52,57,65,0.46);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chat-ta-diary-paper h2 {
  padding-right: 0;
  padding-left: 0;
  color: #232a33;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  line-height: 1.06;
  letter-spacing: -0.038em;
  font-style: normal;
  font-weight: 500;
  margin: 16px 0 0;
  font-size: 31px;
  text-wrap: balance;
}

.chat-ta-diary-detail-meta {
  padding-right: 0;
  padding-left: 0;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(52,57,65,0.10);
}

.chat-ta-diary-detail-meta .chat-ta-diary-meta-item {
  min-height: 21px;
}

.chat-ta-diary-detail-body {
  padding-right: 0;
  padding-left: 0;
  font-size: 15px;
  letter-spacing: 0.018em;
  margin-top: 22px;
  color: rgba(35,42,51,0.80);
  line-height: 2.04;
  white-space: normal;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.chat-ta-diary-detail-body .chat-ta-diary-detail-paragraph {
  margin: 0 0 20px;
  text-indent: 0;
}

.chat-ta-diary-detail-body .chat-ta-diary-detail-paragraph.is-lead {
  font-size: 16.5px;
  line-height: 2;
  color: rgba(35,42,51,0.92);
}

.chat-ta-diary-detail-body .chat-ta-diary-detail-paragraph.is-lead::first-letter {
  float: left;
  font-size: 42px;
  line-height: 0.88;
  padding-right: 7px;
  padding-top: 6px;
  margin-left: 1px;
  font-weight: 500;
}

.chat-ta-diary-detail-body p:last-child {
  margin-bottom: 0;
}

.chat-ta-diary-heart-link {
  display: inline;
  border: 0;
  border-bottom: 1px solid rgba(74,78,89,0.36);
  padding: 0 0.04em 0.04em;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  text-decoration: none;
}

.chat-ta-diary-heart-link span {
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.chat-ta-diary-heart-link:active {
  transform: translateY(1px);
}

.chat-ta-diary-heart-link:focus-visible {
  outline: none;
  border-bottom-color: rgba(74,78,89,0.72);
  box-shadow: 0 2px 0 rgba(74,78,89,0.16);
}

.chat-ta-diary-marker {
  display: inline;
  padding: 0.14em 0.68em 0.18em 0.56em;
  margin: 0 -0.10em;
  border-radius: 0.10em;
  background:
    linear-gradient(180deg, rgba(255,236,138,0) 0%, rgba(255,236,138,0) 18%, rgba(255,236,121,0.34) 18%, rgba(255,236,121,0.34) 31%, rgba(255,224,80,0.92) 31%, rgba(255,222,76,0.92) 91%, rgba(255,236,138,0) 91%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.chat-ta-diary-marker span {
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}


.chat-diary-heart-shell {
  --chat-diary-heart-scale: 1;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3b4048;
  background: rgba(247,247,247,0.60);
}

.chat-diary-heart-stage {
  position: relative;
  flex: 0 0 auto;
  width: 340px;
  height: 490px;
  margin: 0;
  overflow: visible;
  transform: scale(var(--chat-diary-heart-scale));
  transform-origin: center center;
}

.chat-diary-heart-mainwrap {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.chat-diary-heart-papercard {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 58px;
  width: 264px;
  min-height: 324px;
  box-sizing: border-box;
  padding: 38px 26px 32px;
  background-color: #FFFFFF;
  background-image: none;
  box-shadow: 0 22px 48px rgba(0,0,0,0.075), 0 8px 16px rgba(0,0,0,0.035);
  transform: translateX(-50%) rotate(0.8deg);
  overflow: visible;
}

.chat-diary-heart-paper-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 8px;
  color: rgba(74,78,89,0.48);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  white-space: nowrap;
}

.chat-diary-heart-paper-title {
  display: none;
}

.chat-diary-heart-paper-text {
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: none;
  color: #2A2A2A;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 13px;
  line-height: 1.86;
  letter-spacing: 0.055em;
  text-align: justify;
  padding-right: 3px;
  word-break: break-word;
}

.chat-diary-heart-paper-text::-webkit-scrollbar {
  display: none;
}

.chat-diary-heart-paperclip {
  position: absolute;
  z-index: 6;
  right: 52px;
  top: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: #111111;
  font-family: "Noto Sans Symbols 2", "Noto Sans Symbols", "Segoe UI Symbol", "Apple Symbols", system-ui, sans-serif;
  font-size: 31px;
  line-height: 1;
  transform: rotate(3deg);
  filter: none;
  text-shadow: 0 3px 6px rgba(0,0,0,0.10);
  pointer-events: none;
}

.chat-diary-heart-paperclip::before,
.chat-diary-heart-paperclip::after {
  content: none;
}

.chat-diary-heart-darkcard {
  position: absolute;
  z-index: 4;
  left: 92px;
  top: 310px;
  width: 232px;
  box-sizing: border-box;
  padding: 16px 20px;
  display: grid;
  gap: 0;
  background: linear-gradient(110deg, #1C1D1F 0%, #242527 52%, #18191B 100%);
  color: #FFFFFF;
  box-shadow: 0 20px 36px rgba(15,16,19,0.18), 0 6px 10px rgba(15,16,19,0.08);
  transform: rotate(-1.7deg);
}

.chat-diary-heart-darkcard div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 0.5px dotted rgba(255,255,255,0.20);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.chat-diary-heart-darkcard div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.chat-diary-heart-darkcard span {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.52);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chat-diary-heart-darkcard strong {
  flex: 1;
  color: rgba(255,255,255,0.90);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-diary-heart-historybar,
.chat-diary-heart-actions,
.chat-diary-heart-history-tag,
.chat-diary-heart-navbtn,
.chat-diary-heart-close,
.chat-diary-heart-topline,
.chat-diary-heart-topline-label,
.chat-diary-heart-sidecard,
.chat-diary-heart-minicard,
.chat-diary-heart-wave {
  display: none;
}


.chat-offline-mode-pill svg {
  width: 16px;
  height: 16px;
  display: block;
  overflow: visible;
  flex: 0 0 16px;
  fill: currentColor;
  stroke: none;
}

.chat-offline-mode-pill svg :where(path, rect, circle, polygon, polyline, line) {
  fill: currentColor;
  stroke: none;
}

.chat-offline-sendbar {
  background: #000000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  width: 96px;
  min-width: 96px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 48px 48px;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  height: 50px;
  pointer-events: auto;
}

.chat-offline-continue {
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-offline-send.chat-thread-send.footer-btn-side {
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #000000;
  border-radius: 50%;
  transform: none;
  width: 48px;
  height: 44px;
  box-shadow: none;
}

.chat-chess-view.active ~ .chat-bottom-dock {
  display: none;
}

.chat-chess-view {
  position: relative;
  display: none;
  min-height: 100%;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(255, 221, 233, 0.82), transparent 34%),
        radial-gradient(circle at top right, rgba(225, 236, 255, 0.80), transparent 36%),
        linear-gradient(180deg, #fdf8ff 0%, #f6f0ff 44%, #fffaf7 100%);
}

.chat-chess-view.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-chess-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,0.7), transparent 26%),
        radial-gradient(circle at 84% 10%, rgba(255,255,255,0.58), transparent 24%),
        radial-gradient(circle at 70% 84%, rgba(255,255,255,0.45), transparent 24%);
}

.chat-chess-topbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.chat-chess-back {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.35));
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
  box-shadow: 0 10px 28px rgba(131, 104, 143, 0.12), inset 0 1px 0 rgba(255,255,255,0.78);
  color: #5f4e73;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-chess-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-chess-headcopy {
  min-width: 0;
}

.chat-chess-kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(104, 84, 129, 0.7);
  margin-bottom: 4px;
}

.chat-chess-headcopy h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #3d314d;
}

.chat-chess-headcopy p {
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(78, 66, 97, 0.74);
}

.chat-chess-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chat-chess-reset {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.35));
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
  box-shadow: 0 10px 28px rgba(131, 104, 143, 0.12), inset 0 1px 0 rgba(255,255,255,0.78);
  color: #5f4e73;
  padding: 0 14px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
}

.chat-chess-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.42));
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  color: #6c587f;
  font-weight: 700;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(131, 104, 143, 0.12), inset 0 1px 0 rgba(255,255,255,0.78);
}

.chat-chess-avatar.has-image {
  color: transparent;
}

.chat-chess-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, auto) minmax(220px, 1fr);
  gap: 14px;
  min-height: 0;
  flex: 1;
}

.chat-chess-board-panel {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,0.74), rgba(255,255,255,0.36));
  -webkit-backdrop-filter: blur(20px) saturate(1.14);
  backdrop-filter: blur(20px) saturate(1.14);
  box-shadow: 0 18px 40px rgba(126, 96, 143, 0.13), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.56);
}

.chat-chess-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chat-chess-turn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #4f4161;
  background: rgba(255,255,255,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.chat-chess-hint {
  font-size: 12px;
  color: rgba(86, 71, 106, 0.72);
}

.chat-chess-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: min(100%, 520px);
  margin: 0 auto;
}

.chat-chess-square {
  position: relative;
  border: 0;
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.chat-chess-square.is-light {
  background: linear-gradient(160deg, rgba(255,248,242,0.98), rgba(255,234,241,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
}

.chat-chess-square.is-dark {
  background: linear-gradient(160deg, rgba(238,224,255,0.98), rgba(221,233,255,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.chat-chess-square.is-selected {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 26px rgba(130, 98, 155, 0.2), inset 0 0 0 2px rgba(121, 90, 155, 0.38);
}

.chat-chess-square.can-move::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(121, 90, 155, 0.28);
}

.chat-chess-square.can-capture::after {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 16px;
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(209, 103, 118, 0.44);
}

.chat-chess-square.is-disabled {
  cursor: default;
}

.chat-chess-piece {
  width: 78%;
  height: 78%;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
  box-shadow: 0 9px 20px rgba(126, 96, 143, 0.17), inset 0 1px 0 rgba(255,255,255,0.86);
}

.chat-chess-piece.is-white {
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,0.98), rgba(255,238,248,0.94) 52%, rgba(247,225,242,0.92));
  color: #76517f;
}

.chat-chess-piece.is-black {
  background: radial-gradient(circle at 30% 22%, rgba(166,143,191,0.98), rgba(119,100,148,0.98) 48%, rgba(76,93,137,0.98));
  color: #fff8ff;
}

.chat-chess-piece-svg {
  width: 82%;
  height: 82%;
  display: block;
  overflow: visible;
}

.chat-chess-piece-svg .piece-body {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.chat-chess-piece-svg .piece-crown {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.chat-chess-piece-svg .piece-base {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.chat-chess-piece-svg .piece-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}

.chat-chess-piece-svg .piece-halo {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}

.chat-chess-piece-svg .piece-gem {
  fill: rgba(255,255,255,0.82);
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: 0.92;
}

.chat-chess-piece.is-black .piece-gem {
  fill: rgba(255,255,255,0.72);
  stroke: rgba(255,255,255,0.86);
}

.chat-chess-piece.is-queen .chat-chess-piece-svg {
  width: 88%;
  height: 88%;
}

.chat-chess-piece.is-king .chat-chess-piece-svg {
  width: 88%;
  height: 88%;
}

.chat-chess-piece.is-knight .chat-chess-piece-svg {
  width: 88%;
  height: 88%;
}

.chat-chess-captions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(82, 68, 102, 0.72);
}

.chat-chess-chat-panel {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,0.74), rgba(255,255,255,0.36));
  -webkit-backdrop-filter: blur(20px) saturate(1.14);
  backdrop-filter: blur(20px) saturate(1.14);
  box-shadow: 0 18px 40px rgba(126, 96, 143, 0.13), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.56);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.chat-chess-messages {
  min-height: 220px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.chat-chess-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-chess-messages::-webkit-scrollbar-thumb {
  background: rgba(121, 90, 155, 0.22);
  border-radius: 999px;
}

.chat-chess-bubble {
  max-width: min(90%, 320px);
  padding: 10px 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(126, 96, 143, 0.12);
}

.chat-chess-bubble strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(87, 70, 108, 0.72);
}

.chat-chess-bubble.is-me {
  margin-left: auto;
  background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(250,239,255,0.86));
  color: #473852;
}

.chat-chess-bubble.is-ta {
  background: linear-gradient(160deg, rgba(231,239,255,0.92), rgba(238,233,255,0.9));
  color: #45395a;
}

.chat-chess-bubble.is-system {
  align-self: center;
  max-width: 100%;
  text-align: center;
  background: rgba(255,255,255,0.72);
  color: rgba(79, 66, 96, 0.84);
}

.chat-chess-empty {
  margin: auto;
  text-align: center;
  color: rgba(86, 71, 106, 0.7);
  font-size: 13px;
}

.chat-chess-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: end;
}

.chat-chess-input {
  width: 100%;
  min-height: 46px;
  max-height: 104px;
  resize: none;
  border: 0;
  border-radius: 18px;
  padding: 12px 14px;
  font: inherit;
  color: #493b5e;
  background: rgba(255,255,255,0.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
  outline: none;
}

.chat-chess-input::placeholder {
  color: rgba(103, 85, 129, 0.5);
}

.chat-chess-send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #7f68a0 0%, #5b79ab 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(94, 98, 161, 0.24);
}

.chat-chess-send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 520px) {
  .chat-chess-view {
  padding-left: 12px;
  padding-right: 12px;
  }

  .chat-chess-board-panel {
  border-radius: 24px;
  padding: 13px;
  }

  .chat-chess-chat-panel {
  border-radius: 24px;
  padding: 13px;
  }

  .chat-chess-board {
  gap: 5px;
  }

  .chat-chess-square {
  border-radius: 15px;
  }

  .chat-chess-piece {
  border-radius: 16px;
  }

  .chat-chess-headcopy p {
  font-size: 12px;
  }

  .chat-chess-hint {
  font-size: 12px;
  }

  .chat-chess-captions {
  font-size: 12px;
  }

  .chat-chess-bubble {
  font-size: 12px;
  }
}



/* v474_17: Memory Palace runtime panel lives in the split source CSS, not a local mirror. */
.memory-palace-runtime-panel {
  margin: 14px 16px 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(247, 248, 249, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.memory-palace-runtime-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.memory-palace-runtime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.memory-palace-runtime-grid div {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.memory-palace-runtime-grid span {
  font-size: 11px;
  color: rgba(17, 17, 17, 0.48);
}

.memory-palace-runtime-grid strong {
  margin-top: 3px;
  font-size: 12px;
  color: #111;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-palace-runtime-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.memory-palace-runtime-actions button {
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 520;
}

