/* 其余：报错弹窗 / 选择列表 / 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, 20px);
}
.msg.mine .msg-bubble{
  background:var(--sk-mine-bg);
  color:var(--sk-mine-ink);
}
.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{
  position:relative; padding:14px 15px 11px; min-width:200px; max-width:262px;
  background:linear-gradient(160deg,#1C1C22,#26262E 60%,#1E2A33);
  color:#F2EFE9; border-radius:18px; overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
.msg-status::before{
  content:''; position:absolute; right:-34px; top:-34px; width:110px; height:110px; border-radius:50%;
  background:radial-gradient(circle,rgba(245,166,35,.4),transparent 70%);
}
.msg-status::after{
  content:''; position:absolute; left:0; right:0; top:0; height:3px;
  background:linear-gradient(90deg,#F5A623,#FF6B6B,#7B8CFF,#F5A623);
}
.status-head{ display:flex; align-items:center; gap:7px; font-size:11px; color:rgba(255,255,255,.72); margin-bottom:8px; letter-spacing:.04em; }
.status-head i{ width:7px; height:7px; border-radius:50%; background:#F5A623; box-shadow:0 0 0 3px rgba(245,166,35,.22); flex:0 0 auto; }
.status-godtag{
  margin-left:auto; font-size:10.5px; padding:2px 8px; border-radius:99px; flex:0 0 auto;
  background:rgba(245,166,35,.16); color:#FFC86B; box-shadow:inset 0 0 0 1px rgba(245,166,35,.4);
}
.status-text{ position:relative; font-size:13.5px; line-height:1.65; color:#FFF; }
.status-foot{ margin-top:9px; padding-top:8px; display:flex; align-items:center; gap:6px; font-size:11px; color:rgba(255,255,255,.6); border-top:1px dashed rgba(255,255,255,.18); }
.status-foot .unread-pill{
  margin-left:auto; font-size:10.5px; padding:2px 8px; border-radius:99px;
  background:#FF5C5C; color:#fff; font-weight:700; flex:0 0 auto;
}
/* char 没看见的消息：气泡时间旁挂「未读」 */
.msg-unread-tag{
  display:inline-block; margin-left:6px; font-size:10px; font-weight:700; color:#FF5C5C;
  background:rgba(255,92,92,.12); padding:1px 6px; border-radius:99px;
  box-shadow:inset 0 0 0 1px rgba(255,92,92,.35); vertical-align:1px;
}

/* ============ 心声记录 ============ */
.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:28px 28px 12px;
  background:transparent; border-radius:0;
  box-shadow:none;
}
.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:transparent;
}
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;
}

