:root {
  color-scheme: light;
  --bg: #e9ebf0;
  --surface: #fafafa;
  --surface-soft: #f0f0f1;
  --line: rgba(35, 35, 35, 0.06);
  --text: #232323;
  --muted: rgba(35, 35, 35, 0.5);
  --faint: rgba(35, 35, 35, 0.3);
  --blue: #5d7ff2;
  --green: #13c46b;
  --danger: #d94a3a;
  --shadow: 0 12px 22px rgba(93, 127, 242, 0.24);
}

@property --score-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  font-style: normal;
}

button {
  border: 0;
  font: inherit;
  font-style: normal;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: 100vw;
  max-width: 414px;
  height: min(100svh, 896px);
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.view {
  display: none;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
}

.view.is-active {
  display: flex;
  flex-direction: column;
}

.chat-view.is-returning-from-notice.is-active {
  animation: chatReturnFromNotice 360ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

#listView {
  position: relative;
  background: #fafafa;
}

#homeShell {
  display: contents;
}

#chatShell {
  display: contents;
}

.wechat-header {
  flex: 0 0 0;
  height: 0;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 7px 17px;
  background: var(--surface);
}

.wechat-header > div:not(.header-actions) {
  display: block;
  min-width: 0;
}

.wechat-header h1 {
  margin: 0;
  color: #07152f;
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
}

.edit-button {
  visibility: hidden;
  pointer-events: none;
  height: 41px;
  background: transparent;
  color: var(--blue);
  font-size: 20px;
  font-style: normal;
  letter-spacing: 0;
  text-align: left;
}

.new-button {
  visibility: hidden;
  pointer-events: none;
  height: 41px;
  min-width: 111px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fafafa;
  box-shadow: 0 2px 2.5px rgba(93, 127, 242, 0.25);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

.new-button img {
  width: 18px;
  height: 18px;
  display: block;
  box-sizing: border-box;
  padding: 2.25px;
}

.top-action-button {
  height: 34px;
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(35, 35, 35, 0.06);
  color: #24324a;
  font-size: 14px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: 0;
}

.top-action-button.is-primary {
  background: rgba(93, 127, 242, 0.12);
  color: var(--blue);
}

.top-action-button:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}

.search-strip {
  display: none;
  flex: 0 0 0;
  height: 0;
  padding: 0;
  background: var(--surface);
}

.search-box {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 15px;
  border-radius: 100px;
  background: rgba(35, 35, 35, 0.05);
  color: rgba(35, 35, 35, 0.4);
  font-size: 18px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
}

.search-box em {
  flex: 1 1 auto;
  font-style: normal;
  line-height: 22px;
}

.search-icon,
.mic-icon {
  width: 24px;
  height: 24px;
  display: block;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.search-icon {
  padding: 4px;
}

.mic-icon {
  padding: 3px 6px;
}

.conversation-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 102px;
  background: var(--surface);
}

.pinned-area {
  margin-top: 0;
  padding: 5px 0;
  border-radius: 30px;
  background: rgba(35, 35, 35, 0.03);
  overflow: hidden;
}

.regular-area {
  margin-top: 0;
  background: var(--surface);
}

.conversation {
  width: 100%;
  height: 77px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.pinned-area .conversation:last-child {
  height: 76px;
}

.conversation:active {
  background: rgba(35, 35, 35, 0.04);
}

.conversation:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.avatar {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  margin-left: 17px;
  margin-right: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(35, 35, 35, 0.15);
  color: rgba(35, 35, 35, 0.55);
  font-size: 26px;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.avatar-image {
  background: transparent;
  overflow: visible;
}

.group-avatar {
  position: relative;
  display: block;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: visible;
}

.avatar.group-avatar {
  display: block;
  border-radius: 8px;
  background: transparent;
  font-size: 0;
}

.group-avatar-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5px;
  padding: 3px;
  overflow: hidden;
  border-radius: inherit;
  background: #e5e7eb;
}

.group-avatar-grid img,
.group-avatar-grid span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 3px;
  object-fit: cover;
}

