
.chat-bankcard-dialog,
.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,
.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,
.chat-stock-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}
.chat-stock-ticker-top span,
.chat-stock-ticker-top em,
.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,
.chat-stock-sheet-price span,
.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,
.chat-stock-sheet-price span.is-down,
.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,
.chat-stock-projects { margin-top: 24px; }
.chat-stock-section-head {
    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 {
    position: relative;
    height: auto;
    padding: 0 0 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(52,57,65,0.68);
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.11em;
    cursor: pointer;
    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 { 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,
.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 APP：红包 / 转账实装卡片与支付弹窗 */
.chat-thread-bubble.is-redpacket-card,
.chat-thread-bubble.is-transfer-card,
.chat-thread-bubble.is-schedule-forward-card,
.chat-thread-bubble.is-chat-record-card,
.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,
.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,
.chat-thread-stock-price,
.chat-thread-stock-desc,
.chat-thread-stock-foot,
.chat-thread-stock-tag {
    position: relative;
    z-index: 2;
}
.chat-thread-stock-head {
    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 {
    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 {
    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 {
    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,
.chat-transfer-modal,
.chat-pay-status-modal { z-index: 10000; }
.chat-pay-send-dialog,
.chat-pay-status-dialog {
    max-width: 320px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.chat-pay-send-content { gap: 15px; }
.chat-pay-send-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 3px;
    text-align: left;
}
.chat-pay-send-head span,
.chat-pay-send-field 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-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.chat-pay-send-input,
.chat-pay-send-textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    background: #f6f4ef;
    color: #000;
    user-select: text;
    -webkit-user-select: text;
}
.chat-pay-send-textarea {
    min-height: 70px;
    resize: none;
    line-height: 1.58;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.chat-pay-send-dialog .btn-save.is-loading,
.chat-pay-send-dialog .btn-save:disabled {
    opacity: 0.48;
    pointer-events: none;
}
.chat-pay-method-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, #9aa0ab 50%), linear-gradient(135deg, #9aa0ab 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.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],
.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 { z-index: 14000; }


/* Chat AI system / recall rows */
.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,
.chat-thread-bubble.is-system-text::after {
    display: none;
}

/* ============================================================
   CHAT BUBBLE QUICK ACTION BAR
   Source-level long-press toolbar for chat bubbles. Paper style,
   two horizontal pages, no glass / no emoji.
   ============================================================ */
.chat-thread-row {
    position: relative;
}
.chat-thread-row.is-quickbar-row::before,
.chat-thread-row.is-wallpaper-flash::before {
    content: '';
    position: absolute;
    left: -12px;
    right: -12px;
    top: -6px;
    bottom: -6px;
    z-index: 0;
    border-radius: 20px;
    background: rgba(52, 56, 65, 0.14);
    pointer-events: none;
    animation: chat-wallpaper-area-pulse 1.28s ease-in-out infinite;
}
.chat-thread-row > * {
    position: relative;
    z-index: 1;
}
@keyframes chat-wallpaper-area-pulse {
    0%, 100% { opacity: 0.18; }
    50% { opacity: 0.48; }
}
.chat-quickbar {
    position: fixed;
    left: 12px;
    top: 120px;
    width: min(330px, calc(100vw - 16px));
    min-height: 64px;
    z-index: 18000;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 3px;
    padding: 7px 8px;
    border-radius: 22px;
    background: #F8F9FB;
    color: #000;
    border: 1px solid rgba(52, 56, 65, 0.075);
    box-shadow: 0 16px 38px rgba(40, 44, 52, 0.13);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.chat-quickbar.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.chat-quickbar::after,
.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-page {
    width: 50%;
    flex: 0 0 50%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
}
.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 {
    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;
}
.chat-quickbar-page button:active,
.chat-quickbar-nav:active {
    transform: scale(0.96);
    background: rgba(52, 56, 65, 0.06);}
.chat-quickbar-page button.is-disabled {
    opacity: .32;
    pointer-events: none;
}
.chat-quickbar-page button span {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .04em;
    font-weight: 650;
    color: rgba(52, 56, 65, .88);
}
.chat-quickbar-page button em {
    font-style: normal;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    line-height: 1;
    letter-spacing: .10em;
    color: rgba(52, 56, 65, .50);
}
.chat-quickbar-nav {
    width: 30px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    font-weight: 300;
    color: rgba(52, 56, 65, .62);
}
.chat-quickbar-dots {
    display: none;
}
.chat-thread-bubble.is-text.has-quote,
.chat-thread-bubble.has-quote {
    text-align: left;
    white-space: normal;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
}
.chat-thread-quote-preview {
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    margin: 0;
    padding: 7px 9px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.34);
    border-left: 2px solid rgba(52, 56, 65, .18);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-thread-row.is-ta .chat-thread-quote-preview {
    background: rgba(52, 56, 65, 0.045);
}
.chat-thread-quote-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}
.chat-thread-quote-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    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 {
    flex: 0 0 auto;
    font-family: "Courier New", monospace;
    font-size: 9px;
    line-height: 1;
    letter-spacing: .04em;
    color: rgba(52, 56, 65, .38);
}
.chat-thread-row.is-me .chat-thread-quote-name,
.chat-thread-row.is-me .chat-thread-quote-time,
.chat-thread-row.is-me .chat-thread-quote-text {
    color: rgba(255,255,255,.72);
}
.chat-thread-quote-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.25;
    color: rgba(52, 56, 65, .58);
}
.chat-thread-text-content {
    display: block;
    width: 100%;
    white-space: pre;
    text-align: left;
    line-height: 1.34;
    transform: translateY(0.5px);
}


/* Real-time translation: original message + quiet inline translation */
.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);
}


/* Ta · Diary / Inner Voice：纸感资料页与心声面板，避免厚重渐变与油腻高光 */
.chat-ta-diary-view {
    padding: max(38px, calc(env(safe-area-inset-top) + 22px)) 22px max(42px, calc(env(safe-area-inset-bottom) + 34px));
    background: transparent;
    color: var(--chat-ink);
}
.chat-ta-subpage-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}
.chat-ta-subpage-title {
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    color: var(--chat-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.chat-ta-subpage-title span,
.chat-heart-kicker,
.chat-ta-diary-card-kicker,
.chat-ta-diary-card-mark,
.chat-ta-diary-paper-top span,
.chat-thread-diary-forward-kicker,
.chat-thread-diary-forward-tail {
    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-subpage-title strong {
    display: block;
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(24px, 6.8vw, 29px);
    line-height: 1.03;
    letter-spacing: -0.035em;
    font-style: italic;
    font-weight: 400;
    color: var(--one-quality-soft-ink, #211F1C);
}
.chat-ta-subpage-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(74,78,89,0.20);
    border-radius: 50%;
    background: rgba(255,255,255,0.58);
    color: #535c67;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.chat-ta-subpage-close span {
    width: 8px;
    height: 8px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateX(1px) rotate(45deg);
}
.chat-ta-diary-entry-page,
.chat-ta-diary-detail-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-ta-diary-entry-page[hidden],
.chat-ta-diary-detail-page[hidden] { display: none; }
.chat-ta-diary-hero {
    position: relative;
    padding: 18px 0 17px;
    border-top: 1px solid rgba(117,124,135,0.14);
    border-bottom: 1px solid rgba(117,124,135,0.14);
}
.chat-ta-diary-hero h2 {
    margin: 9px 0 0;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 29px;
    line-height: 0.98;
    letter-spacing: -0.025em;
    font-style: italic;
    font-weight: 400;
    color: #343941;
}
.chat-ta-diary-hero p {
    margin: 10px 0 0;
    max-width: 29em;
    color: rgba(52,57,65,0.56);
    font-size: 12px;
    line-height: 1.66;
    letter-spacing: 0.04em;
}
.chat-ta-diary-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.chat-ta-diary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-ta-diary-card {
    position: relative;
    border: 1px solid rgba(117,124,135,0.14);
    border-radius: 24px;
    background: rgba(255,255,255,0.52);
    box-shadow: 0 14px 34px rgba(60, 64, 73, 0.055);
    overflow: hidden;
}
.chat-ta-diary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(190,174,154,0.56), rgba(219,210,198,0.12));
    pointer-events: none;
}
.chat-ta-diary-card-main {
    width: 100%;
    border: 0;
    padding: 15px 16px 14px 18px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.chat-ta-diary-card-mark {
    margin-bottom: 12px;
    color: rgba(52,57,65,0.34);
}
.chat-ta-diary-card-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px;
    align-items: start;
}
.chat-ta-diary-card-head strong {
    display: block;
    margin: 7px 0 0;
    color: #343941;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 21px;
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-style: italic;
    font-weight: 400;
}
.chat-ta-diary-card time,
.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-meta,
.chat-ta-diary-detail-meta,
.chat-thread-diary-forward-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chat-ta-diary-card-meta span,
.chat-ta-diary-detail-meta span,
.chat-thread-diary-forward-meta em {
    border: 1px solid rgba(117,124,135,0.12);
    border-radius: 999px;
    padding: 5px 8px;
    background: rgba(255,255,255,0.48);
    color: rgba(52,57,65,0.54);
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.04em;
}
.chat-ta-diary-card-excerpt {
    display: block;
    margin: 12px 0 0;
    color: rgba(52,57,65,0.62);
    font-size: 12px;
    line-height: 1.68;
    letter-spacing: 0.025em;
}
.chat-ta-diary-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(117,124,135,0.10);
}
.chat-ta-diary-card-actions button {
    border: 0;
    border-right: 1px solid rgba(117,124,135,0.10);
    padding: 10px 8px 11px;
    background: rgba(255,255,255,0.26);
    color: rgba(52,57,65,0.58);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.chat-ta-diary-card-actions button:last-child {
    border-right: 0;
    color: rgba(132,74,74,0.58);
}
.chat-ta-diary-list:not(.is-managing) .chat-ta-diary-card-actions button:last-child { display: none; }
.chat-ta-diary-list:not(.is-managing) .chat-ta-diary-card-actions { grid-template-columns: 1fr; }
.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-ta-diary-detail-back {
    align-self: flex-start;
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(52,57,65,0.58);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.chat-ta-diary-paper {
    position: relative;
    border: 1px solid rgba(117,124,135,0.15);
    border-radius: 28px;
    padding: 20px 18px 22px;
    background:
        linear-gradient(rgba(117,124,135,0.055) 1px, transparent 1px) 0 88px / 100% 32px,
        rgba(255,255,255,0.58);
    box-shadow: 0 16px 38px rgba(60, 64, 73, 0.065);
}
.chat-ta-diary-paper::after {
    content: "✧";
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: rgba(52,57,65,0.16);
    font-size: 18px;
}
.chat-ta-diary-paper-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}
.chat-ta-diary-paper h2 {
    margin: 18px 0 0;
    color: #303740;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 29px;
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-style: italic;
    font-weight: 400;
}
.chat-ta-diary-detail-body {
    margin-top: 18px;
    color: rgba(52,57,65,0.72);
    font-size: 14px;
    line-height: 2.05;
    letter-spacing: 0.025em;
    white-space: pre-wrap;
}
.chat-ta-diary-detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.chat-ta-diary-detail-forward,
.chat-ta-diary-detail-delete,
.chat-ta-diary-manage {
    border: 1px solid rgba(117,124,135,0.15);
    border-radius: 999px;
    background: rgba(255,255,255,0.58);
    color: rgba(52,57,65,0.70);
    padding: 11px 14px;
    font-size: 12px;
    letter-spacing: 0.06em;
}
.chat-ta-diary-detail-delete {
    color: rgba(132,74,74,0.68);
}
.chat-ta-diary-manage.is-active {
    background: rgba(52,57,65,0.08);
}
.chat-heart-modal {
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(35, 38, 44, 0.22);
}
.chat-heart-dialog {
    width: min(356px, calc(100vw - 36px));
    max-height: min(80vh, 640px);
    overflow: hidden;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0) 34%),
        linear-gradient(135deg, #FFFFFF 0%, #F7F9FC 100%);
    color: #343941;
    border: 1px solid rgba(117,124,135,0.14);
    box-shadow: 0 24px 58px rgba(49, 48, 45, 0.13);
    position: relative;
}
.chat-heart-dialog::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(117,124,135,0.10);
    border-radius: 24px;
    pointer-events: none;
    z-index: 1;
}
.chat-heart-dialog::after {
    content: "PRIVATE · INNER";
    position: absolute;
    right: 24px;
    top: 22px;
    font-family: "Courier New", Courier, monospace;
    font-size: 8.5px;
    line-height: 1;
    letter-spacing: 0.18em;
    color: rgba(52,57,65,0.30);
    pointer-events: none;
    z-index: 2;
}
.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-close { display: none; }
.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 {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(52,57,65,0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 28px rgba(52,57,65,0.12);
}
.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-diary-forward-card {
    position: relative;
    width: min(266px, 72vw);
    border: 1px solid rgba(117,124,135,0.14);
    border-radius: 18px;
    padding: 15px 16px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(250,248,244,0.64));
    color: #343941;
    text-align: left;
    box-shadow: 0 14px 30px rgba(60,64,73,0.07);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.chat-thread-diary-forward-card strong {
    display: block;
    margin-top: 9px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 20px;
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-style: italic;
    font-weight: 400;
}
.chat-thread-diary-forward-meta {
    margin-top: 10px;
}
.chat-thread-diary-forward-excerpt {
    display: block;
    margin-top: 11px;
    color: rgba(52,57,65,0.62);
    font-size: 12px;
    line-height: 1.62;
    letter-spacing: 0.025em;
}
.chat-thread-diary-forward-tail {
    margin-top: 13px;
    color: rgba(52,57,65,0.34);
}
.chat-thread-row.is-ta .chat-thread-bubble.is-diary-forward-card::before,
.chat-thread-row.is-me .chat-thread-bubble.is-diary-forward-card::after {
    content: none;
    display: none;
}
.chat-thread-diary-forward-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(117,124,135,0.22), transparent);
    pointer-events: none;
}

/* Ta · Schedule：v173 头像装饰版回收，只保留布局稳定修正 */
.chat-ta-schedule-view {
    box-sizing: border-box;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: max(30px, calc(env(safe-area-inset-top) + 18px)) 22px max(28px, calc(env(safe-area-inset-bottom) + 18px));
    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: 132px;
}
.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,
.chat-ta-schedule-season,
.chat-ta-schedule-divider,
.chat-ta-schedule-hero,
.chat-ta-schedule-week,
.chat-ta-schedule-split,
.chat-ta-schedule-month-row {
    min-height: 0;
    overflow: visible;
}
.chat-ta-schedule-top {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.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 {
    width: 100%;
    margin: 8px 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 {
    height: 1px;
    margin: 12px 0 14px;
    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: 210px;
    margin: 0 0 16px;
    padding: 22px 18px 18px;
    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: 18px;
    right: 18px;
    bottom: 16px;
    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: 20px;
    z-index: 1;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 86px 50px 86px;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.chat-ta-schedule-avatar-wrap {
    display: grid;
    grid-template-rows: 86px auto;
    justify-items: center;
    gap: 7px;
    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: 86px;
    height: 86px;
    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: 70px;
    height: 70px;
    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: 50px;
    height: 28px;
    fill: none;
    stroke: rgba(98, 108, 120, .54);
    stroke-width: 1.22;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chat-ta-schedule-week {
    margin-top: 2px;
    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,
.chat-ta-schedule-day.is-selected span:last-child {
    font-weight: 600;
}
.chat-ta-schedule-split,
.chat-ta-schedule-item-line {
    position: relative;
    height: 1px;
    display: block;
}
.chat-ta-schedule-split {
    margin-top: 13px;
}
.chat-ta-schedule-split::before,
.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,
.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 {
    margin-top: 10px;
    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, 438px);
    bottom: 0;
    margin-top: 0;
    min-height: 96px;
    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,
.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 {
    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"],
.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,
.chat-ta-schedule-plus span::after {
    content: "";
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
}
.chat-ta-schedule-plus span::after {
    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,
.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: 202px; padding-left: 16px; padding-right: 16px; }
    .chat-ta-schedule-directory { left: 16px; right: 16px; }
    .chat-ta-schedule-pair { grid-template-columns: 78px 44px 78px; gap: 7px; }
    .chat-ta-schedule-avatar-wrap { grid-template-rows: 78px auto; }
    .chat-ta-schedule-avatar-ring { width: 78px; height: 78px; }
    .chat-ta-schedule-avatar-core { width: 64px; height: 64px; }
    .chat-ta-schedule-heartline { width: 44px; }
    .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; }
}

/* v211 schedule compact header only on short real viewports; list remains the only scroll layer. */
@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: 9px 0 10px; }
    .chat-ta-schedule-hero { min-height: 176px; margin-bottom: 12px; padding-top: 18px; padding-bottom: 14px; }
    .chat-ta-schedule-week { margin-top: 8px; }
    .chat-ta-schedule-split { margin-top: 8px; }
    .chat-ta-schedule-month-row { margin-top: 8px; }
}

.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,
.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 {
    align-self: center;
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255,255,255,0.78);
    color: #1f2937;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 26px rgba(31,41,55,0.12);
}
.chat-heart-refresh:disabled {
    opacity: 0.55;
    pointer-events: none;
}
.chat-heart-note-history {
    padding-bottom: 16px;
}
.chat-heart-history {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}
.chat-heart-history-item {
    border: 1px solid rgba(117,124,135,0.12);
    border-radius: 16px;
    background: rgba(255,255,255,0.62);
    padding: 10px 12px;
}
.chat-heart-history-item span {
    display: block;
    font-size: 10px;
    color: rgba(31,41,55,0.48);
    margin-bottom: 4px;
}
.chat-heart-history-item strong {
    display: block;
    font-size: 12px;
    color: rgba(31,41,55,0.76);
    margin-bottom: 4px;
}
.chat-heart-history-item p,
.chat-heart-history-empty {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(31,41,55,0.62);
}

@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-quote-dock {
    grid-column: 2 / 3;
    width: 100%;
    min-width: 0;
    margin-bottom: -2px;
    padding: 7px 8px 7px 11px;
    border-radius: 15px;
    background: #F8F9FB;
    color: #000;
    border: 1px solid rgba(52, 56, 65, .08);
    box-shadow: 0 8px 18px rgba(40, 44, 52, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: auto;
}
.chat-quote-dock-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chat-quote-dock-copy strong {
    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-copy span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(52, 56, 65, .64);
}
.chat-quote-dock-close {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
@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-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-sendbar { grid-column: 3; grid-row: 2; }
.chat-thread-composer > .chat-quote-dock { grid-column: 2; grid-row: 1; }

/* Chat thread settings · paper magazine surface */
.chat-app-page.thread-settings-open .chat-bottom-dock,
.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-title span {
    display: block;
    margin: 0 0 7px;
    color: rgba(47,51,58,0.30);
    font-family: "Courier New", monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.22em;
}
.chat-setting-title strong {
    display: block;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(24px, 6.8vw, 29px);
    line-height: 1.03;
    font-style: italic;
    letter-spacing: -0.035em;
    font-weight: 400;

        color: var(--one-quality-soft-ink, #211F1C);}
.chat-setting-head p {
    width: min(92%, 342px);
    margin: 0;
    color: rgba(47,51,58,0.44);
    font-size: 12px;
    line-height: 1.75;
    letter-spacing: 0.02em;
}
.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: 44px;
    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,
.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;
}
.chat-setting-link-mark span { left: 5px; }
.chat-setting-link-mark i { 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,
.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,
.chat-setting-field textarea,
.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 {
    min-height: 110px;
    resize: vertical;
}
.chat-setting-field input:focus,
.chat-setting-field textarea:focus,
.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;
}
@media (max-width: 360px) {
    .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,
    .chat-setting-stats { grid-template-columns: 1fr; }
}



.chat-pay-status-actions button[hidden] { display: none; }
.chat-pay-status-actions { gap: 0; }
.chat-pay-status-actions .btn-cancel,
.chat-pay-status-actions .btn-save { min-width: 0; }
.chat-thread-pay-card.is-done,
.chat-thread-pay-card.is-expired,
.chat-thread-pay-card.is-refunded {
    filter: saturate(0.58);
    opacity: 0.82;
}
.chat-thread-pay-card.is-done .chat-thread-pay-icon,
.chat-thread-pay-card.is-expired .chat-thread-pay-icon,
.chat-thread-pay-card.is-refunded .chat-thread-pay-icon {
    background: transparent;
    color: rgba(52,56,65,0.06);
}

/* Offline meet page · magazine paper scene */
.chat-app-page.offline-open .chat-bottom-dock,
.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-weather-layer {
    position: absolute;
    inset: 0;
    z-index: 12;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
}
.chat-offline-weather-item {
    position: absolute;
    top: -9vh;
    pointer-events: none;
    will-change: transform, opacity;
}
.chat-offline-weather-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-weather-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-weather-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-weather-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,
.chat-app-page.offline-open .chat-offline-stage,
.chat-app-page.offline-open .chat-offline-timeline,
.chat-app-page.offline-open .chat-offline-composer {
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.chat-app-page.offline-open::before,
.chat-app-page.offline-open .chat-offline-head::before,
.chat-app-page.offline-open .chat-offline-head::after,
.chat-app-page.offline-open .chat-offline-composer::before,
.chat-app-page.offline-open .chat-offline-composer::after,
.chat-app-page.offline-open .chat-offline-stage::before,
.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 {
    display: none;

    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,
.chat-offline-ring-progress {
    fill: none;
    stroke-width: 12;
}
.chat-offline-ring-track {
    stroke: rgba(52,57,65,0.10);
}
.chat-offline-ring-progress {
    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,
.chat-offline-date-month,
.chat-offline-date-day {
    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,
.chat-offline-date-day {
    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,
.chat-offline-vinyl-label {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}
.chat-offline-vinyl-groove {
    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 {
    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,
.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-mode="settings"],
.chat-offline-mode-pill button[data-offline-mode="star"],
.chat-offline-mode-pill button[data-offline-mode="snow"],
.chat-offline-mode-pill button[data-offline-mode="rain"],
.chat-offline-mode-pill button[data-offline-mode="music"] {
    color: rgba(52,57,65,0.62);
}
.chat-offline-mode-pill button:active {
    transform: translateY(1px) scale(0.94);
    background: transparent;}
.chat-offline-mode-pill svg {
    width: 16px;
    height: 16px;
    display: block;
    overflow: visible;
    fill: currentColor;
    stroke: none;
    flex: 0 0 16px;
}
.chat-offline-stage {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: block;
    pointer-events: auto;
    background: transparent;
}
.chat-offline-scene-card,
.chat-offline-memory-card,
.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);
}
.chat-offline-scene-card {
    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,
.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,
.chat-offline-note-card p {
    margin: 0;
    color: rgba(52,57,65,0.60);
    font-size: 13px;
    line-height: 1.64;
}
.chat-offline-memory-card {
    display: none;
}
.chat-offline-memory-head {
    display: none;
}
.chat-offline-memory-head span,
.chat-offline-memory-head em {
    display: none;
}
.chat-offline-memory-head em { 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,
.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,
.chat-offline-record-time::after {
    content: none;
    display: none;
}
.chat-offline-record-time-block,
.chat-offline-record-floor-block {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.chat-offline-record-time-block::before,
.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,
.chat-offline-record-brand::after {
    content: '';
    display: inline-block;
    width: 22px;
    height: 4px;
    flex: 0 0 22px;
}
.chat-offline-record-brand::before {
    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 {
    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 {
    padding: 15px 17px 17px;
}
.chat-offline-note-card p { 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-sendbar {
    height: 50px;
    pointer-events: auto;
    background: #000000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.chat-offline-continue {
    color: #FFFFFF;
}
.chat-offline-continue svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
    stroke: none;
}
.chat-offline-send.chat-thread-send.footer-btn-side {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    color: #000000;
}
.chat-offline-send.chat-thread-send.footer-btn-side .fas {
    font-size: 18px;
    line-height: 1;
    transform: none;
}
.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;
}
@media (max-width: 360px) {
    .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-location { display: none; }
    .chat-offline-mode-pill { justify-self: end; justify-content: flex-end; }
    .chat-offline-date-week { font-size: 14px; }
    .chat-offline-season-copy { font-size: 11px; line-height: 1.16; }
    .chat-offline-location { 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 { 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-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)); }
    .chat-offline-scene-card { border-radius: 26px; padding: 20px 18px; min-height: 126px; }
    .chat-offline-timeline { 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,
    .chat-offline-record-floor-block { gap: 4px; }
    .chat-offline-record-time-block::before,
    .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 · paper magazine surface */
.chat-app-page.thread-settings-open .chat-bottom-dock,
.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-title span {
    display: block;
    margin: 0 0 7px;
    color: rgba(47,51,58,0.30);
    font-family: "Courier New", monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.22em;
}
.chat-setting-title strong {
    display: block;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(24px, 6.8vw, 29px);
    line-height: 1.03;
    font-style: italic;
    letter-spacing: -0.035em;
    font-weight: 400;

        color: var(--one-quality-soft-ink, #211F1C);}
.chat-setting-head p {
    width: min(92%, 342px);
    margin: 0;
    color: rgba(47,51,58,0.44);
    font-size: 12px;
    line-height: 1.75;
    letter-spacing: 0.02em;
}
.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: 44px;
    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,
.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;
}
.chat-setting-link-mark span { left: 5px; }
.chat-setting-link-mark i { 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,
.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,
.chat-setting-field textarea,
.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 {
    min-height: 110px;
    resize: vertical;
}
.chat-setting-field input:focus,
.chat-setting-field textarea:focus,
.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;
}
@media (max-width: 360px) {
    .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,
    .chat-setting-stats { grid-template-columns: 1fr; }
}

/* 拍一拍设置 */
.chat-setting-poke-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}
@media (max-width: 360px) {
    .chat-setting-poke-grid {
        grid-template-columns: 1fr;
    }
}


    .chat-assets-bill-item {
        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：One Phone 电话应用的轻纸面、斜体大标题、底部切换导航 */
.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;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    min-height: 0;
    z-index: 9010;
    overflow: hidden;
    height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
    max-height: var(--one-shell-lock-height, var(--one-layout-vh, 100svh));
    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);
}
.phone-app-page.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.phone-app-page button,
.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,
.phone-contact-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.phone-recent-row,
.phone-contact-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,
.phone-contact-avatar,
.phone-call-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,
.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;
    margin-top: var(--one-auth-button-top-gap);
    color: rgba(26,26,26,0.38);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.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 { 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,
.phone-call-topline span::before,
.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 {
    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,
.phone-call-bubble.system {
    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 {
    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,
.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-call-side:active .phone-call-control-orb,
.phone-hangup:active .phone-call-control-orb {
    transform: scale(0.95);}
.phone-call-side.is-active .phone-call-control-orb,
.phone-call-side:active .phone-call-control-orb {
    background: #1a1a1a;
    color: #ffffff;}
.phone-speaker.is-muted .phone-call-control-orb,
#phoneSpeaker.is-muted .phone-call-control-orb {
    color: rgba(26,26,26,0.35);
}
.phone-call-side svg,
.phone-hangup 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;
}
.phone-call-side svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}
.phone-hangup svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.2;
    transform: rotate(135deg);
}
.phone-call-control-label,
.phone-hangup span,
.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: 86px;
    height: 86px;
    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,
.phone-detail-summary span,
.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,
.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,
body.one-phone-app-open {
    overflow: hidden;
    overscroll-behavior: none;
}
body.show-phone-shell .phone-app-page {
    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,
    body.show-phone-shell .phone-keypad-stage { padding-top: 128px; }
    .phone-keypad-grid,
    body.show-phone-shell .phone-keypad-grid { gap: 38px 28px; }
    .phone-keypad-key,
    body.show-phone-shell .phone-keypad-key { height: 48px; }
}
@media (max-height: 740px) {
    .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,
    body.show-phone-shell .phone-keypad-stage { padding-top: 94px; }
    .phone-keypad-grid,
    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)); }
}
@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,
    body.show-phone-shell .phone-keypad-grid {
        gap: 50px 34px;
        margin-left: 4px;
        margin-right: 4px;
    }
    .phone-keypad-key,
    body.show-phone-shell .phone-keypad-key { height: 50px; }
    .phone-keypad-key strong { font-size: 28px; }
}


/* v86 detail polish: shorter quote bars, straight wallpaper flash, page-aware arrows, black user bubble, flipped sendbar */
.chat-thread-row.is-quickbar-row::before,
.chat-thread-row.is-wallpaper-flash::before {
    left: -14px;
    right: -14px;
    top: -6px;
    bottom: -6px;
    border-radius: 0;
    background: rgba(52, 56, 65, 0.14);
}
.chat-quickbar.is-page-first [data-chat-quick-nav="prev"],
.chat-quickbar.is-page-second [data-chat-quick-nav="next"] {
    visibility: hidden;
    pointer-events: none;
}
.chat-thread-bubble.is-text.has-quote,
.chat-thread-bubble.has-quote {
    min-width: 0;
    gap: 5px;
}
.chat-thread-quote-preview {
    width: auto;
    max-width: min(168px, calc(100vw - 148px));
    align-self: flex-start;
    padding: 6px 8px;
    border: 0;
    border-left: 0;
    outline: 0;
    box-shadow: none;
    border-radius: 8px;
    gap: 3px;
}
.chat-thread-quote-top { gap: 6px; }
.chat-thread-quote-time { display: none; }
.chat-thread-quote-text {
    max-width: 132px;
    font-size: 10.5px;
}
.chat-thread-row.is-me .chat-thread-quote-preview {
    background: rgba(255, 255, 255, 0.18);
}
.chat-thread-row.is-ta .chat-thread-quote-preview {
    background: rgba(52, 56, 65, 0.048);
}
.chat-quote-dock {
    width: min(218px, 100%);
    justify-self: start;
    border: 0;
    outline: 0;
    box-shadow: 0 7px 16px rgba(40, 44, 52, 0.075);
    padding: 6px 7px 6px 10px;
    border-radius: 13px;
}
.chat-quote-dock-copy span { max-width: 156px; }
.chat-thread-view {
    --chat-bubble-me: #000000;
}
.chat-thread-sendbar {
    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,
.chat-thread-send {
    color: #000000;
}
.chat-thread-send:active,
.chat-thread-emoji:active {
    background: rgba(0, 0, 0, 0.055);}


/* v87 correction: quote fills bubble with left rule, restore sendbars, keep online me bubble pure black */
.chat-thread-view {
    --chat-bubble-me: #000000;
}
.chat-thread-bubble.is-text.has-quote,
.chat-thread-bubble.has-quote {
    align-items: stretch;
    min-width: min(168px, calc(100vw - 148px));
    gap: 5px;
}
.chat-thread-quote-preview {
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
    padding: 6px 8px 6px 9px;
    border: 0;
    border-left: 2px solid rgba(52, 56, 65, .24);
    outline: 0;
    box-shadow: none;
    border-radius: 8px;
    gap: 3px;
}
.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-row.is-ta .chat-thread-quote-preview {
    background: rgba(52, 56, 65, 0.048);
    border-left-color: rgba(52, 56, 65, .24);
}
.chat-thread-quote-text {
    max-width: 100%;
}
.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;}
.chat-offline-sendbar {
    background: #000000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.chat-offline-continue {
    color: #FFFFFF;
}
.chat-offline-send.chat-thread-send.footer-btn-side {
    background: #FFFFFF;
    color: #000000;
}
.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;
}

/* v88 correction: compact quick action bar only (previous “引用栏” feedback referred to this toolbar) */
.chat-quickbar {
    width: min(268px, calc(100vw - 56px));
    min-height: 44px;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    gap: 1px;
    padding: 5px 6px;
    border-radius: 17px;
    box-shadow: 0 10px 24px rgba(40, 44, 52, 0.105);
}
.chat-quickbar-page {
    gap: 1px;
}
.chat-quickbar-page button {
    height: 36px;
    border-radius: 11px;
    gap: 2px;
}
.chat-quickbar-page button span {
    font-size: 9.5px;
    line-height: 1;
    letter-spacing: .025em;
}
.chat-quickbar-page button em {
    font-size: 7px;
    line-height: 1;
    letter-spacing: .08em;
}
.chat-quickbar-nav {
    width: 20px;
    height: 36px;
    border-radius: 11px;
    font-size: 20px;
}
@media (max-width: 365px) {
    .chat-quickbar {
        width: min(256px, calc(100vw - 52px));
        padding-left: 5px;
        padding-right: 5px;
    }
    .chat-quickbar-page button span { font-size: 9px; }
    .chat-quickbar-page button em { font-size: 6.5px; }
}

/* v89 correction: shrink quick action bar shell only */
.chat-quickbar {
    width: min(246px, calc(100vw - 72px));
    min-height: 38px;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    gap: 0;
    padding: 3px 4px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(40, 44, 52, 0.09);
}
.chat-quickbar-page { gap: 0; }
.chat-quickbar-page button {
    height: 34px;
    border-radius: 9px;
}
.chat-quickbar-nav {
    width: 18px;
    height: 34px;
    border-radius: 9px;
    font-size: 18px;
}
@media (max-width: 365px) {
    .chat-quickbar {
        width: min(236px, calc(100vw - 68px));
        padding-left: 3px;
        padding-right: 3px;
    }
}

/* v99 correction: quote preview, quote input dock, watch icon, translation label */
.chat-thread-bubble.is-text.has-quote,
.chat-thread-bubble.has-quote {
    align-items: stretch;
    min-width: min(188px, calc(100vw - 138px));
    gap: 6px;
}
.chat-thread-quote-preview {
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
    margin: 0;
    padding: 7px 9px 7px 10px;
    border: 0;
    border-left: 2px solid rgba(52, 56, 65, .24);
    border-radius: 9px;
    box-shadow: none;
    background: rgba(52, 56, 65, 0.048);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.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;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.chat-thread-quote-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
    color: rgba(52, 56, 65, .64);
}
.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;
    letter-spacing: .02em;
    font-weight: 400;
    color: rgba(52, 56, 65, .38);
    opacity: .92;
}
.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,
.chat-thread-row.is-me .chat-thread-quote-time,
.chat-thread-row.is-me .chat-thread-quote-text {
    color: rgba(255,255,255,.72);
}

.chat-thread-composer > .chat-quote-dock {
    grid-column: 1 / 4;
    grid-row: 1;
}
.chat-quote-dock {
    position: relative;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    align-self: stretch;
    margin: 0 0 -2px 0;
    padding: 8px 30px 8px 12px;
    border-radius: 15px;
    background: rgba(248, 249, 251, 0.96);
    color: #000;
    border: 1px solid rgba(52, 56, 65, .075);
    outline: 0;
    box-shadow: 0 7px 16px rgba(40, 44, 52, 0.075);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 8px;
    box-sizing: border-box;
    pointer-events: auto;
}
.chat-quote-dock-copy {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.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-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
    color: rgba(52, 56, 65, .66);
}
.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;
    max-width: none;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 400;
    color: rgba(52, 56, 65, .64);
}
.chat-quote-dock-close {
    position: absolute;
    top: 5px;
    right: 6px;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(118, 118, 128, 0.18);
    color: rgba(52, 56, 65, 0.48);
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
}
.chat-quote-dock-close:active {
    background: rgba(118, 118, 128, 0.26);
    color: rgba(52, 56, 65, 0.62);}

.chat-thread-tool[data-thread-tool="一起看"] .chat-thread-tool-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(52, 57, 65, 0.08);
    box-shadow: 0 3px 8px rgba(76, 72, 64, 0.032), 0 1px 0 rgba(255,255,255,0.86) inset;
    color: #000;
}
.chat-watch-tv-icon {
    position: relative;
    width: 22px;
    height: 18px;
    display: inline-block;
    box-sizing: border-box;
    border: 1.8px solid currentColor;
    border-radius: 5px;
    color: #000;
    background: transparent;
    transform: none;
}
.chat-watch-tv-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 2px;
    background: currentColor;
}
.chat-watch-tv-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: -5px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: .9;
}

.chat-thread-translation:not([data-lang])::before,
.chat-thread-translation[data-lang=""]::before,
.chat-thread-translation[data-lang="中文"]::before {
    display: none;
    content: none;
}


/* v100 correction: only fill the existing watch TV icon; quote-dock close sits half outside the top-right corner */
.chat-thread-composer {
    overflow: visible;
}
.chat-quote-dock {
    overflow: visible;
    padding: 8px 12px;
}
.chat-quote-dock-close {
    top: -9px;
    right: -9px;
    width: 18px;
    height: 18px;
    z-index: 3;
    background: rgba(118, 118, 128, 0.20);
    color: rgba(52, 56, 65, 0.46);
    opacity: 0.88;
}
.chat-thread-tool[data-thread-tool="一起看"] .chat-thread-tool-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
}
.chat-watch-tv-icon {
    position: relative;
    width: 24px;
    height: 18px;
    display: inline-block;
    border: 1.8px solid #000;
    border-radius: 6px;
    color: #000;
    box-sizing: border-box;
    background: transparent;
    transform: none;
}
.chat-watch-tv-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 1px;
    background: currentColor;
}
.chat-watch-tv-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 9px;
    border-radius: 999px;
    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;
}


/* One Phone global appearance control center */
: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-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: start;
}
.settings-app-editor-main {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}
.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 {
    border-radius: var(--one-app-icon-radius, 17px);
    background: var(--one-app-icon-bg, rgba(255,255,255,0.45));
    border: var(--one-app-icon-border, 1px solid rgba(255,255,255,0.62));
    box-shadow: var(--one-app-icon-shadow, 0 8px 24px rgba(120,130,140,0.04), inset 0 2px 4px rgba(255,255,255,0.8));
    backdrop-filter: var(--one-app-icon-backdrop, blur(8px));
    -webkit-backdrop-filter: var(--one-app-icon-backdrop, blur(8px));
    display: grid;
    place-items: center;
    overflow: hidden;
}
.settings-app-editor-icon .icon-logo-frame {
    width: 66%;
    height: 66%;
    display: grid;
    place-items: center;
}
.settings-app-editor-icon svg {
    width: 21px;
    height: 21px;
    max-width: 100%;
    max-height: 100%;
    fill: var(--one-app-logo-color, #111111);
}
.settings-app-editor-icon .app-custom-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}
.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;
}


