/* ===== 艾索达 · 黑金精修层（20260904 老板定调：学 WorkBuddy 干净劲儿，色用金橙） =====
   只做手术级覆盖：欢迎页 display 标题/卡片/下载横幅/抽屉项。令牌层(tokens.css)已全局换肤，本层管精修。 */

/* 欢迎大标题：WB 级 display（32/700 家族） */
.assist-wtitle{font-size:clamp(26px,7.2vw,32px)!important;font-weight:800!important;letter-spacing:.5px;line-height:1.25!important;white-space:normal!important}
.assist-wsub{font-size:12.5px!important;color:var(--sub)!important;line-height:1.7!important;max-width:400px!important;margin:10px auto 0!important}

/* 吉祥物微收，给标题让层级 */
.assist-logo{width:132px!important;height:132px!important}
.assist-logo .logo-img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 22px rgba(28,26,20,.10))}

/* 入口卡：白卡大圆角+软影；选中=金描边+淡金底 */
.assist-cards{max-width:340px!important;gap:12px!important;margin-top:16px!important}
.assist-card{
  background:var(--surface)!important;border:1.5px solid var(--border)!important;
  border-radius:18px!important;height:52px!important;box-shadow:var(--sh-card)!important;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.assist-card:active{transform:scale(.97)}
.assist-card.active{border-color:#BE8A2E!important;background:#FAF2E0!important;box-shadow:0 6px 18px rgba(223,174,75,.16)!important}

/* 桌面端下载横幅：从色块 → 白卡金钮 */
.assist-dl-banner{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:16px!important;box-shadow:var(--sh-card)!important}
.assist-dl-banner .adb-act{background:#241D14!important;color:#fff!important;border-radius:9999px!important;font-weight:600!important}

/* 抽屉菜单项：圆角+选中金晕 */
.assist-menu-item{border-radius:14px!important;transition:background .15s ease}
.assist-menu-item:active{background:var(--accent-bg-light)}

/* 顶栏浮标：白圆+软影（学 WB 悬浮圆钮） */
.assist-menu-float{box-shadow:var(--sh-card)!important}

/* 全局按钮字体微调：中文 600 更挺 */
button{font-weight:500}

/* ── 0904 二轮：登录/注册模态（截图实诊）──────────────── */
/* 大 CTA：纯黑胶囊（WB 招牌），金色退出大面 */
.da-submit{background:#241D14!important;color:#fff!important;border-radius:9999px!important;height:50px!important;font-size:16px!important;font-weight:700!important;letter-spacing:2px;box-shadow:0 8px 22px rgba(30,24,15,.22)!important}
.da-submit:active{transform:scale(.98)}
/* 输入框：中性灰边 + 黑聚焦（去掉土金描边） */
.da-inp{border-color:var(--border)!important;border-radius:14px!important;background:#FBFAF7!important;transition:border-color .15s ease,box-shadow .15s ease}
.da-inp:focus{border-color:#241D14!important;box-shadow:0 0 0 3px rgba(23,24,26,.06)!important}
/* 标题提级 + 副题灰 */
.da-hero-title{font-size:22px!important;font-weight:800!important;letter-spacing:.3px}
.da-hero-sub{font-size:13px!important;color:var(--sub)!important}
/* 链接组：墨色为主，注册动作用金（小面积点缀） */
.da-links .da-link,.da-links .da-switch{color:#3A3B40!important;font-weight:600!important}
.da-links .da-switch{color:#B8873B!important}
/* 勾选框：黑（去浏览器默认蓝） */
.da-remember input[type=checkbox]{accent-color:#17181A;width:17px;height:17px}
/* 头像/图标阴影统一 */
.da-hero-avatar img{border-radius:14px;box-shadow:0 10px 26px rgba(30,24,15,.20)}

/* ── 0904 三轮：首页实诊（吉祥物撞色/副题卡/选中卡对比度）──────── */
/* 吉祥物暖色化：蓝机器人 → 暖灰金调（滤镜，原文件不动） */
.assist-logo .logo-img,.uc-avatar img{filter:grayscale(1) brightness(1.07) sepia(.30) saturate(.72) hue-rotate(-8deg)}
.assist-logo{width:118px!important;height:118px!important}
/* 副题去卡：直接落在纸面上 */
.assist-wsub{background:transparent!important;border:none!important;box-shadow:none!important;padding:0 12px!important}
/* 入口卡选中态：浅金底必须配深字（修白字看不见） */
.assist-card.active{color:#17181A!important}
.assist-card .ac-name,.assist-card .ac-ico{color:inherit}
/* 云端徽标：金底深字（原绿边低对比） */
.assist-conn{background:var(--accent-bg-light)!important;color:#8A6520!important;border:1px solid transparent!important}
/* 我的页：土金块 → 白卡淡金晕；头像圈收柔；登录钮黑胶囊 */
.uc-hero{background:linear-gradient(160deg,#FFFFFF,#FBF6EC)!important;border:1px solid var(--border)!important}
.uc-avatar{background:#F3E9D2!important;color:#8A6520!important;border:1px solid #E7D9B8!important}
.uc-login-btn{background:#241D14!important;color:#fff!important;border-radius:9999px!important;font-weight:700!important;box-shadow:0 8px 22px rgba(30,24,15,.20)!important}
.uc-login-btn:active{transform:scale(.98)}
/* 扫码框扫描线：蓝 → 金 */
.sc-line{background:linear-gradient(90deg,transparent,rgba(190,138,46,.95),transparent)!important;box-shadow:0 0 8px rgba(190,138,46,.75)!important}

/* 真凶补刀：host.css 的 -webkit-text-fill-color 白字压过 color → 同 ID 级覆写 */
#assistWelcome .assist-card.active{
  background:#FBF6EC!important;border:1.5px solid #BE8A2E!important;
  color:#17181A!important;-webkit-text-fill-color:#17181A!important;
  box-shadow:0 6px 18px rgba(223,174,75,.16)!important;font-weight:700;
}

/* ── 0904 四轮：工具页三连金 slab → 主次分明 ──────── */
.asd-stub-actions .ds-stub-btn{background:var(--surface)!important;color:#17181A!important;-webkit-text-fill-color:#17181A!important;border:1.5px solid var(--border)!important;border-radius:18px!important;height:54px!important;font-weight:600!important;box-shadow:var(--sh-card)!important}
.asd-stub-actions .ds-stub-btn:nth-child(1){background:#241D14!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#241D14!important;box-shadow:0 8px 22px rgba(30,24,15,.22)!important}
.asd-stub-actions .ds-stub-btn:nth-child(2){background:linear-gradient(135deg,#D4A24E,#8F6527)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:none!important;box-shadow:0 8px 22px rgba(143,101,39,.38)!important}

/* 头像圈整体暖化（emoji 蓝机器人 → 暖灰金） */
.uc-avatar,.uc-avatar img,.uc-avatar span{filter:grayscale(1) brightness(1.08) sepia(.28) saturate(.68) hue-rotate(-8deg)}

/* ── 0904 五轮：「我的」页余额卡 + 积分明细弹层（钱的门面） ─────── */
.uc-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:18px!important;padding:18px 16px!important;box-shadow:var(--sh-card)!important}
.uc-bal-num{display:flex;align-items:baseline;gap:6px}
.uc-bal-num b{font-size:34px;font-weight:800;color:#BE8A2E;letter-spacing:-.5px;line-height:1}
.uc-bal-num span{font-size:13px;color:var(--sub);font-weight:600}
.uc-bal-sub{font-size:11.5px;color:var(--sub);margin-top:6px}
.uc-member-tag{display:inline-block;background:var(--accent-bg-light);color:#7A5A1E;font-weight:700;border-radius:8px;padding:2px 8px;font-size:11.5px}
.uc-bal-btns{display:flex;gap:8px;flex-shrink:0}
.uc-bal-charge{background:#241D14!important;color:#fff!important;border:none!important;border-radius:9999px!important;height:38px;padding:0 20px;font-size:14px;font-weight:700;box-shadow:0 6px 16px rgba(30,24,15,.18)}
.uc-bal-detail{background:var(--surface)!important;color:#17181A!important;border:1.5px solid var(--border)!important;border-radius:9999px!important;height:38px;padding:0 16px;font-size:14px;font-weight:600}
.uc-bal-detail:active,.uc-bal-charge:active{transform:scale(.96)}
/* 明细弹层 */
.ucd-mask{position:fixed;inset:0;background:rgba(20,18,12,.45);z-index:9999;display:flex;align-items:flex-end;animation:ucdFade .18s ease}
.ucd-sheet{background:#F6F5F1;width:100%;max-height:72vh;border-radius:24px 24px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;animation:ucdUp .22s ease}
@keyframes ucdFade{from{opacity:0}} @keyframes ucdUp{from{transform:translateY(40px)}}
.ucd-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px}
.ucd-head b{font-size:17px}
.ucd-close{background:#EFEEE9;border:none;border-radius:50%;width:30px;height:30px;font-size:18px;color:var(--sub)}
.ucd-list{overflow-y:auto;-webkit-overflow-scrolling:touch}
.ucd-row{display:flex;align-items:center;justify-content:space-between;background:var(--surface);border-radius:14px;padding:12px 14px;margin-bottom:8px}
.ucd-desc{font-size:14px;font-weight:600;color:var(--text);max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ucd-time{font-size:11.5px;color:var(--sub);margin-top:3px}
.ucd-r{text-align:right;flex-shrink:0}
.ucd-delta{font-size:16px;font-weight:800;color:#17181A}
.ucd-delta.plus{color:#BE8A2E}
.ucd-bal{font-size:11.5px;color:var(--sub);margin-top:3px}
.ucd-empty{text-align:center;color:var(--sub);font-size:13.5px;padding:30px 0}

/* ── 0904 夜间三：个人中心去留白·大气 + 抽屉历史对话 ─────────── */
#screen-profile .asd-profile, .uc-hero, .uc-balance, .uc-checkin, .uc-menu, .uc-login-prompt {
  margin-left: 6px !important; margin-right: 6px !important; border-radius: 18px !important;
}
/* 0904 深夜（老板令：留白太大）：容器横 padding 一并清零 → 左右总留白 14+10=24px → 6px */
#screen-profile .profile-body{padding-left:0 !important;padding-right:0 !important}
#screen-profile .asd-profile { margin-top: 10px !important; margin-bottom: 10px !important; }
#screen-profile .back-btn, #screen-profile .profile-menu-btn { display: none !important; }   /* 老板令：顶栏返回+折叠=旧页残留 → 去掉，微信式沉浸（返回=浮标） */
.profile-float-back {
  position: fixed; top: 14px; left: 12px; z-index: 60; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); color: var(--text);
  font-size: 18px; box-shadow: 0 2px 10px rgba(28,26,20,.08); display: flex; align-items: center; justify-content: center;
}
.ah-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ah-t { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-d { font-size: 11.5px; color: var(--sub); flex-shrink: 0; }
.ah-empty, .ah-more { font-size: 12.5px; color: var(--sub); padding: 6px 16px 10px; text-align: left; }
.ahd-mask { position: fixed; inset: 0; background: rgba(20,18,12,.45); z-index: 9999; display: flex; align-items: flex-end; animation: ucdFade .18s ease; }
.ahd-sheet { background: #F6F5F1; width: 100%; max-height: 74vh; border-radius: 24px 24px 0 0; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; animation: ucdUp .22s ease; }
.ahd-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.ahd-head b { font-size: 17px; }
.ahd-list { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ahd-row { display: flex; margin-bottom: 10px; }
.ahd-row.me { justify-content: flex-end; }
.ahd-b { max-width: 82%; background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: var(--text); word-break: break-word; }
.ahd-row.me .ahd-b { background: var(--bubble-user); color: #fff; }

/* ── 0904 夜间四：创作向导 + 协议文档 ─────────── */
.wiz-panel { position: fixed; left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 500;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px;
  box-shadow: 0 12px 40px rgba(28,26,20,.18); animation: wizUp .22s ease; }
@keyframes wizUp { from { transform: translateY(24px); opacity: 0; } }
.wiz-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wiz-head b { font-size: 16px; flex-shrink: 0; }
.wiz-dots { flex: 1; display: flex; gap: 5px; justify-content: center; }
.wiz-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.wiz-dot.on { background: #BE8A2E; width: 16px; border-radius: 3px; }
.wiz-dot.done { background: #D4A24E; }
.wiz-x { background: #EFEEE9; border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 18px; color: var(--sub); flex-shrink: 0; }
.wiz-q { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.wiz-opts, .wiz-insp { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.wiz-chip { background: var(--accent-bg-light); color: var(--text); border: 1.5px solid var(--accent-border);
  border-radius: 9999px; padding: 9px 16px; font-size: 14px; font-weight: 600; }
.wiz-chip:active { transform: scale(.95); background: #FAF2E0; }
.wiz-insp { margin-top: 4px; }
.wiz-insp-c { font-size: 12.5px; padding: 6px 12px; color: var(--sub); border-color: var(--border); background: var(--bg); }
.wiz-inrow { display: flex; gap: 8px; margin-top: 10px; }
.wiz-in { flex: 1; height: 44px; border: 1.5px solid var(--border); border-radius: 14px; padding: 0 14px; font-size: 14px; background: var(--bg); color: var(--text); }
.wiz-in:focus { outline: none; border-color: #241D14; }
.wiz-go { height: 44px; padding: 0 18px; border-radius: 9999px; background: #241D14; color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.doc-sheet { max-height: 80vh; }
.doc-list { padding: 0 4px; }
.doc-p { font-size: 13.5px; line-height: 1.7; color: var(--text); margin-bottom: 10px; }
.doc-h { font-weight: 800; font-size: 14.5px; margin-top: 6px; }

/* ── 0904 夜间五：输入条瘦身（键盘顶高对齐群聊）─────────── */
#screen-assist .assist-compose-open { padding-top: 6px !important; padding-bottom: 6px !important; }
#screen-assist .assist-compose-open textarea { max-height: 96px !important; }
#screen-assist .aco-row { margin-top: 4px !important; }
body.kb-open #screen-assist .assist-compose-open { padding-top: 4px !important; padding-bottom: 4px !important; }
body.kb-open #screen-assist .aco-row { margin-top: 2px !important; }
body.kb-open #screen-assist .assist-body-wrap { bottom: 0 !important; }

/* ── 0904 夜间⑨：iOS 底部被顶高修正（iPhone 安全区=34px 再叠 14px 留白≈48px，华为安全区≈0 正常）── */
#screen-assist .assist-input { padding-bottom: max(10px, calc(env(safe-area-inset-bottom) * 0.45)) !important; }   /* 0913老板令:iPhone底部太高,安全区减半 */
#screen-assist .assist-ai-note { padding-top: 6px; padding-bottom: 0; }
body.kb-open #screen-assist .assist-input { padding-bottom: 8px !important; }   /* 键盘弹出：键盘已替代 home 条区域，不再叠加安全区 */
body.kb-open #screen-assist .assist-ai-note { display: none; }                  /* 打字时免责行隐藏，输入条贴键盘（微信式） */

/* ── 0904 深夜：欢迎页默认云端徽标 + 一句话导航提示 ── */
.assist-card .ac-def{font-size:10px;font-style:normal;color:#fff;background:#c8a24b;border-radius:8px;padding:1px 6px;margin-left:5px;vertical-align:1px}
.assist-hint{margin:10px 14px 0;font-size:12px;line-height:1.7;color:var(--muted,#8a8a8a);text-align:center}


/* ── 0904 深夜：抽屉去重后顶部留白 + 个人中心语音箭头 ── */
.assist-panel .assist-menu-divider:first-child{margin-top:14px}
.ucd-sub{font-size:12px;color:#999;margin-left:8px;font-weight:400}


/* ── 0904 深夜：插件广场价格/入口/即将上线 ── */
.pg-card-price{display:inline-block;margin-top:6px;font-size:12px;color:#b8860b;background:rgba(184,134,11,.1);border-radius:8px;padding:2px 8px}
.pg-go{display:block;width:100%;margin:10px 0 14px;padding:12px;border:0;border-radius:12px;background:#2f6f4f;color:#fff;font-size:15px;font-weight:600}
.pg-soon{margin:10px 0 14px;padding:12px;border-radius:12px;background:#f0ede6;color:#8a8577;font-size:13px;text-align:center}


/* ── 0904 深夜：连接电脑配对版 ── */
.pc-pair-un{margin:10px auto 0;display:block;background:none;border:none;color:#b0713a;font-size:13px;text-decoration:underline}


/* ════════ 0904 深夜：暗色模式全面修缮（老板令） ════════
   病：①暗色 --surface=#191919 与 --bg 同色 → 卡片贴黑底零衬托
     ②theme-gold 的 !important 亮色（白 hero 卡/橙签到卡）无暗色对应
     ③明细按钮黑字压黑底隐形。修：提层次 + 逐个补暗色档。 */

/* ① token 提层次：面比底亮一档、字更亮 */
/* 0914老板令:亮色(金)档补全token——--bg从未定义致输入条等var(--bg)件恒用暗色 */
:root:not([data-theme="dark"]){
  --bg:#F5F3EE; --surface:#FFFFFF; --card:#FFFFFF; --bar-bg:#EFECE4;
  --border:#E2DED4; --text:#26231D; --sub:#8A8577;
}
:root[data-theme="dark"]{
  --bg:#141417; --surface:#24242B; --card:#24242B; --bar-bg:#2C2C34;
  --border:#3C3C45; --text:#EDEDF2; --sub:#9EA0B0;
}
[data-theme="dark"] body, [data-theme="dark"] #app{background:#141417}

/* ② 白 hero 卡 → 暗金渐变；头像圈同步 */
[data-theme="dark"] .uc-hero{background:linear-gradient(160deg,#272730,#2C2A22)!important;border:1px solid #454032!important}
[data-theme="dark"] .uc-avatar{background:#3B3423!important;color:#E7C87E!important;border:1px solid #4C4530!important}
[data-theme="dark"] .uc-name, [data-theme="dark"] .uc-hero b{color:#F2F2F6!important;-webkit-text-fill-color:#F2F2F6!important}
[data-theme="dark"] .uc-sub, [data-theme="dark"] .uc-hero .uc-id{color:#9EA0B0!important}

/* 明细按钮：黑字黑底 → 亮字暗底（隐形修复） */
[data-theme="dark"] .uc-bal-detail,
[data-theme="dark"] .ucd-close{background:#2C2C34!important;color:#EDEDF2!important;-webkit-text-fill-color:#EDEDF2!important;border:1.5px solid #3C3C45!important}

/* 加油站：刺眼橙黄 → 暗金陪衬 */
[data-theme="dark"] .uc-checkin{background:linear-gradient(135deg,#2A2721,#332D22)!important;border:1px solid #4C4330!important}
[data-theme="dark"] .uc-checkin, [data-theme="dark"] .uc-checkin b, [data-theme="dark"] .uc-checkin span{color:#EAD9AE}
[data-theme="dark"] .uc-checkin small, [data-theme="dark"] .uc-checkin .uc-checkin-sub{color:#A99E80!important}

/* 弹层 sheets：米白 → 暗面板（明细/语音设置/主题外观） */
[data-theme="dark"] .ucd-sheet, [data-theme="dark"] .ahd-sheet{background:#1E1E24}
[data-theme="dark"] .ucd-row{background:#26262D}
[data-theme="dark"] .ucd-desc, [data-theme="dark"] .ucd-delta{color:#EDEDF2!important}
[data-theme="dark"] .ucd-empty, [data-theme="dark"] .ucd-time, [data-theme="dark"] .ucd-bal{color:#9EA0B0!important}

/* 浮标返回键：白圆 → 暗圆 */
[data-theme="dark"] .profile-float-back{background:rgba(44,44,52,.94)!important;border:1px solid #3C3C45!important;color:#EDEDF2!important}

/* 登录前提示卡 / 输入框兜底 */
[data-theme="dark"] .uc-login-prompt{background:#24242B!important;border-color:#3C3C45!important}
[data-theme="dark"] .da-inp, [data-theme="dark"] .da-hero-title{color:#EDEDF2}
[data-theme="dark"] .da-hero-sub{color:#9EA0B0}

/* 抽屉用户条/积分行微调（贴亮字） */
[data-theme="dark"] .assist-points .db-sub{color:#C9CAd8}


/* ── 0904 深夜：下载横幅暗色档（老板令：绿字黑底看不见）── */
[data-theme="dark"] .assist-dl-banner{background:linear-gradient(90deg,#1E3A32,#24392E)!important;border:1px solid #2F5A48!important;box-shadow:none!important}
[data-theme="dark"] .assist-dl-banner .adb-txt{color:#8FE3C3!important}
[data-theme="dark"] .assist-dl-banner .adb-txt b{color:#C4F2DE!important}
[data-theme="dark"] .assist-dl-banner .adb-close{color:#8FE3C3!important;opacity:.8!important}
[data-theme="dark"] .assist-dl-banner .adb-act{background:#EAF7F0!important;color:#0B5A42!important}


/* ── 0904 深夜：个人中心右上角关闭叉（取代左上浮标返回键） ── */
.profile-float-close {
  position: fixed; top: 14px; right: 14px; z-index: 60; width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 17px; box-shadow: 0 2px 10px rgba(28,26,20,.10); display: flex; align-items: center; justify-content: center;
}
.profile-float-close:active { transform: scale(.94); }


/* ── 0904 深夜：个人中心页签式页头（老板令：叉应随页面标签关闭） ── */
.pf-head{
  position:fixed; top:0; left:0; right:0; z-index:60;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  display:flex; align-items:center; justify-content:space-between;
  background:var(--bg); border-bottom:1px solid var(--border);
}
.pf-head-t{font-size:16px;font-weight:700;color:var(--text)}
.pf-head-x{
  width:30px;height:30px;border:none;border-radius:50%;background:var(--bar-bg);
  color:var(--text);font-size:15px;line-height:1;display:flex;align-items:center;justify-content:center;
}
.pf-head-x:active{transform:scale(.92)}
#screen-profile .profile-body{padding-top:calc(env(safe-area-inset-top, 0px) + 52px) !important}


/* ── 0904 深夜：卡片上下间距 32px→8px（老板令：太稀松） ──
   病：卡 margin 上 10 + 下 10 + 容器 gap 12 = 32px。修：卡竖向 margin 清零，容器 gap 统一 8px。 */
#screen-profile .asd-profile, #screen-profile .uc-hero, #screen-profile .uc-balance,
#screen-profile .uc-checkin, #screen-profile .uc-menu, #screen-profile .uc-login-prompt {
  margin-top: 0 !important; margin-bottom: 0 !important;
}
#screen-profile .profile-body{row-gap:8px !important;gap:8px !important}


/* ── 0904 深夜：设置中心头像卡一体化（上行+数据行+醒目升级） ── */
.uc-hero-top{display:flex;align-items:center;gap:14px}
.uhd-up{margin-left:auto;flex-shrink:0;border:none;border-radius:9999px;padding:9px 18px;
  background:linear-gradient(135deg,#D4A24E,#8F6527);color:#fff;font-size:14px;font-weight:700;
  box-shadow:0 6px 16px rgba(143,101,39,.35)}
.uhd-up:active{transform:scale(.95)}
.uc-hero-data{margin-top:14px;padding-top:12px;border-top:1px dashed var(--border);
  display:flex;align-items:center;justify-content:space-between;gap:10px}
.uhd-num b{font-size:30px;font-weight:800;color:#BE8A2E;letter-spacing:-.5px;line-height:1}
.uhd-num span{font-size:13px;color:var(--sub);font-weight:600;margin-left:4px}
.uhd-num i{display:block;font-style:normal;font-size:11.5px;color:var(--sub);margin-top:5px}
.uc-hero .uc-bal-btns{flex-shrink:0}


/* ── 头像卡三行布局二改（防挤压：上行只头像+昵称；数据行=积分+升级；第三行=充值/明细半宽） ── */
.uc-hero .uc-bal-btns{display:flex;gap:8px;margin-top:10px}
.uc-hero .uc-bal-btns .uc-bal-charge,
.uc-hero .uc-bal-btns .uc-bal-detail{flex:1;height:38px;padding:0;border-radius:9999px}
.uc-hero-data .uhd-num{min-width:0}
.uc-hero-data .uhd-num i{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}


/* ── 根因修：.uc-hero 基础是 flex 横排 → 三行结构被横摆溢出；改纵向块 ── */
#screen-profile .uc-hero{display:block !important}
#screen-profile .uc-hero-top{display:flex}


/* ═══ 0904 深夜：设置中心页头 = 商业弹层 com-head 同规格（老板令：全站一致） ═══
   规格：标题 17px/700 左 · ✕ 44×44 透明 18px 灰 · 底部分隔线 · 同内边距 */
.pf-head{padding:calc(env(safe-area-inset-top, 0px) + 6px) 8px 0 16px !important;background:var(--bg)}
.pf-head-t{font-size:17px !important;font-weight:700 !important;color:var(--text) !important}
.pf-head-x{width:44px !important;height:44px !important;border-radius:0 !important;background:transparent !important;
  border:none !important;color:var(--sub) !important;font-size:18px !important;font-weight:400 !important;
  display:flex !important;align-items:center !important;justify-content:center !important;box-shadow:none !important}
.pf-head-x:active{opacity:.6;transform:none}

/* ═══ 头像卡排版重修：头像 72、文字全左对齐、数字/按钮对齐栅格 ═══ */
#screen-profile .uc-hero{text-align:left !important;padding:18px 16px !important}
#screen-profile .uc-avatar{width:72px !important;height:72px !important;font-size:34px !important;flex-shrink:0}
#screen-profile .uc-hero-meta{flex:1;min-width:0;text-align:left !important;margin-left:14px}
#screen-profile .uc-name{font-size:19px !important;font-weight:800 !important;line-height:1.25 !important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#screen-profile .uc-id{font-size:12px !important;color:var(--sub) !important;margin-top:2px !important}
#screen-profile .uc-hero-sub{margin-top:6px !important}
#screen-profile .uc-hero-data{margin-top:14px !important;padding-top:12px !important}
#screen-profile .uhd-num b{font-size:26px !important}
#screen-profile .uhd-num i{max-width:none !important;margin-top:4px !important}
#screen-profile .uhd-up{height:40px;padding:0 20px !important;font-size:14px}
#screen-profile .uc-hero .uc-bal-btns{margin-top:12px !important}
#screen-profile .uc-hero .uc-bal-charge,
#screen-profile .uc-hero .uc-bal-detail{flex:1 !important;height:40px !important;font-size:14px !important}


/* ── 0904 深夜：抽屉底部用户条锁死（老板令：不随侧栏滚动）── 0914越界重做:sticky兜底失守改真flex钉底(滚动区=.assist-panel-scroll) */
.assist-panel > .assist-bottom{
  position:relative;flex-shrink:0;z-index:5;
  margin:6px 0 0;padding:10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background:var(--card);border-top:1px solid var(--border);
}
.assist-panel-scroll > .assist-menu-divider,
.assist-panel-scroll > .assist-menu-list,
.assist-panel-scroll > #assistHistList,
.assist-panel-scroll > #assistCapList{flex-shrink:0}

/* ── 历史折叠开关 ── */
.ah-toggle{display:block;width:100%;text-align:left;background:none;border:none;padding:8px 16px 6px;
  color:var(--accent,#8A6520);font-size:12.5px;font-weight:600}
.ah-wrap{margin:0}


/* ── 0904 深夜：顶栏自动播报喇叭（开=金 有声波 / 关=灰 打叉） ── */
.assist-speak-tg{
  width:42px;height:42px;border:none;border-radius:50%;background:transparent;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;
}
.assist-speak-tg svg{width:26px;height:26px}   /* 0905 晨(老板: 常用件加大): 顶栏播报喇叭 24→26 视觉 */
.assist-speak-tg.spk-on{color:#BE8A2E}
.assist-speak-tg.spk-on:active{background:rgba(190,138,46,.12)}
.assist-speak-tg.spk-off{color:#B9BAC4}
.assist-speak-tg.spk-off svg{opacity:.75}
.assist-speak-tg.spk-off{position:relative}


/* ── 0904 深夜：顶栏右侧三钮紧凑化（喇叭/新对话/更多）──
   原 44px 宽 + gap6 → 图标间视觉空隙 ~28px；改 36px 宽 + gap2 → 图标间 ~14px，仍留 44px 高触达 */
.assist-topbar{gap:4px !important}
.assist-speak-tg, .assist-new-topic, .assist-more{width:40px !important}


/* ── 0904 深夜：按住说话防「掉出来」——浏览器永不接管手势 ── */
#assistVoiceBar, #assistVoiceBar *, .assist-compose, .aco-mic{
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}


/* ═══ 0905 晨：设置中心字号 iOS 化——加大加粗（老板令：太细） ═══ */
#screen-profile .uc-item{font-size:16px !important;font-weight:600 !important;color:var(--text) !important}
#screen-profile .uc-item .uc-arrow{font-size:14px !important;font-weight:600 !important}
#screen-profile .uc-name{font-size:21px !important;font-weight:800 !important}
#screen-profile .uc-id{font-size:13px !important;font-weight:500 !important}
#screen-profile .ucd-row{font-size:15.5px !important;font-weight:600 !important;color:var(--text) !important}
#screen-profile .ahd-sheet .ucd-row{font-size:15.5px !important;font-weight:600 !important}
#screen-profile .ahd-head b{font-size:17px !important;font-weight:800 !important}
#screen-profile .uc-bal-btns .uc-bal-charge,
#screen-profile .uc-bal-btns .uc-bal-detail{font-size:15px !important;font-weight:700 !important}
#screen-profile .uhd-up{font-size:15px !important;font-weight:800 !important}
#screen-profile .uhd-num span{font-size:14px !important;font-weight:700 !important}
#screen-profile .uhd-num i{font-size:12px !important;font-weight:500 !important}
#screen-profile .uc-tag{font-size:12px !important;font-weight:600 !important}
#screen-profile .ah-empty,#screen-profile .ah-toggle{font-size:13.5px !important;font-weight:600 !important}


/* ═══ 0905 晨：语音设置全屏页（老板令：小弹层底部被吃掉/划不动） ═══ */
#voiceMask{background:var(--bg);align-items:stretch;overflow-y:auto;-webkit-overflow-scrolling:touch;display:block}
#voiceMask .ahd-sheet{max-height:none;min-height:100%;border-radius:0;padding:calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 40px);overflow:visible;animation:ucdFade .18s ease}
#voiceMask .ahd-head{position:sticky;top:0;z-index:5;background:var(--bg);padding:6px 0 10px;margin:0 0 4px;border-bottom:1px solid var(--border)}
#voiceMask .ucd-row select{font-size:14px !important;font-weight:600 !important;max-width:150px}


/* ═══ 0905 晨：提示音总开关胶囊滑块（iOS 式） ═══ */
.tone-sw{width:40px;height:22px;border-radius:11px;background:#D8D5CC;position:relative;transition:background .18s ease;flex:0 0 auto;cursor:pointer}
.tone-sw i{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#FFF;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s ease}
.tone-sw.on{background:var(--accent,#C99A3C)}
.tone-sw.on i{transform:translateX(18px)}
[data-theme="dark"] .tone-sw{background:#3C3C45}

/* ═══════ 0913 定稿(11层补丁合并为一套系统·依据 记忆/15-老板UI排版铁律) ═══════ */
[data-theme="dark"] .da-hero-avatar img,
[data-theme="dark"] .avatar-img,
/* 0914老板令:暗色也显示真机器人吉祥物——删旧AU暗色换图(双主题两套东西的根子之一) */
[data-theme="dark"] .da-wordmark-img{ content:url("assets/wordmark-white.png"); }
.da-brand{display:flex;align-items:center;justify-content:center;gap:7px}
.da-wordmark-img{height:20px;width:auto;vertical-align:middle}
.da-dot{color:#b0831f;font-weight:800}
.da-slogan{color:var(--sub,#6b7280);letter-spacing:.12em}
/* —— 登录/注册弹窗:缩窄居中·顶留白加高·控件42px等高·按钮上提贴紧 —— */
#asdAuthSheet.show{display:flex!important;align-items:center;justify-content:center;padding:18px}
#asdAuthSheet .da-card{position:relative!important;left:auto!important;top:auto!important;transform:none!important;margin:0!important;max-height:min(84vh,660px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-top:38px!important;padding-bottom:12px!important;width:min(360px,88vw)!important}
#asdAuthSheet .da-hero{padding:0 0 2px;margin-bottom:0}
#asdAuthSheet .da-hero-avatar{width:60px!important;height:60px!important;margin-bottom:22px!important}
#asdAuthSheet .da-hero-avatar img{transform:scale(1.12)}
#asdAuthSheet .da-brand{margin:0 0 14px}
#asdAuthSheet .da-dot{font-size:var(--fs-l2);line-height:20px}
#asdAuthSheet .da-slogan{font-size:var(--fs-l2)!important;line-height:20px;letter-spacing:.14em;color:var(--text,#1f2933)!important;font-weight:700}
#asdAuthSheet .da-form .da-field{margin:0 0 6px}
#asdAuthSheet .da-field span{font-size:var(--fs-l5)}
#asdAuthSheet .da-inp{height:42px!important}
/* 输入框配色融入黑金主题:常态淡暖底/聚焦金描边 */
#asdAuthSheet .da-inp{background:#F7F5EF!important;border-color:#E2DFD5!important}
#asdAuthSheet .da-inp:focus{border-color:#B0831F!important;background:#FFFDF8!important;box-shadow:0 0 0 3px rgba(176,131,31,.12)}
#asdAuthSheet .da-code-btn{background:#F7F5EF!important;border-color:#E2DFD5!important;color:#8A6D1F!important;font-weight:600}
[data-theme="dark"] #asdAuthSheet .da-inp{background:#232326!important;border-color:#3E3E44!important;color:#ECEAE4!important}
[data-theme="dark"] #asdAuthSheet .da-inp:focus{border-color:#C9A22E!important;background:#2A2A2E!important;box-shadow:0 0 0 3px rgba(201,162,46,.14)}
[data-theme="dark"] #asdAuthSheet .da-code-btn{background:#232326!important;border-color:#3E3E44!important;color:#D9B544!important}
#asdAuthSheet .da-code-btn{height:42px!important;padding:0 9px!important;font-size:var(--fs-l5)!important;font-weight:500}
#asdAuthSheet .da-captcha{display:flex;gap:8px;align-items:center}
#asdAuthSheet .da-captcha img{height:42px;border-radius:10px;cursor:pointer;border:1px solid var(--border,#e3e8ef)}
#asdAuthSheet .da-remember{margin:2px 0 0}
#asdAuthSheet .da-submit{margin-top:2px;height:42px!important}
#asdAuthSheet .da-links{margin-top:2px!important;gap:1px!important}
#asdAuthSheet .da-switch{height:28px!important;font-size:var(--fs-l5)!important}
#asdAuthSheet .da-link{height:28px!important;font-size:var(--fs-l5)!important}
#asdAuthSheet .da-form{max-width:72%;margin-left:auto;margin-right:auto}
/* —— 欢迎区:吉祥物主视觉+品牌行(冻结态) —— */
#assistWelcome .assist-brand{margin:14px auto 4px}
#assistWelcome .da-wordmark-img{height:24px!important;transform:scale(1.06)}
#assistWelcome .assist-logo{width:190px!important;height:190px!important}
#assistWelcome .assist-logo .logo-img{width:100%!important;height:100%!important;object-fit:contain}
#assistWelcome .da-dot{font-size:24px;line-height:24px}
#assistWelcome .da-slogan{font-size:24px!important;line-height:24px;letter-spacing:.16em;color:var(--text,#1f2933)!important;font-weight:600}

/* 欢迎页滑块胶囊:壳体样式全走host.css现成(.assist-mode-pill/.amp-box/.amp-btn),此处只定宽居中 */
#assistWelcomePill{width:250px;margin:32px auto 0;border-bottom:none}

/* —— 0916老板令:仅右上角加一颗✕,绝对定位不占布局流,其他元素零改动 —— */
#asdAuthSheet .da-x{position:absolute;top:8px;right:8px;width:36px;height:36px;border:none;background:transparent;color:var(--sub,#6b7280);font-size:20px;line-height:36px;text-align:center;padding:0;cursor:pointer;z-index:6}