.group-avatar-grid span {
  background: linear-gradient(135deg, #dbe7ff, #f3f6ff);
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.avatar-dark {
  background: #d5d5d5;
}

.avatar-green {
  background: #8ef2e6;
  color: #232323;
}

.avatar-blue {
  background: var(--blue);
  color: #fff;
}

.avatar-cyan {
  background: #8ff1e6;
  color: #232323;
}

.avatar-rose {
  background: linear-gradient(135deg, #f8c7d0, #925f70);
  color: #fff;
}

.avatar-telegram {
  background: #37a9e8;
  color: #fff;
}

.avatar i {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--blue);
}

.conversation-copy {
  align-self: stretch;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 176px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

.conversation-copy strong {
  display: block;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.conversation-copy em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.conversation-copy em b {
  color: var(--text);
  font-weight: 800;
}

.conversation-meta {
  align-self: stretch;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding-right: 17px;
}

.conversation-meta b {
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  font-style: normal;
}

.conversation-meta i {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fafafa;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 25px;
  text-align: center;
  letter-spacing: 0;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 23px;
  height: 79px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  align-items: start;
  padding: 10px 15px 18px;
  background: rgba(245, 245, 245, 0.7);
  border-top: 1px solid rgba(35, 35, 35, 0.03);
  backdrop-filter: blur(12.5px);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 135px;
  height: 5px;
  border-radius: 3px;
  background: #000;
  transform: translateX(-50%);
}

#homeShell > .home-indicator {
  visibility: hidden;
}

.tabbar button {
  position: relative;
  z-index: 1;
  display: block;
  height: 50px;
  background: transparent;
  color: rgba(35, 35, 35, 0.4);
  min-width: 0;
  overflow: visible;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.tabbar .is-active {
  color: var(--blue);
}

.tab-icon {
  position: absolute;
  left: calc(50% + 0.1px);
  top: 13.5px;
  width: 35px;
  height: 35px;
  display: block;
  box-sizing: border-box;
  object-fit: contain;
  padding: 5.83px;
  transform: translate(-50%, -50%);
}

.tab-label {
  position: absolute;
  left: calc(50% + 0.1px);
  top: 46px;
  display: block;
  transform: translate(-50%, -50%);
}

.chat-view {
  position: relative;
  background: #f5f5f5;
}

.scan-view {
  background: #f7f8fb;
}

.chat-view.no-back .back-button {
  visibility: hidden;
  pointer-events: none;
}

.chat-header {
  position: relative;
  z-index: 3;
  flex: 0 0 68px;
  height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 12px 15px 10px;
  background: rgba(249, 249, 249, 0.7);
  border-bottom: 1px solid rgba(35, 35, 35, 0.03);
  backdrop-filter: blur(12.5px);
}

.back-button {
  grid-column: 1;
  grid-row: 1;
  width: 24px;
  height: 45px;
  display: grid;
  place-items: center;
  justify-self: start;
  background: transparent;
}

.chat-peer {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: stretch;
}

.chat-peer-avatar {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
}

.chat-peer-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-peer-copy {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 55px);
  text-align: left;
}

.chat-peer-copy strong {
  display: block;
  overflow: hidden;
  color: #232323;
  font-size: 18px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-peer-copy span {
  display: block;
  margin-top: 0;
  overflow: hidden;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-peer-copy span:empty {
  display: none;
}

.chat-view.is-group-chat .chat-peer {
  gap: 0;
}

.chat-view.is-group-chat .chat-peer-avatar {
  display: none;
}

.chat-view.is-group-chat .chat-peer-copy {
  width: auto;
  max-width: 100%;
  text-align: left;
}

.chat-icon-action {
  grid-row: 1;
  position: relative;
  width: 36px;
  height: 36px;
  display: none;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: var(--blue);
  box-shadow:
    0 8px 18px rgba(93, 127, 242, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.chat-view.is-assistant-chat .chat-icon-action {
  display: grid;
}

.chat-scan-action {
  grid-column: 1;
}

.chat-group-action {
  grid-column: 3;
}

.chat-icon-action svg {
  width: 22px;
  height: 22px;
  display: block;
}

.chat-icon-action path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-scan-action svg {
  width: 23px;
  height: 23px;
}

.chat-scan-action path {
  fill: #fff;
  stroke: none;
}

.chat-group-action svg {
  width: 23px;
  height: 23px;
}

.chat-group-action path {
  fill: #fff;
  stroke: none;
}

.chat-icon-action:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}

.chat-unread-dot {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.35);
}

.chat-unread-dot[hidden] {
  display: none;
}

.more-button {
  visibility: hidden;
  pointer-events: none;
  width: 24px;
  height: 45px;
  display: grid;
  place-items: center;
  justify-self: end;
  background: transparent;
}

.back-button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 3px solid #232323;
  border-bottom: 3px solid #232323;
  transform: rotate(45deg);
  transform-origin: center;
}

.more-button::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #232323;
  box-shadow: 0 -7px 0 #232323, 0 7px 0 #232323;
}

.chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 17px calc(152px + env(safe-area-inset-bottom));
  background: #f5f5f5;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin: 0;
}

.chat-view:not(.no-back) .message-row.is-agent,
.chat-view:not(.no-back) .message-row.is-sales,
.chat-view:not(.no-back) .message-row.is-ops,
.chat-view:not(.no-back) .message-row.is-marketing,
.chat-view:not(.no-back) .message-row.is-service,
.chat-view:not(.no-back) .message-row.is-medical {
  align-items: flex-start;
  gap: 9px;
}

.message-row.is-user {
  justify-content: flex-end;
}

.message-row.is-agent,
.message-row.is-sales,
.message-row.is-ops {
  justify-content: flex-start;
}

.message-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin-top: 2px;
  border-radius: 50%;
  object-fit: cover;
}

.message-stack {
  min-width: 0;
  max-width: min(76%, 280px);
  display: grid;
  gap: 4px;
}

.message-sender {
  overflow: hidden;
  color: #07152f;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-bubble {
  max-width: min(76%, 280px);
  padding: 12px 16px;
  border: 1px solid rgba(35, 35, 35, 0.02);
  border-radius: 8px 20px 20px 20px;
  background: #ebebeb;
  color: #232323;
  box-shadow: 0 2px 5px rgba(35, 35, 35, 0.05);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.message-stack .message-bubble {
  max-width: 100%;
}

.message-row.is-user .message-bubble {
  border-radius: 20px 8px 20px 20px;
  background: #cfd7f2;
  color: #232323;
}

.message-row.is-sales .message-bubble {
  border-left: 0;
}

.message-row.is-ops .message-bubble {
  border-left: 0;
}

.message-bubble p {
  margin: 8px 0 0;
}

.message-bubble ol {
  margin: 8px 0 0;
  padding-left: 19px;
}

.message-bare {
  max-width: min(86%, 330px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #232323;
  box-shadow: none;
  overflow: visible;
}

.standard-doc-message {
  display: grid;
  gap: 10px;
  width: 100%;
}

.standard-doc-message p {
  margin: 0;
  padding: 0;
  border: 0;
}

.standard-doc-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  color: #07152f;
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(93, 127, 242, 0.08),
    0 4px 12px rgba(35, 35, 35, 0.06);
}

.standard-doc-card .doc-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #5d7ff2;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.standard-doc-card strong,
.standard-doc-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standard-doc-card strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 22px;
}

.standard-doc-card em {
  margin-top: 2px;
  color: #6f7782;
  font-size: 12px;
  font-style: normal;
  line-height: 17px;
}

.standard-doc-card b {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(93, 127, 242, 0.12);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 28px;
}

.message-bubble.is-panel {
  width: min(92%, 360px);
  max-width: 360px;
  border: 1px solid rgba(35, 35, 35, 0.02);
  border-radius: 8px 20px 20px 20px;
}

.score-data-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  animation: cardRise 360ms ease both;
}

