﻿:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --line: #d9e1ec;
  --text: #1f2937;
  --muted: #667085;
  --user: #2563eb;
  --support: #0f766e;
  --soft-user: #e8f0ff;
  --soft-support: #e6f6f3;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.app-shell.wide {
  width: min(1440px, calc(100% - 32px));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 18px;
}

.status {
  min-width: 72px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.status.is-online {
  color: var(--support);
  border-color: #91d9ce;
  background: #ecfbf8;
}

.status.is-error {
  color: var(--danger);
  border-color: #f3b8b0;
  background: #fff0ee;
}

.workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.workspace.single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.entry-grid a {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.entry-grid a:hover {
  border-color: #9db5d4;
  background: #f8fbff;
}

.support-workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}

.session-sidebar {
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.session-sidebar .panel-header button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.session-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.session-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.session-item.is-active,
.session-item:hover {
  border-color: #91d9ce;
  background: #f1fbf9;
}

.session-item span,
.session-item small,
.empty-tip {
  color: var(--muted);
  font-size: 12px;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(330px, 1fr) auto auto;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.chat-panel[data-panel="support"] {
  grid-template-rows: auto auto minmax(260px, 1fr) auto auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.role-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.agent-select {
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
}

.user-badge {
  color: var(--user);
  background: var(--soft-user);
}

.support-badge {
  color: var(--support);
  background: var(--soft-support);
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  background: #f8fafc;
}

.message-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 78%;
}

.message-row.is-own {
  align-self: flex-end;
  align-items: flex-end;
}

.message-meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.message-bubble {
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid transparent;
}

.message-bubble.user {
  background: var(--soft-user);
  border-color: #c4d7ff;
}

.message-bubble.support {
  background: var(--soft-support);
  border-color: #bce8df;
}

.typing-card {
  margin: 14px 18px 0;
  padding: 12px;
  border: 1px solid #bce8df;
  border-radius: 8px;
  background: #f1fbf9;
}

.typing-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.typing-card strong {
  display: block;
  min-height: 22px;
  overflow-wrap: anywhere;
}

.faq-box {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.faq-list button:hover {
  border-color: #9db5d4;
  background: #f5f9ff;
}

.composer {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.composer textarea {
  width: 100%;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}

.composer textarea:focus {
  border-color: #84a9e6;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.composer button {
  border: 0;
  border-radius: 8px;
  background: var(--user);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.chat-panel[data-panel="support"] .composer button {
  background: var(--support);
}

.composer button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .entry-grid,
  .support-workspace {
    grid-template-columns: 1fr;
  }

  .chat-panel,
  .chat-panel[data-panel="support"],
  .session-sidebar {
    min-height: 640px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1280px);
    padding: 14px 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .composer button {
    min-height: 42px;
  }

  .message-row {
    max-width: 90%;
  }
}

body.user-page {
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 61, 24, 0.12) 0, rgba(255, 122, 0, 0.04) 220px, transparent 360px),
    #fff7f0;
  color: #181818;
}

.user-chat-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 430px);
  height: 100dvh;
  margin: 0 auto;
  background: #fff7f0;
}

.chat-hero {
  padding: max(16px, env(safe-area-inset-top)) 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 205, 119, 0.5), transparent 32%),
    linear-gradient(135deg, #ff2f1a 0%, #ff6d00 72%, #f7b844 100%);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 12px 26px rgba(255, 80, 20, 0.22);
}

.hero-topline,
.service-profile {
  display: flex;
  align-items: center;
}

.hero-topline {
  justify-content: space-between;
  min-height: 34px;
}

.plain-nav {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.chat-hero .status {
  min-width: 58px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.chat-hero .status.is-online {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.chat-hero .status.is-error {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(92, 0, 0, 0.2);
  color: #fff;
}

.service-profile {
  gap: 12px;
  margin-top: 14px;
}

.service-avatar,
.agent-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.service-avatar {
  width: 52px;
  height: 52px;
  background: #fff;
  color: #ff3d18;
  box-shadow: 0 8px 18px rgba(160, 39, 0, 0.18);
}

.chat-hero .panel-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.chat-hero h1 {
  font-size: 23px;
  letter-spacing: 0;
}

.service-note {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.user-chat-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  margin-top: -8px;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: #fff7f0;
  overflow: hidden;
}

.user-chat-panel .message-list {
  gap: 14px;
  padding: 22px 14px 16px;
  background: transparent;
}

.user-chat-panel .message-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  max-width: 88%;
}

.user-chat-panel .message-row.is-own {
  align-self: flex-end;
}

.agent-avatar {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #ff3d18, #ff7a00);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 12px rgba(255, 61, 24, 0.16);
}

.message-row.is-own .agent-avatar {
  background: #2e2e2e;
}

.user-chat-panel .message-meta {
  margin-bottom: 5px;
  color: #9a6b4a;
  font-size: 11px;
}

.user-chat-panel .message-bubble {
  max-width: 100%;
  border: 0;
  border-radius: 16px 16px 16px 5px;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 8px 20px rgba(120, 73, 44, 0.08);
}

.user-chat-panel .message-bubble.support {
  background: #fff;
  color: #202020;
}

.user-chat-panel .message-bubble.user {
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, #ff3d18 0%, #ff7a00 100%);
  color: #fff;
}

.typing-hint {
  align-self: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.78);
  color: #9a6b4a;
  font-size: 12px;
}

.system-notice {
  align-self: center;
  max-width: 86%;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 61, 24, 0.08);
  color: #a33f18;
  font-size: 12px;
  text-align: center;
}

.user-faq-box {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 106, 31, 0.08);
  background: rgba(255, 250, 246, 0.92);
}

.user-faq-box .section-title {
  margin-bottom: 8px;
  color: #8f4f22;
  font-size: 12px;
}

