details.ui-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 14px 0;
  overflow: hidden;

  color: #f4eef1;
  background:
    linear-gradient(
      180deg,
      rgba(45, 30, 35, 0.78) 0%,
      rgba(31, 23, 27, 0.68) 100%
    );

  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 11px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

details.ui-card:hover {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(168, 64, 111, 0.08);
}

details.ui-card > summary {
  display: flex;
  align-items: center;
  gap: 9px;

  box-sizing: border-box;
  min-height: 66px;
  padding: 17px 21px;

  color: #f7f1f4;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;

  cursor: pointer;
  user-select: none;
  list-style: none;

  background:
    linear-gradient(
      90deg,
      rgba(84, 43, 59, 0.22),
      rgba(36, 27, 31, 0.08)
    );
}

details.ui-card > summary::-webkit-details-marker {
  display: none;
}

details.ui-card > summary::marker {
  display: none;
  content: "";
}

details.ui-card > summary::after {
  content: "＋";
  margin-left: auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

details.ui-card[open] > summary::after {
  content: "－";
}

details.ui-card[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
}

.ui-content {
  box-sizing: border-box;
  padding: 20px 23px 22px;

  color: #eee7ea;
  font-size: 15px;
  line-height: 1.9;

  word-break: break-word;
  overflow-wrap: anywhere;
}

.ui-content strong {
  color: #fff9fb;
  font-weight: 650;
}

.ui-content hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.10)
    );
}

/* 正文区域 */

details.ui-story {
  border-color: rgba(255, 255, 255, 0.78);
}

details.ui-story > summary {
  background:
    linear-gradient(
      90deg,
      rgba(82, 45, 59, 0.29),
      rgba(35, 26, 30, 0.08)
    );
}

.ui-prose {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
}

.ui-prose p {
  margin: 0 0 1.1em;
  text-indent: 2em;
}

.ui-prose p:last-child {
  margin-bottom: 0;
}

/* 时间地点 */

details.ui-time > summary {
  background:
    linear-gradient(
      90deg,
      rgba(105, 52, 64, 0.26),
      rgba(31, 24, 27, 0.05)
    );
}

/* 用户角色 */

details.ui-user {
  border-color: rgba(246, 221, 229, 0.82);
}

details.ui-user > summary {
  background:
    linear-gradient(
      90deg,
      rgba(104, 47, 68, 0.30),
      rgba(43, 28, 34, 0.08)
    );
}

/* 当前互动人物 */

details.ui-character {
  border-color: rgba(244, 188, 211, 0.86);
}

details.ui-character > summary {
  background:
    linear-gradient(
      90deg,
      rgba(137, 46, 83, 0.27),
      rgba(46, 26, 34, 0.08)
    );
}

/* 关系状态 */

details.ui-relation {
  border-color: rgba(225, 166, 196, 0.75);
}

details.ui-relation > summary {
  background:
    linear-gradient(
      90deg,
      rgba(123, 47, 84, 0.28),
      rgba(43, 27, 34, 0.08)
    );
}

/* 日程 */

details.ui-schedule > summary {
  background:
    linear-gradient(
      90deg,
      rgba(71, 69, 105, 0.24),
      rgba(36, 27, 32, 0.06)
    );
}

/* 媒体动态 */

details.ui-media > summary {
  background:
    linear-gradient(
      90deg,
      rgba(54, 82, 118, 0.24),
      rgba(34, 27, 32, 0.06)
    );
}

/* 其他人物 */

details.ui-others > summary {
  background:
    linear-gradient(
      90deg,
      rgba(88, 62, 84, 0.25),
      rgba(35, 27, 31, 0.06)
    );
}

/* 无敌记忆区：橙色强调 */

details.ui-memory {
  border-color: rgba(255, 177, 45, 0.82);
  border-bottom: 3px solid #e99813;

  box-shadow:
    0 9px 28px rgba(0, 0, 0, 0.26),
    0 0 20px rgba(233, 152, 19, 0.08);
}

details.ui-memory > summary {
  color: #ff9f17;
  background:
    linear-gradient(
      90deg,
      rgba(118, 72, 14, 0.33),
      rgba(49, 31, 27, 0.09)
    );
}

details.ui-memory[open] > summary {
  border-bottom-color: rgba(255, 177, 45, 0.56);
}

details.ui-memory .ui-content strong {
  color: #ffb33c;
}

/* 标签型字段 */

.ui-tag {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 3px 9px;

  color: #f8edf2;
  font-size: 13px;
  line-height: 1.5;

  background: rgba(150, 66, 100, 0.20);
  border: 1px solid rgba(244, 189, 214, 0.30);
  border-radius: 999px;
}

/* 可选人物图片卡 */

.ui-photo-card {
  display: flex;
  justify-content: center;
  align-items: center;

  box-sizing: border-box;
  margin: 2px 0;
  padding: 18px;
}

.ui-photo-frame {
  position: relative;
  width: min(210px, 70vw);
  padding: 6px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.95),
      rgba(211, 79, 137, 0.95)
    );

  border-radius: 34px;

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.88),
    0 0 24px rgba(213, 63, 129, 0.65),
    0 13px 35px rgba(0, 0, 0, 0.36);
}

.ui-photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 27px;
}

/* 记忆条目 */

.memory-entry {
  box-sizing: border-box;
  margin: 10px 0;
  padding: 12px 14px;

  background: rgba(78, 46, 17, 0.20);
  border-left: 3px solid rgba(255, 166, 25, 0.82);
  border-radius: 7px;
}

.memory-entry-title {
  display: block;
  margin-bottom: 5px;
  color: #ffb13a;
  font-weight: 700;
}

/* 手机端 */

@media (max-width: 680px) {
  details.ui-card {
    margin: 10px 0;
    border-radius: 9px;
  }

  details.ui-card > summary {
    min-height: 56px;
    padding: 14px 15px;
    font-size: 16px;
  }

  .ui-content {
    padding: 16px 16px 18px;
    font-size: 14px;
    line-height: 1.85;
  }

  .ui-prose {
    font-size: 15px;
  }

  .ui-photo-frame {
    width: min(185px, 72vw);
  }
}
/* =========================
   统一白色半透明 + 荧光粉边框主题
   本区块统一覆盖所有一级状态栏颜色
   ========================= */

:root {
  --ui-text-main: #433740;
  --ui-text-soft: #70636b;
  --ui-bg: rgba(255, 255, 255, 0.72);
  --ui-bg-title: rgba(255, 255, 255, 0.84);
  --ui-bg-content: rgba(255, 255, 255, 0.38);
  --ui-pink: #ff2fa7;
  --ui-pink-deep: #df168c;
  --ui-pink-border: rgba(255, 47, 167, 0.84);
  --ui-pink-line: rgba(255, 47, 167, 0.24);
  --ui-pink-glow: rgba(255, 47, 167, 0.24);
}

/* 所有一级卡片统一为白色半透明 */

details.ui-card {
  color: var(--ui-text-main);
  background: var(--ui-bg);

  border: 1.5px solid var(--ui-pink-border);
  border-radius: 14px;

  box-shadow:
    0 8px 24px rgba(71, 48, 62, 0.12),
    0 0 14px var(--ui-pink-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);

  backdrop-filter: blur(14px) saturate(108%);
  -webkit-backdrop-filter: blur(14px) saturate(108%);
}

details.ui-card:hover {
  background: rgba(255, 255, 255, 0.80);
  border-color: var(--ui-pink);

  box-shadow:
    0 10px 30px rgba(71, 48, 62, 0.15),
    0 0 20px rgba(255, 47, 167, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);

  transform: translateY(-1px);
}

/* 所有一级卡片标题统一为白色半透明 */

details.ui-card > summary {
  min-height: 64px;
  padding: 17px 21px;

  color: var(--ui-text-main);
  font-weight: 700;

  background: var(--ui-bg-title);
}

details.ui-card > summary::after {
  color: var(--ui-pink);
  font-weight: 600;
}

details.ui-card[open] > summary {
  border-bottom: 1px solid var(--ui-pink-line);
}

/* 强制覆盖不同模块原有的独立颜色 */

details.ui-story,
details.ui-time,
details.ui-user,
details.ui-character,
details.ui-relation,
details.ui-schedule,
details.ui-media,
details.ui-others,
details.ui-memory {
  color: var(--ui-text-main);
  background: var(--ui-bg);
  border-color: var(--ui-pink-border);
  border-bottom: 1.5px solid var(--ui-pink-border);
}

details.ui-story > summary,
details.ui-time > summary,
details.ui-user > summary,
details.ui-character > summary,
details.ui-relation > summary,
details.ui-schedule > summary,
details.ui-media > summary,
details.ui-others > summary,
details.ui-memory > summary {
  color: var(--ui-text-main);
  background: var(--ui-bg-title);
}

/* 卡片正文 */

.ui-content {
  color: var(--ui-text-main);
  background: var(--ui-bg-content);
}

.ui-content strong,
details.ui-memory .ui-content strong {
  color: #3d3038;
  font-weight: 700;
}

.ui-content hr {
  background: var(--ui-pink-line);
}

/* 正文 */

.ui-prose,
.ui-prose p {
  color: var(--ui-text-main);
}

/* 标签 */

.ui-tag {
  color: var(--ui-pink-deep);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 47, 167, 0.38);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* 沪上月记忆区统一颜色 */

details.ui-memory {
  box-shadow:
    0 9px 28px rgba(71, 48, 62, 0.13),
    0 0 16px rgba(255, 47, 167, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

details.ui-memory[open] > summary {
  border-bottom-color: var(--ui-pink-line);
}

details.ui-memory .ui-content {
  color: var(--ui-text-main);
}

.memory-entry {
  color: var(--ui-text-main);
  background: rgba(255, 255, 255, 0.56);

  border: 1px solid rgba(255, 47, 167, 0.24);
  border-left: 3px solid var(--ui-pink);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.memory-entry-title {
  color: var(--ui-pink-deep);
}

/* 人物小图框统一为荧光粉 */

.ui-photo-frame {
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--ui-pink);

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.90),
    0 0 24px rgba(255, 47, 167, 0.48),
    0 13px 32px rgba(71, 48, 62, 0.20);
}

/* 手机端提高白色填充，保证可读性 */

@media (max-width: 680px) {
  details.ui-card {
    background: rgba(255, 255, 255, 0.80);

    backdrop-filter: blur(12px) saturate(105%);
    -webkit-backdrop-filter: blur(12px) saturate(105%);
  }

  details.ui-card > summary {
    min-height: 58px;
  }
}

/* =========================
   当前互动人物图片展示
   ========================= */

details.ui-character {
  position: relative;
  overflow: hidden;
}

/* 上方人物图片展示区域 */

.character-image-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  min-height: 330px;
  padding: 22px;

  overflow: hidden;

  border-bottom: 1px solid rgba(132, 91, 112, 0.18);
}

/* 使用同一图片作为模糊背景 */

.character-image-area::before {
  content: "";
  position: absolute;
  inset: -24px;

  background-image:
    linear-gradient(
      rgba(55, 35, 44, 0.50),
      rgba(55, 35, 44, 0.64)
    ),
    var(--character-bg);

  background-position: center;
  background-size: cover;

  filter: blur(7px);
  transform: scale(1.08);

  opacity: 0.82;
}

/* 背景上的浅色遮罩 */

.character-image-area::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(53, 33, 42, 0.20)
    );

  pointer-events: none;
}

/* 中间人物相框 */

.character-image-frame {
  position: relative;
  z-index: 2;

  box-sizing: border-box;
  width: min(220px, 68vw);
  padding: 6px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(191, 40, 108, 0.94)
    );

  border-radius: 38px;

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.94),
    0 0 25px rgba(190, 37, 104, 0.62),
    0 15px 38px rgba(0, 0, 0, 0.30);
}

.character-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;

  object-fit: cover;
  object-position: center;

  background: rgba(255, 255, 255, 0.45);
  border-radius: 31px;
}

/* 下方人物资料 */

.character-profile {
  position: relative;
  z-index: 2;
}

/* 图片加载失败时避免显示过大的破图 */

.character-image:not([src]),
.character-image[src=""],
.character-image[src="{人物图片URL}"] {
  display: none;
}

.character-image-frame:has(
  .character-image:not([src]),
  .character-image[src=""],
  .character-image[src="{人物图片URL}"]
) {
  display: none;
}

/* 手机适配 */

@media (max-width: 680px) {
  .character-image-area {
    min-height: 280px;
    padding: 18px;
  }

  .character-image-frame {
    width: min(190px, 66vw);
    border-radius: 32px;
  }

  .character-image {
    border-radius: 26px;
  }
}
/* 沪上月记忆区二级折叠菜单 */
details.ui-memory .memory-root {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details.ui-memory .memory-subsection {
  display: block;
  overflow: hidden;
  margin: 0;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(163, 125, 67, 0.22);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

details.ui-memory .memory-subsection > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 14px;
  color: #7d551d;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: linear-gradient(
    90deg,
    rgba(249, 224, 174, 0.58),
    rgba(255, 255, 255, 0.20)
  );
}

details.ui-memory .memory-subsection > summary::-webkit-details-marker {
  display: none;
}

details.ui-memory .memory-subsection > summary::marker {
  content: "";
}

details.ui-memory .memory-subsection > summary::after {
  content: "＋";
  margin-left: auto;
  color: rgba(125, 85, 29, 0.66);
  font-size: 17px;
  font-weight: 500;
}

details.ui-memory .memory-subsection[open] > summary::after {
  content: "－";
}

details.ui-memory .memory-subsection[open] > summary {
  border-bottom: 1px solid rgba(163, 125, 67, 0.18);
}

details.ui-memory .memory-subcontent {
  padding: 14px 15px 16px;
  color: #554536;
  line-height: 1.85;
}

details.ui-memory .memory-entry {
  margin: 8px 0;
}

@media (max-width: 680px) {
  details.ui-memory .memory-subsection > summary {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }

  details.ui-memory .memory-subcontent {
    padding: 12px 12px 14px;
    font-size: 13px;
  }
}

/* =========================
   沪上月正文头像对白组件
   ========================= */

.ui-prose .hs-dialogue-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  margin: 22px 0 24px;
  padding: 2px 0;
  text-indent: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  animation: hsDialogueEnter 0.42s cubic-bezier(.22,.8,.32,1) forwards;
}

.ui-prose .hs-dialogue-row:nth-of-type(2n) {
  animation-delay: 0.05s;
}

.ui-prose .hs-dialogue-avatar {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 58px;
  height: 58px;
  overflow: hidden;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,47,167,.18));
  border: 2px solid rgba(255,47,167,.82);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.78),
    0 5px 16px rgba(122,63,94,.14),
    0 0 16px rgba(255,47,167,.20);
}

.ui-prose .hs-dialogue-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.ui-prose .hs-dialogue-avatar-fallback {
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.36), transparent 34%),
    linear-gradient(145deg, #ff65bd, #d71888);
}

.ui-prose .hs-dialogue-avatar-fallback span {
  display: block;
  color: #fff;
  text-indent: 0;
  text-shadow: 0 2px 7px rgba(94,22,64,.25);
}

.ui-prose .hs-dialogue-body {
  position: relative;
  display: flex;
  flex: 0 1 min(76%, 720px);
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-top: 22px;
  text-indent: 0;
}

.ui-prose .hs-dialogue-name {
  position: absolute;
  top: 0;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  box-sizing: border-box;
  padding: 3px 10px;
  color: #c21878;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .04em;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,47,167,.56);
  border-radius: 999px;
  box-shadow:
    0 3px 10px rgba(112,57,86,.10),
    inset 0 1px 0 rgba(255,255,255,.94);
  text-indent: 0;
}

.ui-prose .hs-dialogue-bubble {
  position: relative;
  box-sizing: border-box;
  min-width: 88px;
  max-width: 100%;
  padding: 13px 17px;
  color: #a60f63;
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.82;
  text-align: left;
  text-indent: 0;
  overflow-wrap: anywhere;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,239,248,.88));
  border: 1.5px solid rgba(255,47,167,.68);
  border-radius: 8px 18px 18px 18px;
  box-shadow:
    0 7px 20px rgba(100,48,78,.10),
    0 0 12px rgba(255,47,167,.09),
    inset 0 1px 0 rgba(255,255,255,.96);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.ui-prose .hs-dialogue-bubble::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -8px;
  width: 14px;
  height: 14px;
  background: rgba(255,250,253,.96);
  border-left: 1.5px solid rgba(255,47,167,.68);
  border-bottom: 1.5px solid rgba(255,47,167,.68);
  transform: rotate(45deg);
}

.ui-prose .hs-dialogue-row:hover .hs-dialogue-bubble {
  transform: translateY(-1px);
  border-color: rgba(255,47,167,.92);
  box-shadow:
    0 9px 24px rgba(100,48,78,.13),
    0 0 16px rgba(255,47,167,.15),
    inset 0 1px 0 rgba(255,255,255,.98);
}

/* 用户对白右侧排列 */

.ui-prose .hs-dialogue-user {
  flex-direction: row-reverse;
}

.ui-prose .hs-dialogue-user .hs-dialogue-body {
  align-items: flex-end;
}

.ui-prose .hs-dialogue-user .hs-dialogue-name {
  right: 12px;
  left: auto;
  color: #6c4bc7;
  border-color: rgba(112,78,211,.48);
}

.ui-prose .hs-dialogue-user .hs-dialogue-avatar {
  border-color: rgba(112,78,211,.72);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.78),
    0 5px 16px rgba(72,55,123,.14),
    0 0 16px rgba(112,78,211,.18);
}

.ui-prose .hs-dialogue-user .hs-dialogue-avatar-fallback {
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.35), transparent 34%),
    linear-gradient(145deg, #9b81ee, #6748c4);
}

.ui-prose .hs-dialogue-user .hs-dialogue-bubble {
  color: #5d43aa;
  background:
    linear-gradient(225deg, rgba(255,255,255,.95), rgba(245,241,255,.90));
  border-color: rgba(112,78,211,.58);
  border-radius: 18px 8px 18px 18px;
}

.ui-prose .hs-dialogue-user .hs-dialogue-bubble::before {
  right: -8px;
  left: auto;
  background: rgba(250,248,255,.97);
  border: 0;
  border-top: 1.5px solid rgba(112,78,211,.58);
  border-right: 1.5px solid rgba(112,78,211,.58);
}