/* v135 refinement: settings detail number, icon editor spacing and placeholders */
.settings-icon-radius-control {
    margin-top: 28px;
    padding-top: 12px;
}
.settings-icon-radius-control .settings-range-top {
    margin-bottom: 14px;
}
.settings-app-editor-main {
    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);
}
.settings-app-editor-main .settings-field-input {
    padding-bottom: 0;
    font-weight: 400;
    color: #424852;
}
.settings-app-editor-main .settings-field-input::placeholder {
    color: #AAB0BA;
    opacity: 1;
    font-weight: 400;
}
.settings-app-editor-actions .settings-thin-button,
.settings-app-editor-main .settings-field-input {
    letter-spacing: 0.08em;
}

    .memory-dimension-list[hidden] { display: none; }

    #wbSettingToneRow .wb-tone-custom { display: none; }


/* v157 · Diary line-paper system: no rounded rectangles, no capsules */
.chat-ta-diary-view .chat-ta-subpage-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.chat-ta-diary-view .chat-ta-subpage-close::before {
    content: "";
    position: absolute;
    inset: auto 0 5px 0;
    height: 1px;
    background: rgba(52,57,65,0.20);
}
.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);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08));
    box-shadow: none;
    overflow: visible;
}
.chat-ta-diary-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 18px;
    height: 1px;
    background: rgba(52,57,65,0.34);
    pointer-events: none;
}
.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-main {
    padding: 16px 0 15px 28px;
    background: transparent;
}
.chat-ta-diary-card-mark {
    margin-bottom: 13px;
    color: rgba(52,57,65,0.32);
}
.chat-ta-diary-card-head strong {
    font-size: 22px;
    line-height: 1.04;
}
.chat-ta-diary-card-meta,
.chat-ta-diary-detail-meta,
.chat-thread-diary-forward-meta {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.chat-ta-diary-card-meta span,
.chat-ta-diary-detail-meta span,
.chat-thread-diary-forward-meta em {
    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);
    font-style: normal;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.055em;
}
.chat-ta-diary-card-excerpt {
    margin: 12px 0 0;
    padding-right: 12px;
}
.chat-ta-diary-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(117,124,135,0.10);
    margin-left: 28px;
}
.chat-ta-diary-card-actions button {
    border: 0;
    border-right: 1px solid rgba(117,124,135,0.10);
    border-radius: 0;
    padding: 11px 8px 12px;
    background: transparent;
    color: rgba(52,57,65,0.58);
    box-shadow: none;
}
.chat-ta-diary-paper {
    position: relative;
    border: 0;
    border-top: 1px solid rgba(117,124,135,0.18);
    border-bottom: 1px solid rgba(117,124,135,0.12);
    border-radius: 0;
    padding: 21px 0 24px;
    background:
        linear-gradient(rgba(117,124,135,0.065) 1px, transparent 1px) 0 90px / 100% 32px,
        linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.10));
    box-shadow: none;
}
.chat-ta-diary-paper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 26px;
    height: 1px;
    background: rgba(52,57,65,0.34);
}
.chat-ta-diary-paper::after {
    right: 2px;
    bottom: 16px;
}
.chat-ta-diary-paper-top,
.chat-ta-diary-paper h2,
.chat-ta-diary-detail-meta,
.chat-ta-diary-detail-body {
    padding-left: 28px;
    padding-right: 4px;
}
.chat-ta-diary-detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid rgba(117,124,135,0.12);
}
.chat-ta-diary-detail-forward,
.chat-ta-diary-detail-delete,
.chat-ta-diary-manage,
.chat-ta-diary-generate {
    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-generate {
    width: 100%;
    border-top: 1px solid rgba(117,124,135,0.16);
    text-align: left;
}
.chat-ta-diary-manage {
    min-width: 56px;
    text-align: right;
}
.chat-ta-diary-manage.is-active {
    background: transparent;
    color: #303740;
    border-bottom-color: rgba(52,57,65,0.30);
}
.chat-thread-diary-forward-card {
    position: relative;
    width: min(212px, 58vw);
    min-height: 98px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(117,124,135,0.16);
    border-left: 3px solid rgba(52,57,65,0.28);
    border-radius: 0;
    padding: 10px 11px 9px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(248,246,242,0.42));
    color: #343941;
    text-align: left;
    box-shadow: none;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.chat-thread-diary-forward-card::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: rgba(52,57,65,0.18);
    pointer-events: none;
}
.chat-thread-diary-forward-card strong,
.chat-thread-diary-forward-title {
    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-thread-diary-forward-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 7px;
    color: rgba(52,57,65,0.58);
    font-size: 11px;
    line-height: 1.48;
    letter-spacing: 0.025em;
}
.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);
    color: rgba(52,57,65,0.38);
    font-family: "Courier New", Courier, monospace;
    font-size: 8.5px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.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,