.user-faq-box .faq-list {
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.user-faq-box .faq-list::-webkit-scrollbar {
  display: none;
}

.user-faq-box .faq-list button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 106, 31, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #5f3b27;
  font-size: 13px;
}

.user-faq-box .faq-list button:hover {
  border-color: #ff7a00;
  background: #fff4ec;
}

.user-composer {
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: end;
  gap: 9px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 106, 31, 0.1);
  background: #fff;
  box-shadow: 0 -8px 22px rgba(117, 67, 33, 0.08);
}

.user-composer textarea {
  min-height: 42px;
  max-height: 96px;
  border: 1px solid #f1d8c5;
  border-radius: 21px;
  padding: 11px 14px;
  background: #fffaf6;
  color: #1f1f1f;
  line-height: 1.35;
  overflow: hidden;
}

.user-composer textarea:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.user-composer .send-button {
  min-height: 42px;
  border: 0;
  border-radius: 21px;
  background: linear-gradient(135deg, #ff3d18 0%, #ff7a00 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(255, 80, 20, 0.24);
}

.user-composer .send-button:disabled {
  box-shadow: none;
}

@media (min-width: 560px) {
  body.user-page {
    background: #f6f6f6;
  }

  .user-chat-app {
    height: min(100dvh, 844px);
    margin-top: max(0px, calc((100dvh - 844px) / 2));
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(68, 39, 20, 0.16);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.user-page {
  background: #fff7f0;
}

.user-chat-app {
  max-width: 430px;
  background:
    radial-gradient(circle at 76% 19%, rgba(255, 227, 198, 0.6) 0 90px, transparent 91px),
    linear-gradient(180deg, #fff7f0 0%, #fffaf7 100%);
}

.chat-hero {
  position: relative;
  display: block;
  min-height: 174px;
  padding: max(24px, env(safe-area-inset-top)) 18px 48px;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(160px 120px at 82% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(330px 210px at 12% -24%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(135deg, #ff2b1a 0%, #ff3b16 48%, #ff7a00 100%);
  box-shadow: none;
}

.chat-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -74px;
  width: 390px;
  height: 170px;
  border-radius: 55% 0 0 0;
  background: rgba(255, 255, 255, 0.16);
}

.hero-back {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: max(40px, calc(env(safe-area-inset-top) + 26px));
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 54px;
  font-weight: 300;
  line-height: 34px;
  cursor: pointer;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: calc(100% - 156px);
  min-width: 168px;
  margin-left: 64px;
  padding-top: 28px;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.35;
}

.hero-side {
  position: absolute;
  z-index: 2;
  top: max(54px, calc(env(safe-area-inset-top) + 40px));
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-hero .status {
  min-width: 78px;
  padding: 9px 15px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #3f3f3f;
  font-size: 17px;
  box-shadow: 0 9px 20px rgba(170, 32, 0, 0.12);
}

.chat-hero .status::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: #23c45e;
  vertical-align: 1px;
}

.service-photo {
  background: #fff var(--service-avatar-url, url("./assets/support-avatar.png")) center / cover no-repeat;
}

.chat-hero .service-photo {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 9px 20px rgba(171, 39, 0, 0.18);
}

.user-chat-panel {
  margin-top: -16px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 50% 5%, rgba(255, 255, 255, 0.95), transparent 230px),
    #fff7f0;
}

.user-chat-panel .message-list {
  gap: 18px;
  padding: 80px 16px 18px;
}

.chat-time {
  align-self: center;
  color: #9a9a9a;
  font-size: 16px;
}

.service-chip {
  align-self: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(245, 235, 228, 0.9);
  color: #8c8c8c;
  font-size: 13px;
}

.user-chat-panel .message-row {
  gap: 10px;
  max-width: 92%;
}

.user-chat-panel .message-row.is-own {
  justify-content: flex-end;
}

.user-chat-panel .agent-avatar {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border: 2px solid #ffd7cc;
  background-color: #ff9a80;
  color: transparent;
  box-shadow: none;
}

.message-row.is-own .agent-avatar {
  border-color: transparent;
  background:
    radial-gradient(circle at 50% 36%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 50% 82%, #fff 0 18px, transparent 19px),
    linear-gradient(135deg, #ff8d76, #ffc0b2);
}

.message-content {
  min-width: 0;
}

.user-chat-panel .message-bubble {
  border-radius: 14px 14px 14px 3px;
  padding: 15px 18px;
  font-size: 18px;
  line-height: 1.55;
  box-shadow: 0 8px 24px rgba(122, 71, 43, 0.08);
}

.user-chat-panel .message-bubble.user {
  border-radius: 14px 14px 3px 14px;
  background: linear-gradient(135deg, #ff3219 0%, #ff5d1f 100%);
  box-shadow: 0 10px 22px rgba(255, 65, 25, 0.22);
}

.user-chat-panel .message-bubble.image-bubble {
  padding: 6px;
  background: #fff;
}

.user-chat-panel .message-bubble.image-bubble.user {
  background: linear-gradient(135deg, #ff3219 0%, #ff5d1f 100%);
}

.message-bubble.image-bubble img {
  display: block;
  max-width: min(220px, 58vw);
  max-height: 280px;
  border-radius: 10px;
  object-fit: cover;
}

.user-chat-panel .message-meta {
  margin-top: 6px;
  margin-bottom: 0;
  color: #a0a0a0;
  font-size: 13px;
}

.message-row.is-own .message-meta {
  text-align: right;
}

.typing-hint {
  align-self: flex-start;
  margin-left: 56px;
  border-radius: 13px;
  padding: 13px 18px;
  background: #fff;
  color: #6c6c6c;
  box-shadow: 0 8px 24px rgba(122, 71, 43, 0.08);
}

.typing-hint span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ff3d18;
}

.typing-hint span:nth-child(3) {
  background: #ffd4c7;
}

.user-faq-box {
  padding: 9px 14px 12px;
  border-top: 0;
  background: transparent;
}

.user-faq-box .section-title {
  display: none;
}

.user-faq-box .faq-list {
  gap: 9px;
}

.user-faq-box .faq-list button {
  min-height: 40px;
  border: 0;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #3d2b24;
  font-size: 14px;
  box-shadow: 0 7px 16px rgba(119, 69, 43, 0.08);
}

.user-composer {
  grid-template-columns: 54px minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  min-height: 88px;
  padding: 13px 14px calc(13px + env(safe-area-inset-bottom));
  border-top: 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
}

.composer-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 54px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
}

.user-composer textarea {
  min-height: 24px;
  max-height: 72px;
  border: 0;
  border-radius: 0;
  padding: 0 2px 0 18px;
  background: transparent;
  font-size: 16px;
}

.user-composer textarea:focus {
  border-color: transparent;
  box-shadow: none;
}

.tool-button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #ececec;
  border-radius: 50%;
  background: #fff;
  color: #323232;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.emoji-tool {
  width: 38px;
  height: 38px;
  border-color: transparent;
  background: transparent;
  font-size: 11px;
}

.user-composer .emoji-tool {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #303030;
  box-shadow: none;
}

.user-composer .image-tool {
  background: #fff;
  color: #303030;
  box-shadow: none;
}

.image-tool.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.user-composer .send-button {
  min-height: 54px;
  border-radius: 27px;
  font-size: 19px;
}

@media (max-width: 374px) {
  .hero-copy h1 {
    font-size: 29px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .chat-hero .service-photo {
    width: 48px;
    height: 48px;
  }
}

/* Final user-chat visual calibration against the selected mockup. */
body.user-page .user-chat-app {
  grid-template-rows: 176px minmax(0, 1fr);
  background: #fff8f3;
}

body.user-page .chat-hero {
  min-height: 190px;
  padding: 0;
}

body.user-page .hero-back {
  left: 24px;
  top: 54px;
  width: 32px;
  height: 44px;
  font-size: 56px;
  line-height: 36px;
}

body.user-page .hero-copy {
  width: 210px;
  margin-left: 84px;
  padding-top: 46px;
}

body.user-page .hero-copy h1 {
  font-size: 34px;
  line-height: 1.05;
}

body.user-page .hero-copy p {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
}

body.user-page .hero-side {
  top: 58px;
  right: 18px;
  gap: 9px;
}

body.user-page .chat-hero .status {
  min-width: 74px;
  height: 42px;
  padding: 0 12px;
  font-size: 17px;
  line-height: 42px;
}

body.user-page .chat-hero .service-photo {
  width: 62px;
  height: 62px;
}

body.user-page .user-chat-panel {
  margin-top: -1px;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 1%, rgba(255, 255, 255, 0.98), transparent 210px),
    linear-gradient(180deg, #fffaf6 0%, #fff6ef 100%);
}

body.user-page .user-chat-panel .message-list {
  gap: 19px;
  padding: 58px 18px 16px;
  scrollbar-width: none;
}

body.user-page .user-chat-panel .message-list::-webkit-scrollbar {
  display: none;
}

body.user-page .chat-time {
  font-size: 15px;
}

body.user-page .service-chip {
  padding: 8px 16px;
  background: rgba(246, 235, 226, 0.92);
  color: #878787;
  font-size: 13px;
}

body.user-page .user-chat-panel .agent-avatar {
  width: 44px;
  height: 44px;
}

body.user-page .user-chat-panel .message-bubble {
  max-width: 250px;
  padding: 16px 18px;
  border-radius: 14px 14px 14px 4px;
  font-size: 20px;
  line-height: 1.45;
}

body.user-page .user-chat-panel .message-bubble.user {
  border-radius: 14px 14px 4px 14px;
}

body.user-page .message-bubble.image-bubble img {
  min-width: 90px;
  min-height: 70px;
}

body.user-page .typing-hint {
  margin-left: 60px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
}

body.user-page .user-faq-box {
  padding: 9px 14px 13px;
}

body.user-page .user-faq-box .faq-list button {
  min-height: 42px;
  padding: 0 15px;
  font-size: 14px;
}

body.user-page .user-composer {
  grid-template-columns: 58px minmax(0, 1fr) 78px;
  min-height: 92px;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
}

body.user-page .tool-button {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: hidden;
  text-indent: -999px;
}

body.user-page .image-tool::before {
  content: "";
  position: absolute;
  inset: 17px 15px 15px;
  border: 2px solid #333;
  border-radius: 4px;
}

body.user-page .image-tool::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
  box-shadow: 10px 9px 0 -3px #333, 17px 13px 0 -2px #333;
}

body.user-page .composer-field {
  min-height: 56px;
}

body.user-page .emoji-tool::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #333;
  border-radius: 50%;
}

body.user-page .emoji-tool::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #333;
  box-shadow: 10px 0 0 #333, 5px 10px 0 1px transparent;
  border-bottom: 2px solid #333;
}

body.user-page .user-composer .send-button {
  min-height: 56px;
  border-radius: 28px;
  font-size: 20px;
}

/* Reference image lock: mobile customer chat, matched to the supplied mockup. */
body.user-page {
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: #f6f6f6;
  color: #202020;
}

body.user-page .user-chat-app {
  position: relative;
  display: grid;
  grid-template-rows: 190px auto minmax(0, 1fr);
  width: min(100%, 390px);
  height: 100dvh;
  max-height: 932px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff8f3;
  border-radius: 0;
  box-shadow: none;
}

body.user-page .chat-hero {
  position: relative;
  z-index: 1;
  height: 190px;
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(450px 190px at 9% -18%, rgba(255, 255, 255, 0.14) 0 64%, transparent 65%),
    radial-gradient(430px 180px at 78% -32%, rgba(255, 255, 255, 0.12) 0 62%, transparent 63%),
    linear-gradient(135deg, #ff361d 0%, #ff2513 54%, #ff5f22 100%);
}

body.user-page .chat-hero::before {
  content: "";
  position: absolute;
  left: -108px;
  bottom: -70px;
  width: 440px;
  height: 154px;
  border-radius: 0 0 62% 0;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(9deg);
}

body.user-page .chat-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -44px;
  width: 430px;
  height: 150px;
  border-radius: 58% 0 0 0;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(-6deg);
}

body.user-page .hero-back {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 50px;
  width: 34px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 56px;
  font-weight: 300;
  line-height: 35px;
}

body.user-page .hero-copy {
  position: relative;
  z-index: 2;
  width: 205px;
  margin-left: 64px;
  padding-top: 43px;
}

body.user-page .hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

body.user-page .hero-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.22;
  white-space: nowrap;
}

body.user-page .hero-side {
  position: absolute;
  z-index: 2;
  top: 52px;
  right: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.user-page .chat-hero .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #474747;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(159, 38, 0, 0.12);
}

body.user-page .chat-hero .status::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #25c95f;
}

body.user-page .chat-hero .service-photo {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #fff var(--service-avatar-url, url("./assets/support-avatar.png")) center / cover no-repeat;
  box-shadow: 0 8px 18px rgba(159, 38, 0, 0.18);
}

body.user-page .order-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  height: 96px;
  margin: -82px 16px 0;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 13px 30px rgba(118, 68, 38, 0.1);
}

body.user-page .order-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid #ededed;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

body.user-page .order-copy {
  min-width: 0;
}

body.user-page .order-copy h2 {
  margin: 0 0 8px;
  color: #202020;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.12;
}

body.user-page .order-copy p {
  margin: 5px 0 0;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}

body.user-page .order-copy span {
  color: #818181;
}

body.user-page .order-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ff2d19;
  border-radius: 16px;
  background: #fff;
  color: #ff2d19;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

body.user-page .order-action span {
  margin-left: 5px;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

body.user-page .user-chat-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 58px 94px;
  min-height: 0;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -9%, rgba(255, 255, 255, 0.98) 0 208px, transparent 209px),
    linear-gradient(180deg, #fffaf6 0%, #fff7f1 100%);
}

body.user-page .user-chat-panel > * {
  min-width: 0;
  width: 100%;
}

body.user-page .user-chat-panel .message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 22px 16px 7px;
  overflow-y: auto;
  background: transparent;
  scrollbar-width: none;
}