@keyframes hsDialogueEnter {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(.98);
    filter: blur(2px);
  }
  68% {
    opacity: 1;
    transform: translateY(-1px) scale(1.003);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 680px) {
  .ui-prose .hs-dialogue-row {
    gap: 9px;
    margin: 18px 0 20px;
  }

  .ui-prose .hs-dialogue-avatar {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .ui-prose .hs-dialogue-body {
    flex-basis: calc(100% - 55px);
    max-width: calc(100% - 55px);
    padding-top: 20px;
  }

  .ui-prose .hs-dialogue-name {
    min-height: 22px;
    padding: 2px 8px;
    font-size: 11px;
  }

  .ui-prose .hs-dialogue-bubble {
    padding: 11px 13px;
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-prose .hs-dialogue-row {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .ui-prose .hs-dialogue-bubble {
    transition: none;
  }
}


/* =========================
   平台输入栏、工具按钮与模型选择器美化
   依据当前页面DOM编写
   ========================= */

:root {
  --hs-shell-bg: rgba(255, 255, 255, 0.82);
  --hs-shell-bg-strong: rgba(255, 255, 255, 0.94);
  --hs-shell-pink: #ff2fa7;
  --hs-shell-pink-deep: #c91d7f;
  --hs-shell-purple: #7658d7;
  --hs-shell-text: #493945;
  --hs-shell-soft: #8a7382;
  --hs-shell-border: rgba(255, 47, 167, 0.62);
  --hs-shell-glow: rgba(255, 47, 167, 0.20);
}

/* 输入框外层：使用 :has 精确锁定含 ai-chat-input 的父容器 */

div:has(> #ai-chat-input) {
  box-sizing: border-box !important;
  margin: 4px 0 !important;
  padding: 7px 9px !important;

  overflow-y: auto !important;

  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(255, 221, 242, 0.52),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.84) !important;

  border: 1.5px solid var(--hs-shell-border) !important;
  border-radius: 18px !important;

  box-shadow:
    0 8px 24px rgba(78, 52, 70, 0.10),
    0 0 15px var(--hs-shell-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;

  backdrop-filter: blur(14px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(112%) !important;

  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease !important;
}

div:has(> #ai-chat-input):focus-within {
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(255, 213, 239, 0.68),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.95) !important;

  border-color: var(--hs-shell-pink) !important;

  box-shadow:
    0 10px 28px rgba(78, 52, 70, 0.13),
    0 0 22px rgba(255, 47, 167, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;

  transform: translateY(-1px);
}

/* 输入框本体 */

#ai-chat-input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 104px 8px 11px !important;

  color: var(--hs-shell-text) !important;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
  caret-color: var(--hs-shell-pink) !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 13px !important;
  outline: none !important;

  resize: none !important;

  transition:
    color 0.2s ease,
    opacity 0.2s ease !important;
}

#ai-chat-input::placeholder {
  color: rgba(135, 99, 122, 0.72) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}

#ai-chat-input:focus::placeholder {
  color: rgba(178, 96, 145, 0.54) !important;
}

/* 输入框滚动条 */

div:has(> #ai-chat-input)::-webkit-scrollbar,
#ai-chat-input::-webkit-scrollbar {
  width: 8px;
}

div:has(> #ai-chat-input)::-webkit-scrollbar-track,
#ai-chat-input::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

div:has(> #ai-chat-input)::-webkit-scrollbar-thumb,
#ai-chat-input::-webkit-scrollbar-thumb {
  background: rgba(255, 47, 167, 0.32);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

/* 工具栏父容器：匹配直接包含 Mod 按钮的容器 */

div:has(> #ai-mod-button) {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;

  box-sizing: border-box !important;
  width: 100% !important;
  padding: 8px 10px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.90),
      rgba(255, 242, 250, 0.82)
    ) !important;

  border: 1px solid rgba(255, 47, 167, 0.30) !important;
  border-radius: 16px !important;

  box-shadow:
    0 6px 18px rgba(76, 51, 68, 0.08),
    0 0 13px rgba(255, 47, 167, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;

  backdrop-filter: blur(12px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(108%) !important;

  scrollbar-width: thin;
  scrollbar-color:
    rgba(255, 47, 167, 0.30)
    rgba(255, 255, 255, 0.45);
}

div:has(> #ai-mod-button)::-webkit-scrollbar {
  height: 6px;
}

div:has(> #ai-mod-button)::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.46);
  border-radius: 999px;
}

div:has(> #ai-mod-button)::-webkit-scrollbar-thumb {
  background: rgba(255, 47, 167, 0.30);
  border-radius: 999px;
}

/* 工具按钮统一风格 */

:is(
  #ai-mod-button,
  #customized-ai-summary-button,
  #customized-prompt-debug-button,
  #customized-flow-button,
  #customized-comment-button,
  #customized-scroll-to-bottom-button,
  #customized-more-button,
  #toggle-sub-buttons
) {
  flex: 0 0 auto !important;
  min-width: auto !important;
  min-height: 34px !important;
  box-sizing: border-box !important;
  padding: 6px 11px !important;

  color: var(--hs-shell-pink-deep) !important;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97),
      rgba(255, 240, 249, 0.90)
    ) !important;

  border: 1px solid rgba(255, 47, 167, 0.46) !important;
  border-radius: 999px !important;

  box-shadow:
    0 3px 10px rgba(112, 57, 86, 0.08),
    0 0 0 rgba(255, 47, 167, 0),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;

  text-transform: none !important;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

:is(
  #ai-mod-button,
  #customized-ai-summary-button,
  #customized-prompt-debug-button,
  #customized-flow-button,
  #customized-comment-button,
  #customized-scroll-to-bottom-button,
  #customized-more-button,
  #toggle-sub-buttons
):hover {
  color: #ad0d67 !important;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 1),
      rgba(255, 226, 244, 0.96)
    ) !important;

  border-color: rgba(255, 47, 167, 0.82) !important;

  box-shadow:
    0 5px 14px rgba(112, 57, 86, 0.13),
    0 0 13px rgba(255, 47, 167, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;

  transform: translateY(-1px);
}

:is(
  #ai-mod-button,
  #customized-ai-summary-button,
  #customized-prompt-debug-button,
  #customized-flow-button,
  #customized-comment-button,
  #customized-scroll-to-bottom-button,
  #customized-more-button,
  #toggle-sub-buttons
):active {
  transform: translateY(0) scale(0.98);
}

/* 各工具按钮图标 */

:is(
  #ai-mod-button,
  #customized-ai-summary-button,
  #customized-prompt-debug-button,
  #customized-flow-button,
  #customized-comment-button,
  #customized-scroll-to-bottom-button,
  #toggle-sub-buttons
) svg {
  color: var(--hs-shell-pink) !important;
  filter: drop-shadow(0 1px 3px rgba(255, 47, 167, 0.16));
  transition:
    color 0.2s ease,
    transform 0.2s ease !important;
}

:is(
  #ai-mod-button,
  #customized-ai-summary-button,
  #customized-prompt-debug-button,
  #customized-flow-button,
  #customized-comment-button,
  #customized-scroll-to-bottom-button,
  #toggle-sub-buttons
):hover svg {
  color: #d71687 !important;
  transform: scale(1.06);
}

/* 流式状态按钮使用紫色区分 */

#customized-flow-button {
  color: #6546b9 !important;
  border-color: rgba(112, 78, 211, 0.42) !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97),
      rgba(244, 240, 255, 0.92)
    ) !important;
}

#customized-flow-button svg {
  color: var(--hs-shell-purple) !important;
}

/* 评论数量 */

#customized-comment-button .text-xs {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  margin-left: 6px !important;
  padding: 0 6px !important;

  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;

  background: linear-gradient(145deg, #ff5bb8, #d51784) !important;
  border-radius: 999px !important;

  box-shadow: 0 2px 7px rgba(209, 23, 127, 0.22);
}

/* 模型选择框 */

div[class*="max-w-[50vw]"][class*="outline-grey-300"][class*="justify-between"] {
  box-sizing: border-box !important;
  min-height: 38px !important;
  padding: 7px 12px !important;

  color: var(--hs-shell-text) !important;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 239, 248, 0.88)
    ) !important;

  border: 1px solid rgba(255, 47, 167, 0.48) !important;
  border-radius: 999px !important;
  outline: none !important;

  box-shadow:
    0 4px 12px rgba(92, 56, 79, 0.09),
    0 0 10px rgba(255, 47, 167, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

div[class*="max-w-[50vw]"][class*="outline-grey-300"][class*="justify-between"]:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 1),
      rgba(255, 226, 244, 0.95)
    ) !important;

  border-color: rgba(255, 47, 167, 0.82) !important;

  box-shadow:
    0 6px 16px rgba(92, 56, 79, 0.12),
    0 0 15px rgba(255, 47, 167, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;

  transform: translateY(-1px);
}

div[class*="max-w-[50vw]"][class*="outline-grey-300"][class*="justify-between"]
  > div.truncate {
  color: var(--hs-shell-pink-deep) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: 0.01em !important;
}

div[class*="max-w-[50vw]"][class*="outline-grey-300"][class*="justify-between"]
  svg {
  color: var(--hs-shell-pink) !important;
  transition: transform 0.2s ease !important;
}

div[class*="max-w-[50vw]"][class*="outline-grey-300"][class*="justify-between"]:hover
  svg {
  transform: translateY(1px) scale(1.08);
}

/* 手机端 */

@media (max-width: 680px) {
  div:has(> #ai-chat-input) {
    padding: 6px 7px !important;
    border-radius: 15px !important;
  }

  #ai-chat-input {
    padding: 7px 86px 7px 9px !important;
    font-size: 13px !important;
  }

  div:has(> #ai-mod-button) {
    gap: 6px !important;
    padding: 7px 8px !important;
    border-radius: 14px !important;
  }

  :is(
    #ai-mod-button,
    #customized-ai-summary-button,
    #customized-prompt-debug-button,
    #customized-flow-button,
    #customized-comment-button,
    #customized-scroll-to-bottom-button,
    #customized-more-button,
    #toggle-sub-buttons
  ) {
    min-height: 32px !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
  }

  div[class*="max-w-[50vw]"][class*="outline-grey-300"][class*="justify-between"] {
    max-width: 72vw !important;
    min-height: 35px !important;
    padding: 6px 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  div:has(> #ai-chat-input),
  #ai-chat-input,
  div:has(> #ai-mod-button),
  :is(
    #ai-mod-button,
    #customized-ai-summary-button,
    #customized-prompt-debug-button,
    #customized-flow-button,
    #customized-comment-button,
    #customized-scroll-to-bottom-button,
    #customized-more-button,
    #toggle-sub-buttons
  ),
  div[class*="max-w-[50vw]"][class*="outline-grey-300"][class*="justify-between"] {
    transition: none !important;
  }
}


/* =========================
   用户消息与AI回复外层气泡
   只修改平台外层容器，不改内部正文、状态栏和记忆内容
   ========================= */

/* 用户发送消息气泡 */

#customized-question-content {
  position: relative !important;
  box-sizing: border-box !important;
  max-width: min(78%, 760px) !important;
  padding: 15px 17px 12px !important;

  color: var(--ui-text-main, #433740) !important;

  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(255, 220, 242, 0.60),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.93),
      rgba(255, 238, 248, 0.86)
    ) !important;

  border: 1.5px solid rgba(255, 47, 167, 0.72) !important;
  border-radius: 21px 21px 21px 7px !important;

  box-shadow:
    0 10px 26px rgba(82, 52, 72, 0.12),
    0 0 17px rgba(255, 47, 167, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;

  backdrop-filter: blur(14px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(110%) !important;

  overflow: visible !important;

  animation: hsOuterBubbleIn 0.38s cubic-bezier(.22,.8,.32,1) both;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

#customized-question-content:hover {
  border-color: rgba(255, 47, 167, 0.94) !important;

  box-shadow:
    0 12px 30px rgba(82, 52, 72, 0.15),
    0 0 22px rgba(255, 47, 167, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;

  transform: translateY(-1px);
}

/* 用户气泡顶部装饰线 */

#customized-question-content > div.absolute:first-child {
  top: 0 !important;
  width: 92% !important;
  height: 2px !important;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 47, 167, 0.32) 12%,
      rgba(255, 47, 167, 0.92) 50%,
      rgba(255, 47, 167, 0.32) 88%,
      transparent
    ) !important;

  border-radius: 999px !important;
  box-shadow: 0 0 10px rgba(255, 47, 167, 0.30);
}

/* 用户消息时间 */

#customized-question-content > .text-xs.text-text-secondary {
  margin-top: 7px !important;
  color: rgba(112, 82, 101, 0.68) !important;
  font-size: 11px !important;
  letter-spacing: 0.025em;
}

/* 用户气泡底部操作区 */

#customized-question-content > .MuiStack-root:last-child {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 8px !important;
  padding-top: 7px !important;

  border-top: 1px solid rgba(255, 47, 167, 0.14);
}

#customized-question-content > .MuiStack-root:last-child > button {
  min-width: auto !important;
  min-height: 28px !important;
  padding: 4px 8px !important;

  color: rgba(174, 24, 106, 0.82) !important;
  font-size: 11px !important;
  font-weight: 700 !important;

  background: rgba(255, 255, 255, 0.52) !important;
  border: 1px solid rgba(255, 47, 167, 0.16) !important;
  border-radius: 999px !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82);

  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease !important;
}

#customized-question-content > .MuiStack-root:last-child > button:hover {
  color: #a70e63 !important;
  background: rgba(255, 239, 248, 0.94) !important;
  border-color: rgba(255, 47, 167, 0.45) !important;
  transform: translateY(-1px);
}

#customized-question-content > .MuiStack-root:last-child > button svg {
  color: #e12191 !important;
}

/* AI回复外层气泡 */

#customized-answer-content {
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 14px 14px 12px !important;

  color: var(--ui-text-main, #433740) !important;

  background:
    radial-gradient(
      circle at 88% 0%,
      rgba(255, 222, 243, 0.45),
      transparent 36%
    ),
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.70),
      rgba(255, 246, 251, 0.56)
    ) !important;

  border: 1.5px solid rgba(255, 47, 167, 0.46) !important;
  border-radius: 24px !important;

  box-shadow:
    0 12px 34px rgba(74, 50, 66, 0.10),
    0 0 18px rgba(255, 47, 167, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;

  backdrop-filter: blur(16px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(108%) !important;

  overflow: visible !important;

  animation: hsOuterBubbleIn 0.42s cubic-bezier(.22,.8,.32,1) both;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

#customized-answer-content:hover {
  border-color: rgba(255, 47, 167, 0.68) !important;

  box-shadow:
    0 14px 38px rgba(74, 50, 66, 0.13),
    0 0 23px rgba(255, 47, 167, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;

  transform: translateY(-1px);
}

/* AI气泡顶部装饰线 */

#customized-answer-content > div.absolute:first-child {
  top: 0 !important;
  width: 94% !important;
  height: 2px !important;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 47, 167, 0.24) 12%,
      rgba(255, 47, 167, 0.72) 50%,
      rgba(255, 47, 167, 0.24) 88%,
      transparent
    ) !important;

  border-radius: 999px !important;
  box-shadow: 0 0 9px rgba(255, 47, 167, 0.22);
}

/*
  明确不覆盖AI内部正文：
  不修改 #customized-answer-content 内部的 markdown-body、
  details.ui-card、ui-content、ui-prose、memory-entry 等内容节点。
*/

/* AI回复时间 */

#customized-answer-content > .text-xs.text-text-secondary {
  margin: 9px 4px 0 !important;
  color: rgba(112, 82, 101, 0.62) !important;
  font-size: 11px !important;
  letter-spacing: 0.025em;
}

/* 模型与积分信息，仅作为外部元信息条 */

#customized-answer-content > .MuiStack-root.text-purple-500 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;

  margin: 7px 3px 0 !important;
  padding: 7px 9px !important;

  background: rgba(255, 255, 255, 0.48) !important;
  border: 1px solid rgba(255, 47, 167, 0.13) !important;
  border-radius: 12px !important;
}

#customized-answer-content > .MuiStack-root.text-purple-500 > p {
  margin: 0 !important;
  padding: 3px 8px !important;

  color: rgba(121, 68, 105, 0.78) !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;

  background: rgba(255, 255, 255, 0.60) !important;
  border: 1px solid rgba(255, 47, 167, 0.12) !important;
  border-radius: 999px !important;
}

/* AI回复底部操作区 */

#customized-answer-content > .MuiStack-root:last-child {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 5px !important;

  margin-top: 8px !important;
  padding-top: 8px !important;

  border-top: 1px solid rgba(255, 47, 167, 0.13);
}

#customized-answer-content > .MuiStack-root:last-child > button {
  min-width: auto !important;
  min-height: 29px !important;
  padding: 4px 8px !important;

  color: rgba(171, 28, 107, 0.80) !important;
  font-size: 11px !important;
  font-weight: 700 !important;

  background: rgba(255, 255, 255, 0.52) !important;
  border: 1px solid rgba(255, 47, 167, 0.14) !important;
  border-radius: 999px !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82);

  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease !important;
}

#customized-answer-content > .MuiStack-root:last-child > button:hover {
  color: #a20b60 !important;
  background: rgba(255, 239, 248, 0.92) !important;
  border-color: rgba(255, 47, 167, 0.42) !important;
  transform: translateY(-1px);
}

#customized-answer-content > .MuiStack-root:last-child > button svg {
  color: #dd218d !important;
}

/* 外层消息气泡进入动画 */

@keyframes hsOuterBubbleIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.988);
    filter: blur(1.5px);
  }

  68% {
    opacity: 1;
    transform: translateY(-1px) scale(1.002);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* 手机端 */

@media (max-width: 680px) {
  #customized-question-content {
    max-width: 90% !important;
    padding: 13px 14px 10px !important;
    border-radius: 18px 18px 18px 6px !important;
  }

  #customized-answer-content {
    padding: 10px 9px 10px !important;
    border-radius: 19px !important;
  }

  #customized-question-content > .MuiStack-root:last-child,
  #customized-answer-content > .MuiStack-root:last-child {
    gap: 4px !important;
  }

  #customized-question-content > .MuiStack-root:last-child > button,
  #customized-answer-content > .MuiStack-root:last-child > button {
    min-height: 27px !important;
    padding: 3px 7px !important;
    font-size: 10px !important;
  }

  #customized-answer-content > .MuiStack-root.text-purple-500 {
    padding: 6px 7px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #customized-question-content,
  #customized-answer-content {
    animation: none !important;
    transition: none !important;
  }
}