.score-data-card::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 212, 134, 0.18), transparent 68%);
  pointer-events: none;
}

.score-alert-strip {
  position: relative;
  z-index: 1;
  height: 34px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), rgba(76, 212, 134, 0.08));
}

.score-alert-strip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.09);
}

.score-alert-strip b {
  color: #07152f;
  font-size: 13px;
  font-weight: 900;
}

.score-alert-strip em {
  color: #ef4444;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.score-data-card p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 35, 35, 0.06);
  color: #232323;
  font-size: 16px;
  line-height: 1.45;
}

.detection-card {
  display: grid;
  gap: 8px;
  padding: 0 10px 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  animation: cardRise 320ms ease both;
  transition: max-height 260ms ease, opacity 220ms ease, margin 220ms ease, padding 220ms ease;
}

.score-data-card.is-revealing-score .detection-card {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 300ms ease, transform 300ms ease;
}

.detection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detection-head strong {
  min-width: 0;
  color: #07152f;
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
}

.detection-head span {
  flex: 0 0 auto;
  color: #5e7ff4;
  font-size: 13px;
  font-weight: 800;
}

.detection-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(94, 127, 244, 0.1);
}

.detection-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5e7ff4, #4cd486);
  box-shadow: 0 0 12px rgba(76, 212, 134, 0.36);
  transition: width 520ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.detection-live-line {
  height: 30px;
  display: grid;
  grid-template-columns: 9px auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #5c6573;
  font-size: 13px;
  line-height: 18px;
}

.detection-live-line > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5e7ff4;
  box-shadow: 0 0 0 5px rgba(94, 127, 244, 0.08);
}

.detection-live-line span {
  color: #5e7ff4;
  font-weight: 900;
  white-space: nowrap;
}

.detection-live-line b {
  min-width: 0;
  overflow: hidden;
  color: #07152f;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detection-card.is-ticking .detection-live-line b {
  animation: metricBlink 90ms ease both;
}