body.user-page .user-chat-panel .message-list::-webkit-scrollbar {
  display: none;
}

body.user-page .chat-time {
  align-self: center;
  color: #999;
  font-size: 14px;
  line-height: 20px;
}

body.user-page .service-chip {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 25px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(246, 236, 230, 0.94);
  color: #858585;
  font-size: 13px;
  line-height: 25px;
}

body.user-page .service-chip span {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 7px;
  border: 1px solid #888;
  border-radius: 50%;
  color: #888;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

body.user-page .user-chat-panel .message-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

body.user-page .user-chat-panel .message-row.is-own {
  justify-content: flex-end;
}

body.user-page .message-content {
  min-width: 0;
  max-width: 70%;
}

body.user-page .user-chat-panel .agent-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
  border: 1px solid #ffcdbf;
  border-radius: 50%;
  background: #fff url("./assets/support-avatar.png") center / cover no-repeat;
  box-shadow: none;
}

body.user-page .message-row.is-own .agent-avatar {
  border: 0;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 10px, transparent 10.5px),
    radial-gradient(circle at 50% 86%, rgba(255,255,255,0.78) 0 20px, transparent 20.5px),
    linear-gradient(135deg, #ff8b72 0%, #ffc2b4 100%);
}

body.user-page .user-chat-panel .message-bubble {
  max-width: 100%;
  border: 0;
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 8px 22px rgba(122, 71, 43, 0.08);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

body.user-page .user-chat-panel .message-bubble.user {
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, #ff3218 0%, #ff5a1d 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 65, 25, 0.22);
}

body.user-page .message-row:nth-of-type(5) .message-content {
  max-width: 64%;
}

body.user-page .message-row:nth-of-type(6) .message-content {
  max-width: 68%;
}

body.user-page .user-chat-panel .message-meta {
  margin: 6px 0 0;
  color: #9e9e9e;
  font-size: 12px;
  line-height: 16px;
}

body.user-page .message-row.is-own .message-meta {
  text-align: right;
}

body.user-page .typing-row {
  margin-top: 2px;
}

body.user-page .typing-hint {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 0;
  padding: 0 15px;
  border-radius: 13px;
  background: #fff;
  color: #4e4e4e;
  font-size: 13px;
  box-shadow: 0 8px 22px rgba(122, 71, 43, 0.08);
}

body.user-page .typing-hint span {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ff3a1c;
}

body.user-page .typing-hint span:nth-child(3) {
  margin-right: 12px;
  background: #ffd8cf;
}

body.user-page .user-faq-box {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 7px 14px 10px;
  border: 0;
  background: transparent;
}

body.user-page .user-faq-box .faq-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

body.user-page .user-faq-box .faq-list::-webkit-scrollbar {
  display: none;
}

body.user-page .user-faq-box .faq-list button {
  position: relative;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 6px 0 25px;
  background: rgba(255, 255, 255, 0.98);
  color: #352b27;
  font-size: 11px;
  line-height: 36px;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(119, 69, 43, 0.08);
}

body.user-page .user-faq-box .faq-list button::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.6px solid #ff3a1c;
  border-radius: 3px;
  transform: translateY(-50%);
}