/* =========================
   顶部固定栏与底部操作栏完整美化
   依据当前页面DOM编写
   ========================= */

/* ---------- 顶部固定栏 ---------- */

div.sticky:has(#customized-model-selector) {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;

  box-sizing: border-box !important;
  min-height: 54px !important;
  padding: 7px 10px !important;

  color: var(--ui-text-main, #433740) !important;

  background:
    radial-gradient(
      circle at 50% -35%,
      rgba(255, 212, 238, 0.54),
      transparent 54%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.93),
      rgba(255, 246, 251, 0.82)
    ) !important;

  border-bottom: 1.5px solid rgba(255, 47, 167, 0.42) !important;

  box-shadow:
    0 8px 22px rgba(73, 48, 64, 0.09),
    0 0 16px rgba(255, 47, 167, 0.11),
    inset 0 -1px 0 rgba(255, 255, 255, 0.82) !important;

  backdrop-filter: blur(16px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(112%) !important;
}

/* 顶部栏内部宽度与间距 */

div.sticky:has(#customized-model-selector)
  > div.flex.items-center.justify-between {
  min-width: 0 !important;
  gap: 10px !important;
}

/* 顶部模型选择器位置 */

#customized-model-selector {
  max-width: min(58vw, 430px) !important;
}

#ai-model-selector {
  width: 100% !important;
}

/* 顶部模型选择按钮 */

#ai-model-selector
  > div
  > div
  > div.group {
  box-sizing: border-box !important;
  min-width: 180px !important;
  max-width: min(50vw, 420px) !important;
  height: 36px !important;
  padding: 0 13px !important;

  color: #b31370 !important;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 235, 247, 0.90)
    ) !important;

  border: 1px solid rgba(255, 47, 167, 0.54) !important;
  border-radius: 999px !important;
  outline: none !important;

  box-shadow:
    0 4px 13px rgba(98, 55, 81, 0.10),
    0 0 12px rgba(255, 47, 167, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

#ai-model-selector
  > div
  > div
  > div.group:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 1),
      rgba(255, 222, 242, 0.96)
    ) !important;

  border-color: rgba(255, 47, 167, 0.88) !important;

  box-shadow:
    0 6px 17px rgba(98, 55, 81, 0.13),
    0 0 17px rgba(255, 47, 167, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;

  transform: translateY(-1px);
}

#ai-model-selector
  > div
  > div
  > div.group
  > div.truncate {
  color: #b31370 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: 0.015em !important;
}

#ai-model-selector svg {
  color: #ef2b9f !important;
  filter: drop-shadow(0 1px 3px rgba(255, 47, 167, 0.18));
  transition: transform 0.2s ease !important;
}

#ai-model-selector:hover svg {
  transform: translateY(1px) rotate(180deg);
}

/* 顶部音乐与设置按钮 */

:is(#header-setting-music, #header-setting-button) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;

  color: #cf1d82 !important;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 238, 248, 0.88)
    ) !important;

  border: 1px solid rgba(255, 47, 167, 0.40) !important;
  border-radius: 50% !important;

  box-shadow:
    0 4px 11px rgba(93, 53, 78, 0.09),
    0 0 10px rgba(255, 47, 167, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

:is(#header-setting-music, #header-setting-button):hover {
  color: #a80c64 !important;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 1),
      rgba(255, 223, 243, 0.96)
    ) !important;

  border-color: rgba(255, 47, 167, 0.76) !important;

  box-shadow:
    0 6px 15px rgba(93, 53, 78, 0.13),
    0 0 15px rgba(255, 47, 167, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;

  transform: translateY(-1px) rotate(6deg);
}

:is(#header-setting-music, #header-setting-button) svg {
  color: currentColor !important;
}

/* 顶部手机端时钟图标 */

div.sticky:has(#customized-model-selector) .lucide-clock-8 {
  color: #d91c89 !important;
  filter: drop-shadow(0 1px 3px rgba(255, 47, 167, 0.18));
}

/* ---------- 底部整体栏 ---------- */

div.bg-gradient-to-t:has(#customized-pagination):has(#ai-chat-input) {
  box-sizing: border-box !important;
  padding-top: 24px !important;
  padding-bottom: 12px !important;

  background:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 247, 252, 0.95) 55%,
      rgba(255, 247, 252, 0.64) 78%,
      transparent 100%
    ) !important;

  filter: drop-shadow(0 -8px 18px rgba(87, 54, 75, 0.05));
}

/* 底部内容最大宽度 */

div.bg-gradient-to-t:has(#customized-pagination):has(#ai-chat-input)
  > div.mx-auto {
  box-sizing: border-box !important;
  width: min(720px, 100%) !important;
  max-width: 720px !important;
  padding-right: 14px !important;
  padding-left: 14px !important;
}

/* ---------- 分页栏 ---------- */

#customized-pagination {
  box-sizing: border-box !important;
  margin-bottom: 8px !important;
  padding: 7px 9px !important;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92),
      rgba(255, 239, 248, 0.82)
    ) !important;

  border: 1px solid rgba(255, 47, 167, 0.28) !important;
  border-radius: 14px !important;

  box-shadow:
    0 5px 15px rgba(78, 51, 69, 0.07),
    0 0 12px rgba(255, 47, 167, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;

  backdrop-filter: blur(12px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(108%) !important;
}

#customized-pagination nav {
  gap: 8px !important;
}

#customized-pagination
  [data-slot="pagination-content"] {
  gap: 5px !important;
}

#customized-pagination
  [data-slot="pagination-link"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;
  min-width: 27px !important;
  height: 27px !important;
  padding: 0 7px !important;

  color: #a5236d !important;
  font-size: 11px !important;
  font-weight: 700 !important;

  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(255, 47, 167, 0.22) !important;
  border-radius: 9px !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90);

  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease !important;
}

#customized-pagination
  [data-slot="pagination-link"]:hover {
  color: #9f0b5f !important;
  background: rgba(255, 230, 245, 0.94) !important;
  border-color: rgba(255, 47, 167, 0.60) !important;

  box-shadow:
    0 4px 10px rgba(121, 47, 92, 0.10),
    0 0 9px rgba(255, 47, 167, 0.12);

  transform: translateY(-1px);
}

#customized-pagination
  [data-slot="pagination-link"][data-active="true"] {
  color: #fff !important;

  background:
    linear-gradient(
      145deg,
      #ff59b5,
      #d41882
    ) !important;

  border-color: rgba(209, 20, 126, 0.86) !important;

  box-shadow:
    0 5px 12px rgba(207, 28, 129, 0.21),
    0 0 12px rgba(255, 47, 167, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

#customized-pagination
  .text-muted-foreground {
  color: rgba(116, 83, 104, 0.72) !important;
  font-size: 11px !important;
}

#customized-pagination input[aria-label="pagination"] {
  width: 42px !important;
  height: 28px !important;
  padding: 4px 7px !important;

  color: #a51366 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  text-align: center !important;
  caret-color: #ff2fa7 !important;

  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 47, 167, 0.34) !important;
  border-radius: 9px !important;
  outline: none !important;

  box-shadow:
    inset 0 1px 4px rgba(81, 48, 69, 0.04);

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

#customized-pagination input[aria-label="pagination"]:focus {
  border-color: rgba(255, 47, 167, 0.82) !important;
  box-shadow:
    0 0 0 3px rgba(255, 47, 167, 0.10),
    inset 0 1px 4px rgba(81, 48, 69, 0.04) !important;
}

/* ---------- 底部功能按钮栏 ---------- */

#ai-mod-button2 {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;

  box-sizing: border-box !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  padding: 8px 9px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.91),
      rgba(255, 239, 248, 0.84)
    ) !important;

  border: 1px solid rgba(255, 47, 167, 0.28) !important;
  border-radius: 15px !important;

  box-shadow:
    0 5px 16px rgba(75, 49, 65, 0.07),
    0 0 12px rgba(255, 47, 167, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;

  backdrop-filter: blur(12px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(108%) !important;
}

#ai-mod-button2::-webkit-scrollbar {
  height: 5px;
}

#ai-mod-button2::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.40);
  border-radius: 999px;
}

#ai-mod-button2::-webkit-scrollbar-thumb {
  background: rgba(255, 47, 167, 0.26);
  border-radius: 999px;
}

/* ---------- 输入框完整外壳 ---------- */

div.relative.rounded-xl.mb-2:has(#ai-chat-input) {
  position: relative !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
  padding: 3px !important;

  background:
    radial-gradient(
      circle at 10% -20%,
      rgba(255, 212, 238, 0.56),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 239, 248, 0.90)
    ) !important;

  border: 1.5px solid rgba(255, 47, 167, 0.52) !important;
  border-radius: 19px !important;

  box-shadow:
    0 10px 26px rgba(77, 51, 68, 0.11),
    0 0 17px rgba(255, 47, 167, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;

  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease !important;
}

div.relative.rounded-xl.mb-2:has(#ai-chat-input):focus-within {
  border-color: rgba(255, 47, 167, 0.90) !important;

  box-shadow:
    0 12px 30px rgba(77, 51, 68, 0.14),
    0 0 23px rgba(255, 47, 167, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;

  transform: translateY(-1px);
}

/* 覆盖输入框内层原灰色背景 */

div.relative.rounded-xl.mb-2:has(#ai-chat-input)
  > div:has(> #ai-chat-input) {
  margin: 0 !important;
  padding: 6px 9px !important;

  background: rgba(255, 255, 255, 0.56) !important;
  border: 0 !important;
  border-radius: 15px !important;

  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

/* 右侧字数与发送按钮控制组 */

div:has(> #ai-send-button) {
  right: 8px !important;
  bottom: 7px !important;
  gap: 5px !important;
  height: 34px !important;
  padding: 3px 4px 3px 7px !important;

  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 47, 167, 0.20) !important;
  border-radius: 12px !important;

  box-shadow:
    0 4px 12px rgba(91, 53, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;

  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* 字数显示 */

div:has(> #ai-send-button)
  > div:first-child {
  min-width: 24px !important;
  height: 22px !important;
  padding: 0 7px !important;

  color: rgba(133, 83, 114, 0.78) !important;
  font-size: 10px !important;
  font-weight: 750 !important;

  background: rgba(255, 239, 248, 0.84) !important;
  border: 1px solid rgba(255, 47, 167, 0.15) !important;
  border-radius: 999px !important;
}

/* 发送按钮 */

#ai-send-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;
  width: 30px !important;
  height: 30px !important;

  color: #fff !important;

  background:
    linear-gradient(
      145deg,
      #ff59b5,
      #d31680
    ) !important;

  border: 1px solid rgba(196, 20, 118, 0.82) !important;
  border-radius: 10px !important;

  box-shadow:
    0 5px 12px rgba(207, 24, 126, 0.22),
    0 0 12px rgba(255, 47, 167, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;

  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease !important;
}

#ai-send-button:hover {
  background:
    linear-gradient(
      145deg,
      #ff70c1,
      #bd0f70
    ) !important;

  box-shadow:
    0 7px 16px rgba(207, 24, 126, 0.27),
    0 0 16px rgba(255, 47, 167, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;

  transform: translateY(-1px) scale(1.03);
}

#ai-send-button:active {
  transform: translateY(0) scale(0.96);
}

#ai-send-button svg {
  color: #fff !important;
  font-size: 20px !important;
  filter: drop-shadow(0 1px 3px rgba(117, 12, 67, 0.18));
}

/* ---------- 手机端 ---------- */

@media (max-width: 680px) {
  div.sticky:has(#customized-model-selector) {
    min-height: 48px !important;
    padding: 6px 8px !important;
  }

  #customized-model-selector {
    max-width: 62vw !important;
  }

  #ai-model-selector
    > div
    > div
    > div.group {
    min-width: 0 !important;
    max-width: 62vw !important;
    height: 34px !important;
    padding: 0 10px !important;
  }

  :is(#header-setting-music, #header-setting-button) {
    width: 31px !important;
    height: 31px !important;
  }

  div.bg-gradient-to-t:has(#customized-pagination):has(#ai-chat-input) {
    padding-top: 18px !important;
    padding-bottom: 8px !important;
  }

  div.bg-gradient-to-t:has(#customized-pagination):has(#ai-chat-input)
    > div.mx-auto {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  #customized-pagination {
    padding: 6px 7px !important;
    border-radius: 12px !important;
  }

  #customized-pagination nav {
    overflow-x: auto !important;
    justify-content: flex-start !important;
  }

  #ai-mod-button2 {
    gap: 6px !important;
    padding: 7px 8px !important;
    border-radius: 13px !important;
  }

  div.relative.rounded-xl.mb-2:has(#ai-chat-input) {
    border-radius: 16px !important;
  }

  div:has(> #ai-send-button) {
    right: 6px !important;
    bottom: 6px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ai-model-selector
    > div
    > div
    > div.group,
  :is(#header-setting-music, #header-setting-button),
  #customized-pagination
    [data-slot="pagination-link"],
  div.relative.rounded-xl.mb-2:has(#ai-chat-input),
  #ai-send-button {
    transition: none !important;
  }
}


/* =========================================================
   全局字体与平台头像框
   ========================================================= */

/*
  浏览器会优先用 Times New Roman 显示英文、数字和标点；
  其不含中文字符时自动回退到仿宋。
*/

body:has(.chat-container),
body:has(.chat-container) *,
.chat-container,
.chat-container *,
div.sticky:has(#customized-model-selector),
div.sticky:has(#customized-model-selector) *,
div.bg-gradient-to-t:has(#customized-pagination):has(#ai-chat-input),
div.bg-gradient-to-t:has(#customized-pagination):has(#ai-chat-input) *,
#customized-question-content,
#customized-question-content *,
#customized-answer-content,
#customized-answer-content *,
#ai-chat-input,
#customized-pagination,
#customized-pagination *,
#ai-mod-button2,
#ai-mod-button2 * {
  font-family: "Times New Roman", "FangSong", "仿宋", "STFangsong", serif !important;
}

/* 用户头像框 */

#customized-question-avatar {
  position: relative !important;
  display: flex !important;
  flex: 0 0 48px !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;
  width: 48px !important;
  height: 48px !important;
  padding: 3px !important;

  overflow: visible !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.98),
      rgba(155,126,235,.96),
      rgba(255,75,176,.94)
    ) !important;

  border: 1px solid rgba(124,88,214,.72) !important;
  border-radius: 50% !important;

  box-shadow:
    0 0 0 2px rgba(255,255,255,.88),
    0 6px 17px rgba(74,54,120,.16),
    0 0 17px rgba(126,83,213,.24),
    inset 0 1px 0 rgba(255,255,255,.98) !important;

  transition:
    transform .22s ease,
    box-shadow .22s ease !important;
}

/* AI头像框 */

#customized-answer-avatar {
  position: relative !important;
  display: flex !important;
  flex: 0 0 48px !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;
  width: 48px !important;
  height: 48px !important;
  padding: 3px !important;

  overflow: visible !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.99),
      rgba(255,106,191,.96),
      rgba(211,23,132,.95)
    ) !important;

  border: 1px solid rgba(255,47,167,.76) !important;
  border-radius: 50% !important;

  box-shadow:
    0 0 0 2px rgba(255,255,255,.88),
    0 6px 17px rgba(98,47,79,.16),
    0 0 18px rgba(255,47,167,.27),
    inset 0 1px 0 rgba(255,255,255,.98) !important;

  transition:
    transform .22s ease,
    box-shadow .22s ease !important;
}

/* 头像图片本体 */

#customized-question-avatar > img,
#customized-answer-avatar > img {
  display: block !important;
  box-sizing: border-box !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center !important;

  background: rgba(255,255,255,.90) !important;
  border: 2px solid rgba(255,255,255,.98) !important;
  border-radius: 50% !important;

  box-shadow:
    inset 0 0 0 1px rgba(255,47,167,.07) !important;
}

#customized-question-avatar:hover,
#customized-answer-avatar:hover {
  transform: translateY(-2px) scale(1.04);
}

#customized-question-avatar:hover {
  box-shadow:
    0 0 0 2px rgba(255,255,255,.94),
    0 9px 22px rgba(74,54,120,.20),
    0 0 23px rgba(126,83,213,.34),
    inset 0 1px 0 rgba(255,255,255,1) !important;
}

#customized-answer-avatar:hover {
  box-shadow:
    0 0 0 2px rgba(255,255,255,.94),
    0 9px 22px rgba(98,47,79,.20),
    0 0 24px rgba(255,47,167,.36),
    inset 0 1px 0 rgba(255,255,255,1) !important;
}

@media (max-width: 680px) {
  #customized-question-avatar,
  #customized-answer-avatar {
    flex-basis: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #customized-question-avatar,
  #customized-answer-avatar {
    transition: none !important;
  }
}


/* =========================
   开始页底部固定栏遮挡修正
   ========================= */

/*
  开始页底部区域没有分页组件，旧选择器无法覆盖平台默认 pt-24 渐变层。
  改为直接根据 ai-chat-input 定位底部栏，压缩其高度并取消大面积白色遮罩。
*/

body:has(#hsOpeningCard)
  div.bg-gradient-to-t:has(#ai-chat-input) {
  box-sizing: border-box !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  padding-top: 10px !important;
  padding-bottom: 8px !important;

  background:
    linear-gradient(
      to top,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 247, 252, 0.90) 62%,
      rgba(255, 247, 252, 0.38) 82%,
      transparent 100%
    ) !important;

  filter:
    drop-shadow(0 -5px 14px rgba(87, 54, 75, 0.06)) !important;
}

/* 开始页工具栏和输入框保持紧凑，不再撑出大块空白 */