.chat-thread-diary-forward-tail {
    display: none;
}

/* v157 end */


/* v157 final · Diary compact transfer card + square note detail */
.chat-ta-diary-view.is-detail-open .chat-ta-subpage-title {
    visibility: hidden;
    pointer-events: none;
}
.chat-ta-diary-view.is-detail-open .chat-ta-subpage-head {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 8px;
}
.chat-ta-diary-view .chat-ta-subpage-close,
.chat-ta-diary-detail-back,
.chat-ta-diary-generate,
.chat-ta-diary-manage,
.chat-ta-diary-detail-forward,
.chat-ta-diary-card,
.chat-ta-diary-card-main,
.chat-ta-diary-card-actions button,
.chat-ta-diary-detail-actions button,
.chat-thread-diary-forward-card {
    border-radius: 0;
    box-shadow: none;
}
.chat-ta-diary-card-meta span,
.chat-ta-diary-detail-meta span,
.chat-thread-diary-forward-meta em {
    border-radius: 0;
    background: transparent;
}
.chat-thread-row.is-ta .chat-thread-bubble.is-diary-forward-card,
.chat-thread-row.is-me .chat-thread-bubble.is-diary-forward-card {
    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;
    width: 220px;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    display: flex;
    flex-direction: column;
    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;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(52, 56, 65, 0.035);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.chat-thread-diary-forward-card::before { 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 {
    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-thread-diary-forward-foot {
    position: absolute;
    z-index: 2;
    left: 15px;
    right: 15px;
    bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    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-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,
.chat-thread-diary-forward-tail { display: none; }
.chat-ta-diary-detail-page {
    gap: 12px;
}
.chat-ta-diary-detail-back {
    align-self: flex-start;
    border: 0;
    border-bottom: 1px solid rgba(52,57,65,0.20);
    padding: 0 0 5px;
    background: transparent;
    color: rgba(52,57,65,0.58);
    font-size: 11px;
    letter-spacing: 0.12em;
}
.chat-ta-diary-paper {
    position: relative;
    border: 0;
    border-top: 1px solid rgba(52,57,65,0.20);
    border-bottom: 1px solid rgba(52,57,65,0.14);
    padding: 22px 0 26px;
    background:
        linear-gradient(90deg, rgba(52,57,65,0.16) 0 1px, transparent 1px) 21px 0 / 1px 100% no-repeat,
        linear-gradient(rgba(117,124,135,0.075) 1px, transparent 1px) 0 96px / 100% 31px,
        linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0.10));
    box-shadow: none;
}
.chat-ta-diary-paper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 26px;
    width: 32px;
    height: 1px;
    background: rgba(52,57,65,0.34);
    pointer-events: none;
}
.chat-ta-diary-paper::after {
    content: "✧";
    position: absolute;
    right: 2px;
    bottom: 14px;
    color: rgba(52,57,65,0.16);
    font-size: 17px;
}
.chat-ta-diary-note-pin {
    display: block;
    width: 24px;
    height: 1px;
    margin-top: var(--one-auth-button-top-gap);
    background: rgba(52,57,65,0.28);
}
.chat-ta-diary-paper-top,
.chat-ta-diary-paper h2,
.chat-ta-diary-detail-meta,
.chat-ta-diary-detail-body {
    padding-left: 34px;
    padding-right: 4px;
}
.chat-ta-diary-paper-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.chat-ta-diary-paper h2 {
    margin: 17px 0 0;
    color: #303740;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 27px;
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-style: italic;
    font-weight: 400;
}
.chat-ta-diary-detail-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.chat-ta-diary-detail-meta span {
    border: 0;
    border-left: 1px solid rgba(117,124,135,0.22);
    padding: 0 0 0 9px;
    color: rgba(52,57,65,0.50);
    font-style: normal;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.055em;
}
.chat-ta-diary-detail-body {
    margin-top: 19px;
    color: rgba(52,57,65,0.74);
    font-size: 14px;
    line-height: 2.06;
    letter-spacing: 0.025em;
    white-space: normal;
}
.chat-ta-diary-detail-body p {
    margin: 0 0 14px;
}
.chat-ta-diary-underline {
    text-decoration-line: underline;
    text-decoration-thickness: 0.42em;
    text-underline-offset: -0.18em;
    text-decoration-color: rgba(207,196,177,0.46);
    text-decoration-skip-ink: none;
}
.chat-ta-diary-secret {
    display: block;
    width: min(238px, 74%);
    min-height: 30px;
    margin: 18px 0 2px;
    border: 0;
    border-radius: 0;
    padding: 6px 8px;
    background: #000;
    color: transparent;
    text-align: left;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.chat-ta-diary-secret span {
    color: transparent;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0.04em;
}
.chat-ta-diary-secret.is-revealed {
    width: auto;
    max-width: 100%;
    min-height: 0;
    border-left: 2px solid #000;
    padding: 1px 0 1px 12px;
    background: transparent;
}
.chat-ta-diary-secret.is-revealed span {
    color: rgba(52,57,65,0.72);
}

/* v157 final end */


/* v158 · Diary entry-page side-note paper */
.chat-ta-diary-view.is-detail-open .chat-ta-subpage-head {
    display: none;
}
.chat-ta-diary-entry-page {
    gap: 18px;
}
.chat-ta-diary-entry-note-paper,
.chat-ta-diary-note-paper {
    position: relative;
    display: block;
    border: 0;
    border-top: 1px solid rgba(52,57,65,0.20);
    border-bottom: 1px solid rgba(52,57,65,0.10);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.chat-ta-diary-entry-note-paper {
    margin: 2px 0 4px 34px;
    padding: 15px 10px 12px 17px;
    background:
        linear-gradient(90deg, rgba(52,57,65,0.14) 0 1px, transparent 1px) 12px 0 / 1px 100% no-repeat,
        linear-gradient(rgba(117,124,135,0.055) 1px, transparent 1px) 0 20px / 100% 25px,
        linear-gradient(180deg, rgba(255,252,244,0.58), rgba(255,255,255,0.12));
    color: rgba(52,57,65,0.66);
}
.chat-ta-diary-entry-note-paper::before,
.chat-ta-diary-note-paper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 22px;
    height: 1px;
    background: rgba(52,57,65,0.30);
    pointer-events: none;
}
.chat-ta-diary-entry-note-paper::after,
.chat-ta-diary-note-paper::after {
    content: "✧";
    position: absolute;
    right: 2px;
    bottom: 8px;
    color: rgba(52,57,65,0.12);
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}
.chat-ta-diary-entry-note-kicker {
    display: block;
    margin: 0 0 9px;
    color: rgba(52,57,65,0.28);
    font-family: "Courier New", Courier, monospace;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.28em;
}
.chat-ta-diary-entry-note-paper strong {
    display: block;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #303740;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 18px;
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-style: italic;
    font-weight: 400;
}
.chat-ta-diary-entry-note-paper p,
.chat-ta-diary-note-paper p {
    margin: 9px 0 0;
    color: rgba(52,57,65,0.64);
    font-size: 12px;
    line-height: 1.82;
    letter-spacing: 0.04em;
}
.chat-ta-diary-entry-note-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(117,124,135,0.10);
    color: rgba(52,57,65,0.34);
    font-family: "Courier New", Courier, monospace;
    font-size: 8.5px;
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.chat-ta-diary-entry-note-paper.is-empty {
    opacity: 0.72;
}
.chat-ta-diary-note-paper {
    margin: 20px 4px 0 34px;
    padding: 14px 14px 15px 16px;
    background:
        linear-gradient(90deg, rgba(52,57,65,0.12) 0 1px, transparent 1px) 13px 0 / 1px 100% no-repeat,
        linear-gradient(rgba(117,124,135,0.055) 1px, transparent 1px) 0 20px / 100% 24px,
        linear-gradient(180deg, rgba(255,252,244,0.62), rgba(255,255,255,0.20));
    color: rgba(52,57,65,0.68);
}