body.user-page .user-faq-box .faq-list button:nth-child(2)::before {
  border-radius: 50% 50% 50% 0;
  transform: translateY(-58%) rotate(-45deg);
}

body.user-page .user-faq-box .faq-list button:nth-child(3)::before {
  border-radius: 50%;
}

body.user-page .user-faq-box .faq-list button:nth-child(4)::before {
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}

body.user-page .user-composer {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  min-height: 94px;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(120, 70, 44, 0.05);
}

body.user-page .tool-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  min-height: 56px;
  border: 1px solid #ececec;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  overflow: hidden;
  text-indent: -999px;
  box-shadow: none;
}

body.user-page .image-tool::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 23px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 3px;
}

body.user-page .image-tool::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
  box-shadow: 8px 9px 0 -2px #333, 16px 13px 0 -1px #333;
}

body.user-page .composer-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 56px;
  min-width: 0;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
}

body.user-page .user-composer textarea {
  min-height: 24px;
  max-height: 70px;
  border: 0;
  border-radius: 0;
  padding: 0 2px 0 18px;
  background: transparent;
  color: #202020;
  font-size: 16px;
  line-height: 24px;
  outline: none;
}

body.user-page .user-composer textarea::placeholder {
  color: #a2a2a2;
}

body.user-page .user-composer textarea:focus {
  border: 0;
  box-shadow: none;
}