body:has(#hsOpeningCard) #ai-mod-button2,
body:has(#hsOpeningCard) div:has(> #ai-mod-button) {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

body:has(#hsOpeningCard)
  div.bg-gradient-to-t:has(#ai-chat-input)
  > div.mx-auto {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 若平台仍保留大尺寸伪背景，强制限制底部栏可见高度 */

body:has(#hsOpeningCard)
  div.bg-gradient-to-t:has(#ai-chat-input)::before,
body:has(#hsOpeningCard)
  div.bg-gradient-to-t:has(#ai-chat-input)::after {
  display: none !important;
}

@media (max-width: 720px) {
  body:has(#hsOpeningCard)
    div.bg-gradient-to-t:has(#ai-chat-input) {
    padding-top: 7px !important;
    padding-bottom: 6px !important;
  }
}


/* =========================
   评论区、弹窗与顶部栏层级修复
   ========================= */

/*
  顶部栏只需覆盖普通会话内容，不应覆盖评论区、弹窗、抽屉和关闭按钮。
  原顶栏层级已由60恢复为平台原始级别20。
*/

div.sticky:has(#customized-model-selector) {
  z-index: 20 !important;
}

/* MUI、Radix及常见门户弹层优先显示在顶部栏之上 */

.MuiModal-root,
.MuiDialog-root,
.MuiDrawer-root,
.MuiPopover-root,
.MuiMenu-root,
.MuiPopper-root,
[data-radix-portal],
body > [role="presentation"],
body > [role="dialog"],
body > div:has(> [role="dialog"]),
body > div:has(.MuiModal-root),
body > div:has(.MuiDialog-root),
body > div:has(.MuiDrawer-root) {
  z-index: 1300 !important;
}

/* 评论区全屏层、关闭按钮及其容器保持最高可点击层级 */

body > div.fixed.inset-0,
body > div[class*="fixed"][class*="inset-0"],
[role="dialog"] {
  z-index: 1300 !important;
}

[role="dialog"] button,
.MuiModal-root button,
.MuiDialog-root button,
.MuiDrawer-root button,
body > div.fixed.inset-0 button,
body > div[class*="fixed"][class*="inset-0"] button {
  position: relative;
  z-index: 1301 !important;
  pointer-events: auto !important;
}

/* 避免顶部栏毛玻璃层截获评论区右上角的点击 */

body:has([role="dialog"]) div.sticky:has(#customized-model-selector),
body:has(.MuiModal-root) div.sticky:has(#customized-model-selector),
body:has(.MuiDrawer-root) div.sticky:has(#customized-model-selector) {
  pointer-events: none !important;
}

body:has([role="dialog"]) div.sticky:has(#customized-model-selector) button,
body:has(.MuiModal-root) div.sticky:has(#customized-model-selector) button,
body:has(.MuiDrawer-root) div.sticky:has(#customized-model-selector) button {
  pointer-events: none !important;
}

/* =========================================================
   沪上月媒体动态｜微博信息流仿真界面
   追加到角色卡 builtInCss
   ========================================================= */

.ui-media > .ui-content.hs-media-wrap {
  padding: 0 !important;
  overflow: hidden;
  background: #f5f6f7 !important;
}

.hs-media-app {
  --media-orange: #ff8200;
  --media-text: #202124;
  --media-soft: #8d9299;
  --media-line: #eceff2;
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  color: var(--media-text);
  font-family: inherit;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,130,0,.06), transparent 24%),
    linear-gradient(180deg, #f7f8f9 0%, #f3f4f5 100%);
}

.hs-media-update-strip {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff8f1, #fff);
  border: 1px solid #ffd9b5;
  border-left: 4px solid var(--media-orange);
  border-radius: 10px;
}

.hs-media-update-title {
  margin-bottom: 5px;
  color: var(--media-orange);
  font-size: 13px;
  font-weight: 800;
}

.hs-media-update-text,
.hs-media-opportunity,
.hs-media-continuity-text {
  color: #5f6368;
  font-size: 13px;
  line-height: 1.75;
}

.hs-media-opportunity {
  margin-top: 4px;
  color: #8b8f95;
}

.hs-media-account-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.hs-media-account-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #eceff2;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.035);
  font-size: 12px;
  white-space: nowrap;
}

.hs-media-account-person {
  color: #333;
  font-weight: 700;
}

.hs-media-account-platform,
.hs-media-topic,
.hs-media-mention {
  color: var(--media-orange);
  font-weight: 700;
}

.hs-media-account-change {
  color: #8e9399;
}

.hs-media-post,
.hs-media-hot-section,
.hs-media-sentiment,
.hs-media-continuity {
  box-sizing: border-box;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(27,31,36,.055);
  overflow: hidden;
}

.hs-media-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 10px;
}

.hs-media-avatar,
.hs-media-comment-avatar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #ffb86c, #ff8200);
  border-radius: 50%;
}

.hs-media-avatar {
  width: 44px;
  height: 44px;
  box-shadow: 0 0 0 1px rgba(255,130,0,.16);
}

.hs-media-comment-avatar {
  width: 34px;
  height: 34px;
}

.hs-media-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-media-avatar-fallback {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.hs-media-author-block {
  min-width: 0;
  flex: 1;
}

.hs-media-author-line,
.hs-media-comment-user {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.hs-media-author-name,
.hs-media-comment-user strong {
  min-width: 0;
  overflow: hidden;
  color: #2b2f33;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-media-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  background: #3e8bf7;
  border-radius: 50%;
}

.hs-media-level,
.hs-media-user-tag,
.hs-media-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  color: #a56a23;
  font-size: 10px;
  background: #fff5e9;
  border: 1px solid #ffe2bd;
  border-radius: 999px;
}

.hs-media-meta {
  margin-top: 3px;
  color: #9a9ea3;
  font-size: 11px;
}

.hs-media-follow {
  flex: 0 0 auto;
  padding: 5px 12px;
  color: var(--media-orange);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--media-orange);
  border-radius: 999px;
}

.hs-media-post-body {
  padding: 0 16px 12px 70px;
}

.hs-media-post-text,
.hs-media-report-title,
.hs-media-visual-text {
  color: #30343a;
  font-size: 14px;
  line-height: 1.85;
  word-break: break-word;
}

.hs-media-report-title {
  margin-bottom: 5px;
  font-weight: 800;
}

.hs-media-preview {
  position: relative;
  margin-top: 10px;
  overflow: hidden;
  background: #111;
  border: 1px solid #e5e7ea;
  border-radius: 9px;
}

.hs-media-image-preview img,
.hs-media-video-preview img,
.hs-media-douyin-preview img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.hs-media-video-preview,
.hs-media-douyin-preview,
.hs-media-visual-placeholder {
  min-height: 220px;
}

.hs-media-visual-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,130,0,.22), transparent 25%),
    linear-gradient(145deg, #242424, #050505);
}

.hs-media-visual-label {
  margin-bottom: 8px;
  color: #ffb15e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hs-media-visual-text {
  color: #f4f4f4;
}

.hs-media-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: rgba(255,255,255,.27);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  transform: translate(-50%,-50%);
  backdrop-filter: blur(8px);
}

.hs-media-view-count,
.hs-media-duration {
  position: absolute;
  bottom: 10px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 5px rgba(0,0,0,.72);
}

.hs-media-view-count { left: 12px; }
.hs-media-duration { right: 12px; }

.hs-media-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border-top: 1px solid var(--media-line);
  border-bottom: 1px solid var(--media-line);
}

.hs-media-douyin-post .hs-media-actions {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.hs-media-actions > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  color: #7c8187;
  font-size: 12px;
}

.hs-media-actions > span + span {
  border-left: 1px solid var(--media-line);
}

.hs-media-actions b {
  font-weight: 500;
}

.hs-media-change-line {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 16px;
  color: #8c9197;
  font-size: 11px;
  background: #fafafa;
}

.hs-media-status {
  color: var(--media-orange);
  font-weight: 700;
}

.hs-media-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hs-media-evidence span {
  padding: 3px 7px;
  color: #777c82;
  font-size: 11px;
  background: #f6f7f8;
  border-radius: 5px;
}

.hs-media-comment-panel {
  padding: 13px 16px 15px;
  background: #fff;
}

.hs-media-comment-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 6px 0 13px;
  border: 1px solid #ffb566;
  border-radius: 8px;
}

.hs-media-comment-placeholder {
  flex: 1;
  color: #a3a6aa;
  font-size: 13px;
}

.hs-media-comment-submit {
  padding: 7px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: #ffc17b;
  border-radius: 999px;
}

.hs-media-comment-tabs {
  display: flex;
  gap: 22px;
  margin: 15px 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--media-line);
}

.hs-media-comment-tabs span {
  color: #63676c;
  font-size: 12px;
}

.hs-media-comment-tabs .active {
  color: var(--media-orange);
  font-weight: 800;
}

.hs-media-comment-item {
  display: flex;
  gap: 10px;
  padding: 13px 0;
}

.hs-media-comment-item + .hs-media-comment-item {
  border-top: 1px solid #f0f1f2;
}

.hs-media-comment-main {
  min-width: 0;
  flex: 1;
}

.hs-media-comment-text {
  margin-top: 5px;
  color: #35393e;
  font-size: 13px;
  line-height: 1.75;
}

.hs-media-comment-meta,
.hs-media-reply-meta {
  display: flex;
  gap: 14px;
  margin-top: 5px;
  color: #a1a5aa;
  font-size: 10px;
}

.hs-media-reply {
  margin-top: 9px;
  padding: 9px 11px;
  color: #4e5358;
  font-size: 12px;
  line-height: 1.65;
  background: #f7f8f9;
  border-radius: 7px;
}

.hs-media-reply strong {
  color: #5e88b8;
}

.hs-media-more-comments {
  margin-top: 8px;
  border-top: 1px solid #f0f1f2;
}

.hs-media-more-comments > summary {
  padding: 11px 0 2px;
  color: #6e7378;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}

.hs-media-more-comments > summary::-webkit-details-marker {
  display: none;
}

.hs-media-hot-section,
.hs-media-sentiment,
.hs-media-continuity {
  padding: 14px 16px;
}

.hs-media-section-title {
  margin-bottom: 10px;
  color: #25292d;
  font-size: 14px;
  font-weight: 800;
}

.hs-media-hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 0;
}

.hs-media-hot-item + .hs-media-hot-item {
  border-top: 1px solid #f0f1f2;
}

.hs-media-hot-rank {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  color: var(--media-orange);
  font-size: 13px;
  font-weight: 900;
}

.hs-media-hot-main {
  min-width: 0;
  flex: 1;
}

.hs-media-hot-topic {
  color: #30343a;
  font-size: 13px;
  font-weight: 700;
}

.hs-media-hot-desc {
  margin-top: 3px;
  overflow: hidden;
  color: #9a9ea3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-media-hot-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: #999da2;
  font-size: 10px;
}

.hs-media-hot-badge {
  min-width: 18px;
  padding: 2px 4px;
  color: #fff;
  text-align: center;
  background: var(--media-orange);
  border-radius: 4px;
}

.hs-media-sentiment-bar {
  display: flex;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
}

.hs-media-sentiment-bar span {
  display: flex;
  flex-basis: var(--value);
  align-items: center;
  justify-content: center;
  min-width: 68px;
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.hs-media-sentiment-bar .positive { background: #55b881; }
.hs-media-sentiment-bar .neutral { background: #8f99a6; }
.hs-media-sentiment-bar .negative { background: #e66767; }

.hs-media-sentiment-notes {
  margin-top: 10px;
  color: #656a70;
  font-size: 12px;
  line-height: 1.75;
}

@media (max-width: 720px) {
  .hs-media-app { padding: 9px; }
  .hs-media-post-header { padding: 12px 11px 8px; }
  .hs-media-post-body { padding: 0 11px 10px; }
  .hs-media-avatar { width: 40px; height: 40px; }
  .hs-media-follow { padding: 4px 9px; }
  .hs-media-comment-panel { padding: 11px; }

  .hs-media-video-preview,
  .hs-media-douyin-preview,
  .hs-media-visual-placeholder {
    min-height: 180px;
  }

  .hs-media-post-text,
  .hs-media-visual-text {
    font-size: 13px;
  }

  .hs-media-sentiment-bar {
    height: auto;
    flex-direction: column;
    border-radius: 8px;
  }

  .hs-media-sentiment-bar span {
    flex-basis: auto;
    min-height: 25px;
  }
}

/* =========================================================
   微博仿真媒体界面｜沪上月现有主题兼容覆盖
   ========================================================= */

/* 保留外层“媒体动态”折叠卡，内部切换为微博白底橙色信息流 */
details.ui-media > .ui-content.hs-media-wrap {
  color: #202124 !important;
  background: #f5f6f7 !important;
}

/* 防止角色卡全局字体颜色覆盖微博卡片内部文字 */
details.ui-media .hs-media-app,
details.ui-media .hs-media-app div,
details.ui-media .hs-media-app span,
details.ui-media .hs-media-app p,
details.ui-media .hs-media-app section,
details.ui-media .hs-media-app article {
  color: inherit;
}

details.ui-media .hs-media-author-name,
details.ui-media .hs-media-comment-user strong,
details.ui-media .hs-media-section-title,
details.ui-media .hs-media-hot-topic,
details.ui-media .hs-media-report-title {
  color: #2b2f33 !important;
}

details.ui-media .hs-media-post-text,
details.ui-media .hs-media-comment-text,
details.ui-media .hs-media-visual-text {
  color: #30343a !important;
}

details.ui-media .hs-media-topic,
details.ui-media .hs-media-mention,
details.ui-media .hs-media-follow,
details.ui-media .hs-media-status,
details.ui-media .hs-media-update-title,
details.ui-media .hs-media-comment-tabs .active,
details.ui-media .hs-media-hot-rank {
  color: #ff8200 !important;
}

details.ui-media .hs-media-meta,
details.ui-media .hs-media-comment-meta,
details.ui-media .hs-media-reply-meta,
details.ui-media .hs-media-account-change,
details.ui-media .hs-media-hot-desc,
details.ui-media .hs-media-hot-side,
details.ui-media .hs-media-change-line {
  color: #969ba1 !important;
}

/* 取消全局.ui-content强制背景对微博内部子区块的干扰 */
details.ui-media .hs-media-app .hs-media-post,
details.ui-media .hs-media-app .hs-media-comment-panel,
details.ui-media .hs-media-app .hs-media-hot-section,
details.ui-media .hs-media-app .hs-media-sentiment,
details.ui-media .hs-media-app .hs-media-continuity {
  background-color: #ffffff !important;
}

/* 模拟按钮仅作视觉展示，避免产生误导性的真实输入光标 */
details.ui-media .hs-media-comment-composer,
details.ui-media .hs-media-follow,
details.ui-media .hs-media-comment-submit,
details.ui-media .hs-media-actions > span {
  user-select: none;
}

/* =========================================================
   沪上月用户资产与资金流水
   ========================================================= */

details.ui-user .hs-finance-panel {
  box-sizing: border-box;
  margin-top: 14px;
  padding: 14px 16px;
  color: inherit;
  background: rgba(127, 127, 127, 0.08);
  border: 1px solid rgba(127, 127, 127, 0.22);
  border-radius: 10px;
}

details.ui-user .hs-finance-title {
  display: inline-block;
  margin-bottom: 6px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

details.ui-user .hs-finance-ledger {
  box-sizing: border-box;
  margin-top: 6px;
  padding: 9px 11px;
  color: inherit;
  background: rgba(127, 127, 127, 0.06);
  border-left: 3px solid rgba(180, 130, 70, 0.72);
  border-radius: 6px;
}

details.ui-user .hs-finance-entry {
  display: inline;
  color: inherit;
  font-size: 0.94em;
  line-height: 1.75;
}

@media (max-width: 720px) {
  details.ui-user .hs-finance-panel {
    padding: 12px 13px;
  }

  details.ui-user .hs-finance-ledger {
    padding: 8px 9px;
  }
}

/* =========================================================
   沪上月正文｜微信文字与语音仿真组件
   ========================================================= */

.ui-prose .hs-wechat-thread {
  box-sizing: border-box;
  width: min(760px, 100%);
  margin: 20px auto 24px;
  padding: 12px 14px 15px;
  overflow: hidden;
  color: #1f2329;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 36px),
    #ededed;
  border: 1px solid #d5d5d5;
  border-radius: 14px;
  box-shadow:
    0 8px 24px rgba(0,0,0,.07),
    inset 0 1px 0 rgba(255,255,255,.68);
}

.ui-prose .hs-wechat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 31px;
  margin: -12px -14px 12px;
  padding: 6px 42px;
  color: #1f2329;
  background: rgba(247,247,247,.94);
  border-bottom: 1px solid #d5d5d5;
}

.ui-prose .hs-wechat-app-name {
  color: #8b8b8b;
  font-size: 11px;
  font-weight: 500;
}

.ui-prose .hs-wechat-contact {
  overflow: hidden;
  color: #1f2329;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-prose .hs-wechat-time,
.ui-prose .hs-wechat-system {
  width: fit-content;
  max-width: 88%;
  margin: 9px auto 12px;
  padding: 3px 8px;
  color: #949494;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  background: rgba(255,255,255,.52);
  border-radius: 5px;
}

.ui-prose .hs-wechat-system {
  margin-top: 12px;
  color: #969696;
  background: transparent;
}

.ui-prose .hs-wechat-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  margin: 12px 0;
}

.ui-prose .hs-wechat-self {
  flex-direction: row-reverse;
}

.ui-prose .hs-wechat-avatar {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, #7d9f8c, #46695a);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.10);
}

.ui-prose .hs-wechat-self .hs-wechat-avatar {
  background:
    linear-gradient(145deg, #8bc77b, #4c8d46);
}

.ui-prose .hs-wechat-avatar img {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border: 0 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.ui-prose .hs-wechat-avatar-fallback span {
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,.16);
}

.ui-prose .hs-wechat-message-body {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: calc(76% - 49px);
}

.ui-prose .hs-wechat-self .hs-wechat-message-body {
  align-items: flex-end;
}

.ui-prose .hs-wechat-name {
  display: block;
  max-width: 100%;
  margin: 0 2px 4px;
  overflow: hidden;
  color: #8b8b8b !important;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-prose .hs-wechat-self .hs-wechat-name {
  text-align: right;
}

.ui-prose .hs-wechat-bubble {
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 11px;
  color: #1f2329 !important;
  font-size: 14px;
  font-style: normal !important;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.035);
}

.ui-prose .hs-wechat-other .hs-wechat-bubble {
  background: #fff !important;
  border: 1px solid #202020 !important;
}

.ui-prose .hs-wechat-self .hs-wechat-bubble {
  background: #95ec69 !important;
  border: 0 !important;
}

/* 微信气泡短尾，不改变8px圆角矩形主体 */
.ui-prose .hs-wechat-other .hs-wechat-bubble::before,
.ui-prose .hs-wechat-self .hs-wechat-bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.ui-prose .hs-wechat-other .hs-wechat-bubble::before {
  left: -5px;
  background: #fff;
  border-left: 1px solid #202020;
  border-bottom: 1px solid #202020;
}

.ui-prose .hs-wechat-self .hs-wechat-bubble::before {
  right: -4px;
  background: #95ec69;
}

.ui-prose .hs-wechat-voice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 112px;
  max-width: 230px;
}

.ui-prose .hs-wechat-self .hs-wechat-voice {
  flex-direction: row-reverse;
}

.ui-prose .hs-wechat-voice-waves {
  display: inline-block;
  color: #222 !important;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
}

.ui-prose .hs-wechat-other .hs-wechat-voice-waves {
  transform: rotate(180deg);
}

.ui-prose .hs-wechat-voice-duration {
  color: #333 !important;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ui-prose .hs-wechat-transcript {
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 5px;
  padding: 7px 9px;
  color: #4a4a4a !important;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  background: rgba(255,255,255,.72);
  border: 1px solid #d0d0d0;
  border-radius: 7px;
}

.ui-prose .hs-wechat-self .hs-wechat-transcript {
  background: rgba(255,255,255,.62);
}

.ui-prose .hs-wechat-transcript > span {
  display: inline-block;
  margin-right: 6px;
  color: #8a8a8a !important;
  font-size: 10px;
}

@media (max-width: 680px) {
  .ui-prose .hs-wechat-thread {
    width: 100%;
    margin: 16px auto 20px;
    padding: 10px 10px 13px;
    border-radius: 12px;
  }

  .ui-prose .hs-wechat-header {
    margin: -10px -10px 10px;
  }

  .ui-prose .hs-wechat-avatar {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px !important;
  }

  .ui-prose .hs-wechat-avatar img {
    border-radius: 7px !important;
  }

  .ui-prose .hs-wechat-message-body {
    max-width: calc(80% - 45px);
  }

  .ui-prose .hs-wechat-bubble {
    padding: 7px 10px;
    font-size: 13px;
  }

  .ui-prose .hs-wechat-voice {
    min-width: 102px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-prose .hs-wechat-thread *,
  .ui-prose .hs-wechat-thread *::before {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   沪上月｜长期人物档案工作台
   多开式档案开关，与单选标签页交互不同
   ========================================================= */

details.ui-profile-hub {
  color: #3d3038 !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(198, 86, 137, .10), transparent 28%),
    radial-gradient(circle at 95% 6%, rgba(83, 96, 180, .09), transparent 24%),
    rgba(255, 252, 254, .95) !important;
  border: 1px solid rgba(194, 102, 143, .42) !important;
  border-radius: 18px !important;
  box-shadow:
    0 16px 42px rgba(75, 44, 61, .12),
    0 0 22px rgba(204, 89, 145, .08),
    inset 0 1px 0 rgba(255, 255, 255, .94) !important;
  backdrop-filter: blur(18px) saturate(108%);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
}

details.ui-profile-hub > summary {
  min-height: 62px;
  color: #4b3340 !important;
  background:
    linear-gradient(90deg, rgba(198, 86, 137, .12), rgba(255,255,255,.24)) !important;
  border-bottom-color: rgba(194, 102, 143, .22) !important;
}

details.ui-profile-hub > summary::after {
  color: #b94f82 !important;
}

.hs-profile-hub-content {
  padding: 16px !important;
  color: #3d3038 !important;
  background:
    linear-gradient(rgba(112, 91, 104, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 91, 104, .055) 1px, transparent 1px),
    rgba(253, 251, 252, .86) !important;
  background-size: 30px 30px !important;
}

.hs-profile-switchboard {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 9px;
}

.hs-profile-entry {
  display: contents;
}

.hs-profile-entry > summary {
  order: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 7px 12px 7px 8px;
  color: #4e3a45 !important;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(151, 114, 132, .28);
  border-radius: 14px;
  box-shadow:
    0 5px 15px rgba(62, 43, 53, .06),
    inset 0 1px 0 rgba(255,255,255,.95);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.hs-profile-entry > summary::-webkit-details-marker {
  display: none;
}

.hs-profile-entry > summary::marker {
  content: "";
}

.hs-profile-entry > summary:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 79, 128, .50);
  box-shadow:
    0 8px 20px rgba(62, 43, 53, .10),
    0 0 14px rgba(185, 79, 128, .07);
}

.hs-profile-entry[open] > summary {
  color: #fff !important;
  background:
    linear-gradient(135deg, #7a4660, #b84f82) !important;
  border-color: transparent;
  box-shadow:
    0 8px 20px rgba(151, 58, 101, .22),
    inset 0 1px 0 rgba(255,255,255,.24);
}

.hs-profile-entry.hs-profile-person[open] > summary {
  background:
    linear-gradient(135deg, #ad713e, #d29155) !important;
  box-shadow:
    0 8px 20px rgba(156, 92, 40, .20),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.hs-profile-trigger-icon {
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(145deg, #8d5871, #c96091);
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 3px 8px rgba(91, 48, 69, .14);
}

.hs-profile-person .hs-profile-trigger-icon {
  background: linear-gradient(145deg, #b47039, #e3a15f);
}

.hs-profile-trigger-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.hs-profile-trigger-text strong {
  overflow: hidden;
  color: inherit !important;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-profile-trigger-text small {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(80, 59, 70, .62) !important;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-profile-entry[open] .hs-profile-trigger-text small {
  color: rgba(255,255,255,.76) !important;
}

.hs-profile-trigger-status {
  padding: 3px 7px;
  color: #95607a !important;
  font-size: 9px;
  font-weight: 700;
  background: rgba(181, 91, 132, .10);
  border-radius: 999px;
  white-space: nowrap;
}

.hs-profile-entry[open] .hs-profile-trigger-status {
  color: #fff !important;
  background: rgba(255,255,255,.17);
}

.hs-profile-panel {
  order: 1;
  display: none;
  flex: 0 0 100%;
  box-sizing: border-box;
  width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #343038 !important;
  background: rgba(255,255,255,.91);
  border: 1px solid rgba(151, 114, 132, .24);
  border-radius: 18px;
  box-shadow:
    0 14px 32px rgba(65, 48, 58, .09),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.hs-profile-entry[open] > .hs-profile-panel {
  display: block;
  animation: hsProfileReveal .22s ease both;
}

@keyframes hsProfileReveal {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.hs-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  min-height: 126px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 20%, rgba(255,255,255,.72), transparent 22%),
    linear-gradient(135deg, rgba(126, 70, 96, .16), rgba(188, 83, 132, .08));
  border-bottom: 1px solid rgba(151, 114, 132, .18);
}

.hs-profile-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -48px;
  width: 170px;
  height: 170px;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle, rgba(180, 88, 129, .11) 0 1px, transparent 1px 13px);
  opacity: .55;
}

.hs-profile-hero-person {
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.74), transparent 24%),
    linear-gradient(135deg, rgba(190, 126, 63, .18), rgba(217, 154, 91, .07));
}

.hs-profile-avatar,
.hs-profile-portrait {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(145deg, #75445d, #c35d8b);
  border: 3px solid rgba(255,255,255,.90);
  box-shadow:
    0 0 0 1px rgba(142, 74, 105, .28),
    0 8px 20px rgba(71, 42, 57, .16);
}

.hs-profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.hs-profile-portrait {
  width: 112px;
  height: 134px;
  background: linear-gradient(145deg, #b2763d, #dda064);
  border-radius: 18px;
}

.hs-profile-avatar span,
.hs-profile-portrait-fallback {
  color: #fff !important;
  font-size: 28px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.hs-profile-portrait-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hs-profile-portrait img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border: 0 !important;
  border-radius: 15px !important;
  box-shadow: none !important;
}

.hs-profile-identity {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hs-profile-kicker {
  display: block;
  margin-bottom: 5px;
  color: #a6587c !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hs-profile-panel-person .hs-profile-kicker {
  color: #b96b30 !important;
}

.hs-profile-identity h3 {
  margin: 0;
  color: #3f2f38 !important;
  font-size: 25px;
  line-height: 1.2;
}

.hs-profile-meta,
.hs-profile-subline {
  margin-top: 7px;
  color: #756670 !important;
  font-size: 12px;
  line-height: 1.55;
}

.hs-profile-role-badge {
  position: relative;
  z-index: 1;
  align-self: start;
  padding: 7px 11px;
  color: #fff !important;
  font-size: 11px;
  font-weight: 750;
  background: linear-gradient(135deg, #7b485f, #b95280);
  border-radius: 0 0 0 13px;
  box-shadow: 0 6px 14px rgba(109, 53, 80, .15);
}

.hs-profile-panel-person .hs-profile-role-badge {
  background: linear-gradient(135deg, #b46626, #d98b43);
}

.hs-profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 18px 4px;
}

.hs-profile-chip-row span {
  padding: 4px 9px;
  color: #765466 !important;
  font-size: 10px;
  font-weight: 650;
  background: rgba(185, 79, 128, .08);
  border: 1px solid rgba(185, 79, 128, .18);
  border-radius: 999px;
}

.hs-profile-panel-person .hs-profile-chip-row span {
  color: #9b5e2c !important;
  background: rgba(201, 119, 50, .08);
  border-color: rgba(201, 119, 50, .19);
}

.hs-profile-section {
  margin: 14px 18px 18px;
  padding: 15px;
  background: rgba(250,248,249,.84);
  border: 1px solid rgba(151, 114, 132, .18);
  border-radius: 14px;
}

.hs-profile-section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #5b3b4c !important;
  font-size: 14px;
}

.hs-profile-section h4::before {
  content: "";
  width: 4px;
  height: 17px;
  background: linear-gradient(180deg, #9d5375, #cf6c99);
  border-radius: 999px;
}

.hs-profile-panel-person .hs-profile-section h4 {
  color: #7c4c27 !important;
}

.hs-profile-panel-person .hs-profile-section h4::before {
  background: linear-gradient(180deg, #b96a2f, #e0a05e);
}

.hs-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.hs-profile-field {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0,1fr);
  align-items: start;
  gap: 10px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 11px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(151, 114, 132, .15);
  border-radius: 10px;
}

.hs-profile-field-wide {
  grid-column: 1 / -1;
}

.hs-profile-field > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 7px;
  color: #9c4f73 !important;
  font-size: 10px;
  font-weight: 750;
  background: rgba(185, 79, 128, .08);
  border: 1px solid rgba(185, 79, 128, .16);
  border-radius: 6px;
  white-space: nowrap;
}

.hs-profile-panel-person .hs-profile-field > span {
  color: #a45e25 !important;
  background: rgba(201, 119, 50, .08);
  border-color: rgba(201, 119, 50, .17);
}

.hs-profile-field p {
  margin: 0 !important;
  color: #4d454b !important;
  font-size: 12px;
  line-height: 1.72;
  text-indent: 0 !important;
  word-break: break-word;
}

.hs-relation-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.hs-relation-ribbon > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 48px;
  padding: 8px 10px;
  color: #75513a !important;
  font-size: 11px;
  background:
    linear-gradient(135deg, rgba(230, 170, 107, .14), rgba(255,255,255,.70));
  border: 1px solid rgba(198, 121, 53, .19);
  border-radius: 10px;
}

.hs-relation-ribbon b {
  color: #b56529 !important;
  font-size: 9px;
  letter-spacing: .06em;
}

.hs-profile-private-section {
  background:
    linear-gradient(135deg, rgba(250,246,248,.90), rgba(255,252,247,.90));
}

.hs-profile-finance-section .hs-finance-panel {
  margin: 12px 0 0;
  color: #4b4147 !important;
  background: rgba(255,255,255,.82);
  border-color: rgba(155, 112, 132, .20);
}

.hs-profile-finance-section .hs-finance-title,
.hs-profile-finance-section .hs-finance-panel strong {
  color: #8f4569 !important;
}

.hs-profile-finance-section .hs-finance-ledger {
  color: #554a50 !important;
  background: rgba(184, 79, 128, .055);
  border-left-color: #b95784;
}

@media (max-width: 760px) {
  .hs-profile-hub-content {
    padding: 10px !important;
  }

  .hs-profile-entry > summary {
    min-height: 41px;
    padding: 6px 10px 6px 7px;
  }

  .hs-profile-trigger-status {
    display: none;
  }

  .hs-profile-hero {
    grid-template-columns: auto minmax(0,1fr);
    gap: 12px;
    padding: 15px;
  }

  .hs-profile-role-badge {
    grid-column: 1 / -1;
    justify-self: start;
    border-radius: 999px;
  }

  .hs-profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .hs-profile-portrait {
    width: 82px;
    height: 102px;
    border-radius: 14px;
  }

  .hs-profile-portrait img {
    border-radius: 11px !important;
  }

  .hs-profile-identity h3 {
    font-size: 21px;
  }

  .hs-profile-section {
    margin: 11px 10px 13px;
    padding: 11px;
  }

  .hs-profile-grid,
  .hs-relation-ribbon {
    grid-template-columns: 1fr;
  }

  .hs-profile-field-wide {
    grid-column: auto;
  }

  .hs-profile-field {
    grid-template-columns: minmax(70px, auto) minmax(0,1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-profile-entry[open] > .hs-profile-panel {
    animation: none !important;
  }

  .hs-profile-entry > summary {
    transition: none !important;
  }
}

/* =========================================================
   沪上月｜天气时间卡与日程待办看板
   ========================================================= */

/* ---------- 时间地点与天气 ---------- */

details.ui-time.hs-time-weather-card {
  --weather-accent: #7d6bb7;
  --weather-accent-2: #d9d2ee;
  --weather-hero-bg:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.54), transparent 24%),
    linear-gradient(135deg, #eeeaf8, #faf8fc);
  --weather-hero-text: #40394e;
  --weather-soft: rgba(91, 76, 116, .10);

  overflow: hidden;
  color: #403a43 !important;
  background: rgba(255,255,255,.94) !important;
  border-color: color-mix(in srgb, var(--weather-accent) 38%, transparent) !important;
  border-radius: 18px !important;
  box-shadow:
    0 14px 36px rgba(52, 44, 61, .10),
    0 0 18px color-mix(in srgb, var(--weather-accent) 10%, transparent),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
}

details.ui-time.hs-weather-sunny {
  --weather-accent: #d39a37;
  --weather-accent-2: #ffe2a7;
  --weather-hero-bg:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.72), transparent 22%),
    linear-gradient(135deg, #fff2c8, #fffaf0);
  --weather-hero-text: #5c4526;
  --weather-soft: rgba(216, 157, 55, .10);
}

details.ui-time.hs-weather-clear-night {
  --weather-accent: #6266b4;
  --weather-accent-2: #a9aee6;
  --weather-hero-bg:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.16), transparent 20%),
    linear-gradient(135deg, #32365e, #171a34);
  --weather-hero-text: #f5f4ff;
  --weather-soft: rgba(89, 94, 168, .10);
}

details.ui-time.hs-weather-cloudy {
  --weather-accent: #7993a8;
  --weather-accent-2: #cfdae2;
  --weather-hero-bg:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.62), transparent 24%),
    linear-gradient(135deg, #dfe9ef, #f7fafb);
  --weather-hero-text: #3c4d59;
  --weather-soft: rgba(101, 131, 151, .10);
}

details.ui-time.hs-weather-overcast {
  --weather-accent: #747d89;
  --weather-accent-2: #d3d7dc;
  --weather-hero-bg:
    linear-gradient(135deg, #d8dde2, #f2f4f6);
  --weather-hero-text: #41484f;
  --weather-soft: rgba(96, 105, 116, .10);
}

details.ui-time.hs-weather-rain {
  --weather-accent: #477f9b;
  --weather-accent-2: #a8cedf;
  --weather-hero-bg:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.32), transparent 23%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.10) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #6f9eb4, #dbeaf0);
  --weather-hero-text: #173744;
  --weather-soft: rgba(49, 112, 143, .10);
}

details.ui-time.hs-weather-storm {
  --weather-accent: #4d507e;
  --weather-accent-2: #9a9dc3;
  --weather-hero-bg:
    radial-gradient(circle at 83% 18%, rgba(255,255,255,.13), transparent 20%),
    linear-gradient(135deg, #363959, #777aa0);
  --weather-hero-text: #f7f6ff;
  --weather-soft: rgba(68, 72, 118, .11);
}

details.ui-time.hs-weather-snow {
  --weather-accent: #77a2b8;
  --weather-accent-2: #d7eef5;
  --weather-hero-bg:
    radial-gradient(circle at 20% 22%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 32%, rgba(255,255,255,.72) 0 2px, transparent 3px),
    linear-gradient(135deg, #dcecf2, #fbfdfe);
  --weather-hero-text: #31505e;
  --weather-soft: rgba(93, 151, 178, .09);
}

details.ui-time.hs-weather-fog {
  --weather-accent: #8d8f93;
  --weather-accent-2: #dedfe1;
  --weather-hero-bg:
    repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 7px, transparent 7px 18px),
    linear-gradient(135deg, #d8d9db, #f4f4f4);
  --weather-hero-text: #4a4c4f;
  --weather-soft: rgba(107, 108, 112, .09);
}

details.ui-time.hs-time-weather-card > summary {
  color: var(--weather-hero-text) !important;
  background:
    linear-gradient(90deg, var(--weather-soft), rgba(255,255,255,.30)) !important;
  border-bottom-color: color-mix(in srgb, var(--weather-accent) 24%, transparent) !important;
}

details.ui-time.hs-time-weather-card > summary::after {
  color: var(--weather-accent) !important;
}

.hs-time-weather-content {
  padding: 0 !important;
  color: #403a43 !important;
  background: rgba(255,255,255,.88) !important;
}

.hs-time-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  min-height: 150px;
  padding: 23px 25px;
  overflow: hidden;
  color: var(--weather-hero-text) !important;
  background: var(--weather-hero-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--weather-accent) 18%, transparent);
}

.hs-time-hero::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle, color-mix(in srgb, var(--weather-accent) 17%, transparent) 0 1px, transparent 1px 15px);
  opacity: .54;
}

.hs-time-primary,
.hs-weather-primary {
  position: relative;
  z-index: 1;
}

.hs-time-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hs-time-date {
  color: inherit !important;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
  opacity: .78;
}

.hs-time-clock {
  margin-top: 4px;
  color: inherit !important;
  font-family: "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

.hs-time-period {
  margin-top: 7px;
  padding: 4px 9px;
  color: inherit !important;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hs-weather-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  padding: 13px 16px;
  background: rgba(255,255,255,.26);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(34, 30, 44, .08),
    inset 0 1px 0 rgba(255,255,255,.50);
  backdrop-filter: blur(10px);
}

.hs-weather-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  font-size: 35px;
  line-height: 1;
  background: rgba(255,255,255,.35);
  border-radius: 17px;
}

.hs-weather-reading {
  display: flex;
  flex-direction: column;
}

.hs-weather-reading strong {
  color: inherit !important;
  font-family: "Times New Roman", serif;
  font-size: 29px;
  line-height: 1.1;
}

.hs-weather-reading span {
  margin-top: 4px;
  color: inherit !important;
  font-size: 12px;
  font-weight: 650;
  opacity: .82;
}

.hs-weather-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 9px;
  padding: 14px 18px 5px;
}

.hs-weather-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  min-height: 66px;
  padding: 10px 12px;
  background:
    linear-gradient(145deg, var(--weather-soft), rgba(255,255,255,.82));
  border: 1px solid color-mix(in srgb, var(--weather-accent) 17%, transparent);
  border-radius: 11px;
}

.hs-weather-metrics span {
  color: #89818a !important;
  font-size: 10px;
}

.hs-weather-metrics strong {
  overflow: hidden;
  color: #474048 !important;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.hs-location-panel {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 11px 18px 18px;
  padding: 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid color-mix(in srgb, var(--weather-accent) 18%, transparent);
  border-radius: 13px;
}

.hs-location-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  color: #fff !important;
  font-size: 20px;
  background:
    linear-gradient(145deg, var(--weather-accent), color-mix(in srgb, var(--weather-accent) 70%, #263040));
  border-radius: 11px;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--weather-accent) 20%, transparent);
}

.hs-location-main {
  min-width: 0;
}

.hs-location-region {
  display: block;
  margin-bottom: 3px;
  color: var(--weather-accent) !important;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}

.hs-location-main strong {
  color: #3e3940 !important;
  font-size: 14px;
}

.hs-location-main p {
  margin: 5px 0 0 !important;
  color: #716a72 !important;
  font-size: 12px;
  line-height: 1.65;
  text-indent: 0 !important;
}

.hs-weather-source {
  padding: 4px 8px;
  color: var(--weather-accent) !important;
  font-size: 9px;
  font-weight: 700;
  background: var(--weather-soft);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 工作日程与待办 ---------- */

details.ui-schedule.hs-schedule-board {
  overflow: hidden;
  color: #38343a !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(176, 93, 131, .08), transparent 24%),
    rgba(255,253,254,.96) !important;
  border: 1px solid rgba(166, 105, 133, .36) !important;
  border-radius: 18px !important;
  box-shadow:
    0 14px 38px rgba(60, 43, 53, .10),
    inset 0 1px 0 rgba(255,255,255,.96) !important;
}

details.ui-schedule.hs-schedule-board > summary {
  color: #493842 !important;
  background:
    linear-gradient(90deg, rgba(181, 84, 128, .10), rgba(255,255,255,.32)) !important;
  border-bottom-color: rgba(171, 98, 131, .20) !important;
}

details.ui-schedule.hs-schedule-board > summary::after {
  color: #ad537d !important;
}

.hs-schedule-content {
  padding: 16px !important;
  color: #38343a !important;
  background:
    linear-gradient(rgba(112, 91, 104, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 91, 104, .045) 1px, transparent 1px),
    rgba(252,250,251,.83) !important;
  background-size: 31px 31px !important;
}

.hs-schedule-overview {
  display: grid;
  grid-template-columns: 1fr 1.35fr .8fr;
  gap: 10px;
  margin-bottom: 14px;
}

.hs-schedule-focus {
  position: relative;
  box-sizing: border-box;
  min-height: 104px;
  padding: 13px 14px;
  overflow: hidden;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(137, 113, 125, .17);
  border-radius: 13px;
  box-shadow:
    0 6px 18px rgba(59, 43, 51, .05),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.hs-schedule-focus::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -25px;
  width: 80px;
  height: 80px;
  background: currentColor;
  border-radius: 50%;
  opacity: .045;
}

.hs-focus-running {
  color: #287b72;
  border-top: 3px solid #4ba99e;
}

.hs-focus-next {
  color: #76518f;
  border-top: 3px solid #9b70b2;
}

.hs-focus-risk {
  color: #74808a;
  border-top: 3px solid #a2aab1;
}

.hs-focus-risk.hs-risk-low {
  color: #a37a2d;
  border-top-color: #d1a24c;
}

.hs-focus-risk.hs-risk-medium {
  color: #b0632e;
  border-top-color: #d88445;
}

.hs-focus-risk.hs-risk-high {
  color: #aa3f4b;
  border-top-color: #d95a66;
}

.hs-focus-label {
  display: block;
  margin-bottom: 7px;
  color: currentColor !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.hs-schedule-focus > strong {
  display: block;
  overflow: hidden;
  color: #3f3a40 !important;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-schedule-focus > p {
  margin: 8px 0 0 !important;
  color: #777178 !important;
  font-size: 11px;
  line-height: 1.55;
  text-indent: 0 !important;
}

.hs-schedule-section,
.hs-todo-column,
.hs-schedule-audit {
  margin-top: 12px;
  padding: 13px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(137, 113, 125, .16);
  border-radius: 13px;
}

.hs-schedule-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hs-schedule-section-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hs-schedule-section-head strong {
  color: #4b3d45 !important;
  font-size: 13px;
}

.hs-schedule-section-head small {
  padding: 3px 7px;
  color: #98607a !important;
  font-size: 9px;
  background: rgba(180, 83, 128, .08);
  border-radius: 999px;
}

.hs-schedule-list,
.hs-todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-schedule-item {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 72px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(137, 113, 125, .15);
  border-left: 4px solid #9ca2a8;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(57, 43, 50, .04);
}

.hs-schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-right: 10px;
  border-right: 1px solid rgba(137, 113, 125, .15);
}

.hs-schedule-date strong {
  color: #4c454a !important;
  font-size: 11px;
}

.hs-schedule-date span {
  margin-top: 4px;
  color: #8e878d !important;
  font-family: "Times New Roman", serif;
  font-size: 12px;
}

.hs-schedule-main {
  min-width: 0;
}

.hs-schedule-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hs-schedule-title > strong {
  overflow: hidden;
  color: #413b40 !important;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-schedule-id,
.hs-todo-id {
  flex: 0 0 auto;
  color: #a05a79 !important;
  font-family: "Times New Roman", serif;
  font-size: 9px;
  font-weight: 800;
}

.hs-schedule-main p,
.hs-todo-item p {
  margin: 5px 0 0 !important;
  color: #817a80 !important;
  font-size: 10px;
  line-height: 1.5;
  text-indent: 0 !important;
}

.hs-schedule-status,
.hs-todo-status {
  padding: 4px 7px;
  color: #70777c !important;
  font-size: 9px;
  font-weight: 750;
  background: #f0f2f3;
  border-radius: 999px;
  white-space: nowrap;
}

.hs-status-confirmed {
  border-left-color: #5c87b5;
}

.hs-status-confirmed .hs-schedule-status,
.hs-status-confirmed .hs-todo-status {
  color: #47739f !important;
  background: #eaf2fa;
}

.hs-status-running {
  border-left-color: #3f9b8e;
}

.hs-status-running .hs-schedule-status,
.hs-status-running .hs-todo-status {
  color: #247f73 !important;
  background: #e4f5f2;
}

.hs-status-pending {
  border-left-color: #d2a04d;
}

.hs-status-pending .hs-schedule-status,
.hs-status-pending .hs-todo-status {
  color: #9f7326 !important;
  background: #fff5dc;
}

.hs-status-done {
  border-left-color: #75a572;
  opacity: .82;
}

.hs-status-done .hs-schedule-status,
.hs-status-done .hs-todo-status {
  color: #5d8f59 !important;
  background: #edf6eb;
}

.hs-status-cancelled {
  border-left-color: #a1a1a1;
  opacity: .70;
}

.hs-status-cancelled .hs-schedule-title > strong,
.hs-status-cancelled .hs-todo-item strong {
  text-decoration: line-through;
}

.hs-status-rescheduled {
  border-left-color: #a078bd;
}

.hs-status-rescheduled .hs-schedule-status,
.hs-status-rescheduled .hs-todo-status {
  color: #805e9a !important;
  background: #f1eafa;
}

.hs-status-verify {
  border-left-color: #c87676;
}

.hs-status-verify .hs-schedule-status,
.hs-status-verify .hs-todo-status {
  color: #a74f4f !important;
  background: #faeaea;
}

.hs-schedule-empty {
  padding: 18px 12px;
  color: #999397 !important;
  font-size: 11px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(133, 111, 122, .035) 0 8px, transparent 8px 16px);
  border: 1px dashed rgba(137, 113, 125, .24);
  border-radius: 9px;
}

.hs-todo-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.hs-todo-column {
  margin-top: 12px;
}

.hs-todo-item {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  min-height: 58px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid rgba(137, 113, 125, .15);
  border-left: 4px solid #9ca2a8;
  border-radius: 10px;
}

.hs-todo-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  background: #aeb3b7;
  border-radius: 7px;
}

.hs-status-running .hs-todo-check {
  background: #40998d;
}

.hs-status-pending .hs-todo-check {
  background: #d0a04d;
}

.hs-status-done .hs-todo-check {
  background: #75a572;
}

.hs-status-cancelled .hs-todo-check {
  background: #a1a1a1;
}

.hs-status-verify .hs-todo-check {
  background: #c87676;
}

.hs-todo-item > div {
  min-width: 0;
}

.hs-todo-item > div > strong {
  display: block;
  overflow: hidden;
  color: #454045 !important;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-todo-id {
  margin-right: 6px;
}

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

.hs-schedule-audit > div {
  padding: 10px 11px;
  background: rgba(180, 83, 128, .045);
  border-radius: 9px;
}

.hs-schedule-audit span {
  display: block;
  margin-bottom: 4px;
  color: #9b5876 !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.hs-schedule-audit p {
  margin: 0 !important;
  color: #756e73 !important;
  font-size: 10px;
  line-height: 1.6;
  text-indent: 0 !important;
}

@media (max-width: 760px) {
  .hs-time-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
  }

  .hs-weather-primary {
    width: fit-content;
    min-width: 0;
  }

  .hs-weather-metrics {
    grid-template-columns: repeat(2, minmax(0,1fr));
    padding: 11px 11px 3px;
  }

  .hs-location-panel {
    grid-template-columns: auto minmax(0,1fr);
    margin: 9px 11px 13px;
  }

  .hs-weather-source {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hs-schedule-content {
    padding: 10px !important;
  }

  .hs-schedule-overview {
    grid-template-columns: 1fr;
  }

  .hs-schedule-item {
    grid-template-columns: 68px minmax(0,1fr);
  }

  .hs-schedule-status {
    grid-column: 2;
    justify-self: start;
  }

  .hs-todo-board,
  .hs-schedule-audit {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-time-weather-card *,
  .hs-schedule-board * {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   沪上月｜正文叙事画布与其他人物看板
   ========================================================= */

/* ---------- 正文叙事画布 ---------- */

details.ui-story.hs-story-enhanced {
  overflow: hidden;
  color: #433740 !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 94, 171, .09), transparent 26%),
    radial-gradient(circle at 94% 4%, rgba(117, 91, 215, .08), transparent 25%),
    rgba(255, 253, 254, .96) !important;
  border: 1px solid rgba(210, 99, 150, .42) !important;
  border-radius: 19px !important;
  box-shadow:
    0 17px 44px rgba(72, 47, 61, .12),
    0 0 21px rgba(221, 76, 145, .08),
    inset 0 1px 0 rgba(255,255,255,.97) !important;
}

details.ui-story.hs-story-enhanced > summary {
  color: #4b3541 !important;
  background:
    linear-gradient(90deg, rgba(219, 91, 150, .12), rgba(255,255,255,.34)) !important;
  border-bottom-color: rgba(201, 91, 142, .20) !important;
}

details.ui-story.hs-story-enhanced > summary::after {
  color: #c45187 !important;
}

.hs-story-canvas {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  color: #4a4147 !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(229, 91, 155, .055), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(105, 87, 194, .045), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.90), rgba(252,247,250,.82)) !important;
  background-size: auto !important;
}

.hs-story-canvas::before,
.hs-story-canvas::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(4px);
}

.hs-story-canvas::before {
  left: -90px;
  top: 110px;
  width: 210px;
  height: 210px;
  background: rgba(229, 91, 155, .055);
}

.hs-story-canvas::after {
  right: -95px;
  bottom: 70px;
  width: 230px;
  height: 230px;
  background: rgba(105, 87, 194, .045);
}

.hs-story-masthead {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  min-height: 58px;
  padding: 13px 20px;
  color: #4c3843 !important;
  background:
    linear-gradient(90deg, rgba(207, 80, 139, .11), rgba(255,255,255,.62) 48%, rgba(111, 90, 196, .07));
  border-bottom: 1px solid rgba(177, 102, 137, .17);
}

.hs-story-kicker {
  padding: 4px 8px;
  color: #fff !important;
  font-family: "Times New Roman", serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  background:
    linear-gradient(135deg, #934b6d, #cf6697);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(137, 64, 98, .16);
}

.hs-story-scene-title {
  overflow: hidden;
  color: #4b3741 !important;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-story-ambience {
  padding: 4px 8px;
  color: #826575 !important;
  font-size: 9px;
  font-weight: 650;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(157, 112, 134, .18);
  border-radius: 999px;
  white-space: nowrap;
}

.hs-story-text {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  padding: 20px 23px 24px;
}

.hs-story-text > p {
  position: relative;
  box-sizing: border-box;
  margin: 0 0 15px !important;
  padding: 12px 16px 12px 19px;
  color: #544a50 !important;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: .035em;
  text-indent: 2em !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.80), rgba(255,249,252,.54));
  border: 1px solid rgba(152, 113, 132, .11);
  border-left: 3px solid rgba(197, 85, 137, .35);
  border-radius: 2px 12px 12px 2px;
  box-shadow:
    0 5px 16px rgba(62, 45, 54, .045),
    inset 0 1px 0 rgba(255,255,255,.86);
}

.hs-story-text > p:nth-of-type(even) {
  border-left-color: rgba(106, 89, 190, .28);
  background:
    linear-gradient(90deg, rgba(255,255,255,.79), rgba(248,247,254,.55));
}

.hs-story-text > p::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 18px;
  width: 7px;
  height: 7px;
  background: #c55d8e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(197, 93, 142, .20);
}

.hs-story-text > p:nth-of-type(even)::before {
  background: #7667bd;
}

.hs-story-text > .hs-dialogue-row,
.hs-story-text > .hs-wechat-thread {
  margin-top: 18px;
  margin-bottom: 20px;
}

.hs-story-text > .hs-dialogue-row {
  filter: drop-shadow(0 8px 16px rgba(64, 43, 55, .045));
}

/* ---------- 其他人物看板 ---------- */

details.ui-others.hs-others-board {
  overflow: hidden;
  color: #403a42 !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(104, 90, 184, .08), transparent 24%),
    radial-gradient(circle at 4% 8%, rgba(207, 86, 145, .08), transparent 23%),
    rgba(255,253,254,.96) !important;
  border: 1px solid rgba(146, 111, 151, .36) !important;
  border-radius: 18px !important;
  box-shadow:
    0 14px 38px rgba(58, 45, 57, .10),
    inset 0 1px 0 rgba(255,255,255,.96) !important;
}

details.ui-others.hs-others-board > summary {
  color: #493b48 !important;
  background:
    linear-gradient(90deg, rgba(111, 92, 184, .10), rgba(255,255,255,.35), rgba(203, 82, 143, .08)) !important;
  border-bottom-color: rgba(143, 112, 151, .19) !important;
}

details.ui-others.hs-others-board > summary::after {
  color: #7865b3 !important;
}

.hs-others-content {
  padding: 15px !important;
  color: #403a42 !important;
  background:
    linear-gradient(rgba(116, 99, 109, .044) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 99, 109, .044) 1px, transparent 1px),
    rgba(252,250,251,.84) !important;
  background-size: 31px 31px !important;
}

.hs-others-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.hs-others-count {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 70px;
  padding: 11px 12px;
  overflow: hidden;
  background: rgba(255,255,255,.87);
  border: 1px solid rgba(132, 112, 124, .15);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(57, 44, 52, .045);
}

.hs-others-count::after {
  content: "";
  position: absolute;
  right: -17px;
  bottom: -24px;
  width: 62px;
  height: 62px;
  background: currentColor;
  border-radius: 50%;
  opacity: .055;
}

.hs-others-count strong {
  color: #453e44 !important;
  font-family: "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.hs-others-count span {
  margin-top: 8px;
  color: #827a80 !important;
  font-size: 10px;
}

.hs-count-core {
  color: #bc5786;
  border-top: 3px solid #cc6795;
}

.hs-count-present {
  color: #4f9388;
  border-top: 3px solid #62a69b;
}

.hs-count-remote {
  color: #7168ad;
  border-top: 3px solid #8278bd;
}

.hs-count-next {
  color: #b17b3f;
  border-top: 3px solid #cc9655;
}

.hs-others-section {
  margin-top: 12px;
  padding: 13px;
  background: rgba(255,255,255,.87);
  border: 1px solid rgba(132, 112, 124, .16);
  border-radius: 13px;
}

.hs-others-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hs-others-section-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hs-others-section-head > div > span {
  color: #b85684 !important;
  font-size: 12px;
}

.hs-others-section-head strong {
  color: #4b3e46 !important;
  font-size: 13px;
}

.hs-others-section-head small {
  color: #958d92 !important;
  font-size: 9px;
  text-align: right;
}

.hs-others-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.hs-others-grid-featured {
  grid-template-columns: 1fr;
}

.hs-other-person {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  box-sizing: border-box;
  min-height: 92px;
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.93), rgba(251,248,250,.77));
  border: 1px solid rgba(137, 113, 125, .14);
  border-left: 4px solid #8d82ba;
  border-radius: 11px;
  box-shadow: 0 5px 15px rgba(58, 43, 52, .04);
}

.hs-other-core-card {
  min-height: 112px;
  border-left-color: #c85f90;
}

.hs-other-present-card {
  border-left-color: #55a095;
}

.hs-other-avatar {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  color: #fff !important;
  font-size: 17px;
  font-weight: 800;
  background:
    linear-gradient(145deg, #7b6ead, #b65f8c);
  border: 2px solid rgba(255,255,255,.90);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(119, 91, 130, .18),
    0 5px 12px rgba(60, 43, 52, .12);
}

.hs-other-present-card .hs-other-avatar {
  background:
    linear-gradient(145deg, #4d8f85, #75b3a9);
}

.hs-other-avatar-compact {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.hs-other-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border: 0 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.hs-other-main {
  min-width: 0;
  flex: 1;
}

.hs-other-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hs-other-head strong {
  overflow: hidden;
  color: #423b40 !important;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-other-badge {
  padding: 3px 7px;
  color: #a54d77 !important;
  font-size: 9px;
  font-weight: 700;
  background: rgba(198, 84, 137, .08);
  border-radius: 999px;
  white-space: nowrap;
}

.hs-other-present-card .hs-other-badge {
  color: #3f857a !important;
  background: rgba(78, 151, 140, .09);
}

.hs-other-main > p {
  margin: 5px 0 0 !important;
  color: #81797e !important;
  font-size: 10px;
  line-height: 1.5;
  text-indent: 0 !important;
}

.hs-other-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 6px;
  margin-top: 9px;
}

.hs-other-facts span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 44px;
  padding: 6px 7px;
  color: #716a70 !important;
  font-size: 9px;
  line-height: 1.45;
  background: rgba(183, 88, 132, .045);
  border-radius: 7px;
}

.hs-other-facts b {
  color: #a34f76 !important;
  font-size: 8px;
  letter-spacing: .05em;
}

.hs-other-note {
  margin-top: 7px;
  color: #676166 !important;
  font-size: 10px;
  line-height: 1.55;
}

.hs-other-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 9px;
}

.hs-other-route {
  display: flex;
  gap: 9px;
  min-height: 88px;
  padding: 10px;
  background: rgba(255,255,255,.89);
  border: 1px solid rgba(137, 113, 125, .14);
  border-radius: 10px;
}

.hs-route-icon {
  display: flex;
  flex: 0 0 31px;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  background: #7c70b0;
  border-radius: 9px;
}

.hs-route-arrival .hs-route-icon {
  background: #c48648;
}

.hs-route-message .hs-route-icon {
  background: #4c968b;
}

.hs-other-route > div {
  min-width: 0;
}

.hs-other-route strong {
  color: #484147 !important;
  font-size: 11px;
}

.hs-other-route p {
  margin: 5px 0 0 !important;
  color: #797278 !important;
  font-size: 9px;
  line-height: 1.58;
  text-indent: 0 !important;
}

.hs-others-empty {
  grid-column: 1 / -1;
  padding: 18px 12px;
  color: #9b9498 !important;
  font-size: 10px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(132, 112, 123, .035) 0 8px, transparent 8px 16px);
  border: 1px dashed rgba(137, 113, 125, .22);
  border-radius: 9px;
}

@media (max-width: 760px) {
  .hs-story-masthead {
    grid-template-columns: auto minmax(0,1fr);
    padding: 11px 13px;
  }

  .hs-story-ambience {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hs-story-text {
    padding: 14px 11px 18px;
  }

  .hs-story-text > p {
    padding: 10px 12px 10px 15px;
    font-size: 14px;
    line-height: 1.95;
  }

  .hs-others-content {
    padding: 10px !important;
  }

  .hs-others-overview,
  .hs-others-grid,
  .hs-other-routes {
    grid-template-columns: 1fr;
  }

  .hs-other-facts {
    grid-template-columns: 1fr;
  }

  .hs-others-section-head {
    align-items: flex-start;
  }

  .hs-others-section-head small {
    max-width: 48%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-story-enhanced *,
  .hs-others-board * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   沪上月｜用户角色URL头像补丁
   ========================================================= */

.hs-profile-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border: 0 !important;
  border-radius: 17px !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .hs-profile-avatar img {
    border-radius: 13px !important;
  }
}

/* =========================================================
   沪上月｜现代生活项目通知订单与视觉增强
   ========================================================= */

/* 正文：保留呼吸感，取消逐段卡片化 */
.hs-story-text > p {
  margin: 0 4px 21px !important;
  padding: 0 3px !important;
  color: #52484e !important;
  font-size: 15px;
  line-height: 2.08;
  letter-spacing: .035em;
  text-indent: 2em !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.hs-story-text > p:nth-of-type(even) { background: transparent !important; border: 0 !important; }
.hs-story-text > p::before { display: none !important; }
.hs-story-masthead {
  grid-template-columns: auto minmax(0,1fr) auto;
  background:
    linear-gradient(105deg, #382e35 0 18%, #f8f2f5 18% 100%) !important;
  border-bottom: 1px solid rgba(119,86,102,.22);
}
.hs-story-kicker { background:#1f1b1e !important; border-radius:4px; letter-spacing:.16em; }
.hs-story-scene-title { color:#46343e !important; }
.hs-story-transition {
  display:flex; align-items:center; gap:10px; margin:27px 2px; color:#8d7884; font-size:10px;
}
.hs-story-transition span { padding:3px 8px; color:#fff; background:#8d5670; border-radius:999px; font-weight:700; }
.hs-story-transition i { flex:1; height:1px; background:linear-gradient(90deg,rgba(143,85,113,.65),transparent); }
.hs-story-transition strong { color:#76646d !important; font-size:10px; font-weight:650; }
.hs-call-card {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px;
  margin:18px auto; padding:13px 15px; max-width:720px; color:#f7f7f7 !important;
  background:linear-gradient(135deg,#26333b,#10161a); border:1px solid rgba(255,255,255,.12);
  border-radius:14px; box-shadow:0 10px 24px rgba(13,22,27,.18);
}
.hs-call-icon { display:flex; align-items:center; justify-content:center; width:42px; height:42px; background:#3cab72; border-radius:12px; font-size:20px; }
.hs-call-main span,.hs-call-meta { color:#aeb8be !important; font-size:10px; }
.hs-call-main strong { display:block; margin-top:2px; color:#fff !important; font-size:14px; }
.hs-call-main p { margin:4px 0 0 !important; padding:0 !important; color:#d7dde0 !important; font-size:11px; line-height:1.55; text-indent:0 !important; background:transparent !important; border:0 !important; }
.hs-call-outgoing .hs-call-icon { background:#4c83c3; }
.hs-call-ended { opacity:.82; }
.hs-story-insert { margin:20px 2px; overflow:hidden; background:#fff; border:1px solid rgba(133,108,121,.22); border-radius:12px; box-shadow:0 7px 20px rgba(54,41,48,.06); }
.hs-story-insert header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; padding:10px 12px; background:#f7f3f5; border-bottom:1px solid rgba(133,108,121,.16); }
.hs-story-insert header>span { display:flex; align-items:center; justify-content:center; width:28px; height:28px; color:#fff !important; background:#9b5877; border-radius:8px; font-size:11px; font-weight:800; }
.hs-story-insert header strong { color:#44383e !important; font-size:12px; }
.hs-story-insert header small { color:#978b91 !important; font-size:9px; }
.hs-story-insert-body { padding:12px 14px; color:#5b5257 !important; font-size:12px; line-height:1.75; }
.hs-insert-contract header>span { background:#b9853f; } .hs-insert-news header>span { background:#485d72; } .hs-insert-photo header>span { background:#6d72ac; }

/* 资产仪表盘 */
.hs-asset-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:10px; }
.hs-asset-kpi { min-height:76px; padding:10px 11px; background:#fff; border:1px solid rgba(137,113,125,.16); border-top:3px solid #8c8090; border-radius:11px; box-sizing:border-box; }
.hs-asset-kpi span { color:#90858b !important; font-size:9px; }
.hs-asset-kpi strong { display:block; margin-top:6px; color:#453d42 !important; font-family:"Times New Roman",serif; font-size:16px; }
.hs-asset-kpi small { display:block; margin-top:4px; color:#9b9297 !important; font-size:8px; line-height:1.4; }
.hs-kpi-liquid { border-top-color:#4f9f89; } .hs-kpi-net { border-top-color:#9b6ab2; } .hs-kpi-receivable { border-top-color:#4b83b6; } .hs-kpi-debt { border-top-color:#c46b6b; }
.hs-asset-composition { margin:10px 0; padding:11px 12px; background:rgba(255,255,255,.82); border:1px solid rgba(137,113,125,.16); border-radius:11px; }
.hs-asset-composition header { display:flex; justify-content:space-between; margin-bottom:9px; }
.hs-asset-composition header strong { color:#51454b !important; font-size:11px; } .hs-asset-composition header small{color:#9a9096 !important;font-size:8px;}
.hs-asset-bar { display:flex; height:12px; overflow:hidden; background:#eee9ec; border-radius:999px; }
.hs-asset-segment { width:var(--asset-share); min-width:0; }
.hs-segment-liquid{background:#51a18b}.hs-segment-fixed{background:#c09a54}.hs-segment-invest{background:#7a6bb2}.hs-segment-receivable{background:#4c84b7}.hs-segment-debt{background:#c76868}
.hs-asset-legend { display:flex; flex-wrap:wrap; gap:7px 12px; margin-top:8px; color:#786f74; font-size:8px; }
.hs-asset-legend span::before{content:"";display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:2px}.hs-legend-liquid::before{background:#51a18b}.hs-legend-fixed::before{background:#c09a54}.hs-legend-invest::before{background:#7a6bb2}.hs-legend-receivable::before{background:#4c84b7}.hs-legend-debt::before{background:#c76868}
.hs-major-assets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0; }
.hs-major-asset-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; padding:10px; background:#fff; border:1px solid rgba(137,113,125,.16); border-radius:10px; }
.hs-major-asset-icon { display:flex; align-items:center; justify-content:center; width:34px; height:34px; color:#fff !important; background:#9c6d82; border-radius:9px; font-size:11px; font-weight:800; }
.hs-major-asset-card strong{color:#474047 !important;font-size:10px}.hs-major-asset-card p{margin:4px 0 0!important;color:#8a8186!important;font-size:8px;line-height:1.4;text-indent:0!important}.hs-major-asset-card em{color:#805a6c!important;font-family:"Times New Roman",serif;font-size:10px;font-style:normal}
.hs-asset-property .hs-major-asset-icon{background:#b88742}.hs-asset-vehicle .hs-major-asset-icon{background:#4e778e}.hs-asset-equity .hs-major-asset-icon{background:#6c62a7}
.hs-asset-empty,.hs-finance-empty{grid-column:1/-1;padding:15px;color:#999!important;text-align:center;border:1px dashed rgba(137,113,125,.22);border-radius:9px;font-size:9px}
.hs-settlement-split,.hs-cashflow-receipts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0; }
.hs-settlement-card,.hs-cashflow-ticket { padding:11px 12px; border-radius:10px; box-sizing:border-box; }
.hs-settlement-card { background:#f7f8fa; border:1px solid rgba(113,130,150,.16); }
.hs-settlement-card span,.hs-cashflow-ticket span{font-size:8px;font-weight:750}.hs-settlement-card strong,.hs-cashflow-ticket strong{display:block;margin-top:5px;font-family:"Times New Roman",serif;font-size:15px}.hs-settlement-card p,.hs-cashflow-ticket p{margin:4px 0 0!important;font-size:8px;line-height:1.45;text-indent:0!important}
.hs-settlement-receivable span,.hs-settlement-receivable strong{color:#4a78a2!important}.hs-settlement-arrived span,.hs-settlement-arrived strong{color:#3f8c72!important}
.hs-cashflow-ticket{position:relative;overflow:hidden;background:#fff;border:1px solid rgba(137,113,125,.15)}.hs-ticket-income{border-left:4px solid #4ba77d}.hs-ticket-expense{border-left:4px solid #d57459}.hs-ticket-income span,.hs-ticket-income strong{color:#318561!important}.hs-ticket-expense span,.hs-ticket-expense strong{color:#b95843!important}
.hs-balance-check { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:10px 0; padding:8px 10px; background:#f3eff2; border-radius:9px; color:#756a70; font-size:9px; }.hs-balance-check b{color:#914f70!important;font-family:"Times New Roman",serif}
.hs-finance-ledger-modern{margin-top:10px!important;border-left:0!important;background:#fff!important;border:1px solid rgba(137,113,125,.16)!important}.hs-finance-ledger-modern>header{display:flex;justify-content:space-between;margin-bottom:7px}.hs-finance-ledger-modern header strong{color:#54474e!important;font-size:10px}.hs-finance-ledger-modern header small{color:#9b9297!important;font-size:8px}
.hs-finance-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;border-top:1px solid rgba(137,113,125,.12)}.hs-finance-code{color:#9e7186!important;font-family:"Times New Roman",serif;font-size:8px}.hs-finance-row strong{color:#4f474c!important;font-size:9px}.hs-finance-row p{margin:3px 0 0!important;color:#92888e!important;font-size:7px;line-height:1.4;text-indent:0!important}.hs-finance-row em{font-family:"Times New Roman",serif;font-size:10px;font-style:normal}.hs-flow-income em{color:#318561!important}.hs-flow-expense em{color:#b95843!important}.hs-flow-neutral em{color:#6d6d8d!important}
.hs-finance-more{margin-top:6px}.hs-finance-more>summary{padding:7px;color:#8b6879!important;font-size:8px;cursor:pointer;list-style:none;background:#f8f4f6;border-radius:7px}.hs-finance-more>summary::-webkit-details-marker{display:none}

/* 通用现代生活卡片 */
details.ui-project-center,details.ui-notification-center,details.ui-order-center{overflow:hidden;border-radius:18px!important;background:rgba(255,253,254,.96)!important;border:1px solid rgba(145,105,130,.34)!important;box-shadow:0 14px 38px rgba(60,43,53,.09),inset 0 1px 0 rgba(255,255,255,.96)!important}
details.ui-project-center>summary,details.ui-notification-center>summary,details.ui-order-center>summary{color:#473940!important;background:linear-gradient(90deg,rgba(182,84,129,.10),rgba(255,255,255,.34))!important;border-bottom-color:rgba(171,98,131,.19)!important}
.hs-project-content,.hs-notification-content,.hs-order-content{padding:15px!important;color:#413b40!important;background:linear-gradient(145deg,rgba(252,250,251,.88),rgba(247,246,249,.82))!important}
.hs-project-overview,.hs-notification-summary,.hs-order-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.hs-project-overview>div,.hs-notification-summary>div,.hs-order-overview>div{min-height:62px;padding:10px;background:#fff;border:1px solid rgba(137,113,125,.15);border-top:3px solid #9f6781;border-radius:10px;box-sizing:border-box}.hs-project-overview strong,.hs-notification-summary strong,.hs-order-overview strong{display:block;color:#473e43!important;font-family:"Times New Roman",serif;font-size:20px}.hs-project-overview span,.hs-notification-summary span,.hs-order-overview span{color:#8c8388!important;font-size:8px}

/* 项目驾驶舱 */
.hs-project-list,.hs-notification-list,.hs-order-list{display:flex;flex-direction:column;gap:9px}.hs-project-card,.hs-contract-card,.hs-notice-item,.hs-order-card{background:#fff;border:1px solid rgba(137,113,125,.16);border-radius:12px;overflow:hidden;box-shadow:0 5px 14px rgba(58,43,52,.04)}
.hs-project-card>summary,.hs-contract-card>summary,.hs-notice-item>summary,.hs-order-card>summary{display:grid;align-items:center;gap:10px;padding:11px 12px;cursor:pointer;list-style:none}.hs-project-card>summary::-webkit-details-marker,.hs-contract-card>summary::-webkit-details-marker,.hs-notice-item>summary::-webkit-details-marker,.hs-order-card>summary::-webkit-details-marker{display:none}
.hs-project-card>summary{grid-template-columns:auto minmax(0,1fr) auto;border-left:4px solid #9b6380}.hs-project-id{padding:4px 7px;color:#fff!important;background:#9b6380;border-radius:6px;font-family:"Times New Roman",serif;font-size:8px}.hs-project-card>summary strong,.hs-order-card>summary strong{color:#433b40!important;font-size:11px}.hs-project-card>summary small,.hs-order-card>summary small{display:block;margin-top:3px;color:#91888d!important;font-size:8px}.hs-project-card>summary em,.hs-order-card>summary em{padding:4px 7px;color:#8a4f6b!important;background:#f8edf2;border-radius:999px;font-size:8px;font-style:normal}
.hs-project-film>summary{border-left-color:#7d6bb2}.hs-project-variety>summary{border-left-color:#d0834c}.hs-project-business>summary{border-left-color:#b95a83}.hs-project-invest>summary{border-left-color:#4e8a79}.hs-project-company>summary{border-left-color:#5a789c}
.hs-project-card-body,.hs-order-body{padding:0 12px 12px}.hs-project-stage-rail,.hs-order-track{display:flex;align-items:center;gap:4px;overflow-x:auto;padding:10px 0}.hs-project-stage-rail span,.hs-order-track span{flex:0 0 auto;padding:4px 7px;color:#999!important;background:#f1eef0;border-radius:999px;font-size:7px}.hs-project-stage-rail .is-done,.hs-order-track .is-done{color:#4f8b76!important;background:#e5f3ed}.hs-project-stage-rail .is-current,.hs-order-track .is-current{color:#fff!important;background:#a45178;box-shadow:0 3px 9px rgba(164,81,120,.20)}.hs-project-stage-rail .is-next,.hs-order-track .is-next{color:#8a6678!important;background:#f5eaf0}.hs-order-track i{flex:1;min-width:10px;height:1px;background:#ddd3d8}
.hs-project-grid,.hs-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hs-project-grid>div,.hs-order-grid>div{padding:8px 9px;background:#faf8f9;border:1px solid rgba(137,113,125,.12);border-radius:8px}.hs-project-grid span,.hs-order-grid span{color:#9a7184!important;font-size:7px;font-weight:750}.hs-project-grid p,.hs-order-grid p{margin:4px 0 0!important;color:#5d555a!important;font-size:9px;line-height:1.5;text-indent:0!important}
.hs-contract-list{margin-top:9px}.hs-contract-card>summary{grid-template-columns:auto minmax(0,1fr) auto;background:#f8f5f7}.hs-contract-card>summary span{color:#9b6680!important;font-family:"Times New Roman",serif;font-size:8px}.hs-contract-card>summary strong{color:#4c4449!important;font-size:9px}.hs-contract-card>summary em{color:#80576b!important;font-size:8px;font-style:normal}.hs-contract-body{padding:9px 11px}.hs-contract-body p{margin:5px 0!important;color:#665e63!important;font-size:8px;line-height:1.5;text-indent:0!important}.hs-contract-empty{padding:12px;color:#999!important;text-align:center;font-size:8px}

/* 数字通知中心 */
.hs-notification-summary>div:nth-child(1){border-top-color:#c45f75}.hs-notification-summary>div:nth-child(2){border-top-color:#b18a4b}.hs-notification-summary>div:nth-child(3){border-top-color:#d44848}
.hs-notice-item>summary{grid-template-columns:auto minmax(0,1fr) auto auto;position:relative}.hs-notice-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;color:#fff!important;background:#8a7892;border-radius:10px;font-size:11px;font-weight:800}.hs-notice-title strong{display:block;color:#413a3f!important;font-size:10px}.hs-notice-title small{display:block;margin-top:3px;overflow:hidden;color:#8e858a!important;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.hs-notice-item time{color:#9c9498!important;font-family:"Times New Roman",serif;font-size:8px}.hs-notice-dot{width:7px;height:7px;background:#d95464;border-radius:50%}.hs-notice-action .hs-notice-dot{background:#d59b3d}.hs-notice-body{padding:10px 13px;border-top:1px solid rgba(137,113,125,.12);background:#fcfbfc}.hs-notice-body p{margin:0 0 7px!important;color:#5d555a!important;font-size:9px;line-height:1.6;text-indent:0!important}.hs-notice-body>div{display:flex;flex-wrap:wrap;gap:5px}.hs-notice-body>div span{padding:3px 6px;color:#7e7178!important;background:#f1edef;border-radius:999px;font-size:7px}.hs-notice-body>strong{display:block;margin-top:8px;color:#8c526f!important;font-size:8px}
.hs-app-wechat .hs-notice-icon{background:#39a65b}.hs-app-phone .hs-notice-icon{background:#4e8fc5}.hs-app-mail .hs-notice-icon{background:#6b76b2}.hs-app-calendar .hs-notice-icon{background:#c75c68}.hs-app-bank .hs-notice-icon{background:#b58a36}.hs-app-delivery .hs-notice-icon{background:#e07c3d}.hs-app-travel .hs-notice-icon{background:#3f8fa3}.hs-app-work .hs-notice-icon{background:#805f9a}.hs-app-alert .hs-notice-icon{background:#c74242}.hs-priority-urgent{border-color:rgba(200,60,60,.35);box-shadow:0 0 0 1px rgba(200,60,60,.08),0 5px 14px rgba(150,45,45,.07)}

/* 订单与生活服务 */
.hs-order-card>summary{grid-template-columns:auto minmax(0,1fr) auto;border-left:4px solid #8f8090}.hs-order-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;color:#fff!important;background:#8d7891;border-radius:9px;font-size:10px;font-weight:800}.hs-order-note{margin-top:8px;padding:8px 9px;color:#736a6f!important;background:#f8f5f7;border-radius:8px;font-size:8px;line-height:1.5}
.hs-order-food .hs-order-icon{background:#df7b3e}.hs-order-delivery .hs-order-icon{background:#d1943d}.hs-order-shopping .hs-order-icon{background:#c45d83}.hs-order-gift .hs-order-icon{background:#b96596}.hs-order-hotel .hs-order-icon{background:#6876a8}.hs-order-reservation .hs-order-icon{background:#a46b45}.hs-order-ride .hs-order-icon{background:#4b8590}.hs-order-flight .hs-order-icon,.hs-order-rail .hs-order-icon{background:#4d74a0}.hs-order-service .hs-order-icon{background:#4e947f}
.hs-order-active>summary{border-left-color:#4d977f}.hs-order-transit>summary{border-left-color:#4f82ad}.hs-order-ready>summary{border-left-color:#c38d42}.hs-order-done>summary{border-left-color:#7ba072;opacity:.86}.hs-order-cancelled>summary{border-left-color:#999;opacity:.70}

/* 多平台媒体视觉差异 */
.hs-media-weibo-post{background:#fff!important;border-top:3px solid #ff8200!important}.hs-media-weibo-post .hs-media-topic,.hs-media-weibo-post .hs-media-mention{color:#ff8200!important}
.hs-media-douyin-post{background:#fff!important;border-color:#e5e7ea!important;border-top:3px solid #17191f!important}.hs-media-douyin-post>.hs-media-post-header,.hs-media-douyin-post>.hs-media-post-body,.hs-media-douyin-post>.hs-media-change-line{background:#fff!important}.hs-media-douyin-post .hs-media-author-name,.hs-media-douyin-post .hs-media-post-text{color:#2b2f33!important}.hs-media-douyin-post .hs-media-meta{color:#92979d!important}.hs-media-douyin-post .hs-media-douyin-preview{background:#111318!important;border-color:#292d35!important;box-shadow:0 8px 22px rgba(18,20,25,.13)}.hs-media-douyin-post .hs-media-actions{background:#fff!important;border-color:#eceef1!important}.hs-media-douyin-post .hs-media-actions>span{color:#656b72!important;border-color:#eceef1!important}.hs-media-douyin-post .hs-media-change-line{color:#8b9096!important;background:#fafafa!important}.hs-media-douyin-post .hs-media-comment-panel{background:#fff!important}.hs-media-douyin-post .hs-media-comment-text,.hs-media-douyin-post .hs-media-comment-user strong{color:#35393e!important}
.hs-media-xhs-post{background:#fffdf9!important;border-top:3px solid #ff2442!important}.hs-media-xhs-post .hs-xhs-title{margin-bottom:6px;color:#252525!important;font-size:16px;font-weight:800}.hs-media-xhs-post .hs-xhs-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.hs-media-xhs-post .hs-xhs-tags span{padding:3px 7px;color:#d91f3a!important;background:#fff0f2;border-radius:999px;font-size:9px}.hs-media-xhs-post .hs-xhs-stats{display:flex;gap:14px;padding:9px 16px;color:#7a7476!important;font-size:10px;border-top:1px solid #f0e9e7}
.hs-media-news-post{background:#fff!important;border-top:4px solid #33475b!important}.hs-media-news-post .hs-news-brand{color:#33475b!important;font-family:"Times New Roman",serif;font-size:11px;letter-spacing:.10em}.hs-media-news-post .hs-news-headline{margin:8px 0;color:#1f2933!important;font-family:"FangSong","STFangsong",serif;font-size:20px;line-height:1.45;font-weight:700}.hs-media-news-post .hs-news-lead{padding-left:11px;color:#5f6b75!important;border-left:3px solid #9aa9b7;font-size:12px;line-height:1.75}.hs-media-news-post .hs-news-byline{margin-top:9px;color:#9099a1!important;font-size:9px}.hs-media-news-post .hs-media-actions{display:none}
.hs-media-paparazzi-post{background:#1c1b1d!important;border:1px solid #3b3438!important;border-top:4px solid #d9a441!important}.hs-media-paparazzi-post .hs-media-author-name,.hs-media-paparazzi-post .hs-media-report-title,.hs-media-paparazzi-post .hs-media-post-text{color:#f5f1eb!important}.hs-media-paparazzi-post .hs-media-meta,.hs-media-paparazzi-post .hs-media-change-line{color:#b8ada3!important;background:#242225!important}.hs-media-paparazzi-post .hs-media-evidence span{color:#f1c96a!important;background:#3b3327}.hs-media-paparazzi-post .hs-paparazzi-stamp{display:inline-block;margin-bottom:8px;padding:4px 8px;color:#1a1712!important;background:#e2b34e;border-radius:3px;font-size:9px;font-weight:900;transform:rotate(-1deg)}.hs-media-paparazzi-post .hs-media-actions{background:#242225;border-color:#3b3438}.hs-media-paparazzi-post .hs-media-actions>span{color:#ddd!important;border-color:#3b3438}.hs-media-paparazzi-post .hs-media-comment-panel{background:#fff!important}

@media (max-width:760px){
.hs-asset-kpis,.hs-project-overview,.hs-notification-summary,.hs-order-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.hs-major-assets,.hs-settlement-split,.hs-cashflow-receipts,.hs-project-grid,.hs-order-grid{grid-template-columns:1fr}.hs-project-stage-rail{padding-bottom:12px}.hs-call-card{grid-template-columns:auto minmax(0,1fr)}.hs-call-meta{grid-column:2}.hs-story-masthead{background:linear-gradient(105deg,#382e35 0 29%,#f8f2f5 29% 100%)!important}
}

/* =========================================================
   沪上月｜抖音独立视频页与评论抽屉
   视频页深色竖屏；评论区浅色抽屉；不复用微博信息流
   ========================================================= */

.hs-media-app .hs-douyin-shell {
  --dy-bg: #08090b;
  --dy-panel: #111216;
  --dy-text: #f6f7f8;
  --dy-muted: #a8abb1;
  --dy-red: #fe2c55;
  --dy-cyan: #25f4ee;

  box-sizing: border-box;
  width: min(100%, 470px);
  margin: 18px auto;
  overflow: hidden;
  color: var(--dy-text) !important;
  background: var(--dy-bg) !important;
  border: 1px solid #272a30 !important;
  border-radius: 20px !important;
  box-shadow:
    0 18px 44px rgba(16,17,22,.24),
    0 0 0 1px rgba(255,255,255,.03) inset !important;
}

.hs-douyin-phone {
  position: relative;
  background: var(--dy-bg);
}

.hs-douyin-topbar {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 36px;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  color: #fff !important;
  background: #050506;
}

.hs-douyin-topbar > span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hs-douyin-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.hs-douyin-tabs span {
  position: relative;
  color: #85888e !important;
  font-size: 12px;
  font-weight: 700;
}

.hs-douyin-tabs .active {
  color: #fff !important;
}

.hs-douyin-tabs .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
}

.hs-douyin-video-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  max-height: 720px;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(56,59,67,.45), transparent 34%),
    linear-gradient(160deg, #181a1f, #020203 72%);
}

.hs-douyin-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #090a0d;
}

.hs-douyin-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hs-douyin-media-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  padding: 52px 64px 120px 22px;
  color: #fff !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(254,44,85,.18), transparent 24%),
    radial-gradient(circle at 44% 58%, rgba(37,244,238,.10), transparent 28%),
    linear-gradient(155deg, #23252c, #060608 70%);
}

.hs-douyin-media-placeholder strong {
  color: #fff !important;
  font-size: 14px;
}

.hs-douyin-media-placeholder p {
  margin: 9px 0 0 !important;
  color: #d8d9dc !important;
  font-size: 12px;
  line-height: 1.72;
  text-indent: 0 !important;
}

.hs-douyin-center-play {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  color: #fff !important;
  font-size: 24px;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  transform: translate(-50%,-50%);
  backdrop-filter: blur(8px);
}

.hs-douyin-side-actions {
  position: absolute;
  right: 10px;
  bottom: 96px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}

.hs-douyin-side-avatar,
.hs-douyin-side-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-douyin-side-avatar {
  position: relative;
  width: 43px;
  height: 43px;
  overflow: visible;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(145deg, #555a65, #202228);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(0,0,0,.32);
}

.hs-douyin-side-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.hs-douyin-follow-plus {
  position: absolute;
  left: 50%;
  bottom: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  background: var(--dy-red);
  border: 2px solid #0b0c0e;
  border-radius: 50%;
  transform: translateX(-50%);
}

.hs-douyin-side-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  color: #fff !important;
}

.hs-douyin-side-action-icon {
  width: 38px;
  height: 38px;
  color: #fff !important;
  font-size: 29px;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.55));
}

.hs-douyin-side-action b {
  margin-top: 2px;
  color: #fff !important;
  font-size: 9px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.75);
}

.hs-douyin-record {
  width: 39px;
  height: 39px;
  background:
    radial-gradient(circle, #2b2e34 0 31%, #0b0c0e 32% 48%, transparent 49%),
    conic-gradient(from 45deg, var(--dy-cyan), #fff 23%, var(--dy-red) 48%, #fff 72%, var(--dy-cyan));
  border-radius: 50%;
  animation: hsDouyinRecord 8s linear infinite;
}

.hs-douyin-caption {
  position: absolute;
  left: 0;
  right: 62px;
  bottom: 14px;
  z-index: 4;
  padding-left: 14px;
  color: #fff !important;
  text-shadow: 0 2px 7px rgba(0,0,0,.68);
}

.hs-douyin-author {
  margin-bottom: 6px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
}

.hs-douyin-caption-text {
  color: #fff !important;
  font-size: 12px;
  line-height: 1.65;
}

.hs-douyin-caption-text .hs-media-topic,
.hs-douyin-caption-text .hs-media-mention {
  color: #fff !important;
  font-weight: 800;
}

.hs-douyin-music {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #f0f1f2 !important;
  font-size: 10px;
  white-space: nowrap;
}

.hs-douyin-music span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-douyin-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 2px;
  background: rgba(255,255,255,.20);
}

.hs-douyin-progress::after {
  content: "";
  display: block;
  width: var(--dy-progress, 42%);
  height: 100%;
  background: #fff;
}

.hs-douyin-status-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  color: #9fa3aa !important;
  font-size: 10px;
  background: #111318;
  border-top: 1px solid #24272d;
}

.hs-douyin-status-strip .hs-media-status {
  color: var(--dy-red) !important;
}

/* 抖音评论抽屉 */
.hs-douyin-comments {
  color: #24272b !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 18px 18px 0 0;
}

.hs-douyin-comments > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  color: #2b2f33 !important;
  font-size: 12px;
  background: #fff !important;
  border-top: 1px solid #eceef0;
  border-bottom: 1px solid #f0f1f2;
  cursor: pointer;
  list-style: none;
}

.hs-douyin-comments > summary::-webkit-details-marker {
  display: none;
}

.hs-douyin-comments > summary::after {
  content: "⌃";
  color: #95999e;
  font-size: 11px;
}

.hs-douyin-comments:not([open]) > summary::after {
  content: "⌄";
}

.hs-douyin-comment-sheet {
  position: relative;
  padding: 2px 13px 66px;
  color: #2b2f33 !important;
  background: #fff !important;
}

.hs-douyin-comment-list {
  display: flex;
  flex-direction: column;
}

.hs-douyin-comment-item {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  gap: 9px;
  padding: 13px 0;
}

.hs-douyin-comment-item + .hs-douyin-comment-item {
  border-top: 1px solid #f2f3f4;
}

.hs-douyin-comment-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(145deg, #69717d, #30343a);
  border-radius: 50%;
}

.hs-douyin-comment-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.hs-douyin-comment-main {
  min-width: 0;
}

.hs-douyin-comment-user {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #858a90 !important;
  font-size: 10px;
}

.hs-douyin-comment-user strong {
  color: #72777d !important;
  font-size: 11px;
  font-weight: 650;
}

.hs-douyin-comment-user .verified {
  color: var(--dy-red) !important;
  font-size: 9px;
}

.hs-douyin-comment-text {
  margin-top: 4px;
  color: #202327 !important;
  font-size: 13px;
  line-height: 1.65;
}

.hs-douyin-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: #a3a7ac !important;
  font-size: 9px;
}

.hs-douyin-comment-meta .reply {
  color: #74797f !important;
  font-weight: 700;
}

.hs-douyin-comment-like {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
  padding-top: 10px;
  color: #a1a5aa !important;
}

.hs-douyin-comment-like span {
  font-size: 18px;
  line-height: 1;
}

.hs-douyin-comment-like b {
  margin-top: 3px;
  font-size: 8px;
  font-weight: 500;
}

.hs-douyin-expand-replies {
  margin-top: 8px;
  color: #777c82 !important;
  font-size: 10px;
  font-weight: 650;
}

.hs-douyin-expand-replies::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 1px;
  margin-right: 6px;
  vertical-align: middle;
  background: #c8cbcf;
}

.hs-douyin-reply {
  margin-top: 8px;
  padding: 8px 10px;
  color: #3c4045 !important;
  font-size: 11px;
  line-height: 1.6;
  background: #f7f8f9;
  border-radius: 8px;
}

.hs-douyin-reply strong {
  color: #66717e !important;
}

.hs-douyin-comment-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 6px 12px;
  box-sizing: border-box;
  background: rgba(255,255,255,.97);
  border-top: 1px solid #e9ebed;
  backdrop-filter: blur(10px);
}

.hs-douyin-comment-input {
  min-width: 0;
  padding: 9px 12px;
  color: #9b9fa4 !important;
  font-size: 11px;
  background: #f3f4f5;
  border-radius: 999px;
}

.hs-douyin-comment-emoji,
.hs-douyin-comment-gift {
  color: #555b62 !important;
  font-size: 18px;
}

@keyframes hsDouyinRecord {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .hs-media-app .hs-douyin-shell {
    width: 100%;
    margin: 12px 0;
    border-radius: 14px !important;
  }

  .hs-douyin-video-stage {
    min-height: 500px;
    max-height: 650px;
  }

  .hs-douyin-side-actions {
    right: 7px;
  }

  .hs-douyin-caption {
    right: 56px;
    padding-left: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-douyin-record {
    animation: none !important;
  }
}