/* ============ 情侣空间 hero v3：对齐 + 花体大数字 + 可点情话 ============ */
.cp-hero{position:relative;overflow:hidden;margin:8px 0 10px;padding:14px 14px 10px;border-radius:22px;background:linear-gradient(150deg,#FB4D6D 0%,#FF7D9C 45%,#FFB3C6 78%,#FFD3DE 100%);color:#fff;box-shadow:0 10px 24px rgba(251,77,109,.32),inset 0 1px 0 rgba(255,255,255,.5);text-align:center}
.cp-hero-bg i{position:absolute;border-radius:50%;background:rgba(255,255,255,.16)}
.cp-hero-bg i:nth-child(1){width:170px;height:170px;right:-52px;top:-64px}
.cp-hero-bg i:nth-child(2){width:110px;height:110px;left:-30px;bottom:-42px;background:rgba(255,255,255,.12)}
.cp-hero-bg i:nth-child(3){width:46px;height:46px;left:46%;top:6px;background:rgba(255,255,255,.2)}
.cp-float-h{position:absolute;color:rgba(255,255,255,.5);font-style:normal;font-size:15px;animation:cpFloat 5s ease-in-out infinite}
.cp-float-h.h2{left:16%;top:34%;font-size:11px;animation-delay:-1.6s}
.cp-float-h.h3{right:14%;bottom:30%;font-size:12px;animation-delay:-3s}
.cp-float-h:first-of-type{left:12%;top:12%}
@keyframes cpFloat{0%,100%{transform:translateY(0);opacity:.45}50%{transform:translateY(-9px);opacity:.9}}
.cp-hero-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:2px 10px 0}
.cp-hero-person{display:flex;flex-direction:column;align-items:center;gap:6px;width:88px;font-size:12.5px;font-weight:600;color:#fff;text-shadow:0 1px 6px rgba(180,20,50,.35)}
.cp-hero-person span:last-child{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-av-ring{display:block;padding:3px;border-radius:50%;background:linear-gradient(135deg,#fff,rgba(255,255,255,.55));box-shadow:0 4px 12px rgba(180,20,50,.3);cursor:pointer}
.cp-av-ring img{display:block;width:60px;height:60px;border-radius:50%;object-fit:cover;background:#fff}
.cp-hero-mid{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;flex:1;align-self:center}
.cp-hero-heart{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:52px}
.cp-heart-main{font-size:26px;line-height:1;color:#fff;text-shadow:0 3px 12px rgba(180,20,50,.5);animation:cpPulse 1.6s ease-in-out infinite}
.cp-heart-line{width:36px;height:2px;border-radius:2px;background:rgba(255,255,255,.55)}
.cp-hero-heart em{position:absolute;top:-10px;right:-6px;font-style:normal;font-size:10px;font-weight:700;background:#fff;color:#FB4D6D;border-radius:99px;padding:2px 7px;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.cp-hero-days{position:relative;z-index:1;margin:4px 0 0}
.cp-days-num{display:flex;align-items:baseline;justify-content:center;gap:4px;line-height:1.4}
.cp-days-num span{font-family:inherit;font-style:normal;font-weight:600;font-size:12px;letter-spacing:.02em;color:rgba(255,255,255,.95);text-shadow:0 1px 6px rgba(180,20,50,.3)}
.cp-days-num small{font-family:inherit;font-style:normal;font-size:12px;opacity:.9}
.cp-hero-days>span{display:block;margin-top:4px;font-size:12px;color:rgba(255,255,255,.95);letter-spacing:.02em}
.cp-hero-stats{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.cp-stat{background:rgba(255,255,255,.24);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.35);border-radius:16px;padding:9px 2px 8px}
.cp-stat b{display:block;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.cp-stat span{font-size:10.5px;opacity:.95}
.cp-hero-acts{position:relative;z-index:1;display:flex;gap:8px;margin-top:12px}
.cp-hero-acts button{flex:1;height:38px;border:none;border-radius:99px;background:rgba(255,255,255,.96);color:#E23A5E;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 5px 14px rgba(180,20,50,.28)}
.cp-hero-acts button:active{transform:scale(.95)}
.cp-hero-tip{position:relative;z-index:1;display:block;width:100%;margin:12px 0 0;padding:4px 8px;border:none;background:transparent;color:rgba(255,255,255,.97);font:inherit;font-size:12.5px;letter-spacing:.03em;cursor:pointer;text-shadow:0 1px 6px rgba(180,20,50,.3)}
.cp-hero-tip:active{transform:scale(.97)}
/* 共同回忆：日期边栏 / 纸页 / 可展开原文 */
.cp-hero-sub{position:relative;z-index:1;text-align:center;color:#fff;font-size:11px;line-height:1.6;margin:8px 0 0;opacity:.9;overflow-wrap:anywhere}
.cp-tabs{overflow-x:auto;justify-content:flex-start;gap:4px;scrollbar-width:none}
.cp-tabs::-webkit-scrollbar{display:none}
.cp-tabs .cp-tab{flex:0 0 auto;min-width:50px;padding:0 10px;white-space:nowrap}
.cp-memory-heading{padding:22px 6px 24px;border-bottom:1px solid var(--hairline);margin-bottom:6px}
.cp-memory-heading>small{display:block;font-size:10px;letter-spacing:.18em;color:var(--gray-2)}
.cp-memory-heading h2{font-size:23px;line-height:1.5;font-weight:500;letter-spacing:.06em;margin:12px 0 8px;color:var(--ink)}
.cp-memory-heading p{font-size:11px;line-height:1.7;color:var(--gray-2);margin:0}
.cp-memory-month{font-size:12px;letter-spacing:.13em;font-weight:500;margin:24px 0 12px;color:var(--gray-2)}
.cp-memory-event{position:relative;background:var(--card,var(--bg));border:1px solid var(--hairline);border-radius:15px;margin:0 0 10px;overflow:hidden}
.cp-memory-event summary{list-style:none;display:flex;align-items:flex-start;gap:12px;padding:16px 12px;cursor:pointer;min-height:72px;box-sizing:border-box}
.cp-memory-event summary::-webkit-details-marker{display:none}
.cp-memory-date{flex:0 0 37px;font-size:12px;color:var(--gray-2);font-variant-numeric:tabular-nums;padding-top:21px}
.cp-memory-copy{min-width:0;flex:1;border-left:1px solid var(--hairline);padding-left:13px}
.cp-memory-copy small{display:block;color:var(--gray-2);font-size:9px;letter-spacing:.15em;margin-bottom:6px}
.cp-memory-copy b{display:block;font-size:14px;line-height:1.6;font-weight:500;color:var(--ink)}
.cp-memory-copy>span{display:block;font-size:12px;line-height:1.7;color:var(--gray-2);margin-top:6px;overflow-wrap:anywhere}
.cp-memory-plus{flex:0 0 15px;color:var(--gray-2);font-size:15px;padding-top:17px;transition:transform .15s}
.cp-memory-event[open] .cp-memory-plus{transform:rotate(45deg)}
.cp-memory-detail{border-top:1px solid var(--hairline);padding:16px;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
.cp-memory-home{padding:4px 0 8px}
.cp-memory-home-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;letter-spacing:.08em;color:var(--gray-2);margin:12px 0}
.cp-memory-home .cp-memory-month{margin:12px 0}
.cp-memory-action{border:1px solid var(--hairline);border-radius:99px;background:var(--fill);color:var(--ink);padding:9px 13px;font-size:12px;cursor:pointer;max-width:100%;white-space:normal}
.cp-memory-action:disabled{opacity:.55;cursor:wait}
.cp-memory-home-head .cp-memory-action{padding:7px 10px;font-size:11px;background:transparent}
.cp-memory-response{border-left:2px solid var(--gray-2);background:var(--fill);padding:12px 14px;margin-top:12px;border-radius:0 12px 12px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;color:var(--ink)}
.cp-memory-empty{font-size:12px;line-height:1.8;color:var(--gray-2);padding:20px 8px}
.cp-wish-row{flex-wrap:wrap;align-items:flex-start}
.cp-wish-content{flex:1;min-width:0;overflow-wrap:anywhere}
.cp-wish-content>span{display:block;line-height:1.7}
.cp-wish-content small{display:block;font-size:10px;margin-top:5px;color:var(--gray-2)}
.cp-wish-content p{font-size:12px;line-height:1.7;color:var(--gray-2);margin:6px 0}
.cp-wish-row.done .cp-wish-content>span{text-decoration:line-through;opacity:.55}
.cp-wish-row.done .cp-wish-content small{text-decoration:none;opacity:1}
.cp-wish-discuss{flex:0 0 auto;max-width:100%;font-size:10px;padding:7px 8px}
#cpAutoStatus{overflow-wrap:anywhere}
.npc-linkchip{border:1px solid #ccc;border-radius:12px;padding:4px 10px;margin:3px;font-size:12px}.npc-linkchip.on{background:#34c759;color:#fff;border-color:#34c759}#npcLinkChars{margin-top:10px}#npcLinkChars p{font-size:12px;opacity:.7}

.npcnet-stage{position:relative;overflow:hidden}.npcnet-links{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}.npcnet-canvas{position:absolute;inset:0;z-index:1}.npcnet-node{position:absolute;transform:translate(-50%,-50%);cursor:pointer;z-index:2;text-align:center}.npcnet-node.char,.npcnet-node.user{z-index:3}.npcnet-gen{z-index:10}.npcnet-tip{z-index:10;pointer-events:none}.npcnet-empty{position:absolute;left:0;right:0;top:auto !important;bottom:44px;text-align:center;padding:0 30px;pointer-events:none;z-index:5;line-height:1.8}.npcnet-sheet{z-index:20}.field.npc-genlink{display:block;padding:14px 18px}.npc-genlink-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}.npc-genlink-head span{font-size:14px;font-weight:500;color:var(--gray-1)}.npc-genlink-head em{font-style:normal;font-size:11px;color:var(--gray-2)}.npc-linklist{display:flex;flex-wrap:wrap;gap:8px}.npc-linklist .muted{font-size:12px;color:var(--gray-2);padding:6px 2px}.npc-linkchip{border:1px solid var(--hairline);background:var(--fill);color:var(--ink);border-radius:999px;padding:8px 15px;font-size:13.5px;font-weight:600;cursor:pointer}.npc-linkchip.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}.npc-linkchip.on::before{content:'\2713  '}#npcLinkChars{margin-top:10px;border-top:1px dashed #ddd;padding-top:8px}#npcLinkChars p{font-size:12px;opacity:.7;margin:0 0 6px}#npcLinkView{font-size:12px;margin-top:6px;color:#2c7}

/* 仅气泡背景透明度，文字不跟随变淡；独立边框、发光与阴影。 */
.msg-bubble:not(.independent-card){background:var(--sk-peer-bubble-bg,var(--sk-peer-bg));border:var(--sk-peer-bubble-border,0 solid transparent);box-shadow:var(--sk-peer-bubble-shadow,0 1px 2px rgba(0,0,0,.04));}
.msg.mine .msg-bubble:not(.independent-card){background:var(--sk-mine-bubble-bg,var(--sk-mine-bg));border:var(--sk-mine-bubble-border,0 solid transparent);box-shadow:var(--sk-mine-bubble-shadow,0 1px 2px rgba(0,0,0,.04));}

.cp-days-edit{border:0;background:transparent;color:inherit;opacity:.7;font-size:12px;text-decoration:underline;cursor:pointer;padding:5px 10px}

.off-live-status{font-size:11px;line-height:1.8;opacity:.6;margin-top:12px;padding-top:8px;border-top:1px solid var(--hairline)}

/* Local font compression panel */
.font-tool-panel{border:1px solid var(--hairline);border-radius:18px;background:var(--card);padding:18px;margin:16px 0;color:var(--ink)}
.font-tool-heading small{font-size:9px;letter-spacing:.2em;color:var(--gray-2)}.font-tool-heading h3{font-size:21px;font-weight:500;margin:9px 0}.font-tool-heading p{font-size:12px;line-height:1.8;color:var(--gray-2)}
.font-tool-panel label{display:grid;gap:7px;font-size:12px;line-height:1.7;margin:15px 0}.font-tool-panel input,.font-tool-panel select,.font-tool-panel textarea{max-width:100%;width:100%;box-sizing:border-box;background:var(--fill);color:var(--ink);border:1px solid var(--hairline);border-radius:9px;padding:10px;font:inherit;font-size:13px}.font-tool-panel input[type=file]{font-size:11px}
#fontToolStatus{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--gray-1)}#fontToolSizes{font-size:14px;font-variant-numeric:tabular-nums}#fontToolPreview{font-size:21px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;padding:18px 12px;border-radius:12px;background:var(--fill);margin:12px 0}.font-tool-panel .bg-actions{flex-wrap:wrap;gap:8px}.font-tool-panel [hidden],#fontToolPanel[hidden]{display:none!important}

/* 1.7.14 · Today 日程 */
.view[data-view="schedule"]{--sch-ink:#272829;--sch-muted:#96999b;background:#fff;color:var(--sch-ink)}
.sch-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:25px 26px 20px;flex-shrink:0}
.sch-header-date{font-size:14px;line-height:1.5;letter-spacing:-.3px;margin-bottom:4px;color:#56595b}
.sch-today{display:block;border:0;background:none;padding:0;font:inherit;font-size:36px;line-height:1.15;font-weight:750;letter-spacing:-1.4px;color:var(--sch-ink);cursor:pointer}
.sch-today:focus-visible{outline:2px solid #757575;outline-offset:5px;border-radius:4px}
.sch-identity{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:90px;border:0;background:none;font:inherit;color:var(--sch-muted);font-size:10px;cursor:pointer;padding:0}
.sch-identity img{display:block;width:46px;height:46px;border-radius:50%;object-fit:cover;background:#f3f3f3}.sch-identity span{max-width:85px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.view[data-view="schedule"] .sch-body{padding:0 0 10px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.view[data-view="schedule"] .sch-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:8px 22px 21px;margin:0;overflow:visible}
.view[data-view="schedule"] .sch-day{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;min-width:0;width:100%;height:84px;border:0;border-radius:25px;background:transparent;padding:9px 0;color:#96999b;box-shadow:none}
.view[data-view="schedule"] .sch-day-n{order:-1;font-size:13px;font-weight:500;background:none;color:inherit;width:auto;height:auto;line-height:1.5}.view[data-view="schedule"] .sch-day-w{font-size:11px;color:inherit;font-weight:400}
.view[data-view="schedule"] .sch-day.on{background:#272829;color:#fff;box-shadow:0 10px 22px #0000001c}
.view[data-view="schedule"] .sch-day.on .sch-day-w{color:inherit;opacity:1}.view[data-view="schedule"] .sch-day i{width:5px;height:5px;background:transparent;margin:0}.view[data-view="schedule"] .sch-day.dot i{background:#c4c6c6}.view[data-view="schedule"] .sch-day.on i{background:#fff}
.view[data-view="schedule"] .sch-day-head{padding:0 26px 12px;display:flex;justify-content:space-between;border:0;margin:0}.view[data-view="schedule"] .sch-day-title,.view[data-view="schedule"] .sch-day-count{font-size:10px;font-weight:400;letter-spacing:.2px;color:#9b9d9e}
.view[data-view="schedule"] .sch-list{padding:2px 22px 20px}
.view[data-view="schedule"] .sch-item{gap:13px;min-height:125px;outline:0}
.view[data-view="schedule"] .sch-rail{flex-basis:18px}.view[data-view="schedule"] .sch-rail::before{top:24px;bottom:2px;left:50%;width:1.5px;background:#303233;margin-left:-.75px}
.view[data-view="schedule"] .sch-dot{width:12px;height:12px;margin-top:16px;background:white;box-shadow:inset 0 0 0 1.5px #303233}
.view[data-view="schedule"] .sch-item.now .sch-dot{background:#303233;box-shadow:0 0 0 2px white,0 0 0 3px #303233}
.view[data-view="schedule"] .sch-card{margin:0 0 17px;padding:17px 16px 24px;border-radius:26px;background:#fff;color:#272829;box-shadow:none;min-height:104px}
.view[data-view="schedule"] .sch-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0}
.view[data-view="schedule"] .sch-text{font-size:20px;line-height:1.4;font-weight:600;color:inherit;flex:1;min-width:0;overflow-wrap:anywhere;letter-spacing:-.4px}
.view[data-view="schedule"] .sch-time-main{color:#96999b;font:inherit;font-size:12px;font-weight:400;line-height:1.6;white-space:nowrap;padding-top:3px;text-align:right}.view[data-view="schedule"] .sch-time-main small{display:block;font-size:10px;font-weight:400;opacity:.7}
.view[data-view="schedule"] .sch-item.now .sch-card{background:#272829;color:white;box-shadow:0 12px 24px #00000012;min-height:160px}
.view[data-view="schedule"] .sch-item.now .sch-time-main{color:#e3e4e4}.view[data-view="schedule"] .sch-live{display:block;margin:20px 0 0;font-size:10px;line-height:1.5;color:#ffffffa6;font-weight:400;letter-spacing:1px}
.sch-bottom{position:relative;display:grid;grid-template-columns:1fr 76px 1fr;align-items:center;gap:20px;flex-shrink:0;padding:10px 28px calc(12px + env(safe-area-inset-bottom,0px));background:#ffffffed;border-top:1px solid #f4f4f4;backdrop-filter:blur(14px)}
.sch-bottom button{border:0;font:inherit;cursor:pointer}.sch-bottom .tm-sw{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:5px 0;background:transparent;color:#b5b7b8;font-size:10px;position:relative}.sch-bottom .tm-sw.on{background:transparent;box-shadow:none;color:#272829}.sch-bottom svg{display:block;width:21px;height:21px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.sch-bottom .tm-sw.on:after{content:'';width:4px;height:4px;background:currentColor;border-radius:50%;position:absolute;bottom:-4px}
.sch-bottom .sch-plus{display:grid;place-items:center;justify-self:center;width:54px;height:54px;border-radius:50%;background:#272829;color:white;box-shadow:0 0 0 5px #dedfe0}.sch-bottom .sch-plus svg{width:25px;height:25px;stroke-width:1.5}.sch-bottom .sch-plus:disabled{opacity:.45}
#schActionBackdrop .sch-dialog,#schIdentityBackdrop .sch-dialog{max-width:380px;padding:22px;box-sizing:border-box;color:var(--ink)}
.sch-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sch-dialog-head h2{font-size:18px;margin:0}.sch-dialog-head button{border:0;border-radius:50%;width:30px;height:30px;background:var(--fill);color:var(--ink);font-size:22px}
#schActionContext{font-size:11px;color:var(--gray-2);margin:10px 0 20px}.sch-action-choices{display:grid;gap:10px}.sch-action-choices>button{font:inherit;font-size:14px;padding:15px;border:1px solid var(--hairline);background:var(--bg);color:var(--ink);border-radius:14px}.sch-action-choices>button:first-child{background:var(--ink);color:var(--on-ink)}
#schExtraTools{margin-top:20px}#schExtraTools summary{font-size:11px;color:var(--gray-2);cursor:pointer}#schExtraTools .sch-tools{margin:12px 0 0;padding:0;border:0;background:none}#schCharSel,#schExtraTools .sch-gen-row{display:none}
#schAdd{margin:8px 0;background:var(--fill)}#schIdentityOptions h3{font-size:11px;color:var(--gray-2);margin:20px 0 8px}.sch-person{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:0;border-radius:14px;font:inherit;font-size:13px;background:transparent;color:var(--ink);text-align:left}.sch-person.on{background:var(--fill)}.sch-person img{width:38px;height:38px;object-fit:cover;border-radius:50%}.sch-person span{flex:1;min-width:0;overflow-wrap:anywhere}.sch-picker-empty{font-size:12px;color:var(--gray-2)}
@media(max-width:360px){.sch-header{padding:20px}.view[data-view="schedule"] .sch-list{padding-left:16px;padding-right:16px}.view[data-view="schedule"] .sch-item{gap:8px}.view[data-view="schedule"] .sch-card{padding-left:12px;padding-right:12px}.view[data-view="schedule"] .sch-text{font-size:18px}.sch-bottom{gap:12px;padding-left:18px;padding-right:18px}}
#schExtraTools .sch-gen-row:has(#schExportCal){display:flex}
.view[data-view="schedule"] [hidden]{display:none!important}

/* 1.7.17 · 日历安全区与单列日程 */
.view[data-view="schedule"]{padding:0;position:relative}
.view[data-view="schedule"] .sch-header{padding-top:max(40px,calc(env(safe-area-inset-top,0px) + 14px));padding-bottom:20px}
.view[data-view="schedule"] .sch-body{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
.view[data-view="schedule"] .sch-item{display:flex;flex-wrap:nowrap}
.view[data-view="schedule"] .sch-card{flex:1 1 0;min-width:0}
.view[data-view="schedule"] .sch-bottom{position:absolute;left:0;right:0;bottom:0;z-index:5;gap:12px;padding:10px 20px calc(6px + env(safe-area-inset-bottom,0px));border-top:0}
.view[data-view="schedule"] .sch-bottom .tm-sw{font-size:12px;line-height:1.3;font-weight:500;letter-spacing:0;white-space:nowrap;min-height:48px;gap:7px}
.view[data-view="schedule"] .sch-bottom .tm-sw svg{width:23px;height:23px;flex-shrink:0}
.view[data-view="schedule"] .sch-bottom .tm-sw span{font-size:inherit;line-height:inherit}