body.user-page .emoji-tool {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
}

body.user-page .emoji-tool::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #333;
  border-radius: 50%;
}

body.user-page .emoji-tool::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #333;
  box-shadow: 10px 0 0 #333;
  border-bottom: 2px solid #333;
}

body.user-page .user-composer .send-button {
  display: grid;
  place-items: center;
  width: 78px;
  min-width: 0;
  min-height: 56px;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff3218 0%, #ff5c1d 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 9px 18px rgba(255, 62, 23, 0.25);
}

@media (min-width: 560px) {
  body.user-page .user-chat-app {
    height: min(100dvh, 844px);
    margin-top: max(0px, calc((100dvh - 844px) / 2));
    border-radius: 0;
  }
}

@media (max-width: 374px) {
  body.user-page .hero-copy {
    margin-left: 58px;
  }

  body.user-page .hero-copy h1 {
    font-size: 29px;
  }

  body.user-page .hero-copy p,
  body.user-page .chat-hero .status {
    font-size: 15px;
  }

  body.user-page .order-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  body.user-page .order-action {
    display: none;
  }
}

/* Modern minimalist support console. */
body.support-page {
  min-height: 100vh;
  background: #f6f7f9;
  color: #111827;
}

body.support-page .app-shell.wide {
  width: min(1480px, calc(100% - 40px));
  padding: 22px 0;
}

body.support-page .topbar {
  height: 58px;
  margin-bottom: 14px;
  padding: 0 4px;
}