.detection-card.is-complete .detection-live-line > i {
  background: #4cd486;
  box-shadow: 0 0 0 5px rgba(76, 212, 134, 0.13);
}

.detection-list {
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding-top: 1px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 8px), transparent 100%);
}

.detection-list::-webkit-scrollbar {
  display: none;
}

.detection-step {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #8b929d;
  opacity: 0.72;
  transition: background-color 220ms ease, color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.detection-step > i {
  position: relative;
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border-radius: 50%;
  background: #dce1ea;
  box-shadow: inset 0 0 0 1px rgba(7, 21, 47, 0.04);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.detection-step > i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 3px;
  height: 5px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.detection-step span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.detection-step b {
  color: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 17px;
}

.detection-step em {
  color: inherit;
  font-size: 10.5px;
  font-style: normal;
  line-height: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.detection-step.is-active {
  color: #24324a;
  opacity: 1;
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(94, 127, 244, 0.1);
}

.detection-step.is-active > i {
  background: #5e7ff4;
  box-shadow: 0 0 0 4px rgba(94, 127, 244, 0.08);
  animation: none;
}

.detection-step.is-done {
  color: #216448;
  opacity: 1;
  background: rgba(76, 212, 134, 0.14);
}

.detection-step.is-done > i {
  background: #4cd486;
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(76, 212, 134, 0.13);
}

.detection-step.is-done > i::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.detection-step.is-flash {
  background: rgba(76, 212, 134, 0.07);
}

.detection-card.is-complete .detection-head strong {
  color: #1f9b5f;
}

.detection-card.is-collapsed {
  max-height: 0;
  margin: -4px 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  border-width: 0;
}

.score-result {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 2px 0 4px;
  text-align: center;
  animation: scoreResultReveal 420ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.score-data-card.is-detecting .score-result {
  padding-bottom: 0;
}

.score-result strong {
  color: #07152f;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
}

.score-result span {
  color: #6f7782;
  font-size: 13px;
  line-height: 18px;
}

.score-benchmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(76, 212, 134, 0.12);
  color: #14965a;
  font-size: 15px;
  font-weight: 900;
  line-height: 20px;
}

.score-source {
  max-width: 260px;
  color: #8b929d;
  font-size: 11px;
  line-height: 16px;
}

.score-source:empty {
  display: none;
}

.score-ring {
  --score-angle: 266deg;
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(76, 212, 134, 0.18) 0 48%, transparent 49%),
    conic-gradient(#4cd486 0 var(--score-angle), #d7f5fb var(--score-angle) 360deg);
  box-shadow: 0 12px 30px rgba(76, 212, 134, 0.2);
  animation: scoreLoad 1300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(76, 212, 134, 0.18);
  animation: scoreHaloLoad 1300ms ease-out both, sendRipple 2200ms ease-out 1300ms infinite;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #ebebeb;
}

.score-ring b {
  position: relative;
  z-index: 1;
  color: #444;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.issue-summary {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  padding: 10px 10px 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(239, 68, 68, 0.08);
}

.issue-summary > strong {
  margin-bottom: 4px;
  color: #07152f;
  font-size: 17px;
  font-weight: 900;
  line-height: 24px;
}

.issue-item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(35, 35, 35, 0.08);
  background: transparent;
  color: inherit;
  text-align: left;
  animation: issueIn 420ms ease both;
}

.issue-item:active {
  background: rgba(239, 68, 68, 0.04);
}

.issue-item:nth-child(3) {
  animation-delay: 90ms;
}

.issue-item:nth-child(4) {
  animation-delay: 180ms;
}

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

.issue-dot {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
}

.issue-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.issue-item:active .issue-dot::before {
  transform: scale(0.88);
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.14);
}

.issue-item span {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
}

.issue-item b {
  flex: 1 0 100%;
  overflow: visible;
  color: #07152f;
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  text-overflow: clip;
  white-space: normal;
}

.mini-title {
  color: #6f7782;
  font-size: 12px;
  font-weight: 800;
}

.evidence-card {
  display: grid;
  gap: 10px;
}

.evidence-card > strong {
  color: #07152f;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.evidence-card p {
  margin: 0;
  color: #232323;
  font-size: 15px;
  line-height: 1.45;
}

.evidence-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe4ea;
}

.evidence-card img {
  width: 100%;
  max-height: 176px;
  display: block;
  object-fit: cover;
}

.evidence-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(7, 21, 47, 0.7));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.evidence-card .play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(7, 21, 47, 0.7);
  transform: translate(-50%, -50%);
}

.evidence-card .play-mark::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  border-left: 13px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.plan-card {
  display: grid;
  gap: 12px;
}

