:root {
  color-scheme: light;
  --app-height: 100vh;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --field: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #d9e2ec;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 46%, #eef3f8 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.room-active {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  padding: 12px;
  outline: none;
}

textarea {
  min-height: 58px;
  resize: none;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.app-frame {
  position: relative;
  width: min(430px, 100%);
  height: min(920px, calc(var(--app-height) - 28px));
  min-height: min(720px, calc(var(--app-height) - 28px));
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 28px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.home-view {
  height: 100%;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 18px 280px;
  scroll-padding-bottom: 240px;
  scrollbar-width: none;
}

.home-view::-webkit-scrollbar,
.messages::-webkit-scrollbar {
  display: none;
}

.home-view::after {
  content: "";
  display: block;
  height: 112px;
}

.topbar,
.hero-actions,
.room-header,
.room-actions,
.participants,
.composer-actions,
.account-actions,
.sheet-actions,
.legal-nav {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 8px;
}

.icon-text-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.brand-lockup {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(6, 24, 68, 0.12);
}

.brand-wordmark {
  width: 112px;
  max-width: 31vw;
  height: auto;
  display: block;
}

.brand-slogan {
  max-width: 170px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-language {
  min-width: 96px;
  flex: 0 0 96px;
  display: grid;
  gap: 0;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}

.ui-language span {
  display: none;
}

.ui-language select {
  min-height: 34px;
  padding: 6px 25px 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.eyebrow,
.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.messenger-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 2px 0;
}

.messenger-hero .kicker {
  display: none;
}

.messenger-hero h1 {
  margin-top: 0;
  font-size: 26px;
  line-height: 1.05;
}

.messenger-hero p:not(.kicker) {
  display: none;
}

.new-chat-button {
  min-width: 86px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: #0f766e;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.18);
  font-size: 13px;
}

.search-panel input {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: #eef3f8;
  color: #344054;
  font-size: 14px;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-action-grid button {
  min-height: 58px;
  padding: 9px 6px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  line-height: 1.2;
}

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

.conversation-panel .panel-title {
  display: none;
}

.conversation-panel {
  padding-top: 2px;
}

.home-tab-panel {
  min-height: 430px;
}

.account-panel {
  margin-bottom: 96px;
}

.conversation-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 9px 2px;
  border-bottom: 1px solid #eef2f6;
  background: transparent;
  text-align: left;
}

.conversation-item:last-child {
  border-bottom: 0;
}

.conversation-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.conversation-copy {
  min-width: 0;
}

.conversation-copy strong {
  display: block;
  color: #101828;
  font-size: 15px;
  line-height: 1.25;
}

.conversation-copy span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: #98a2b3;
  font-size: 11px;
}

.unread-dot {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hero-panel p:not(.kicker) {
  color: #475467;
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  gap: 9px;
}

.hero-actions button {
  flex: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.steps article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.steps strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
}

.panel,
.home-disclaimer {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.panel-title {
  display: grid;
  gap: 4px;
}

.panel-title span,
label {
  color: var(--muted);
  font-size: 13px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.plan-picker {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.plan-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.plan-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  min-height: 66px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.plan-card span {
  color: #1d2939;
}

.plan-card strong {
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
}

.plan-card small {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
}

.plan-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, #0f766e, #2563eb);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.secondary-button,
.ghost-button {
  color: #1d2939;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.ghost-button {
  background: transparent;
  color: #344054;
}

.danger-action {
  color: var(--danger);
  border-color: #fecdca;
  background: #fff7f7;
}

.pricing-grid {
  display: grid;
  gap: 8px;
}

.pricing-grid article {
  display: grid;
  grid-template-columns: 52px 76px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 78px;
  padding: 11px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfe;
}

.pricing-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.pricing-grid strong {
  color: #101828;
  font-size: 18px;
  line-height: 1;
}

.pricing-grid p {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.tiny-button {
  grid-column: 1 / -1;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cde7e2;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.account-status {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 16px;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 750;
}

.account-center {
  display: grid;
  gap: 12px;
  padding-bottom: 96px;
}

.account-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f0ee;
  color: #0a625a;
  font-size: 15px;
  font-weight: 820;
}

.account-avatar.guest {
  background: #eceef1;
  color: #50565d;
}

.account-status strong {
  display: block;
  color: #111315;
  font-size: 16px;
}

.account-status span,
.account-status small,
.account-device-card span,
.account-row small {
  display: block;
  margin-top: 3px;
  color: #747b77;
  font-size: 12px;
  line-height: 1.35;
}

.account-device-card,
.account-action-group {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 16px;
  background: #fff;
}

.account-device-card strong,
.account-action-group h3 {
  margin: 0;
  color: #111315;
  font-size: 14px;
}

.account-row {
  width: 100%;
  min-height: 48px;
  display: grid;
  gap: 2px;
  padding: 11px 0;
  border-top: 1px solid rgba(17, 19, 21, 0.06);
  border-radius: 0;
  background: transparent;
  color: #111315;
  text-align: left;
  scroll-margin-bottom: 112px;
}

.account-row span {
  font-size: 14px;
  font-weight: 780;
}

.account-row.primary-row span {
  color: #087f73;
}

.account-row.danger-row span {
  color: #b42318;
}

.launch-checklist {
  display: grid;
  gap: 12px;
}

.launch-checklist-group {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 14px;
  background: #fff;
}

.launch-checklist-group h3 {
  margin: 0;
  font-size: 13px;
}

.launch-checklist-group span {
  display: block;
  color: #656d69;
  font-size: 12px;
  line-height: 1.45;
}

.launch-checklist-group.done h3 {
  color: #087f73;
}

.launch-checklist-group.doing h3 {
  color: #274690;
}

.launch-checklist-group.required h3 {
  color: #9a5a00;
}

.wallet-status {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wallet-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-balance-grid article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 16px;
  background: #fff;
}

.wallet-balance-grid span,
.wallet-balance-grid small {
  color: #747b77;
  font-size: 12px;
  font-weight: 700;
}

.wallet-balance-grid strong {
  color: #111315;
  font-size: 28px;
  line-height: 1;
}

.wallet-rules,
.wallet-records {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 16px;
  background: #fff;
}

.wallet-rules h3,
.wallet-records h3 {
  margin: 0;
  color: #111315;
  font-size: 14px;
}

.wallet-rules p,
.wallet-records p {
  margin: 0;
  color: #747b77;
  font-size: 12px;
  line-height: 1.45;
}

.wallet-records {
  grid-template-columns: minmax(0, 1fr);
}

.wallet-records > span {
  color: #111315;
  font-size: 12px;
  font-weight: 760;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfe;
}

.contact-main-button {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.contact-item strong {
  display: block;
  color: #101828;
  font-size: 14px;
}

.contact-item span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.contact-item button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent);
  font-size: 12px;
}

.contact-item .contact-main-button {
  width: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.contact-item .contact-profile-button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  background: #f1f5f4;
  color: #111315;
  font-size: 18px;
  font-weight: 540;
}

.contact-extra-note {
  min-height: 104px;
}

.friend-request-section {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.friend-request-section h3 {
  margin: 4px 0 0;
  color: #101828;
  font-size: 14px;
}

.friend-request-section p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.contact-item .inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-item .inline-actions button:last-child {
  background: #fff7ed;
  color: #b45309;
}

.room-contact-list {
  display: grid;
  gap: 8px;
}

.room-contact-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfe;
}

.room-contact-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.room-contact-option strong {
  display: block;
  color: #101828;
  font-size: 14px;
}

.room-contact-option small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-actions button {
  width: 100%;
}

.account-actions .danger-action {
  grid-column: 1 / -1;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-strip span {
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  color: #475467;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 750;
}

.home-disclaimer {
  grid-template-columns: auto 1fr;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: none;
}

.home-disclaimer strong {
  color: var(--accent);
}

.release-list {
  display: grid;
  gap: 8px;
}

.release-list span {
  padding: 10px 11px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfe;
  color: #344054;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.4;
}

.legal-nav {
  justify-content: center;
  gap: 12px;
  padding: 2px 0 4px;
}

.home-bottom-nav {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: max(4px, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(14px);
}

.home-bottom-nav button {
  min-height: 42px;
  padding: 7px 4px;
  border-radius: 12px;
  background: transparent;
  color: #667085;
  font-size: 12px;
}

.home-bottom-nav button.active {
  background: #ecfdf5;
  color: var(--accent);
}

.text-button {
  min-height: 32px;
  padding: 4px 2px;
  border-radius: 0;
  background: transparent;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.room-view {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-areas:
    "header"
    "messages"
    "composer";
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
  padding: 10px 10px max(8px, env(safe-area-inset-bottom));
  background: #f8fafc;
}

.room-header {
  grid-area: header;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0;
}

.room-header h2 {
  overflow: hidden;
  color: #101828;
  font-size: 20px;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-title {
  min-width: 0;
  text-align: center;
}

.chat-title .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}

.chat-back-button,
.chat-more-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #1d2939;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.chat-more-button {
  font-size: 24px;
}

.room-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.room-actions button {
  min-height: 40px;
  padding: 7px 5px;
  font-size: 11px;
  line-height: 1.15;
}

.room-settings {
  grid-area: settings;
  display: none;
}

.invite-card {
  grid-area: invite;
  display: none;
  gap: 6px;
  padding: 10px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
}

.invite-card code {
  color: #1d2939;
  word-break: break-all;
  font-family: "SF Mono", Consolas, monospace;
}

.participants {
  grid-area: participants;
  gap: 6px;
  overflow-x: auto;
}

.participant {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  white-space: nowrap;
}

.participant.me {
  border-color: rgba(15, 118, 110, 0.7);
  color: var(--accent);
}

.room-limit {
  grid-area: limit;
  display: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.room-tools {
  grid-area: tools;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tool-button {
  min-height: 36px;
  padding: 7px 6px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  font-weight: 820;
}

.glossary-editor {
  min-height: 150px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfe;
}

.history-item strong {
  color: #101828;
  font-size: 14px;
}

.history-item span {
  color: #667085;
  font-size: 12px;
}

.messages {
  grid-area: messages;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 3px 0 8px;
  overscroll-behavior: contain;
  scroll-padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.message {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scroll-margin-bottom: 8px;
}

.message.mine {
  align-self: flex-end;
  border-color: rgba(15, 118, 110, 0.58);
  background: #f0fdfa;
}

.message.voice .translated {
  font-weight: 700;
}

.message.voice .original {
  color: var(--muted);
}

.message-meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.translated-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.translated {
  font-size: 15px;
  line-height: 1.45;
}

.speak-button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #cde7e2;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent);
  font-size: 11px;
}

details {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

summary {
  cursor: pointer;
}

.original {
  margin-top: 6px;
  color: #344054;
  line-height: 1.45;
}

.message-status {
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #667085;
  font-size: 11px;
  font-weight: 760;
}

.message.mine .message-status {
  display: flex;
}

.message.delivery-sending {
  opacity: 0.78;
}

.message.delivery-read .message-status {
  color: var(--accent);
}

.message.delivery-failed {
  border-color: rgba(217, 45, 32, 0.45);
  background: #fff8f6;
}

.message.delivery-failed .message-status {
  color: #b42318;
}

.message-retry-button {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef3f2;
  color: #b42318;
  font-size: 11px;
}

.composer {
  grid-area: composer;
  z-index: 4;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.composer.expired {
  opacity: 0.72;
}

.composer textarea {
  min-height: 58px;
  max-height: 86px;
  padding: 10px 11px;
}

.composer-actions {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 8px;
}

.mic-button {
  color: var(--accent);
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  touch-action: none;
}

.mic-button.listening {
  color: #fff;
  background: #f97373;
  border-color: #f97373;
}

.send-button {
  width: 100%;
}

.hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.wechat-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(248, 250, 252, 0.96);
}

.wechat-card {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wechat-card p {
  color: #475467;
  line-height: 1.65;
}

.purchase-sheet,
.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(16, 24, 40, 0.38);
}

.purchase-card,
.sheet-card {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.purchase-card h2,
.sheet-card h2 {
  font-size: 22px;
}

.purchase-copy {
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}

.purchase-pack-list {
  display: grid;
  gap: 8px;
}

.purchase-pack-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfe;
  text-align: left;
}

.purchase-pack-option strong {
  color: #101828;
  font-size: 14px;
}

.purchase-pack-option b {
  color: var(--accent);
  font-size: 18px;
}

.purchase-pack-option span {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
}

.purchase-pack-option.selected {
  border-color: var(--accent);
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.purchase-benefits {
  display: grid;
  gap: 8px;
}

.purchase-benefits span {
  padding: 10px 11px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #fbfcfe;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.sheet-card {
  max-height: min(86vh, 720px);
  overflow: hidden;
}

.sheet-body {
  overflow-y: auto;
  display: grid;
  gap: 12px;
  max-height: 58vh;
  padding-right: 2px;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
}

.sheet-body label {
  color: #475467;
}

.sheet-body h3 {
  margin: 2px 0 0;
  color: #101828;
  font-size: 16px;
}

.sheet-body ul {
  margin: 0;
  padding-left: 18px;
}

.settings-list {
  display: grid;
  gap: 8px;
}

.settings-list button {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.notification-settings-list {
  display: grid;
  gap: 8px;
}

.notification-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 14px;
  background: #fff;
}

.notification-setting-row strong,
.notification-setting-row small {
  display: block;
}

.notification-setting-row strong {
  color: #111315;
  font-size: 14px;
}

.notification-setting-row small {
  margin-top: 3px;
  color: #747b77;
  font-size: 12px;
  line-height: 1.4;
}

.notification-setting-row input {
  width: 22px;
  height: 22px;
  accent-color: #087f73;
}

.personal-qr-card {
  display: grid;
  gap: 13px;
  justify-items: center;
  padding: 8px 0 2px;
  color: #111315;
  text-align: center;
}

.personal-qr-header {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
}

.personal-qr-header strong,
.personal-qr-header small {
  display: block;
}

.personal-qr-header strong {
  font-size: 16px;
}

.personal-qr-header small,
.personal-qr-card small {
  color: #747b77;
  font-size: 12px;
  line-height: 1.45;
}

.qr-grid {
  --qr-size: min(66vw, 250px);
  width: var(--qr-size);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 18px;
  background: #fff;
}

.qr-grid span {
  border-radius: 2px;
  background: transparent;
}

.qr-grid span.active {
  background: #111315;
}

.talkin-id-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.talkin-id-row span {
  color: #747b77;
  font-size: 12px;
  font-weight: 760;
}

.talkin-id-row strong {
  color: #087f73;
  font-size: 13px;
  letter-spacing: 0;
}

.qr-scanner-card {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.qr-camera-frame {
  position: relative;
  width: min(70vw, 280px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: #111315;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.qr-camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-camera-frame::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  pointer-events: none;
}

.qr-scan-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #20d6b5;
  pointer-events: none;
}

.qr-scan-corner.top-left {
  top: 18%;
  left: 18%;
  border-top: 3px solid;
  border-left: 3px solid;
  border-top-left-radius: 12px;
}

.qr-scan-corner.top-right {
  top: 18%;
  right: 18%;
  border-top: 3px solid;
  border-right: 3px solid;
  border-top-right-radius: 12px;
}

.qr-scan-corner.bottom-left {
  bottom: 18%;
  left: 18%;
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-bottom-left-radius: 12px;
}

.qr-scan-corner.bottom-right {
  right: 18%;
  bottom: 18%;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-bottom-right-radius: 12px;
}

.qr-scanner-card p {
  margin: 0;
  color: #747b77;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.group-member-section,
.group-member-list {
  display: grid;
  gap: 8px;
}

.group-settings-field {
  display: grid;
  gap: 7px;
}

.group-settings-field span {
  color: #8a918d;
  font-size: 12px;
  font-weight: 760;
}

.group-settings-field input,
.group-settings-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #111315;
  font: inherit;
  font-size: 14px;
  padding: 0 12px;
}

.group-member-section h3 {
  margin: 0;
  color: #8a918d;
  font-size: 12px;
}

.group-member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 12px;
  background: #fff;
}

.group-member-row strong,
.group-member-row small {
  display: block;
}

.group-member-row strong {
  color: #111315;
  font-size: 14px;
}

.group-member-row small {
  margin-top: 2px;
  color: #747b77;
  font-size: 12px;
}

.group-member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.group-member-remove-button,
.group-member-transfer-button {
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 760;
  padding: 8px 10px;
}

.group-member-transfer-button {
  background: rgba(5, 120, 108, 0.08);
  color: #087f73;
}

.group-member-remove-button {
  background: rgba(186, 52, 52, 0.08);
  color: #ad2d2d;
}

.empty-note {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 12px;
  background: #fff;
  color: #747b77;
  font-size: 13px;
}

.message.system {
  align-self: center;
  max-width: 92%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 8px;
  text-align: center;
}

.message.system .translated-row {
  display: block;
}

.message.system .translated {
  color: #747b77;
  font-size: 12px;
  line-height: 1.5;
}

.room-more-menu {
  display: grid;
  gap: 14px;
}

.room-menu-section {
  display: grid;
  gap: 6px;
}

.room-menu-section h3 {
  margin: 0 0 2px;
  color: #8a918d;
  font-size: 11px;
  font-weight: 760;
}

.room-menu-row {
  width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(17, 19, 21, 0.07);
  border-radius: 12px;
  background: #fff;
  color: #111315;
  text-align: left;
  box-shadow: none;
}

.room-menu-row small {
  color: #7a817d;
  font-size: 12px;
  font-weight: 680;
}

.room-menu-row.danger-action {
  border-color: rgba(180, 35, 24, 0.12);
  background: #fffafa;
  color: #b42318;
}

.mode-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fafc;
}

.mode-summary strong {
  color: #101828;
  font-size: 14px;
}

.mode-summary span {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.sheet-inline-warning {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #fedf89;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.language-pack-list {
  display: grid;
  gap: 8px;
}

.language-pack-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #ffffff;
}

.language-pack-item.recommended {
  border-color: rgba(20, 184, 166, 0.5);
  background: #f0fdfa;
}

.language-pack-item strong {
  color: #101828;
  font-size: 14px;
}

.language-pack-item span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
}

.language-pack-item button {
  min-width: 72px;
}

.support-link {
  color: var(--accent);
  font-weight: 850;
  word-break: break-all;
}

.sheet-body pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.sheet-actions {
  gap: 8px;
}

.sheet-actions button {
  flex: 1;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .app-frame {
    width: 100%;
    height: var(--app-height);
    min-height: 0;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 380px) {
  .brand-wordmark {
    width: 142px;
  }

  .ui-language {
    min-width: 100px;
    flex-basis: 100px;
  }

  h1 {
    font-size: 24px;
  }

  .pricing-grid article {
    grid-template-columns: 48px 70px 1fr;
  }
}

/* Premium IM redesign: private messenger home + native-language conversation space. */
:root {
  --bg: #f6f6f3;
  --surface: #fcfcfb;
  --surface-2: #f1f2ef;
  --field: #f4f5f3;
  --text: #111315;
  --muted: #747a80;
  --line: #e4e5e1;
  --accent: #087f73;
  --accent-2: #2f6fed;
  --shadow: 0 28px 70px rgba(22, 26, 29, 0.14);
}

body {
  background: #e9ecef;
  color: var(--text);
}

button {
  font-weight: 760;
}

input,
select,
textarea {
  border-color: transparent;
  background: var(--field);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(8, 127, 115, 0.4);
  box-shadow: 0 0 0 3px rgba(8, 127, 115, 0.08);
}

.app-frame {
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-view {
  gap: 12px;
  padding: 18px 18px 280px;
  scroll-padding-bottom: 240px;
  background: var(--surface);
}

.topbar {
  min-height: 42px;
}

.brand-wordmark {
  width: 92px;
  max-width: 26vw;
}

.brand-slogan {
  max-width: 180px;
  color: #5f666d;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

.ui-language {
  min-width: 86px;
  flex-basis: 86px;
}

.ui-language select {
  min-height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: #30363d;
  font-size: 12px;
}

.icon-text-button {
  min-height: 32px;
  padding: 6px 10px;
  border-color: var(--line);
  background: #fff;
  color: #343a40;
  font-size: 12px;
  box-shadow: none;
}

.messenger-hero {
  display: none;
  padding: 0;
}

.messenger-hero h1 {
  font-size: 28px;
  font-weight: 860;
  letter-spacing: 0;
}

.new-chat-button {
  min-width: 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 21, 0.12);
  background: rgba(255, 255, 252, 0.78);
  color: transparent;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(17, 19, 21, 0.03);
}

.new-chat-button::before {
  content: "+";
  display: grid;
  place-items: center;
  color: #111315;
  font-size: 23px;
  font-weight: 360;
  line-height: 1;
}

.search-panel input {
  min-height: 42px;
  border-radius: 14px;
  background: #f0f1ef;
  color: #4f565d;
  font-size: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.conversation-panel .panel-title {
  display: none;
}

.panel,
.home-disclaimer {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-tab-panel {
  min-height: 430px;
}

.conversation-panel {
  padding-top: 4px;
}

.conversation-list,
.contact-list {
  display: block;
}

.conversation-item {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  height: 72px;
  min-height: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.conversation-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 19, 21, 0.06);
  border-radius: 50%;
  background: #e8ecea;
  color: #1f2933;
  font-size: 14px;
  font-weight: 780;
}

.conversation-item:nth-child(3n + 1) .conversation-avatar {
  background: #e7f0ee;
  color: #0a625a;
}

.conversation-item:nth-child(3n + 2) .conversation-avatar {
  background: #e8edf8;
  color: #274690;
}

.conversation-copy strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
}

.conversation-copy span {
  margin-top: 4px;
  color: #71777e;
  font-size: 13px;
}

.conversation-meta {
  color: #9aa0a6;
  font-size: 10px;
  font-weight: 650;
}

.unread-dot {
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  font-size: 10px;
}

.contact-item,
.friend-request-item,
.purchase-pack-option,
.language-pack-item,
.history-item,
.release-list span,
.purchase-benefits span {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.wallet-status strong {
  color: var(--text);
}

.primary-button,
.send-button {
  background: var(--text);
  color: #fff;
  box-shadow: none;
}

.secondary-button,
.ghost-button,
.tool-button,
.tiny-button {
  border-color: var(--line);
  background: #fff;
  color: #30363d;
  box-shadow: none;
}

.home-bottom-nav {
  left: 0;
  right: 0;
  bottom: 0;
  gap: 0;
  padding: 6px 14px max(8px, env(safe-area-inset-bottom));
  border-width: 1px 0 0;
  border-color: var(--line);
  border-radius: 0;
  background: rgba(252, 252, 251, 0.96);
  box-shadow: none;
}

.home-bottom-nav button {
  min-height: 44px;
  border-radius: 10px;
  color: #7b8188;
  font-size: 11px;
  font-weight: 720;
}

.home-bottom-nav button.active {
  background: transparent;
  color: var(--accent);
}

.room-view {
  gap: 0;
  padding: 0;
  background: #f6f7f5;
}

.room-header {
  min-height: 62px;
  padding: 8px 12px 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 252, 251, 0.96);
  backdrop-filter: blur(18px);
}

.room-header h2 {
  font-size: 17px;
  font-weight: 800;
}

.chat-title .eyebrow {
  color: #868c92;
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
}

.chat-back-button,
.chat-more-button {
  width: 40px;
  min-height: 40px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.messages {
  gap: 10px;
  padding: 16px 12px 12px;
  background: #f6f7f5;
}

.message {
  max-width: 84%;
  padding: 9px 11px 8px;
  border: 1px solid rgba(17, 19, 21, 0.06);
  border-radius: 17px 17px 17px 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 19, 21, 0.03);
}

.message.mine {
  border-color: rgba(8, 127, 115, 0.18);
  border-radius: 17px 17px 6px 17px;
  background: #eaf6f3;
}

.message-meta {
  margin-bottom: 4px;
  color: #8b9298;
  font-size: 10px;
  font-weight: 650;
}

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

.translated {
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.speak-button {
  min-height: 26px;
  padding: 4px 7px;
  border: 0;
  background: rgba(8, 127, 115, 0.08);
  color: var(--accent);
  font-size: 10px;
}

.message details {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(17, 19, 21, 0.06);
}

.message details[hidden] {
  display: none;
}

.message summary {
  display: none;
}

.original {
  margin-top: 0;
  color: #7a8188;
  font-size: 12px;
  line-height: 1.42;
}

.original::before {
  content: "Original: ";
  color: #a0a6ac;
}

.message details[hidden] .original::before {
  content: "";
}

/* Final premium IM pass: unify legacy room chat with the new Talkin direction. */
body {
  background:
    radial-gradient(circle at 50% -12%, rgba(8, 127, 115, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfbf8 0%, #f0f1ec 100%);
}

.app-frame {
  background: #fbfbf8;
}

.room-active .app-frame {
  border-color: rgba(18, 22, 25, 0.08);
  background: #f7f7f3;
}

.room-active .home-view {
  display: none;
}

.room-view:not(.hidden) {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-areas:
    "header"
    "messages"
    "composer";
  grid-template-rows: 74px minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #f7f7f3;
}

.room-header {
  position: relative;
  z-index: 5;
  min-height: 74px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(18, 22, 25, 0.07);
  background: rgba(251, 251, 248, 0.96);
  backdrop-filter: blur(18px);
}

.room-header h2 {
  color: #121619;
  font-size: 16px;
  font-weight: 820;
  letter-spacing: 0;
}

.chat-title .eyebrow {
  margin: 0 0 2px;
  color: #8b918d;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0;
}

.room-language-direction {
  max-width: 100%;
  margin: 3px 0 0;
  overflow: hidden;
  color: #68706c;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-back-button,
.chat-more-button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #121619;
  font-size: 0;
  box-shadow: none;
}

.chat-back-button::before {
  content: "<";
  font-size: 24px;
  font-weight: 560;
}

.chat-more-button::before {
  content: "+";
  font-size: 25px;
  font-weight: 520;
}

.room-actions,
.room-settings,
.invite-card,
.participants,
.room-limit,
.room-tools {
  display: none !important;
}

.messages {
  min-height: 0;
  gap: 10px;
  padding: 18px 12px 14px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.62), rgba(247, 247, 243, 0) 120px),
    #f7f7f3;
  scroll-padding-bottom: 14px;
}

.message {
  max-width: min(84%, 340px);
  padding: 9px 11px 8px;
  border: 1px solid rgba(18, 22, 25, 0.06);
  border-radius: 18px 18px 18px 7px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(18, 22, 25, 0.03);
}

.message.mine {
  border-color: rgba(8, 127, 115, 0.16);
  border-radius: 18px 18px 7px 18px;
  background: #e9f5f2;
}

.message-meta {
  margin-bottom: 4px;
  color: #8a918d;
  font-size: 10px;
  font-weight: 650;
}

.translated-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.translated {
  color: #111315;
  font-size: 15px;
  line-height: 1.48;
  word-break: break-word;
}

.speak-button {
  min-height: 26px;
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 127, 115, 0.08);
  color: #087f73;
  font-size: 10px;
  font-weight: 760;
}

.message details {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(18, 22, 25, 0.06);
  color: #7b827e;
}

.message details[hidden] {
  display: none;
}

.message summary {
  display: none;
}

.original {
  margin-top: 0;
  color: #7a817d;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.message-status {
  margin-top: 5px;
  color: #7a817d;
  font-size: 10px;
  font-weight: 650;
}

.composer {
  position: relative;
  z-index: 6;
  gap: 7px;
  padding: 8px 10px max(9px, env(safe-area-inset-bottom));
  border-width: 1px 0 0;
  border-color: rgba(18, 22, 25, 0.08);
  border-radius: 0;
  background: rgba(251, 251, 248, 0.98);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.composer textarea {
  min-height: 42px;
  max-height: 78px;
  padding: 11px 13px;
  border: 0;
  border-radius: 19px;
  background: #eeefeb;
  color: #111315;
}

.composer textarea::placeholder {
  color: #8d938f;
}

.composer-actions {
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
}

.mic-button {
  min-height: 38px;
  border: 1px solid rgba(8, 127, 115, 0.16);
  border-radius: 999px;
  background: #eef7f5;
  color: #087f73;
}

.send-button {
  min-height: 38px;
  border-radius: 999px;
  background: #111315;
  color: #fff;
}

.hint {
  display: none;
}

.message-status {
  margin-top: 5px;
  color: #7a8188;
  font-size: 10px;
  font-weight: 650;
}

.composer {
  gap: 6px;
  padding: 8px 10px max(9px, env(safe-area-inset-bottom));
  border-width: 1px 0 0;
  border-color: var(--line);
  border-radius: 0;
  background: rgba(252, 252, 251, 0.98);
  box-shadow: none;
}

.composer textarea {
  min-height: 42px;
  max-height: 78px;
  padding: 11px 13px;
  border-radius: 18px;
  background: #f1f2ef;
}

.composer-actions {
  grid-template-columns: 1fr 76px;
  gap: 8px;
}

.mic-button {
  min-height: 38px;
  border-color: rgba(8, 127, 115, 0.18);
  border-radius: 999px;
  background: #eef7f5;
  color: var(--accent);
}

.send-button {
  min-height: 38px;
  border-radius: 999px;
}

.hint {
  display: none;
}

.purchase-card,
.sheet-card,
.wechat-card {
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(17, 19, 21, 0.18);
}

@media (max-width: 520px) {
  .app-frame {
    border-radius: 0;
  }
}