body.support-page .eyebrow,
body.support-page .panel-kicker {
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.support-page h1 {
  color: #101828;
  font-size: 24px;
  font-weight: 760;
}

body.support-page h2 {
  color: #111827;
  font-size: 16px;
  font-weight: 720;
}

body.support-page .status {
  border-color: #d7dde6;
  background: #fff;
  color: #475467;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.support-page .status.is-online {
  border-color: #badbcc;
  background: #f0fdf4;
  color: #166534;
}

body.support-page .support-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.support-page .sound-toggle {
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.support-page .sound-toggle:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

body.support-page .sound-toggle.is-muted {
  color: #667085;
  background: #f2f4f7;
}

body.support-page .support-workspace {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 108px);
}

body.support-page .session-sidebar,
body.support-page .chat-panel {
  min-height: calc(100vh - 108px);
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.support-page .panel-header {
  min-height: 70px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef0f4;
  background: #fff;
}

body.support-page .session-sidebar .panel-header button,
body.support-page .agent-select {
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.support-page .agent-select {
  min-width: 160px;
}

body.support-page .session-list {
  gap: 8px;
  padding: 12px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  background: #fbfcfe;
}

body.support-page .session-item {
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.support-page .session-item strong {
  color: #111827;
  font-size: 14px;
  font-weight: 720;
}

body.support-page .session-item span,
body.support-page .session-item small {
  color: #667085;
  font-size: 12px;
}

body.support-page .session-item.is-active,
body.support-page .session-item:hover {
  border-color: #dbeafe;
  background: #eff6ff;
}

body.support-page .typing-card {
  margin: 12px 18px 0;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fafc;
}

body.support-page .typing-card span {
  color: #667085;
  font-size: 12px;
}

body.support-page .typing-card strong {
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

body.support-page .message-list {
  gap: 14px;
  padding: 18px;
  background: #fafbfc;
}

body.support-page .message-row {
  max-width: 72%;
}

body.support-page .message-meta {
  color: #98a2b3;
  font-size: 12px;
}

body.support-page .message-bubble {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
  color: #101828;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.support-page .message-bubble.user {
  border-color: #dbeafe;
  background: #eff6ff;
}

body.support-page .message-bubble.support {
  border-color: #d1fae5;
  background: #ecfdf5;
}

body.support-page .faq-box {
  padding: 12px 18px;
  border-top: 1px solid #eef0f4;
  background: #fff;
}

body.support-page .section-title {
  color: #667085;
  font-size: 12px;
  font-weight: 720;
}

body.support-page .faq-list button {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.support-page .faq-list button:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

body.support-page .composer {
  grid-template-columns: minmax(0, 1fr) 88px;
  padding: 14px 18px 18px;
  border-top: 1px solid #eef0f4;
  background: #fff;
}

body.support-page .composer textarea {
  border-color: #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
}

body.support-page .composer textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

body.support-page .composer button {
  border-radius: 8px;
  background: #2563eb;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

@media (max-width: 900px) {
  body.support-page .support-workspace {
    grid-template-columns: 1fr;
  }

  body.support-page .session-sidebar,
  body.support-page .chat-panel {
    min-height: 520px;
  }
}

body.user-page .user-sound-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #ff3218;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(159, 38, 0, 0.12);
}

body.user-page .user-sound-toggle.is-muted {
  color: #777;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 374px) {
  body.user-page .user-sound-toggle {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

/* YGcodex ordinary mall customer-service interface. */
body.user-page {
  --yg-bg1: #ff8746;
  --yg-bg2: #f7b844;
  --yg-gradient: linear-gradient(to right, var(--yg-bg1), var(--yg-bg2));
  --yg-page-bg: #fff7ef;
  --yg-card: #fffdf9;
  --yg-border: #ffe4cf;
  --yg-text: #25201d;
  --yg-muted: #8f7f72;
  --yg-shadow: 0 10px 28px rgba(158, 92, 38, 0.12);
  --yg-radius: 11px;
  background: #f6f6f6;
  color: var(--yg-text);
  font-family: "PingFang SC", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
}

body.user-page .user-chat-app {
  display: grid;
  grid-template-rows: 46px auto minmax(0, 1fr);
  width: min(100%, 500px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--yg-page-bg);
  border-radius: 0;
  box-shadow: none;
}

body.user-page .mall-nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0;
  background: var(--yg-gradient);
  color: #fff;
  box-sizing: border-box;
}

body.user-page .mall-nav span {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 46px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.user-page .mall-nav-back {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

body.user-page .mall-nav .user-sound-toggle {
  justify-self: center;
  width: 34px;
  height: 30px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

body.user-page .mall-nav .user-sound-toggle.is-muted {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(120, 70, 28, 0.16);
}

body.user-page .chat-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  align-items: center;
  gap: 14px;
  min-height: 138px;
  height: auto;
  padding: 18px 18px 20px;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 89% 20%, rgba(255, 255, 255, 0.48), transparent 68px),
    var(--yg-gradient);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 135, 70, 0.18);
}

body.user-page .chat-hero::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -74px;
  display: block;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

body.user-page .chat-hero::before {
  display: none;
}

body.user-page .hero-copy {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.user-page .hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

body.user-page .hero-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}

body.user-page .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.user-page .hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

body.user-page .hero-meta span + span {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(120, 70, 28, 0.12);
  color: #fff;
}

body.user-page .hero-side {
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  gap: 8px;
}

body.user-page .chat-hero .service-photo {
  grid-area: auto;
  order: 1;
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: #fff url("./assets/support-avatar.png") center / cover no-repeat;
  box-shadow: 0 9px 20px rgba(120, 70, 28, 0.2);
}

body.user-page .chat-hero .status {
  grid-area: auto;
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #7b4a25;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(120, 70, 28, 0.14);
}

body.user-page .chat-hero .status::before {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #23c45e;
}

body.user-page .chat-hero .status.is-error {
  background: #fff1f2;
  color: #be123c;
}

body.user-page .user-chat-panel {
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  background: var(--yg-page-bg);
}

body.user-page .user-chat-panel .message-list {
  gap: 12px;
  min-height: 0;
  padding: 14px 12px 10px;
  background: transparent;
}

body.user-page .chat-time {
  color: #b1a198;
  font-size: 12px;
}

body.user-page .service-chip {
  min-height: 26px;
  border: 1px solid #f4dfd0;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
  color: #9a7561;
  font-size: 12px;
  font-weight: 700;
}

body.user-page .user-chat-panel .agent-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid #ffcdbf;
  border-radius: 50%;
  background: #fff var(--service-avatar-url, url("./assets/support-avatar.png")) center / cover no-repeat;
  box-shadow: none;
}

body.user-page .message-row.is-own .agent-avatar {
  border: 0;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 9px, transparent 9.5px),
    radial-gradient(circle at 50% 86%, rgba(255, 255, 255, 0.78) 0 18px, transparent 18.5px),
    linear-gradient(135deg, #ffbd62 0%, #ff6e35 54%, #ff4328 100%);
}

body.user-page .message-content {
  max-width: min(76%, 330px);
}

body.user-page .user-chat-panel .message-bubble {
  border: 1px solid rgba(255, 228, 207, 0.78);
  border-radius: 13px 13px 13px 3px;
  padding: 11px 13px;
  background: var(--yg-card);
  color: var(--yg-text);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 8px 20px rgba(158, 92, 38, 0.08);
}

body.user-page .user-chat-panel .message-bubble.user {
  border-color: transparent;
  border-radius: 13px 13px 3px 13px;
  background: var(--yg-gradient);
  color: #fff;
  box-shadow: 0 9px 20px rgba(255, 135, 70, 0.22);
}

body.user-page .user-chat-panel .message-meta {
  color: #b5a79f;
  font-size: 11px;
}

body.user-page .typing-hint {
  min-height: 36px;
  border: 1px solid rgba(255, 228, 207, 0.78);
  border-radius: 13px;
  background: var(--yg-card);
  color: #7a6a5e;
  box-shadow: 0 8px 20px rgba(158, 92, 38, 0.08);
}

body.user-page .typing-hint span {
  background: var(--yg-bg1);
}

body.user-page .typing-hint span:nth-child(3) {
  background: #ffd8c5;
}

body.user-page .system-notice {
  border-color: #ffe0ce;
  border-radius: 999px;
  background: #fff2e9;
  color: #b45309;
}

body.user-page .user-faq-box {
  min-height: 55px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 228, 207, 0.9);
  background: rgba(255, 253, 249, 0.96);
}

body.user-page .user-faq-box .faq-list {
  gap: 8px;
}

body.user-page .user-faq-box .faq-list button {
  min-height: 34px;
  border: 1px solid #ffe0ce;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: #7a4c2e;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(158, 92, 38, 0.06);
}

body.user-page .user-faq-box .faq-list button:hover {
  border-color: #ffc7ae;
  background: #fff2e9;
}

body.user-page .user-composer {
  grid-template-columns: 44px minmax(0, 1fr) 70px;
  align-items: end;
  gap: 8px;
  min-height: 76px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 228, 207, 0.9);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 -8px 24px rgba(158, 92, 38, 0.1);
}

body.user-page .tool-button,
body.user-page .composer-field {
  border-color: #f1d8c5;
  border-radius: 999px;
  background: #fff;
}

body.user-page .tool-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  color: #7a6a5e;
}

body.user-page .image-tool::before {
  color: #7a6a5e;
}

body.user-page .composer-field {
  min-height: 44px;
}

body.user-page .composer-field:focus-within {
  border-color: #ffb382;
  box-shadow: 0 0 0 3px rgba(255, 135, 70, 0.14);
}

body.user-page .user-composer textarea {
  color: var(--yg-text);
  font-size: 14px;
}

body.user-page .user-composer textarea::placeholder {
  color: #b9aaa0;
}

body.user-page .emoji-tool::before {
  border-color: #7a6a5e;
}

body.user-page .emoji-tool::after {
  background: #7a6a5e;
  border-bottom-color: #7a6a5e;
  box-shadow: 8px 0 0 #7a6a5e, 4px 7px 0 -1px transparent;
}

body.user-page .user-composer .send-button {
  width: 70px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--yg-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(255, 135, 70, 0.24);
}

body.user-page .user-composer .send-button:disabled {
  background: #d8c9bd;
  box-shadow: none;
}

@media (min-width: 560px) {
  body.user-page .user-chat-app {
    height: min(100dvh, 860px);
    margin-top: max(0px, calc((100dvh - 860px) / 2));
    border-right: 1px solid rgba(255, 228, 207, 0.78);
    border-left: 1px solid rgba(255, 228, 207, 0.78);
  }
}

@media (max-width: 374px) {
  body.user-page .user-chat-app {
    grid-template-rows: 46px auto minmax(0, 1fr);
  }

  body.user-page .chat-hero {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 10px;
    min-height: 132px;
    padding: 16px 12px 18px;
  }

  body.user-page .hero-copy h1 {
    font-size: 18px;
  }

  body.user-page .hero-copy p {
    font-size: 12px;
  }

  body.user-page .hero-meta {
    gap: 6px;
  }

  body.user-page .hero-meta span {
    min-height: 23px;
    padding: 0 7px;
    font-size: 10px;
  }

  body.user-page .user-composer {
    grid-template-columns: 40px minmax(0, 1fr) 62px;
  }

  body.user-page .tool-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  body.user-page .user-composer .send-button {
    width: 62px;
    min-height: 40px;
  }
}

/* Browser comment fix: FAQ chips need enough text width and correct line icons. */
body.user-page .user-faq-box {
  min-height: 56px;
  padding: 8px 12px;
  overflow: hidden;
}

body.user-page .user-faq-box .faq-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 2px;
  scrollbar-width: none;
}

body.user-page .user-faq-box .faq-list::-webkit-scrollbar {
  display: none;
}

body.user-page .user-faq-box .faq-list button {
  position: relative;
  flex: 0 0 auto;
  min-width: max-content;
  height: 34px;
  min-height: 34px;
  padding: 0 7px 0 27px;
  border: 1px solid #ffe0ce;
  border-radius: 999px;
  background: #fff;
  color: #523527;
  font-size: 10px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(158, 92, 38, 0.07);
}

body.user-page .user-faq-box .faq-list button::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 0;
  background: #ff3a1c;
  transform: translateY(-50%);
  -webkit-mask: var(--faq-icon) center / contain no-repeat;
  mask: var(--faq-icon) center / contain no-repeat;
}

body.user-page .user-faq-box .faq-list button:nth-child(1)::before {
  --faq-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8.5 12 3 3 8.5l9 5.5 9-5.5Z'/%3E%3Cpath d='M3 8.5v7L12 21l9-5.5v-7'/%3E%3Cpath d='M12 14v7'/%3E%3C/g%3E%3C/svg%3E");
}

body.user-page .user-faq-box .faq-list button:nth-child(2)::before {
  --faq-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.4 7-11a7 7 0 1 0-14 0c0 6.6 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

body.user-page .user-faq-box .faq-list button:nth-child(3)::before {
  --faq-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 8h8M9 12h6M12 8v9M8 17h8'/%3E%3C/g%3E%3C/svg%3E");
}

body.user-page .user-faq-box .faq-list button:nth-child(4)::before {
  --faq-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8a2 2 0 0 0 0 4 2 2 0 0 1 0 4v2h16v-2a2 2 0 0 1 0-4 2 2 0 0 0 0-4V6H4v2Z'/%3E%3Cpath d='M9 10h.01M15 14h.01M16 9l-8 6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Browser comment fix: image upload button should look like image-only upload, not a file picker. */
body.user-page .image-tool {
  color: transparent;
  text-indent: -999px;
}

body.user-page .image-tool::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 0;
  border-radius: 0;
  background: #6f625a;
  transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 15-4.2-4.2a2 2 0 0 0-2.8 0L6 19'/%3E%3Cpath d='m13 14 2 2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='m21 15-4.2-4.2a2 2 0 0 0-2.8 0L6 19'/%3E%3Cpath d='m13 14 2 2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body.user-page .image-tool::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: auto;
  top: auto;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff7f32;
  box-shadow: none;
}

body.user-page .image-tool.is-loading::after {
  background: #d8c9bd;
}

/* Browser annotation fix: remove sound/emoji controls and redraw image-send logo. */
body.user-page .mall-nav {
  grid-template-columns: 46px minmax(0, 1fr) 46px;
}

body.user-page .mall-nav span {
  grid-column: 2;
}

body.user-page .composer-field {
  grid-template-columns: minmax(0, 1fr);
}

body.user-page .user-composer textarea {
  padding-right: 18px;
}

body.user-page .emoji-tool,
body.user-page .user-sound-toggle {
  display: none !important;
}

body.user-page .image-tool {
  position: relative;
  display: grid;
  place-items: center;
  color: transparent;
  text-indent: -999px;
  overflow: hidden;
}

body.user-page .image-tool::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 0;
  border-radius: 0;
  background: url("./assets/image-upload-logo.svg?v=2") center / 100% 100% no-repeat;
  transform: none;
  -webkit-mask: none;
  mask: none;
}

body.user-page .image-tool::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #ffe0ce;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

body.user-page .image-tool:active::after {
  background: rgba(255, 127, 50, 0.08);
}

/* Final image-upload logo sizing: keep the image icon large, centered, and light. */
body.user-page .image-tool::before {
  inset: auto !important;
  left: 50% !important;
  top: 50% !important;
  width: 28px !important;
  height: 28px !important;
  background: url("./assets/image-upload-logo.svg?v=3") center / contain no-repeat !important;
  transform: translate(-50%, -50%) !important;
  -webkit-mask: none !important;
  mask: none !important;
}

/* Keep the hero avatar synced with the avatar configured in the admin console. */
body.user-page .chat-hero .service-photo,
body.user-page .service-avatar.service-photo {
  background: #fff var(--service-avatar-url, url("./assets/support-avatar.png")) center / cover no-repeat !important;
}

/* Match the YGcodex mall nav bar used by /#/user/vipOrder. */
body.user-page .user-chat-app {
  grid-template-rows: 46px auto minmax(0, 1fr);
  width: min(100%, 500px);
  max-width: 500px;
  height: 100dvh;
  margin-top: 0;
}

body.user-page .mall-nav {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 59px minmax(0, 1fr) 59px;
  align-items: center;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: linear-gradient(to right, rgb(255, 135, 70), rgb(247, 184, 68));
  box-shadow: none;
}

body.user-page .mall-nav span {
  grid-column: 2;
  justify-self: center;
  max-width: 60%;
  height: 46px;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 17.664px;
  font-weight: 500;
  line-height: 46px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.user-page .mall-nav-back {
  position: relative;
  grid-column: 1;
  display: block;
  width: 59px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

body.user-page .mall-nav-back::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateY(-50%) rotate(45deg);
}

/* Safari/iOS top safe-area: keep status bar, nav, and hero connected. */
html.user-document {
  background:
    linear-gradient(
      180deg,
      #F7B844 0,
      #F7B844 96px,
      #fff7ef 96px,
      #fff7ef 100%
    );
}

body.user-page {
  --yg-bg1: #ff8746;
  --yg-bg2: #F7B844;
  --yg-gradient: linear-gradient(180deg, #F7B844 0%, #ff9a3f 58%, #ff8746 100%);
  background: #f6f6f6;
}

body.user-page .user-chat-app {
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  min-height: 100dvh;
  padding-top: 46px;
  box-sizing: border-box;
  background: var(--yg-page-bg);
}

body.user-page .mall-nav {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 80;
  width: min(100%, 500px);
  height: 46px;
  min-height: 46px;
  padding-top: 0;
  background: #F7B844;
  transform: translateX(-50%);
}

body.user-page .chat-hero {
  background: linear-gradient(180deg, #F7B844 0%, #ffac3e 36%, #ff8746 100%);
  border-radius: 0 0 22px 22px;
  box-shadow: none;
}

body.user-page .user-chat-panel {
  background: var(--yg-page-bg);
}

@media (max-width: 560px) {
  html.user-document {
    background: #f6f6f6 !important;
  }

  body.user-page {
    min-height: 100dvh;
    background: #f6f6f6;
  }

  body.user-page::before {
    content: "";
    position: fixed;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 46px;
    background: #F7B844;
    pointer-events: none;
  }

  body.user-page .user-chat-app {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 46px;
  }

  body.user-page .mall-nav {
    left: 0;
    width: 100%;
    transform: none;
  }
}

/* Keep user message bubbles independent from the header gradient. */
body.user-page .user-chat-panel .message-bubble.user {
  background: linear-gradient(135deg, #ff8746 0%, #ff9a3f 52%, #F7B844 100%) !important;
  background-clip: padding-box;
  border: 0 !important;
  outline: 0;
  overflow: hidden;
}

/* Prevent iOS Safari from zooming the page when the message input receives focus. */
body.user-page .user-composer {
  grid-template-columns: 44px minmax(0, 1fr) 70px;
  width: 100%;
  box-sizing: border-box;
}

body.user-page .composer-field {
  min-width: 0;
}

body.user-page .user-composer textarea,
body.user-page .user-composer textarea:focus {
  font-size: 16px !important;
  line-height: 22px;
  -webkit-text-size-adjust: 100%;
}

body.user-page .user-composer .send-button {
  width: 70px;
  min-width: 70px;
}

/* Final compact composer: lighter image and send actions. */
body.user-page .user-composer {
  grid-template-columns: 36px minmax(0, 1fr) 56px !important;
  align-items: center;
  gap: 8px;
  min-height: 62px !important;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(255, 228, 207, 0.82);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 -5px 16px rgba(158, 92, 38, 0.06);
}

body.user-page .user-composer .tool-button {
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border: 1px solid #f4d9c6;
  background: #fffdfa;
  box-shadow: none;
}

body.user-page .image-tool::before {
  width: 23px !important;
  height: 25px !important;
  background: url("./assets/image-upload-logo.svg?v=4") center / contain no-repeat !important;
}

body.user-page .image-tool::after {
  border-color: #f4d9c6;
}

body.user-page .composer-field {
  min-height: 40px !important;
  border: 1px solid #efd6c4;
  background: #fff;
  box-shadow: none;
}

body.user-page .composer-field:focus-within {
  border-color: #ffb27c;
  box-shadow: 0 0 0 2px rgba(255, 135, 70, 0.1);
}

body.user-page .user-composer textarea,
body.user-page .user-composer textarea:focus {
  min-height: 22px;
  padding: 0 12px !important;
  font-size: 16px !important;
  line-height: 22px;
}

body.user-page .user-composer .send-button {
  width: 56px !important;
  min-width: 56px !important;
  min-height: 40px !important;
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff8a42 0%, #f7b844 100%);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(255, 135, 70, 0.18);
}