.plan-card > strong {
  color: #07152f;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

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

.plan-row span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.plan-row p {
  margin: 0;
}

.plan-row b {
  display: block;
  margin-bottom: 3px;
  color: #07152f;
  font-weight: 800;
}

.group-invite-card {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  background: transparent;
  color: #232323;
  text-align: left;
}

.group-invite-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
}

.group-invite-card strong,
.group-invite-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-invite-card strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.group-invite-card em {
  margin-top: 4px;
  color: #6f7782;
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.group-invite-card b {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
}

.top-message-notice {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  z-index: 60;
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  color: #07152f;
  text-align: left;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: translateY(-120%);
  touch-action: pan-y;
  user-select: none;
  transition:
    transform 260ms cubic-bezier(0.2, 0.85, 0.2, 1),
    opacity 180ms ease;
}

.top-message-notice.is-visible {
  opacity: 1;
  transform: translateY(var(--notice-drag-y, 0));
}

.top-message-notice.is-dragging {
  transition: none;
}

.top-message-notice.is-leaving {
  opacity: 0;
  transform: translateY(-110%) scale(0.98);
  transition:
    transform 180ms ease,
    opacity 140ms ease;
}

.top-message-avatar {
  width: 40px;
  height: 40px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(93, 127, 242, 0.1);
}

.top-message-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.top-message-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.top-message-copy strong,
.top-message-copy em {
  display: block;
  min-width: 0;
}

.top-message-copy strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 18px;
}

.top-message-copy em {
  overflow: hidden;
  color: #5f6875;
  font-size: 12px;
  font-style: normal;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-message-notice b {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(93, 127, 242, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 28px;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a4adb8;
  animation: typing 900ms infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 120ms;
}

.typing i:nth-child(3) {
  animation-delay: 240ms;
}

.chat-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 146px;
  display: block;
  padding: 0;
  pointer-events: none;
}

.quick-command-row {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 114px;
  z-index: 2;
  min-height: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  pointer-events: none;
}

.quick-command {
  min-width: 88px;
  max-width: 260px;
  height: 32px;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 32px;
  box-shadow: 0 2px 5px rgba(35, 35, 35, 0.08);
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
}

.quick-command:disabled {
  background: #b7c1ca;
}

.composer-input-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 102px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 17px 34px;
  background: rgba(245, 245, 245, 0.7);
  border-top: 1px solid rgba(35, 35, 35, 0.03);
  backdrop-filter: blur(12.5px);
  pointer-events: auto;
}

.voice-mode-button {
  width: 38px;
  height: 58px;
  display: grid;
  place-items: center;
  background: transparent;
}

.voice-mode-button img {
  width: 28px;
  height: 28px;
  display: block;
  box-sizing: border-box;
}

.voice-mode-button .microphone-icon {
  padding: 4px 7px;
  opacity: 0.62;
}

.voice-mode-button .keyboard-icon {
  width: 27px;
  height: 27px;
  padding: 0;
  opacity: 1;
}

.input-field {
  min-width: 0;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 9px 10px 15px;
  border: 1px solid rgba(35, 35, 35, 0.02);
  border-radius: 100px;
  background: rgba(35, 35, 35, 0.05);
  color: #232323;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

#composerText {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  outline: none;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#composerText:empty::before {
  content: attr(data-placeholder);
  color: #232323;
}

