/* 其余：报错弹窗 / 选择列表 / toast / 礼物 / 日程 / 钱包 / 定位 / 评论（原 index.html 第 3619-4047 行） */

/* ============ 通用：报错弹窗 ============ */
.err-dialog .err-icon{
  width:48px; height:48px; border-radius:16px; margin:0 auto 12px;
  background:rgba(255,59,48,.1); color:var(--danger);
  display:flex; align-items:center; justify-content:center;
}
.err-dialog .err-icon svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.err-dialog h3, .err-dialog p{ text-align:center; }
.err-dialog .err-raw{
  margin-top:12px; padding:10px 12px;
  background:var(--fill); border-radius:12px;
  font-family:var(--font-num), monospace;
  font-size:11.5px; color:var(--gray-1);
  word-break:break-all; line-height:1.6;
  max-height:100px; overflow-y:auto;
}
.err-dialog .dialog-actions button{ background:var(--ink); color:var(--on-ink); }

/* ============ 动态：生成弹窗 / 可见范围选择 ============ */
.pick-list{
  display:flex; flex-direction:column; gap:6px;
  max-height:220px; overflow-y:auto;
  padding:2px;
}
.pick-list::-webkit-scrollbar{ width:0; }
.pick-item{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px;
  border:1.5px solid transparent; border-radius:16px;
  background:var(--fill);
  cursor:pointer;
  font-family:inherit; font-size:13.5px; color:var(--ink);
  text-align:left; width:100%;
  transition:border-color .16s, background .16s, transform .18s var(--spring);
}
.pick-item:active{ transform:scale(.98); }
.pick-item.on{ border-color:var(--ink); background:var(--bg); }
.pick-item img, .pick-item .pick-initial{
  width:32px; height:32px; border-radius:11px; object-fit:cover; flex:0 0 auto;
  background:var(--ink); color:var(--on-ink); font-size:13px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
}
.pick-item .pick-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pick-item .pick-check{
  width:20px; height:20px; border-radius:50%;
  border:1.5px solid var(--gray-3);
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto; transition:background .15s, border-color .15s;
}
.pick-item .pick-check svg{ width:11px; height:11px; fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; opacity:0; }
.pick-item.on .pick-check{ background:var(--ink); border-color:var(--ink); }
.pick-item.on .pick-check svg{ opacity:1; }
.pick-head{
  display:flex; align-items:center; justify-content:space-between;
  margin:14px 0 8px;
  font-size:12.5px; color:var(--gray-1); font-weight:500;
}
.pick-head button{
  border:none; background:var(--fill); color:var(--ink);
  border-radius:999px; padding:5px 12px;
  font-family:inherit; font-size:12px; font-weight:500; cursor:pointer;
}
.pick-empty{ padding:22px 0; text-align:center; font-size:12.5px; color:var(--gray-2); }
.count-seg{
  display:flex; gap:4px;
  background:var(--fill); border-radius:14px; padding:3px;
  margin-top:8px;
}
.count-seg button{
  flex:1; padding:8px 0;
  border:none; border-radius:11px;
  background:transparent; color:var(--gray-1);
  font-family:var(--font-num); font-size:14px; font-weight:600;
  cursor:pointer; transition:background .16s, color .16s;
}
.count-seg button.on{ background:var(--bg); color:var(--ink); box-shadow:0 2px 6px rgba(0,0,0,.07); }
.feed-vis-block{
  margin-top:16px;
  background:var(--fill);
  border-radius:20px; padding:14px 16px 12px;
}
.feed-vis-block .pick-head{ margin-top:0; }
.feed-vis-block .pick-head button{ background:var(--bg); }
.feed-vis-block .pick-item{ background:var(--bg); }
.feed-vis-block .pick-item.on{ background:var(--bg); }

/* 楼层选择列表 */
.floor-list{ max-height:260px; overflow-y:auto; padding:4px 0; }
.floor-list::-webkit-scrollbar{ width:0; }
.floor-item{
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding:11px 22px;
  border:none; background:none;
  cursor:pointer;
  text-align:left;
  transition:background .15s;
}
@media (hover: hover) and (pointer: fine){
.floor-item:hover{ background:rgba(var(--tint-rgb),.03); }
}