.input-field.is-voice-mode {
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.input-field.is-voice-mode #composerText,
.input-field.is-voice-mode .send-button {
  display: none;
}

.voice-hold-button {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(35, 35, 35, 0.05);
  color: #232323;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(35, 35, 35, 0.02);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.voice-hold-button.is-recording {
  background: linear-gradient(90deg, rgba(93, 127, 242, 0.12), rgba(76, 212, 134, 0.13));
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(93, 127, 242, 0.08), 0 8px 18px rgba(93, 127, 242, 0.08);
  transform: scale(0.985);
}

.voice-recording-label {
  display: none;
  align-items: center;
  gap: 9px;
}

.voice-hold-button.is-recording .voice-idle-label {
  display: none;
}

.voice-hold-button.is-recording .voice-recording-label {
  display: inline-flex;
}

.voice-wave {
  height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.voice-wave b {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  animation: voiceWave 820ms ease-in-out infinite;
}

.voice-wave b:nth-child(2) {
  animation-delay: 100ms;
}

.voice-wave b:nth-child(3) {
  animation-delay: 200ms;
}

.voice-wave b:nth-child(4) {
  animation-delay: 300ms;
}

.send-button,
.primary-button,
.outline-button {
  height: 42px;
  border-radius: 21px;
  padding: 0 16px;
  font-weight: 800;
  white-space: nowrap;
}

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

.send-button {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(93, 127, 242, 0.24);
  animation: sendPrimaryPulse 1800ms ease-in-out infinite;
  overflow: visible;
}

.send-button::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(93, 127, 242, 0.42);
  opacity: 0;
  animation: sendRipple 1800ms ease-out infinite;
}

.send-button:active {
  transform: scale(0.94);
}

.send-button img {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: block;
  box-sizing: border-box;
  padding: 4.33px 3.79px 4.33px 5.96px;
}

.chat-home-indicator {
  bottom: 8px;
}

.outline-button {
  border: 1px solid #cfd6dc;
  background: #fff;
  color: #3d4650;
}

.text-button {
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.scan-page-header {
  position: relative;
  z-index: 2;
  flex: 0 0 58px;
  height: 58px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 17px;
  background: rgba(249, 249, 249, 0.78);
  border-bottom: 1px solid rgba(35, 35, 35, 0.04);
  backdrop-filter: blur(12px);
}

.scan-page-header > div {
  min-width: 0;
}

.scan-page-header strong {
  display: block;
  color: #07152f;
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
}

.scan-page-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 28px;
}

.scan-hero {
  position: relative;
  margin: 0 0 13px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe9f2;
  box-shadow: 0 14px 30px rgba(20, 35, 58, 0.12);
}

.scan-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.scan-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background:
    linear-gradient(to top, rgba(5, 12, 25, 0.72), rgba(5, 12, 25, 0.18) 62%, transparent),
    radial-gradient(circle at 28% 54%, rgba(76, 212, 134, 0.2), transparent 28%);
  pointer-events: none;
}

.scan-hero figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
}

.scan-hero figcaption span {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(76, 212, 134, 0.22);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.scan-hero figcaption strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
  font-weight: 900;
  line-height: 26px;
}

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

.scan-page-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  padding: 13px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 35, 58, 0.05);
}

.scan-page-list article:not(.is-featured) {
  opacity: 0.68;
  background: rgba(255, 255, 255, 0.72);
}

.scan-page-list article.is-featured {
  position: relative;
  min-height: 112px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(93, 127, 242, 0.16), rgba(76, 212, 134, 0.12)),
    radial-gradient(circle at 94% 10%, rgba(76, 212, 134, 0.28), transparent 76px),
    #fff;
  box-shadow:
    inset 0 0 0 2px rgba(93, 127, 242, 0.22),
    0 16px 34px rgba(93, 127, 242, 0.18);
}

.scan-page-list b {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(93, 127, 242, 0.12);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.scan-page-list article.is-featured b {
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(93, 127, 242, 0.32);
}

.scan-page-list strong {
  color: #07152f;
  font-size: 15px;
  font-weight: 900;
  line-height: 19px;
}

.scan-page-list article.is-featured strong {
  padding-right: 50px;
  font-size: 18px;
  line-height: 23px;
}

.scan-page-list span {
  color: #6f7782;
  font-size: 13px;
  line-height: 18px;
}

.scan-page-list article.is-featured span {
  color: #53606f;
  font-size: 13.5px;
  line-height: 19px;
}

.scan-primary-action {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(93, 127, 242, 0.22);
  font-size: 15px;
  font-weight: 900;
}

.scan-primary-action.is-disabled,
.scan-primary-action:disabled {
  background: #d8dde7;
  color: #8a93a3;
  box-shadow: none;
  cursor: not-allowed;
}

.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  align-items: end;
  background: rgba(9, 17, 28, 0.42);
}

.sheet {
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 22px 48px rgba(19, 32, 51, 0.16);
}

.sheet h2 {
  margin: 6px 0;
  font-size: 22px;
  line-height: 1.2;
}

.sheet p {
  margin: 0;
  color: #6f7782;
  font-size: 14px;
  line-height: 1.45;
}

.sheet-kicker {
  display: block;
  color: #6f7782;
  font-size: 12px;
}

.auth-safe-note {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(93, 127, 242, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.security-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.security-list div {
  position: relative;
  min-height: 30px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
  padding: 9px 12px 9px 9px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 18%, rgba(212, 166, 64, 0.2), transparent 34px),
    linear-gradient(135deg, rgba(255, 247, 220, 0.58), rgba(93, 127, 242, 0.08));
  color: #232323;
  overflow: hidden;
}

.security-list div::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -8px;
  width: 70px;
  height: 70px;
  background: rgba(93, 127, 242, 0.08);
  clip-path: polygon(50% 3%, 88% 18%, 82% 66%, 50% 96%, 18% 66%, 12% 18%);
}

.security-list strong,
.security-list span {
  display: block;
}

.security-list strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.security-list span {
  margin-top: 1px;
  color: #6f7782;
  font-size: 12px;
  line-height: 16px;
}

.security-shield-img {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

.permission-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.permission-list div {
  padding: 12px;
  border-radius: 8px;
  background: #f6f7f8;
}

.permission-list strong,
.permission-list span {
  display: block;
}

.permission-list span {
  margin-top: 4px;
  color: #6f7782;
  font-size: 13px;
}

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

.document-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  background: #f7f8fa;
}

.document-layer.is-ppt-view {
  background: #101827;
}

.standard-document {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.document-layer.is-ppt-view .standard-document {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  background: #101827;
}

.document-header {
  position: relative;
  z-index: 2;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(35, 35, 35, 0.06);
  background: rgba(250, 250, 250, 0.96);
}

.document-layer.is-ppt-view .document-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  min-height: 58px;
  border-bottom: 0;
  background: linear-gradient(to bottom, rgba(16, 24, 39, 0.72), rgba(16, 24, 39, 0));
}

.document-close {
  width: 38px;
  height: 38px;
  position: relative;
  border-radius: 50%;
  background: transparent;
}

.document-close::before,
.document-close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #232323;
}

.document-close::before {
  transform: rotate(45deg);
}

.document-close::after {
  transform: rotate(-45deg);
}

.document-layer.is-ppt-view .document-close::before,
.document-layer.is-ppt-view .document-close::after {
  background: #fff;
}

.document-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.document-share-button,
.document-download-button {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: rgba(93, 127, 242, 0.12);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.document-share-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(93, 127, 242, 0.22);
}

.document-layer.is-ppt-view .document-share-button,
.document-layer.is-ppt-view .document-download-button {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(12px);
}

.document-layer.is-ppt-view .document-share-button {
  background: #fff;
  color: #07152f;
}

.document-header strong,
.document-header span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-header strong {
  color: #07152f;
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
}

.document-header span {
  margin-top: 2px;
  color: #6f7782;
  font-size: 12px;
  line-height: 16px;
}

.document-layer.is-ppt-view .document-header strong,
.document-layer.is-ppt-view .document-header span {
  display: none;
}

.document-content {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 22px;
  background: #fff;
}

.document-layer.is-ppt-view .document-content {
  height: 100%;
  min-height: 0;
  padding: 58px 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #101827;
}

.document-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(93, 127, 242, 0.1), rgba(76, 212, 134, 0.08));
}

.document-summary b {
  color: #07152f;
  font-size: 16px;
  font-weight: 900;
  line-height: 22px;
}

.document-summary span {
  color: #6f7782;
  font-size: 13px;
  line-height: 18px;
}

.document-section {
  padding: 14px 0;
  border-top: 1px solid rgba(35, 35, 35, 0.08);
}

.document-section h3 {
  margin: 0 0 8px;
  color: #07152f;
  font-size: 17px;
  font-weight: 900;
  line-height: 24px;
}

.document-section ol {
  margin: 0;
  padding-left: 20px;
  color: #232323;
  font-size: 15px;
  line-height: 1.65;
}

.document-ppt-figure {
  margin: 0;
  padding: 0;
}

.document-ppt-figure.is-fullscreen-ppt {
  min-height: 0;
  display: grid;
  align-items: start;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
  background: #f6f8ff;
}

.document-ppt-figure img {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #f7f9fc;
  box-shadow: 0 14px 34px rgba(7, 21, 47, 0.12);
}

.document-ppt-figure.is-fullscreen-ppt img {
  width: 100%;
  height: auto;
  object-fit: initial;
  border-radius: 0;
  box-shadow: none;
}

.document-ad-card {
  position: relative;
  width: 100%;
  min-height: 132px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 6px;
  padding: 18px 16px 18px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 4%, rgba(93, 127, 242, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f9ff 54%, #effcf6 100%);
  color: #07152f;
  text-align: left;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(93, 127, 242, 0.09),
    0 14px 30px rgba(7, 21, 47, 0.1);
}

.document-ad-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(40, 201, 125, 0.12);
  pointer-events: none;
}

.document-ad-card:active {
  transform: scale(0.99);
}

.ad-orb {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #5d7ff2, #28c97d);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 20px rgba(93, 127, 242, 0.24);
}

.ad-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-right: 108px;
}

.ad-copy em,
.ad-copy strong,
.ad-copy small {
  display: block;
  min-width: 0;
}

.ad-copy em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 17px;
}

.ad-copy strong {
  color: #07152f;
  font-size: 19px;
  font-weight: 900;
  line-height: 25px;
}