.floor-item.on{ background:rgba(var(--tint-rgb),.05); }
.floor-no{
  flex:0 0 auto;
  width:26px; height:26px;
  border-radius:9px;
  background:var(--fill);
  font-size:11px; font-weight:600;
  color:var(--gray-1);
  display:flex; align-items:center; justify-content:center;
}
.floor-item.on .floor-no{ background:var(--ink); color:var(--bg); }
.floor-word{
  flex:1; min-width:0;
  font-size:12.5px; color:var(--gray-1);
  line-height:1.55;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

/* ============ 轻提示 ============ */
.toast{
  position:absolute;
  left:50%; bottom:92px;
  transform:translate(-50%, 18px);
  background:var(--primary); color:var(--ink);
  font-size:13px; font-weight:500;
  padding:10px 20px;
  border-radius:999px;
  opacity:0; pointer-events:none;
  transition:opacity .28s, transform .34s var(--spring);
  /* 必须高于 .center-backdrop(82) / 播放器(97)，否则登录等弹窗会挡住提示 */
  z-index:200;
  max-width:78%;
  white-space:normal;
  text-align:center;
  box-sizing:border-box;
}
.toast.show{ opacity:1; transform:translate(-50%,0); }
/* 有居中弹窗时抬到屏幕中部，避免被大卡片挡住 */
.toast.toast-mid{
  bottom:auto;
  top:42%;
  transform:translate(-50%, 14px);
}
.toast.toast-mid.show{ transform:translate(-50%,0); }

/* ============ 无障碍：减少动效 ============ */
@media (prefers-reduced-motion: reduce){
  .view.active{ animation:none; }
  *{ transition-duration:.01ms !important; }
}
/* ============ 美化：可被设置页覆盖的变量 ============ */
:root{
  --sk-home-bg:     #FFFFFF;
  --sk-home-ink:    #0B0B0F;
  --sk-home-accent: #DADAE0;
  --sk-home-muted:  #6C6C70;
  --sk-home-font:   14px;
  --sk-home-radius: 0px;
  --sk-home-avatar: 50%;
  --sk-talk-bg:     #FAFAFC;
  --sk-peer-bg:     #F2F2F7;
  --sk-peer-ink:    #0B0B0F;
  --sk-mine-bg:     #0B0B0F;
  --sk-mine-ink:    #FFFFFF;
  --sk-talk-font:   14.5px;
  --sk-talk-radius: 20px;
  --sk-talk-avatar: 50%;
  --sk-talk-avatar-size: 38px;
  --sk-talk-pad-y: 8px;
  --sk-talk-pad-x: 11px;
  --sk-app-font:    var(--font-body);
  --sk-app-size:    100%;
}
/* 夜间：美化变量的「默认值」换成深色。
   js/17-skin.js：当前聊天 look 里显式存过的颜色会写进 html 行内 --sk-*（日夜都不改）；
   没存过的才用这里的默认值，所以只有未自定义时才跟夜间变色 */
html[data-theme="dark"]{
  --sk-home-bg:     #000000;
  --sk-home-ink:    #F2F2F7;
  --sk-home-accent: #3A3A40;
  --sk-home-muted:  #A1A1A8;
  --sk-talk-bg:     #0A0A0C;
  --sk-peer-bg:     #1C1C1E;
  --sk-peer-ink:    #F2F2F7;
  --sk-mine-bg:     #F2F2F7;
  --sk-mine-ink:    #0B0B0F;
  --sk-off-bg:      #141414;
  --sk-off-ink:     #E8E4DC;
}
/* 全局字体与字号（美化页可改） */
body{ font-family:var(--sk-app-font); }
/* 主页面（小组件 / 搜索 / 分组 / 会话列表） */
.chat-view{
  background:var(--sk-home-bg); color:var(--sk-home-ink);
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
/* 主页壁纸透明度：盖一层日/夜间底色，透明度越低壁纸越淡 */
.chat-view.has-wallpaper{ position:relative; isolation:isolate; }
.chat-view.has-wallpaper::after{
  content:'';
  position:absolute; inset:0;
  background:var(--sk-home-bg);
  opacity:calc(1 - var(--sk-home-wp-alpha, 1));
  pointer-events:none;
  z-index:-1;
}
.chat-view .row-name{ font-size:var(--sk-home-font); color:var(--sk-home-ink); }
.chat-view .home-nick{ color:var(--sk-home-ink); }
.chat-view .chat-row{ border-radius:var(--sk-home-radius); }
.chat-view .chat-row.pinned{ border-radius:max(20px, var(--sk-home-radius)); }
.chat-view .row-avatar,
.chat-view .avatar-initial{ border-radius:var(--sk-home-avatar); }
.chat-view .badge{ background:var(--sk-home-accent); }
.chat-view .chip.active{ color:var(--sk-home-ink); }
.chat-view .row-last,
.chat-view .row-time,
.chat-view .chip:not(.active),
.chat-view .list-empty{ color:var(--sk-home-muted); }
/* 搜索框 / 日历·添加·世界书：底色跟辅助色，图标跟文字色 */
.chat-view .searchbar{
  background:rgba(108, 108, 112, .18);
  background:color-mix(in srgb, var(--sk-home-muted, #6C6C70) 20%, transparent);
  color:var(--sk-home-muted);
}
.chat-view .searchbar:focus-within{ box-shadow:0 0 0 1.5px var(--sk-home-ink); }
.chat-view .searchbar input{ color:var(--sk-home-ink); }
.chat-view .searchbar input::placeholder{ color:var(--sk-home-muted); }
.chat-view .home-actions .icon-btn.round{
  background:rgba(108, 108, 112, .18);
  background:color-mix(in srgb, var(--sk-home-muted, #6C6C70) 20%, transparent);
  color:var(--sk-home-ink);
}
@media (hover: hover) and (pointer: fine){
.chat-view .home-actions .icon-btn.round:hover{
  background:rgba(108, 108, 112, .28);
  background:color-mix(in srgb, var(--sk-home-muted, #6C6C70) 30%, transparent);
}
}

.chat-view .home-actions .icon-btn.round:active{
  background:color-mix(in srgb, var(--sk-home-muted, #6C6C70) 36%, transparent);
}
/* 聊天页面（消息区 / 气泡 / 头像） */
.talk-view{ background-color:var(--sk-talk-bg); }
.msg-bubble{
  background:var(--sk-peer-bg);
  color:var(--sk-peer-ink);
  font-size:var(--sk-talk-font);
  border-radius:var(--sk-talk-radius);
  border-bottom-left-radius:7px;
}
.msg.mine .msg-bubble{
  background:var(--sk-mine-bg);
  color:var(--sk-mine-ink);
  border-bottom-left-radius:var(--sk-talk-radius);
  border-bottom-right-radius:7px;
}
.msg-avatar,
.msg-avatar-initial{ border-radius:var(--sk-talk-avatar); }
/* 全局字号：各处基准字号 × 比例（显示与字体页可调） */
:root{ --sk-fs:1; }
.home-nick{ font-size:calc(15px * var(--sk-fs)); }
.searchbar input{ font-size:calc(14px * var(--sk-fs)); }
.chip{ font-size:calc(11px * var(--sk-fs)); }
.row-last{ font-size:calc(12.5px * var(--sk-fs)); }
.row-time{ font-size:calc(11px * var(--sk-fs)); }
.chat-view .row-name{ font-size:calc(var(--sk-home-font) * var(--sk-fs)); }
.talk-title,
.user-head h1{ font-size:calc(17px * var(--sk-fs)); }
.talk-input{ font-size:calc(14.5px * var(--sk-fs)); }
.msg-bubble{ font-size:calc(var(--sk-talk-font) * var(--sk-fs)); }
.set-label{ font-size:calc(15px * var(--sk-fs)); }
.tm-key b{ font-size:calc(14px * var(--sk-fs)); }

/* ============ 礼物 / 亲属卡 气泡 ============ */
.msg-gift{
  padding:0; overflow:hidden; min-width:200px;
  background:linear-gradient(150deg, #C99BFF, #9F6BF2);
  color:#fff; cursor:default;
}
.msg.mine .msg-gift{ background:linear-gradient(150deg, #C99BFF, #9F6BF2); color:#fff; }
.msg-gift.kin{ background:linear-gradient(150deg, #FFB37A, #F08A4B); }
.msg.mine .msg-gift.kin{ background:linear-gradient(150deg, #FFB37A, #F08A4B); }
.gift-top{ display:flex; align-items:center; gap:11px; padding:13px 14px 11px; }
.gift-ico{
  width:38px; height:38px; border-radius:12px; flex:0 0 auto;
  background:rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center;
}
.gift-ico svg{ width:20px; height:20px; fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.gift-word{ flex:1; min-width:0; }
.gift-word b{ display:block; font-size:14.5px; font-weight:600; word-break:break-all; }
.gift-word span{ display:block; font-size:12px; opacity:.9; margin-top:2px; }
.gift-note{ padding:0 14px 11px; font-size:12.5px; opacity:.92; line-height:1.5; word-break:break-word; }
.gift-foot{ padding:7px 14px; font-size:11px; background:rgba(255,255,255,.14); opacity:.9; }

/* ============ 音乐分享卡（横向） ============ */
.msg-music{
  padding:0; overflow:hidden; min-width:220px; max-width:250px;
  background:var(--card); color:var(--ink); cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(11,11,15,.06);
}
.msg.mine .msg-music{ background:var(--card); color:var(--ink); }
.mus-top{ display:flex; align-items:center; gap:11px; padding:11px 12px; }
.mus-cover{
  width:48px; height:48px; border-radius:12px; object-fit:cover; flex:0 0 auto;
  background:var(--fill);
}
.mus-cover-ph{ display:flex; align-items:center; justify-content:center; color:var(--gray-3); }
.mus-cover-ph svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mus-word{ flex:1; min-width:0; }
.mus-word b{ display:block; font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mus-word span{ display:block; font-size:11.5px; color:var(--gray-2); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mus-play{
  width:30px; height:30px; border-radius:50%; flex:0 0 auto;
  background:#E5342B; display:flex; align-items:center; justify-content:center;
}
.mus-play svg{ width:14px; height:14px; fill:#fff; stroke:none; margin-left:1px; }
.mus-foot{
  padding:6px 12px; font-size:10.5px; color:var(--gray-2);
  border-top:1px solid rgba(11,11,15,.06);
  display:flex; align-items:center; gap:5px;
}
.mus-foot::before{ content:''; width:8px; height:8px; border-radius:50%; background:#E5342B; }

/* ============ 论坛帖子分享卡 ============ */
.msg-forum{
  padding:0; overflow:hidden; min-width:220px; max-width:250px;
  background:var(--card); color:var(--ink); cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(11,11,15,.06);
}
.msg.mine .msg-forum{ background:var(--card); color:var(--ink); }
.ff-top{ padding:12px 14px 10px; }
.ff-top b{ display:block; font-size:13px; font-weight:700; margin-bottom:4px; }
.ff-top span{ display:block; font-size:13px; color:var(--gray-1); line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.ff-foot{
  padding:6px 12px; font-size:10.5px; color:var(--gray-2);
  border-top:1px solid rgba(11,11,15,.06);
  display:flex; align-items:center; gap:5px;
}
.ff-foot::before{ content:''; width:8px; height:8px; border-radius:50%; background:var(--ink); }

/* ============ 闲鱼分享卡 ============ */
.msg-market{
  padding:0; overflow:hidden; width:220px;
  background:var(--card); color:var(--ink); cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(11,11,15,.06);
}
.msg.mine .msg-market{ background:var(--card); color:var(--ink); }
.mkm-top{
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
}
.mkm-cover{
  width:56px; height:56px; border-radius:10px;
  object-fit:cover; flex-shrink:0; background:var(--fill);
}
.mkm-ph{
  display:grid; place-items:center; font-size:26px;
  background:linear-gradient(145deg, var(--ph-a,#FFE9A8), var(--ph-b,#FFF6D6));
}
.mkm-word{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.mkm-word b{
  font-size:13px; font-weight:700; line-height:1.3;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mkm-price{
  font-family:var(--font-num);
  color:#FF5000; font-weight:700; font-size:15px;
}
.mkm-word > span:not(.mkm-price){
  font-size:11px; color:var(--gray-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mkm-foot{
  padding:6px 12px; font-size:10.5px; color:var(--gray-2);
  border-top:1px solid rgba(11,11,15,.06);
  display:flex; align-items:center; gap:5px;
}
.mkm-foot::before{
  content:''; width:8px; height:8px; border-radius:50%;
  background:#FFE60F; box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);
}

/* 美团外卖分享卡 */
.msg-meituan{
  padding:0; overflow:hidden; width:220px;
  background:var(--card); color:var(--ink); cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(11,11,15,.06);
}
.msg.mine .msg-meituan{ background:var(--card); color:var(--ink); }
.mtm-top{
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
}
.mtm-cover{
  width:56px; height:56px; border-radius:10px;
  object-fit:cover; flex-shrink:0; background:var(--fill);
}
.mtm-ph{
  display:grid; place-items:center; font-size:26px;
  background:linear-gradient(145deg, var(--ph-a,#FFE9A8), var(--ph-b,#FFF6D6));
}
.mtm-word{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.mtm-word b{
  font-size:13px; font-weight:700; line-height:1.3;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mtm-price{
  font-family:var(--font-num);
  color:#FF4B33; font-weight:700; font-size:15px;
}
.mtm-score{
  font-size:12px; color:#E6A800; font-weight:600;
}
.mtm-word > span:not(.mtm-price):not(.mtm-score){
  font-size:11px; color:var(--gray-2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mtm-foot{
  padding:6px 12px; font-size:10.5px; color:var(--gray-2);
  border-top:1px solid rgba(11,11,15,.06);
  display:flex; align-items:center; gap:5px;
}
.mtm-foot::before{
  content:''; width:8px; height:8px; border-radius:50%;
  background:#FFD100; box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);
}
.msg-meituan.need-pay .mtm-foot::before{ background:#FF4B33; }
.mtm-pay-tag{
  display:inline-block !important;
  margin-top:2px; padding:2px 6px; border-radius:6px;
  background:rgba(255,75,51,.12); color:#FF4B33 !important;
  font:700 10px/1.2 var(--font-body) !important;
  white-space:nowrap !important;
}

/* ============ 一起听邀请卡（竖向） ============ */
.msg-musicinv{
  padding:0; overflow:hidden; width:200px;
  background:linear-gradient(160deg, #1F1B2E, #3A2B5C);
  color:#fff; cursor:pointer;
}
.msg.mine .msg-musicinv{ background:linear-gradient(160deg, #1F1B2E, #3A2B5C); color:#fff; }
.msg-musicinv.done{ filter:saturate(.55); opacity:.88; }
.minv-head{
  display:flex; align-items:center; gap:6px;
  padding:10px 13px 0; font-size:11.5px; color:rgba(255,255,255,.7);
}
.minv-head svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.minv-body{ display:flex; flex-direction:column; align-items:center; padding:12px 14px 10px; text-align:center; }
.minv-cover{
  width:120px; height:120px; border-radius:18px; object-fit:cover;
  background:rgba(255,255,255,.1); box-shadow:0 8px 22px rgba(0,0,0,.3);
  margin-bottom:10px; color:rgba(255,255,255,.5);
}
.minv-cover.mus-cover-ph svg{ width:40px; height:40px; }
.minv-body b{ display:block; font-size:14.5px; font-weight:600; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.minv-body span{ display:block; font-size:11.5px; opacity:.7; margin-top:3px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.minv-foot{
  padding:8px 13px; font-size:11px; text-align:center;
  background:rgba(255,255,255,.1); color:rgba(255,255,255,.9);
}

/* ============ 情侣头像邀请卡 ============ */
.msg-avinv{
  padding:0; overflow:hidden; width:200px;
  background:linear-gradient(160deg, #FFF1F3, #FFE0E6);
  color:#5A2230; cursor:pointer;
}
.msg.mine .msg-avinv{ background:linear-gradient(160deg, #FFF1F3, #FFE0E6); color:#5A2230; }
html[data-theme="dark"] .msg-avinv,
html[data-theme="dark"] .msg.mine .msg-avinv{
  background:linear-gradient(160deg, #3A2430, #2E1C26);
  color:#F5D5DE;
}
html[data-theme="dark"] .avinv-foot{ background:rgba(0,0,0,.25); }
html[data-theme="dark"] .avinv-heart{ color:#E891A8; }
.msg-avinv.done{ filter:saturate(.6); opacity:.9; }
.avinv-head{ padding:10px 13px 0; font-size:11.5px; opacity:.75; }
.avinv-body{ display:flex; align-items:center; justify-content:center; gap:10px; padding:12px 14px 10px; }
.avinv-body img{
  width:64px; height:64px; border-radius:50%; object-fit:cover;
  background:rgba(255,255,255,.6); box-shadow:0 6px 16px rgba(90,34,48,.18);
}
.avinv-heart{ font-size:18px; color:#E0567A; }
.avinv-foot{ padding:8px 13px; font-size:11px; text-align:center; background:rgba(255,255,255,.45); }
/* 聊天设置里挑一对情侣头像的列表 */
.avpick-imgs{ display:flex; gap:4px; margin-right:10px; flex:0 0 auto; }
.avpick-imgs img{ width:36px; height:36px; border-radius:50%; object-fit:cover; background:var(--fill); }

/* ============ 状态卡片：TA 没回消息时的去向 ============ */
.msg-status{
  padding:12px 14px; min-width:190px; max-width:250px;
  background:var(--fill); color:var(--ink);
  box-shadow:inset 0 0 0 1px rgba(11,11,15,.05);
}
.status-head{ display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--gray-2); margin-bottom:6px; }
.status-head i{ width:7px; height:7px; border-radius:50%; background:#F5A623; box-shadow:0 0 0 3px rgba(245,166,35,.18); }
.status-text{ font-size:13.5px; line-height:1.6; }
.status-foot{ margin-top:7px; font-size:11px; color:var(--gray-3); }

/* ============ 心声记录 ============ */
.heart-log{ margin:10px 22px 0; max-height:200px; overflow-y:auto; display:none; }
.heart-log.show{ display:block; }
.heart-log-item{
  padding:10px 12px; border-radius:14px; background:var(--fill);
  margin-bottom:6px; cursor:pointer; font-size:12.5px; line-height:1.5;
}
.heart-log-item:active{ transform:scale(.985); }
.heart-log-item.on{ box-shadow:inset 0 0 0 1.5px var(--ink); }
.heart-log-item small{ display:block; color:var(--gray-2); font-size:11px; margin-bottom:3px; }
.heart-log-empty{ font-size:12.5px; color:var(--gray-2); text-align:center; padding:10px 0; }
.heart-past-tag{ font-size:11px; color:var(--gray-2); margin-left:6px; font-weight:400; }

/* ============ 创建角色：头像 ============ */
.char-avatar-wrap{
  margin:8px auto 4px; width:84px; height:84px; border-radius:50%;
  background:var(--fill); overflow:hidden; cursor:pointer; position:relative;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 1px var(--hairline);
}
.char-avatar-wrap img{ width:100%; height:100%; object-fit:cover; display:none; }
.char-avatar-wrap.has img{ display:block; }
.char-avatar-wrap svg{ width:30px; height:30px; fill:none; stroke:var(--gray-2); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.char-avatar-wrap.has svg{ display:none; }
.char-avatar-hint{ text-align:center; font-size:11.5px; color:var(--gray-2); margin:0 0 6px; }
.create-title{ flex:1; text-align:center; margin:0; font-size:17px; font-weight:600; }
.create-title[hidden]{ display:none; }
.create-seg[hidden]{ display:none; }

/* 回复键：有待回复的消息时亮一个小点 */
.talk-act{ position:relative; }
.talk-act.due::after{
  content:''; position:absolute; right:4px; top:4px;
  width:7px; height:7px; border-radius:50%; background:#F5A623;
  box-shadow:0 0 0 2px var(--bg);
}

/* 报错原文：放大可读区 */
.err-dialog .err-raw{ max-height:220px; font-size:12px; user-select:text; -webkit-user-select:text; }

/* ============ 情侣空间 v2：首页 / 心愿 ============ */
.cp-hero{position:relative;overflow:hidden;margin:10px 0 14px;padding:20px 18px 16px;border-radius:26px;background:linear-gradient(135deg,#FF5C7A,#FF8FA3 55%,#FFC2D1);color:#fff;box-shadow:0 12px 32px rgba(255,92,122,.35)}
.cp-hero-bg i{position:absolute;border-radius:50%;background:rgba(255,255,255,.14)}
.cp-hero-bg i:nth-child(1){width:150px;height:150px;right:-40px;top:-50px}
.cp-hero-bg i:nth-child(2){width:90px;height:90px;left:-20px;bottom:-30px;background:rgba(255,255,255,.1)}
.cp-hero-bg i:nth-child(3){width:40px;height:40px;left:44%;top:8px;background:rgba(255,255,255,.18)}
.cp-hero-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between}
.cp-hero-person{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.95)}
.cp-hero-person img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:3px solid #fff;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.cp-hero-heart{font-size:26px;animation:cpPulse 1.6s infinite;position:relative}
.cp-hero-heart em{position:absolute;top:-8px;right:-18px;font-style:normal;font-size:10px;background:#fff;color:#FF5C7A;border-radius:99px;padding:1px 6px}
.cp-hero-days{position:relative;z-index:1;text-align:center;margin:12px 0}
.cp-hero-days b{font-size:40px;font-weight:800;letter-spacing:.02em;text-shadow:0 2px 10px rgba(0,0,0,.2)}
.cp-hero-days b small{font-size:14px;margin-left:4px;font-weight:600}
.cp-hero-days span{display:block;font-size:12px;opacity:.92;margin-top:2px}
.cp-hero-stats{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}
.cp-stat{background:rgba(255,255,255,.2);backdrop-filter:blur(6px);border-radius:14px;padding:8px 4px;text-align:center}
.cp-stat b{display:block;font-size:15px}
.cp-stat span{font-size:10.5px;opacity:.9}
.cp-hero-acts{position:relative;z-index:1;display:flex;gap:8px;margin-top:12px}
.cp-hero-acts button{flex:1;height:36px;border:none;border-radius:99px;background:#fff;color:#FF5C7A;font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.cp-hero-acts button:active{transform:scale(.96)}
.cp-hero-tip{position:relative;z-index:1;text-align:center;font-size:11.5px;opacity:.9;margin:10px 0 0}
.cp-card{background:var(--card,#fff);border-radius:20px;padding:14px 15px;margin-bottom:12px;box-shadow:0 4px 16px rgba(255,107,138,.08)}
.cp-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cp-card-head b{font-size:14px}
.cp-today-row{display:flex;gap:8px;font-size:12.5px;padding:6px 0;border-top:1px dashed rgba(0,0,0,.06)}
.cp-today-row span{flex:0 0 64px;color:var(--gray-2,#999)}
.cp-today-row em{flex:1;font-style:normal}
.cp-note{margin-top:10px;background:linear-gradient(135deg,#FFF1F4,#FFE4EA);border-radius:14px;padding:10px 12px;font-size:13px;color:#7A2E3F}
.cp-note small{display:block;margin-top:4px;font-size:11px;opacity:.7}
.cp-feed-row{display:flex;gap:8px;font-size:12.5px;padding:7px 0;border-top:1px solid var(--hairline,#eee)}
.cp-feed-row b{flex:0 0 auto}
.cp-feed-row span{flex:1;color:var(--gray-1,#666)}
.cp-wish-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-top:1px solid var(--hairline,#eee);font-size:13.5px}
.cp-wish-row.done span{text-decoration:line-through;opacity:.55}
.cp-wish-check{width:30px;height:30px;border-radius:50%;border:none;background:#FFE4EA;color:#FF5C7A;font-size:15px;cursor:pointer}
.cp-wish-row.done .cp-wish-check{background:#FF5C7A;color:#fff}
.cp-wish-row span{flex:1}
.cp-wish-del{border:none;background:none;color:#bbb;font-size:18px;cursor:pointer}
html[data-theme="dark"] .cp-card{background:#1F2937}
html[data-theme="dark"] .cp-note{background:#3A2430;color:#F5D5DE}
html[data-theme="dark"] .cp-wish-check{background:#374151}

/* ============ 日程页 ============ */
.sch-body{ padding-top:4px; padding-bottom:20px; }
.sch-tools{
  margin:0 18px 10px; padding:10px 0 12px;
  border-bottom:1px solid var(--hairline);
  background:transparent;
}
.sch-tools select{
  width:100%; border:none; border-radius:12px; background:var(--fill); padding:10px 12px;
  font-family:inherit; font-size:13.5px; color:var(--ink); outline:none;
}
.sch-gen-row{ display:flex; gap:8px; margin-top:10px; }
.sch-gen-row button{
  flex:1; height:38px; border:none; border-radius:13px;
  background:var(--ink); color:var(--on-ink);
  font-family:inherit; font-size:13px; font-weight:600; cursor:pointer;
}
.sch-gen-row button.ghost{
  background:var(--fill); color:var(--ink);
}
.sch-gen-row button:disabled{ opacity:.5; cursor:default; }
.sch-auto{ display:flex; align-items:center; gap:12px; margin-top:12px; }
.sch-auto .tm-key{ flex:1; }
.sch-note{ font-size:11.5px; color:var(--gray-2); line-height:1.55; margin:8px 0 0; }

.sch-days{
  display:flex; gap:8px;
  padding:14px 18px 6px;
  overflow-x:auto; -webkit-overflow-scrolling:touch;
}
.sch-days::-webkit-scrollbar{ height:0; }
.sch-day{
  flex:0 0 auto; width:48px; min-height:64px; padding:10px 0 8px;
  border:none; border-radius:16px; background:transparent;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  font-family:inherit; color:var(--ink); cursor:pointer;
  transition:background .15s, color .15s;
}
.sch-day:active{ transform:scale(.96); }
.sch-day-w{ font-size:11px; color:var(--gray-2); font-weight:500; }
.sch-day-n{
  font-size:17px; font-weight:600;
  font-family:var(--font-num), inherit;
  line-height:1.1;
}
.sch-day i{
  width:4px; height:4px; border-radius:50%;
  background:transparent; margin-top:2px;
}
.sch-day.dot i{ background:#F5A623; }
.sch-day.on{
  background:var(--ink); color:var(--on-ink);
}
.sch-day.on .sch-day-w{ color:var(--on-ink); opacity:.55; }
.sch-day.on.dot i{ background:#F5A623; }

.sch-day-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; padding:14px 22px 8px;
}
.sch-day-title{
  font-size:15px; font-weight:600; color:var(--ink);
  letter-spacing:.01em;
}
.sch-day-count{
  font-size:12px; color:var(--gray-2);
  font-family:var(--font-num), inherit;
}

.sch-list{ padding:4px 18px 8px; }
.sch-item{
  display:flex; align-items:stretch; gap:0;
  margin:0; padding:0;
  background:transparent; border-radius:0;
  cursor:pointer;
}
.sch-rail{
  position:relative;
  flex:0 0 22px;
  display:flex; justify-content:center;
}
.sch-rail::before{
  content:'';
  position:absolute; top:18px; bottom:-2px;
  left:50%; width:1.5px;
  margin-left:-.75px;
  background:var(--hairline);
}
.sch-item.last .sch-rail::before{ display:none; }
.sch-dot{
  position:relative; z-index:1;
  width:9px; height:9px; margin-top:14px;
  border-radius:50%;
  background:var(--bg);
  box-shadow:inset 0 0 0 1.5px var(--gray-3);
  flex:0 0 auto;
}
.sch-item.now .sch-dot{
  background:#F5A623;
  box-shadow:0 0 0 3px rgba(245,166,35,.22);
}
.sch-card{
  flex:1; min-width:0;
  margin:0 0 10px 6px;
  padding:12px 14px;
  border-radius:16px;
  background:var(--fill);
  transition:background .15s;
}
.sch-item:active .sch-card{ filter:brightness(.97); }
.sch-item.now .sch-card{
  background:var(--fill);
  box-shadow:inset 3px 0 0 #F5A623;
}
.sch-card-top{
  display:flex; align-items:center; gap:8px;
  margin-bottom:4px;
}
.sch-time-main{
  font-size:15px; font-weight:600;
  font-family:var(--font-num), inherit;
  color:var(--ink); letter-spacing:.02em;
}
.sch-time-end{
  font-size:12px; color:var(--gray-2);
  font-family:var(--font-num), inherit;
}
.sch-live{
  margin-left:auto;
  font-size:10.5px; font-weight:600;
  color:#F5A623;
  letter-spacing:.04em;
}
.sch-text{
  font-size:13.5px; line-height:1.55;
  color:var(--ink); word-break:break-word;
}
.sch-empty{
  text-align:center;
  padding:40px 20px 28px;
  color:var(--gray-2);
}
.sch-empty-ico{
  width:44px; height:44px; margin:0 auto 12px;
  border-radius:14px; background:var(--fill);
  display:flex; align-items:center; justify-content:center;
  color:var(--gray-3);
}
.sch-empty-ico svg{
  width:22px; height:22px;
  fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.sch-empty p{
  margin:0;
  font-size:13px; line-height:1.75;
}

.sch-add{
  margin:10px 18px 8px;
  padding:12px 12px 12px;
  border-radius:18px;
  background:var(--fill);
  display:flex; flex-direction:column; gap:8px;
}
.sch-add-times{
  display:flex; align-items:center; gap:8px;
}
.sch-add-sep{
  color:var(--gray-3); font-size:13px;
  font-family:var(--font-num), inherit;
}
.sch-add-times input{
  flex:1; min-width:0;
  border:none; border-radius:12px; background:var(--bg);
  padding:10px 12px;
  font-family:var(--font-num), inherit; font-size:13.5px;
  color:var(--ink); outline:none;
}
.sch-add-row{ display:flex; gap:8px; align-items:center; }
.sch-add-row input{
  flex:1; min-width:0;
  border:none; border-radius:12px; background:var(--bg);
  padding:10px 12px;
  font-family:inherit; font-size:13.5px;
  color:var(--ink); outline:none;
}
.sch-add-row button{
  flex:0 0 auto;
  height:40px; padding:0 16px;
  border:none; border-radius:13px;
  background:var(--ink); color:var(--on-ink);
  font-family:inherit; font-size:13.5px; font-weight:600;
  cursor:pointer;
}

/* ============ 日程：点条目可编辑 ============ */
.sch-item.editing{ cursor:default; }
.sch-item.editing .sch-card{
  box-shadow:inset 0 0 0 1.5px var(--ink);
}
.sch-item.editing:active .sch-card{ filter:none; }
.sch-edit{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.sch-edit input{
  height:38px; border:none; border-radius:12px; padding:0 12px;
  background:var(--bg); color:var(--ink); font-family:inherit; font-size:13.5px;
  box-shadow:inset 0 0 0 1px var(--hairline);
}
.sch-edit input.wide{ grid-column:1 / -1; }
.sch-edit-acts{ grid-column:1 / -1; display:flex; gap:8px; justify-content:flex-end; }
.sch-edit-acts button{
  border:none; border-radius:999px; padding:7px 16px;
  font-family:inherit; font-size:12.5px; cursor:pointer;
  background:var(--bg); color:var(--ink); box-shadow:inset 0 0 0 1px var(--hairline);
}
.sch-edit-acts button.primary{ background:var(--ink); color:var(--on-ink); box-shadow:none; }
.sch-edit-acts button.danger{ color:var(--danger); }

/* ============ 钱包页 ============ */
.wallet-card{
  margin:6px 18px 14px; padding:22px 20px; border-radius:24px;
  background:linear-gradient(140deg, #1C1C22, #3A3A48); color:#fff;
  position:relative; overflow:hidden;
}
.wallet-card::after{ content:''; position:absolute; right:-40px; top:-50px; width:160px; height:160px; border-radius:50%; background:rgba(255,255,255,.08); }
.wallet-label{ font-size:12px; opacity:.72; }
.wallet-amt{ font-size:34px; font-weight:700; margin-top:6px; font-family:var(--font-num), inherit; letter-spacing:-.01em; }
.wallet-amt small{ font-size:18px; font-weight:600; margin-right:2px; }
.wallet-actions{ display:flex; gap:8px; margin-top:18px; position:relative; z-index:1; }
.wallet-actions button{
  flex:1; height:38px; border:none; border-radius:13px;
  background:rgba(255,255,255,.16); color:#fff; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer;
}
.wallet-actions button.pri{ background:#fff; color:#1C1C22; }
.bank-card{
  display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:18px;
  color:#fff; margin:0 16px 10px; position:relative; overflow:hidden;
}
.bank-logo{ width:38px; height:38px; border-radius:12px; background:rgba(255,255,255,.22); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; flex:0 0 auto; }
.bank-word{ flex:1; min-width:0; }
.bank-word b{ display:block; font-size:14px; font-weight:600; }
.bank-word span{ display:block; font-size:12px; opacity:.85; margin-top:3px; font-family:var(--font-num), inherit; letter-spacing:.06em; }
.bank-bal{ text-align:right; font-family:var(--font-num), inherit; font-size:14px; font-weight:600; }
.bank-del{ position:absolute; right:10px; top:6px; border:none; background:transparent; color:rgba(255,255,255,.7); font-size:16px; cursor:pointer; }
.kin-item{ display:flex; align-items:center; gap:12px; padding:12px 16px; }
.kin-item + .kin-item{ box-shadow:inset 0 1px 0 rgba(11,11,15,.05); }
.kin-item .kin-av{ width:38px; height:38px; border-radius:50%; object-fit:cover; background:var(--bg); flex:0 0 auto; }
.kin-item .kin-av-i{ width:38px; height:38px; border-radius:50%; background:var(--bg); display:flex; align-items:center; justify-content:center; font-weight:600; flex:0 0 auto; }
.kin-word{ flex:1; min-width:0; }
.kin-word b{ display:block; font-size:14px; font-weight:500; }
.kin-word span{ display:block; font-size:11.5px; color:var(--gray-2); margin-top:2px; }
.kin-limit{ font-family:var(--font-num), inherit; font-size:14px; font-weight:600; }
.pad-select{
  width:100%; border:none; border-radius:14px; background:var(--fill); padding:12px 14px;
  font-family:inherit; font-size:14px; color:var(--ink); outline:none; margin-top:12px;
}
.pad-input + .pad-input{ margin-top:10px; }

/* ============ 位置卡片 ============ */
.msg-location{
  padding:0; overflow:hidden; min-width:200px; max-width:240px;
  background:var(--fill); color:var(--ink); cursor:default;
  box-shadow:inset 0 0 0 1px rgba(11,11,15,.05);
}
.msg.mine .msg-location{ background:var(--fill); color:var(--ink); }
.loc-map{
  height:76px; position:relative;
  background:
    repeating-linear-gradient(0deg, rgba(11,11,15,.06) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(11,11,15,.06) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #E6F0E8, #D8E8F5);
}
.loc-map::after{
  content:''; position:absolute; left:50%; top:50%;
  width:14px; height:14px; margin:-16px 0 0 -7px;
  border-radius:50% 50% 50% 0; transform:rotate(-45deg);
  background:#E2604A; box-shadow:0 2px 6px rgba(226,96,74,.45);
}
.loc-word{ padding:10px 13px 11px; }
.loc-word b{ display:block; font-size:14px; font-weight:600; }
.loc-word span{ display:block; font-size:11.5px; color:var(--gray-2); margin-top:3px; font-variant-numeric:tabular-nums; }

/* ============ 文件 ============ */
.msg-file{
  display:flex; align-items:center; gap:10px;
  min-width:180px; max-width:240px;
  background:var(--fill); color:var(--ink); cursor:default;
  box-shadow:inset 0 0 0 1px rgba(11,11,15,.05);
}
.msg-file.tap{ cursor:pointer; }
.msg-file.tap:active{ opacity:.88; }
.file-ico{
  flex:0 0 auto; width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--card);
}
.file-ico svg{ width:20px; height:20px; fill:none; stroke:#5B8DEF; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.file-word{ display:flex; flex-direction:column; min-width:0; }
.file-word b{ font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-word span{ font-size:11px; color:var(--gray-2); margin-top:2px; }

/* ============ 支付确认 / 密码 ============ */
.pay-auth-amt{ font-family:var(--font-num), inherit; font-size:26px; font-weight:600; color:var(--ink); padding-bottom:10px; }
.pwd-input{ letter-spacing:.4em; text-align:center; font-size:18px; }
.pwd-input::placeholder{ letter-spacing:0; font-size:14px; }
.pay-auth-err{ color:#D14A3C; }

/* ============ 美化：原类名速查 ============ */
.css-ref{
  margin-top:10px; padding:12px 14px;
  background:var(--fill); border-radius:16px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:11.5px; line-height:1.75; color:var(--gray-1);
  white-space:pre-wrap; word-break:break-all;
  max-height:220px; overflow-y:auto;
  user-select:text; -webkit-user-select:text;
}
.css-ref::-webkit-scrollbar{ width:0; }
.css-ref-row{ display:flex; gap:10px; margin-top:10px; align-items:center; }
.css-ref-row .tsb-btn{ flex:0 0 auto; }
.css-ref-row .skin-note{ margin:0; flex:1; }

/* ============ 动态：评论直接显示在动态下方 ============ */
.post-comments{
  margin-top:8px; padding:8px 12px;
  background:var(--fill); border-radius:12px;
}
.post-cmt{ font-size:13px; line-height:1.65; color:var(--gray-1); word-break:break-word; }
.post-cmt + .post-cmt{ margin-top:3px; }
.post-cmt b{ color:var(--ink); font-weight:600; margin-right:4px; }
.post-cmt.can-reply{ cursor:pointer; }
.post-cmt.can-reply:active{ opacity:.72; }
.post-cmt.is-reply{
  background:rgba(var(--tint-rgb), .08);
  border-radius:8px;
  margin-left:-4px; margin-right:-4px;
  padding:2px 4px;
}
.post-cmt-at{ color:var(--gray-2); font-weight:400; }
.post-cmt-at b{ margin:0 2px; font-weight:600; }
.post-cmt-hint{
  display:flex; align-items:center; gap:6px;
  margin-top:8px;
  font-size:12px; color:var(--gray-2);
}
.post-cmt-hint b{ color:var(--ink); font-weight:600; }
.post-cmt-cancel{
  margin-left:auto;
  border:none; background:none; padding:0;
  color:var(--gray-2); font-size:12px; cursor:pointer;
}
.post-cmt-box{ display:flex; gap:8px; margin-top:8px; }
.post-comments > .post-cmt-box:first-child,
.post-comments > .post-cmt-hint:first-child{ margin-top:0; }
.post-cmt-input{
  flex:1; min-width:0; height:34px;
  border:none; outline:none;
  background:var(--card);
  border-radius:999px;
  padding:0 12px;
  font-family:inherit; font-size:13px; color:var(--ink);
}
.post-cmt-input::placeholder{ color:var(--gray-3); }
.post-cmt-send{
  flex:0 0 auto;
  height:34px; padding:0 12px;
  border:none; border-radius:999px;
  background:var(--primary); color:var(--ink);
  font-size:13px; font-weight:600;
  cursor:pointer;
}
.post-cmt-send:active{ transform:scale(.96); }
.post-likes{ font-size:12px; color:var(--gray-2); margin-top:6px; }

/* ============ 报错记录页 ============ */
.err-dialog .dialog-actions button.ghost{ background:var(--fill); color:var(--ink); }
.set-label .set-sub{ display:block; font-size:11px; color:var(--gray-2); font-weight:400; margin-top:2px; }
.errlog-list{ margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.errlog-empty{ text-align:center; font-size:13px; color:var(--gray-2); padding:40px 20px; }
.errlog-item{
  background:var(--fill); border-radius:16px; padding:12px 14px; cursor:pointer;
  transition:transform .15s var(--spring);
}
.errlog-item:active{ transform:scale(.985); }
.errlog-head{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.errlog-head b{ font-size:13.5px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.errlog-head small{ flex:0 0 100%; font-size:11px; color:var(--gray-2); font-variant-numeric:tabular-nums; }
.errlog-tag{ flex:0 0 auto; font-style:normal; font-size:10.5px; padding:2px 7px; border-radius:999px; background:rgba(255,59,48,.12); color:var(--danger); font-weight:600; }
.errlog-why{ margin-top:6px; font-size:12.5px; line-height:1.6; color:var(--gray-1); }
.errlog-detail{ margin-top:10px; padding-top:10px; border-top:1px solid var(--hairline); }
.errlog-detail[hidden]{ display:none; }
.errlog-raw{
  margin-top:8px; padding:8px 10px; border-radius:10px;
  background:rgba(var(--tint-rgb),.05);
  font-family:var(--font-num), monospace; font-size:11px; line-height:1.6; color:var(--gray-1);
  word-break:break-all; white-space:pre-wrap; max-height:160px; overflow-y:auto;
  user-select:text; -webkit-user-select:text;
}
.errlog-raw span{ display:block; font-family:inherit; font-size:10.5px; color:var(--gray-2); margin-bottom:3px; }
.errlog-acts{ display:flex; gap:8px; margin-top:10px; justify-content:flex-end; }
.errlog-acts button{
  border:none; border-radius:999px; padding:6px 14px;
  font-family:inherit; font-size:12px; background:var(--bg); color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--hairline); cursor:pointer;
}

/* ============ 表情库：多选 / 批量操作 ============ */
.lib-grid.selecting .sticker-cell{ outline:2px solid transparent; outline-offset:-2px; }
.lib-grid .sticker-cell.picked{ outline:2px solid var(--ink); outline-offset:-2px; }
.lib-grid .sticker-cell .stk-pick{
  position:absolute; top:6px; right:6px;
  width:20px; height:20px; border-radius:50%;
  border:1.6px solid rgba(255,255,255,.9); background:rgba(11,11,15,.28);
  display:none; align-items:center; justify-content:center;
}
.lib-grid .sticker-cell .stk-pick svg{ width:12px; height:12px; fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; opacity:0; }
.lib-grid.selecting .sticker-cell .stk-pick{ display:flex; }
.lib-grid .sticker-cell.picked .stk-pick{ background:var(--ink); border-color:var(--ink); }
.lib-grid .sticker-cell.picked .stk-pick svg{ opacity:1; }
.lib-select-bar{
  display:flex; align-items:center; gap:8px; margin-top:12px;
  padding:10px 12px; border-radius:16px; background:var(--fill);
}
.lib-select-bar[hidden]{ display:none; }
.lib-select-bar .tsb-count{ flex:1; font-size:12.5px; color:var(--gray-1); }

/* ============ 情侣空间 ============ */
.cp-switch-row{
  display:flex; align-items:center; gap:8px;
  padding:8px 16px 4px;
}
.cp-switch-row label{ font-size:13px; color:var(--gray-2); flex:0 0 auto; }
.cp-switch-row select{
  flex:1; min-width:0; height:36px; border:none; border-radius:12px;
  background:var(--fill); padding:0 12px; font:inherit; color:var(--ink);
}
.cp-switch-amp{
  flex:0 0 auto; font-size:13px; color:var(--gray-3); font-weight:600;
}
.cp-tabs{
  display:flex; gap:4px; padding:8px 16px 0;
}
.cp-tab{
  flex:1; height:34px; border:none; border-radius:12px;
  background:transparent; font:inherit; font-size:13px; color:var(--gray-2); cursor:pointer;
}
.cp-tab.on{ background:var(--fill); color:var(--ink); font-weight:600; }
.cp-body-wrap{ padding-top:8px; }
.cp-empty{
  text-align:center; padding:48px 28px 32px;
}
.cp-empty-ico{
  width:64px; height:64px; margin:0 auto 16px; border-radius:22px;
  background:rgba(255,59,48,.08); color:#FF3B30;
  display:flex; align-items:center; justify-content:center;
}
.cp-empty-ico svg{ width:28px; height:28px; fill:currentColor; }
.cp-empty b{ display:block; font-size:17px; margin-bottom:8px; }
.cp-empty p{ margin:0 0 18px; font-size:13.5px; color:var(--gray-1); line-height:1.7; }
.cp-diary-input{
  width:100%; min-height:100px; border:none; border-radius:14px;
  background:var(--fill); padding:12px 14px; font:inherit; font-size:14px;
  line-height:1.65; color:var(--ink); resize:vertical; box-sizing:border-box;
}
.cp-diary-card{
  margin:12px 0; padding:14px 16px; border-radius:16px;
  background:var(--bg); box-shadow:0 0 0 1px var(--hairline);
}
.cp-diary-day{ font-size:12px; color:var(--gray-2); margin-bottom:8px; }
.cp-diary-row{ display:flex; gap:10px; font-size:13.5px; line-height:1.6; margin-top:6px; }
.cp-diary-row b{ flex:0 0 48px; color:var(--gray-2); font-weight:600; }
.cp-diary-row span{ flex:1; min-width:0; }
.cp-diary-row .muted{ color:var(--gray-3); font-style:normal; }
.cp-empty-inline{
  padding:28px 12px; text-align:center; font-size:13px; color:var(--gray-2);
}
.cp-mood-nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:4px 8px 12px;
}
.cp-mood-nav b{ font-size:15px; }
.cp-cal-dow{
  display:grid; grid-template-columns:repeat(7,1fr); gap:4px;
  margin-bottom:6px; text-align:center; font-size:11px; color:var(--gray-2);
}
.cp-cal-grid{
  display:grid; grid-template-columns:repeat(7,1fr); gap:4px;
}
.cp-cal-cell{
  aspect-ratio:1; border:none; border-radius:12px; background:var(--fill);
  padding:4px 2px; font:inherit; color:var(--ink); cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px;
}
.cp-cal-cell.empty{ background:transparent; pointer-events:none; }
.cp-cal-cell.today{ box-shadow:inset 0 0 0 1.5px var(--ink); }
.cp-cal-cell em{ font-style:normal; font-size:12px; font-weight:600; }
.cp-cal-moods{ display:flex; gap:1px; min-height:14px; }
.cp-mood-ico{
  width:14px; height:14px; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.cp-mood-ico .fill{ fill:currentColor; stroke:none; }
.cp-mood-ico .blush{ stroke-width:2.2; opacity:.45; }
.cp-mood-picks{
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:4px 0 8px;
}
.cp-mood-pick{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:12px 6px; border:none; border-radius:14px; background:var(--fill);
  font:inherit; font-size:12px; color:var(--ink); cursor:pointer;
}
.cp-mood-pick.on{ box-shadow:inset 0 0 0 1.5px var(--ink); }
.cp-mood-pick .cp-mood-ico{ width:28px; height:28px; }
.cp-anni-row{
  display:flex; align-items:center; gap:8px;
  padding:12px 0; border-bottom:1px solid var(--hairline);
}
.cp-anni-row:last-child{ border-bottom:none; }
.cp-anni-main{ flex:1; min-width:0; }
.cp-anni-main b{ display:block; font-size:14px; }
.cp-anni-main span{ font-size:12px; color:var(--gray-2); }
.msg-coupleinv{
  min-width:200px; padding:0 !important; overflow:hidden;
  background:linear-gradient(160deg, rgba(255,59,48,.08), var(--fill)) !important;
}
.msg-coupleinv.done{ opacity:.72; }
.cpinv-head{ padding:12px 14px 6px; font-size:13px; font-weight:600; }
.cpinv-body{
  display:flex; align-items:center; gap:10px; padding:4px 14px 12px;
  font-size:12.5px; color:var(--gray-1);
}
.cpinv-body svg{ width:22px; height:22px; fill:#FF3B30; flex:0 0 auto; }
.cpinv-foot{
  padding:8px 14px; font-size:11.5px; color:var(--gray-2);
  border-top:1px solid var(--hairline); background:rgba(0,0,0,.02);
}


/* ============ 情侣空间：浪漫粉色系 ============ */
.user-view[data-view="couple"]{
  background:linear-gradient(180deg, #FFF0F3 0%, #FFF5F7 20%, #FAFAFA 100%);
}

.cp-switch-row{
  display:flex; align-items:center; gap:8px;
  padding:12px 20px 8px;
}
.cp-switch-row label{ font-size:13px; color:#9D6B7A; flex:0 0 auto; font-weight:500; }
.cp-switch-row select{
  flex:1; min-width:0; height:40px; border:none; border-radius:20px;
  background:#fff; padding:0 16px; font:inherit; color:#4A3B40;
  box-shadow:0 2px 8px rgba(255,105,135,.08);
}
.cp-switch-amp{
  flex:0 0 auto; font-size:14px; color:#FF6B8A; font-weight:600;
}

/* 顶部情侣展示区 */
.cp-hero{
  margin:8px 20px 16px;
  padding:24px 20px;
  border-radius:24px;
  background:linear-gradient(135deg, #FF6B8A 0%, #FF8FA3 50%, #FFB6C1 100%);
  box-shadow:0 8px 24px rgba(255,107,138,.25);
  position:relative;
  overflow:hidden;
}
.cp-hero::before{
  content:'';
  position:absolute; top:-20px; right:-20px;
  width:120px; height:120px;
  background:rgba(255,255,255,.15);
  border-radius:50%;
}
.cp-hero::after{
  content:'';
  position:absolute; bottom:-30px; left:-10px;
  width:100px; height:100px;
  background:rgba(255,255,255,.1);
  border-radius:50%;
}
.cp-avatars{
  display:flex; align-items:center; justify-content:center;
  gap:16px; margin-bottom:16px;
  position:relative; z-index:1;
}
.cp-avatar{
  width:72px; height:72px; border-radius:50%;
  border:3px solid #fff;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  object-fit:cover;
  background:#fff;
}
.cp-love-ico{
  width:36px; height:36px;
  background:#fff;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  flex-shrink:0;
}
.cp-love-ico svg{
  width:20px; height:20px; fill:#FF4757;
  animation:cpPulse 1.5s ease-in-out infinite;
}
@keyframes cpPulse{
  0%, 100%{ transform:scale(1); }
  50%{ transform:scale(1.15); }
}
.cp-day-count{
  text-align:center;
  position:relative; z-index:1;
}
.cp-day-count b{
  display:block;
  font-size:28px; font-weight:700; color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.15);
  margin-bottom:4px;
}
.cp-day-count span{
  font-size:13px; color:rgba(255,255,255,.9);
}

/* Tab切换 */
.cp-tabs{
  display:flex; gap:4px; padding:0 20px 12px;
}
.cp-tab{
  flex:1; height:38px; border:none; border-radius:20px;
  background:transparent; font:inherit; font-size:14px; color:#9D6B7A; cursor:pointer;
  transition:all .2s;
}
.cp-tab.on{ 
  background:#fff; color:#FF4757; font-weight:600;
  box-shadow:0 2px 8px rgba(255,107,138,.15);
}
.cp-body-wrap{ padding:0 20px 24px; }

/* 空状态 */
.cp-empty{
  text-align:center; padding:48px 28px 32px;
  background:#fff; border-radius:24px;
  box-shadow:0 2px 12px rgba(255,107,138,.08);
}
.cp-empty-ico{
  width:72px; height:72px; margin:0 auto 16px; border-radius:50%;
  background:linear-gradient(135deg, #FFE4E9, #FFD1D9); color:#FF6B8A;
  display:flex; align-items:center; justify-content:center;
}
.cp-empty-ico svg{ width:32px; height:32px; fill:currentColor; }
.cp-empty b{ display:block; font-size:18px; margin-bottom:8px; color:#4A3B40; }
.cp-empty p{ margin:0 0 20px; font-size:14px; color:#9D6B7A; line-height:1.7; }
.cp-empty .save-btn{
  background:linear-gradient(135deg, #FF6B8A, #FF8FA3);
  border:none; border-radius:24px;
  padding:12px 32px;
  color:#fff; font-weight:600;
  box-shadow:0 4px 16px rgba(255,107,138,.3);
}

/* 日记模块 */
.cp-diary-input{
  width:100%; min-height:100px; border:none; border-radius:16px;
  background:#fff; padding:16px; font:inherit; font-size:14px;
  line-height:1.65; color:#4A3B40; resize:vertical; box-sizing:border-box;
  box-shadow:0 2px 8px rgba(255,107,138,.08);
  margin-bottom:12px;
}
.cp-diary-card{
  margin:12px 0; padding:16px; border-radius:16px;
  background:#fff; box-shadow:0 2px 8px rgba(255,107,138,.06);
  border-left:3px solid #FFB6C1;
}
.cp-diary-day{ font-size:12px; color:#FF8FA3; margin-bottom:8px; font-weight:500; }
.cp-diary-row{ display:flex; gap:10px; font-size:13.5px; line-height:1.6; margin-top:6px; color:#4A3B40; }
.cp-diary-row b{ flex:0 0 48px; color:#9D6B7A; font-weight:600; }
.cp-diary-row span{ flex:1; min-width:0; }
.cp-diary-row .muted{ color:#B89A9F; font-style:normal; }
.cp-empty-inline{
  padding:32px 12px; text-align:center; font-size:14px; color:#B89A9F;
}

/* 心情模块 */
.cp-mood-nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:0 0 12px;
}
.cp-mood-nav b{ font-size:16px; color:#4A3B40; }
.cp-cal-dow{
  display:grid; grid-template-columns:repeat(7,1fr); gap:4px;
  margin-bottom:6px; text-align:center; font-size:11px; color:#B89A9F;
}
.cp-cal-grid{
  display:grid; grid-template-columns:repeat(7,1fr); gap:4px;
}
.cp-cal-cell{
  aspect-ratio:1; border:none; border-radius:12px; background:#fff;
  padding:4px 2px; font:inherit; color:#4A3B40; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:2px;
  box-shadow:0 1px 4px rgba(255,107,138,.06);
  transition:all .2s;
}
.cp-cal-cell:active{ transform:scale(0.95); }
.cp-cal-cell.empty{ background:transparent; pointer-events:none; box-shadow:none; }
.cp-cal-cell.today{ 
  box-shadow:inset 0 0 0 2px #FF6B8A;
}
.cp-cal-cell em{ font-style:normal; font-size:12px; font-weight:600; }
.cp-cal-moods{ display:flex; gap:1px; min-height:14px; }
.cp-mood-ico{
  width:14px; height:14px; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.cp-mood-ico .fill{ fill:currentColor; stroke:none; }
.cp-mood-ico .blush{ stroke-width:2.2; opacity:.45; }
.cp-mood-picks{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:12px 0 8px;
}
.cp-mood-pick{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:14px 6px; border:none; border-radius:16px; background:#fff;
  font:inherit; font-size:12px; color:#4A3B40; cursor:pointer;
  box-shadow:0 2px 8px rgba(255,107,138,.08);
  transition:all .2s;
}
.cp-mood-pick.on{ 
  box-shadow:0 0 0 2px #FF6B8A, 0 4px 12px rgba(255,107,138,.2);
  transform:translateY(-2px);
}
.cp-mood-pick .cp-mood-ico{ width:28px; height:28px; }

/* 纪念日模块 */
.cp-anni-list{
  background:#fff; border-radius:16px;
  box-shadow:0 2px 8px rgba(255,107,138,.06);
  padding:8px 16px;
}
.cp-anni-row{
  display:flex; align-items:center; gap:12px;
  padding:14px 0; border-bottom:1px solid #FFF0F3;
}
.cp-anni-row:last-child{ border-bottom:none; }
.cp-anni-heart{
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg, #FFE4E9, #FFD1D9);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.cp-anni-heart svg{
  width:20px; height:20px; fill:#FF6B8A;
}
.cp-anni-main{ flex:1; min-width:0; }
.cp-anni-main b{ display:block; font-size:14px; color:#4A3B40; margin-bottom:2px; }
.cp-anni-main span{ font-size:12px; color:#B89A9F; }

/* 设置模块 */
.cp-set-list{
  background:#fff; border-radius:16px;
  box-shadow:0 2px 8px rgba(255,107,138,.06);
  overflow:hidden;
}

/* 邀请卡片 */
.msg-coupleinv{
  min-width:220px; padding:0 !important; overflow:hidden;
  background:linear-gradient(160deg, #FFF0F3, #FFE4E9) !important;
  border-radius:16px !important;
}
.msg-coupleinv.done{ opacity:.72; }
.cpinv-head{ 
  padding:14px 16px 8px; font-size:14px; font-weight:600; color:#4A3B40;
  display:flex; align-items:center; gap:8px;
}
.cpinv-head svg{ width:18px; height:18px; fill:#FF6B8A; }
.cpinv-body{
  display:flex; align-items:center; gap:10px; padding:4px 16px 12px;
  font-size:13px; color:#9D6B7A;
}
.cpinv-body svg{ width:22px; height:22px; fill:#FF6B8A; flex:0 0 auto; }
.cpinv-foot{
  padding:10px 16px; font-size:12px; color:#B89A9F;
  border-top:1px solid #FFE4E9; background:rgba(255,107,138,.05);
}

/* 深色主题 */
html[data-theme="dark"] .user-view[data-view="couple"]{
  background:linear-gradient(180deg, #2D1B24 0%, #1F1419 20%, #111827 100%);
}
html[data-theme="dark"] .cp-switch-row label{ color:#D4A5B0; }
html[data-theme="dark"] .cp-switch-row select{
  background:#374151; color:#F9FAFB;
}
html[data-theme="dark"] .cp-switch-amp{ color:#FF8FA3; }
html[data-theme="dark"] .cp-tab{ color:#D4A5B0; }
html[data-theme="dark"] .cp-tab.on{ 
  background:#374151; color:#FF8FA3;
}
html[data-theme="dark"] .cp-empty{
  background:#1F2937;
}
html[data-theme="dark"] .cp-empty b{ color:#F9FAFB; }
html[data-theme="dark"] .cp-empty p{ color:#D4A5B0; }
html[data-theme="dark"] .cp-diary-input{
  background:#1F2937; color:#F9FAFB;
}
html[data-theme="dark"] .cp-diary-card{
  background:#1F2937; border-left-color:#FF6B8A;
}
html[data-theme="dark"] .cp-diary-row{ color:#F9FAFB; }
html[data-theme="dark"] .cp-diary-row b{ color:#D4A5B0; }
html[data-theme="dark"] .cp-mood-nav b{ color:#F9FAFB; }
html[data-theme="dark"] .cp-cal-dow{ color:#9D6B7A; }
html[data-theme="dark"] .cp-cal-cell{
  background:#1F2937; color:#F9FAFB;
}
html[data-theme="dark"] .cp-cal-cell.today{
  box-shadow:inset 0 0 0 2px #FF6B8A;
}
html[data-theme="dark"] .cp-mood-pick{
  background:#1F2937; color:#F9FAFB;
}
html[data-theme="dark"] .cp-mood-pick.on{
  box-shadow:0 0 0 2px #FF6B8A, 0 4px 12px rgba(255,107,138,.2);
}
html[data-theme="dark"] .cp-anni-list{
  background:#1F2937;
}
html[data-theme="dark"] .cp-anni-row{
  border-bottom-color:#374151;
}
html[data-theme="dark"] .cp-anni-main b{ color:#F9FAFB; }
html[data-theme="dark"] .cp-anni-main span{ color:#9D6B7A; }
html[data-theme="dark"] .cp-set-list{
  background:#1F2937;
}