.ad-copy small {
  color: #6f7782;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.ad-cta {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 1;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: #07152f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 34px;
}

.document-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(35, 35, 35, 0.06);
  background: rgba(250, 250, 250, 0.96);
}

.document-layer.is-ppt-view .document-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 0 28px calc(16px + env(safe-area-inset-bottom));
  border-top: 0;
  background: transparent;
  pointer-events: auto;
}

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

.share-targets button {
  min-height: 88px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 18px;
  background: #fff;
  color: #07152f;
  box-shadow:
    inset 0 0 0 1px rgba(207, 214, 220, 0.86),
    0 8px 20px rgba(7, 21, 47, 0.06);
}

.share-targets button:active {
  transform: scale(0.98);
}

.share-targets b {
  font-size: 13px;
  font-weight: 900;
  line-height: 18px;
}

.share-logo {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px rgba(7, 21, 47, 0.06);
}

.share-logo img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}

.share-targets [data-doc-share="wecom"] .share-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.share-guide-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  background: rgba(16, 24, 39, 0.52);
  backdrop-filter: blur(6px);
}

.share-guide-sheet {
  display: grid;
  gap: 16px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 18% 0, rgba(93, 127, 242, 0.12), transparent 34%),
    #fff;
  box-shadow: 0 -20px 40px rgba(16, 24, 39, 0.18);
}

.share-guide-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-guide-sheet header strong {
  display: block;
  color: #07152f;
  font-size: 20px;
  font-weight: 900;
  line-height: 27px;
}

.share-guide-sheet header span {
  display: block;
  margin-top: 2px;
  color: #6f7782;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.share-guide-sheet header button {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f3f6;
}

.share-guide-sheet header button::before,
.share-guide-sheet header button::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 15px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #6f7782;
}

.share-guide-sheet header button::before {
  transform: rotate(45deg);
}

.share-guide-sheet header button::after {
  transform: rotate(-45deg);
}

.tasks-panel {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px;
  background: #fff;
}

.done-state {
  padding: 18px 0;
  border-bottom: 1px solid #e5e8ec;
}

.done-state span {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 12px;
  background: rgba(93, 127, 242, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.done-state strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.2;
}

.done-state p {
  margin: 8px 0 0;
  color: #6f7782;
  font-size: 14px;
  line-height: 1.5;
}

.task-item {
  padding: 16px 0;
  border-bottom: 1px solid #e5e8ec;
}

.task-item b,
.task-item strong,
.task-item span {
  display: block;
}

.task-item b {
  color: var(--blue);
  font-size: 12px;
}

.task-item strong {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.35;
}

.task-item span {
  margin-top: 5px;
  color: #6f7782;
  font-size: 13px;
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chatReturnFromNotice {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scoreLoad {
  0% {
    --score-angle: 0deg;
    transform: scale(0.92);
    filter: saturate(0.85);
  }
  62% {
    --score-angle: 284deg;
    transform: scale(1.04);
    filter: saturate(1.08);
  }
  100% {
    --score-angle: 266deg;
    transform: scale(1);
    filter: saturate(1);
  }
}

@keyframes scoreHaloLoad {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  55% {
    opacity: 0.72;
    transform: scale(1.18);
  }
  100% {
    opacity: 0.34;
    transform: scale(1);
  }
}

@keyframes actionGlow {
  0%,
  100% {
    box-shadow: 0 12px 22px rgba(32, 201, 112, 0.2);
  }
  50% {
    box-shadow: 0 18px 30px rgba(32, 201, 112, 0.32);
  }
}

@keyframes detectionPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(94, 127, 244, 0.1);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 9px rgba(94, 127, 244, 0.16);
  }
}

@keyframes metricBlink {
  from {
    opacity: 0.35;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scoreResultReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

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

@keyframes issueIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sendPrimaryPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 18px rgba(93, 127, 242, 0.22);
  }
  50% {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 12px 24px rgba(93, 127, 242, 0.32);
  }
}

@keyframes sendRipple {
  0% {
    opacity: 0.45;
    transform: scale(0.82);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes voiceWave {
  0%,
  100% {
    height: 7px;
    opacity: 0.5;
  }
  50% {
    height: 18px;
    opacity: 1;
  }
}

@keyframes typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (min-width: 700px) {
  .phone-shell {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    height: min(calc(100svh - 40px), 896px);
    min-height: 760px;
    border-radius: 28px;
  }
}

@media (max-width: 430px) {
  .chat-body {
    padding-bottom: calc(188px + env(safe-area-inset-bottom));
  }

  .document-ppt-figure.is-fullscreen-ppt {
    padding-bottom: calc(102px + env(safe-area-inset-bottom));
  }
}
