/* =========================================================
   《灰烬纪元》回复 + 状态栏 CSS V2 FULL
   完整候选版：先覆盖长期游玩可能需要的所有模块，再按实际需求删减
   ========================================================= */

:root{
  --ash-bg:#0b0e0f;
  --ash-panel:#15191b;
  --ash-panel2:#1a1f21;
  --ash-panel3:#101314;
  --ash-line:#353b3d;
  --ash-line2:#292f31;
  --ash-text:#ebe7de;
  --ash-muted:#aaada8;
  --ash-dim:#777e7c;
  --ash-accent:#c96e41;
  --ash-accent2:#e49a68;
  --ash-green:#93bd92;
  --ash-yellow:#d2a05e;
  --ash-red:#c96e68;
  --ash-blue:#88a9b6;
  --ash-purple:#a596b9;
}
*{box-sizing:border-box}
.ash-reply{
  width:100%;
  color:var(--ash-text);
  font:15px/1.84 Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
}
.ash-reply button{font:inherit}

/* =========================
   通用标题 / 容器
   ========================= */
.ash-block{
  margin:0 0 14px;
  border:1px solid var(--ash-line);
  border-radius:12px;
  overflow:hidden;
  background:linear-gradient(180deg,#171b1d,#121617);
}
.ash-block-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 15px;border-bottom:1px solid var(--ash-line2);
  color:#c4c7c2;font-size:11px;font-weight:800;letter-spacing:.11em;
}
.ash-block-head small{color:var(--ash-dim);font-weight:500;letter-spacing:.04em}
.ash-section-label{
  margin-bottom:8px;color:#777f7d;font-size:10px;font-weight:850;letter-spacing:.12em;
}

/* =========================
   D20
   ========================= */
.ash-check{background:#101314}
.ash-check-body{display:grid;grid-template-columns:116px 1fr}
.ash-die{
  min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  border-right:1px solid var(--ash-line2);
  background:radial-gradient(circle at 50% 43%,rgba(201,110,65,.13),transparent 56%),#0f1213;
}
.ash-die small{color:var(--ash-dim);font:10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}
.ash-die b{font-size:58px;line-height:1;color:var(--ash-accent2);letter-spacing:-.05em}
.ash-calc{padding:13px 16px}
.ash-calc-row{
  display:flex;justify-content:space-between;gap:15px;
  padding:6px 0;border-bottom:1px dashed #303638;color:#b5b8b3;font-size:12px;
}
.ash-calc-row strong{color:#e5e2db}
.ash-calc-total{
  display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:#d7d5ce;font-size:12px
}
.ash-calc-total strong{color:#fff;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.ash-check-result{
  padding:10px 15px;border-top:1px solid var(--ash-line2);text-align:center;font-size:13px;font-weight:900;
}
.ash-success .ash-check-result{color:#a9d1a7;background:rgba(147,189,146,.07)}
.ash-critical .ash-check-result{color:#f1be7e;background:rgba(201,110,65,.09)}
.ash-fail .ash-check-result{color:#d8a666;background:rgba(210,160,94,.07)}
.ash-fumble .ash-check-result{color:#e28b83;background:rgba(201,110,104,.08)}
.ash-mod{
  display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;border:1px solid #496052;
  color:#a5c8aa;background:rgba(147,189,146,.05);font-size:9px;letter-spacing:.05em
}

/* =========================
   剧情正文
   ========================= */
.ash-story{
  padding:24px 26px;background:linear-gradient(180deg,#181c1e,#111516);
}
.ash-story p{margin:.1em 0 1.08em}
.ash-story p:last-child{margin-bottom:.1em}
.ash-dialogue{
  margin:15px 0;padding:11px 14px 11px 16px;border-left:2px solid var(--ash-accent);
  background:rgba(201,110,65,.055);color:#e8e4db;
}
.ash-dialogue-name{
  display:block;margin-bottom:3px;color:var(--ash-accent2);font-size:11px;font-weight:800;letter-spacing:.04em;
}

/* =========================
   当前互动 NPC
   ========================= */
.ash-npc-focus{padding:0}
.ash-npc-grid{display:grid;grid-template-columns:1.25fr .75fr}
.ash-npc-main{padding:16px 17px;border-right:1px solid var(--ash-line2)}
.ash-npc-name-row{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.ash-npc-name{font-size:18px;font-weight:900;color:#f0ece3}
.ash-npc-role{font-size:10px;color:var(--ash-accent2);font-weight:750;letter-spacing:.07em}
.ash-npc-desc{margin-top:8px;color:#9fa39f;font-size:11px;line-height:1.7}
.ash-npc-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.ash-tag{
  padding:4px 7px;border:1px solid #3a4143;border-radius:999px;background:#111516;color:#aeb1ad;font-size:9px;
}
.ash-npc-side{padding:15px 16px;background:#121617}
.ash-npc-kv{display:flex;justify-content:space-between;gap:10px;margin:6px 0;color:#929895;font-size:10px}
.ash-npc-kv b{color:#d7d5ce;font-weight:750}
.ash-npc-note{
  margin-top:10px;padding-top:9px;border-top:1px solid #2b3133;color:#7f8583;font-size:9px;line-height:1.6;
}

/* =========================
   玩家可选回复
   ========================= */
.ash-choices{padding-bottom:13px}
.ash-choice-note{
  padding:0 15px 10px;color:#7f8583;font-size:10px;line-height:1.6;
}
.ash-choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;padding:0 13px}
.ash-choice{
  position:relative;width:100%;min-height:76px;padding:11px 12px;text-align:left;
  border:1px solid #373e40;border-radius:8px;background:#131718;color:#dcd9d2;
  transition:.15s ease;cursor:pointer;
}
.ash-choice:hover{border-color:#78513c;background:#181a1b;transform:translateY(-1px)}
.ash-choice-index{
  position:absolute;right:9px;top:7px;color:#626a68;font:9px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.ash-choice-type{
  display:block;margin-bottom:4px;color:var(--ash-accent2);font-size:9px;font-weight:850;letter-spacing:.08em;
}
.ash-choice-text{display:block;padding-right:20px;font-size:11px;line-height:1.55;font-weight:650}
.ash-choice-check{
  display:inline-block;margin-top:7px;padding:2px 5px;border:1px solid #3c4649;border-radius:4px;
  color:#89918f;font:8px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.ash-free-input{
  margin:10px 13px 0;padding:9px 11px;border:1px dashed #434a4c;border-radius:7px;
  color:#858b89;background:#101314;font-size:10px;
}
.ash-free-input strong{color:#c7c9c4}

/* =========================
   本回合变化
   ========================= */
.ash-changes{padding:12px 15px}
.ash-change{display:flex;align-items:flex-start;gap:8px;padding:4px 0;color:#aeb2ad;font-size:10px;line-height:1.6}
.ash-change i{font-style:normal;color:var(--ash-accent2);width:16px;text-align:center}
.ash-change strong{color:#dfdcd4}

/* =========================
   状态总览
   ========================= */
.ash-overview-top{
  display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.7fr);
  border-bottom:1px solid var(--ash-line2)
}
.ash-player{padding:16px 17px}
.ash-player-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ash-player-name{font-size:18px;font-weight:900}
.ash-player-role{color:var(--ash-accent2);font-size:10px;font-weight:800;letter-spacing:.07em}
.ash-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.ash-chip{
  display:inline-flex;align-items:center;gap:5px;padding:4px 7px;min-height:25px;
  border:1px solid #394043;border-radius:5px;background:#111516;color:#969b98;font-size:9px;
}
.ash-chip b{color:#ddd9d2}
.ash-env{padding:15px 16px;border-left:1px solid var(--ash-line2);background:#111516}
.ash-env div{font-size:10px;color:#969c99;line-height:1.75}
.ash-env strong{color:#ddd9d2}

.ash-overview-main{
  display:grid;grid-template-columns:.9fr 1.15fr 1.15fr;
}
.ash-overview-col{padding:13px 15px;border-right:1px solid var(--ash-line2)}
.ash-overview-col:last-child{border-right:0}
.ash-kv{display:flex;justify-content:space-between;gap:10px;margin:5px 0;color:#979d99;font-size:9.5px}
.ash-kv b{color:#dbd8d1}
.ash-condition{display:inline-flex;align-items:center;gap:5px}
.ash-dot{width:6px;height:6px;border-radius:50%;background:var(--ash-green)}
.ash-dot.warn{background:var(--ash-yellow)}.ash-dot.bad{background:var(--ash-red)}.ash-dot.dim{background:#6e7774}

/* =========================
   队伍
   ========================= */
.ash-party-list{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}
.ash-member{
  padding:9px 10px;border:1px solid #303638;border-radius:7px;background:#111516;min-width:0
}
.ash-member-top{display:flex;justify-content:space-between;gap:8px;font-size:10px}
.ash-member-top b{color:#e1ded7}.ash-member-top span{color:#8f9693}
.ash-member-sub{margin-top:4px;color:#747b79;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ash-party-summary{
  margin-top:8px;padding-top:7px;border-top:1px solid #2b3133;display:flex;gap:10px;flex-wrap:wrap;
  color:#7e8582;font-size:8.5px;
}

/* =========================
   任务
   ========================= */
.ash-quest-title{color:#ece8df;font-size:11px;font-weight:850;line-height:1.45}
.ash-quest-desc{margin-top:5px;color:#868d8a;font-size:9px;line-height:1.55}
.ash-quest-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.ash-quest-pill{
  padding:2px 5px;border:1px solid #49433c;border-radius:4px;color:#c59b70;font-size:8px;
}

/* =========================
   佣兵团 / 据点
   ========================= */
.ash-company-grid{
  display:grid;grid-template-columns:1fr 1fr 1fr;
}
.ash-company-col{padding:13px 15px;border-right:1px solid var(--ash-line2)}
.ash-company-col:last-child{border-right:0}
.ash-company-name{font-size:12px;font-weight:900;color:#e6e2da}
.ash-company-sub{margin-top:3px;color:#777f7c;font-size:8.5px}
.ash-progress-row{margin-top:9px}
.ash-progress-head{display:flex;justify-content:space-between;gap:8px;color:#8d9491;font-size:8.5px}
.ash-bar{height:5px;margin-top:4px;border-radius:999px;overflow:hidden;background:#252b2d}
.ash-bar span{display:block;height:100%;background:linear-gradient(90deg,#9c5637,#d68552)}
.ash-base-list{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin-top:7px}
.ash-base-item{padding:5px 6px;border:1px solid #303638;border-radius:5px;background:#111516;color:#919794;font-size:8.5px}
.ash-base-item b{color:#d8d5ce}
.ash-company-alert{
  margin-top:8px;padding:6px 7px;border-left:2px solid var(--ash-yellow);
  background:rgba(210,160,94,.045);color:#a89c8b;font-size:8.5px;line-height:1.5
}

/* =========================
   资产 / 资源横栏
   ========================= */
.ash-assets{
  display:flex;flex-wrap:wrap;border-top:1px solid var(--ash-line2);background:#0f1213
}
.ash-asset{
  display:flex;gap:5px;align-items:center;padding:8px 11px;border-right:1px solid #292f31;
  color:#7f8784;font-size:8.5px;
}
.ash-asset b{color:#d3d1ca}

/* =========================
   条件显示提示（预览用，可删）
   ========================= */
.ash-preview-flag{
  display:inline-block;margin-left:6px;padding:2px 5px;border:1px solid #3a4143;border-radius:4px;
  color:#69716f;font-size:7px;letter-spacing:.04em;font-weight:500
}

/* =========================
   Responsive
   ========================= */
@media(max-width:800px){
  .ash-npc-grid,.ash-overview-top,.ash-company-grid{grid-template-columns:1fr}
  .ash-npc-main,.ash-env,.ash-company-col{border-right:0;border-bottom:1px solid var(--ash-line2)}
  .ash-company-col:last-child{border-bottom:0}
  .ash-overview-main{grid-template-columns:1fr}
  .ash-overview-col{border-right:0;border-bottom:1px solid var(--ash-line2)}
  .ash-overview-col:last-child{border-bottom:0}
}
@media(max-width:620px){
  .ash-story{padding:18px 17px}
  .ash-check-body{grid-template-columns:88px 1fr}
  .ash-die b{font-size:44px}
  .ash-choice-grid,.ash-party-list{grid-template-columns:1fr}
}
@media(max-width:430px){
  .ash-check-body{grid-template-columns:1fr}
  .ash-die{min-height:92px;border-right:0;border-bottom:1px solid var(--ash-line2)}
}


/* =========================================================
   V3 FULL STABILITY LAYER
   在 V2 FULL 完整模块之上进行酒馆兼容修复
   不删除任何模块，仅解决浅色主题、继承、按钮和文字颜色覆盖
   ========================================================= */

/* 0. 根容器 */
.mes_text .ash-reply,
.message-content .ash-reply,
.message_content .ash-reply,
.chat-message-content .ash-reply,
.ash-reply{
  width:100% !important;
  display:block !important;
  color:#e7e3da !important;
  -webkit-text-fill-color:#e7e3da !important;
  background:transparent !important;
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif !important;
  line-height:1.82 !important;
  text-shadow:none !important;
}

/* 1. 所有模块强制深色，不依赖平台父级 */
.ash-reply .ash-block,
.ash-reply .ash-story,
.ash-reply .ash-check,
.ash-reply .ash-npc-focus,
.ash-reply .ash-choices,
.ash-reply .ash-changes,
.ash-reply .ash-status,
.ash-reply .ash-overview-top,
.ash-reply .ash-overview-main,
.ash-reply .ash-company-grid,
.ash-reply .ash-assets{
  background-color:#15191b !important;
  color:#e7e3da !important;
  -webkit-text-fill-color:#e7e3da !important;
}

/* 2. 普通正文统一浅色 */
.mes_text .ash-reply p,
.message-content .ash-reply p,
.message_content .ash-reply p,
.chat-message-content .ash-reply p,
.ash-reply p{
  color:#d9d6ce !important;
  -webkit-text-fill-color:#d9d6ce !important;
}

.ash-reply strong,
.ash-reply b{
  color:#efeae1 !important;
  -webkit-text-fill-color:#efeae1 !important;
}

/* 3. 区块标题 */
.ash-reply .ash-block-head{
  background:#121617 !important;
  color:#c8cbc5 !important;
  -webkit-text-fill-color:#c8cbc5 !important;
}
.ash-reply .ash-block-head span{
  color:#dcd9d2 !important;
  -webkit-text-fill-color:#dcd9d2 !important;
}
.ash-reply .ash-block-head small{
  color:#7f8784 !important;
  -webkit-text-fill-color:#7f8784 !important;
}

/* 4. 剧情正文 */
.ash-reply .ash-story{
  background:#15191b !important;
}
.ash-reply .ash-story p{
  color:#d9d6ce !important;
  -webkit-text-fill-color:#d9d6ce !important;
}
.ash-reply .ash-dialogue{
  background:#201d1b !important;
  color:#eee9df !important;
  -webkit-text-fill-color:#eee9df !important;
}
.ash-reply .ash-dialogue-name{
  color:#e49a68 !important;
  -webkit-text-fill-color:#e49a68 !important;
}

/* 5. D20 */
.ash-reply .ash-check{background:#101314 !important}
.ash-reply .ash-die{background:#0e1112 !important}
.ash-reply .ash-die-label,
.ash-reply .ash-die small{
  color:#777e7c !important;
  -webkit-text-fill-color:#777e7c !important;
}
.ash-reply .ash-die-value,
.ash-reply .ash-die b{
  color:#e49a68 !important;
  -webkit-text-fill-color:#e49a68 !important;
}
.ash-reply .ash-calc-row,
.ash-reply .ash-calc-row span{
  color:#b5b8b3 !important;
  -webkit-text-fill-color:#b5b8b3 !important;
}
.ash-reply .ash-calc-row strong{
  color:#ece8df !important;
  -webkit-text-fill-color:#ece8df !important;
}
.ash-reply .ash-calc-total,
.ash-reply .ash-calc-total span{
  color:#d5d2ca !important;
  -webkit-text-fill-color:#d5d2ca !important;
}
.ash-reply .ash-calc-total strong{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
.ash-reply .ash-success .ash-check-result{
  color:#a9d1a7 !important;
  -webkit-text-fill-color:#a9d1a7 !important;
}
.ash-reply .ash-critical .ash-check-result{
  color:#f1be7e !important;
  -webkit-text-fill-color:#f1be7e !important;
}
.ash-reply .ash-fail .ash-check-result{
  color:#d8a666 !important;
  -webkit-text-fill-color:#d8a666 !important;
}
.ash-reply .ash-fumble .ash-check-result{
  color:#e28b83 !important;
  -webkit-text-fill-color:#e28b83 !important;
}
.ash-reply .ash-mod,
.ash-reply .ash-advantage{
  color:#a5c8aa !important;
  -webkit-text-fill-color:#a5c8aa !important;
}
.ash-reply .ash-disadvantage{
  color:#d19891 !important;
  -webkit-text-fill-color:#d19891 !important;
}

/* 6. 当前重点 NPC */
.ash-reply .ash-npc-main{background:#15191b !important}
.ash-reply .ash-npc-side{background:#111516 !important}
.ash-reply .ash-npc-name{
  color:#f2eee5 !important;
  -webkit-text-fill-color:#f2eee5 !important;
}
.ash-reply .ash-npc-role{
  color:#e49a68 !important;
  -webkit-text-fill-color:#e49a68 !important;
}
.ash-reply .ash-npc-desc{
  color:#a9ada8 !important;
  -webkit-text-fill-color:#a9ada8 !important;
}
.ash-reply .ash-tag{
  background:#101415 !important;
  color:#b4b7b2 !important;
  -webkit-text-fill-color:#b4b7b2 !important;
}
.ash-reply .ash-npc-kv,
.ash-reply .ash-npc-kv span{
  color:#929895 !important;
  -webkit-text-fill-color:#929895 !important;
}
.ash-reply .ash-npc-kv b,
.ash-reply .ash-npc-kv strong{
  color:#ddd9d1 !important;
  -webkit-text-fill-color:#ddd9d1 !important;
}
.ash-reply .ash-npc-note{
  color:#7f8583 !important;
  -webkit-text-fill-color:#7f8583 !important;
}

/* 7. 可选回复 */
.ash-reply .ash-choice-note{
  color:#858c89 !important;
  -webkit-text-fill-color:#858c89 !important;
}

.mes_text .ash-reply .ash-choice,
.message-content .ash-reply .ash-choice,
.message_content .ash-reply .ash-choice,
.chat-message-content .ash-reply .ash-choice,
.ash-reply .ash-choice{
  background:#111516 !important;
  border-color:#373e40 !important;
  color:#dedbd4 !important;
  -webkit-text-fill-color:#dedbd4 !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
  box-shadow:none !important;
}

.ash-reply .ash-choice:hover{
  background:#1a1e1f !important;
  border-color:#8b5b40 !important;
}

.ash-reply .ash-choice-index{
  color:#69716f !important;
  -webkit-text-fill-color:#69716f !important;
}
.ash-reply .ash-choice-type{
  color:#e49a68 !important;
  -webkit-text-fill-color:#e49a68 !important;
}
.ash-reply .ash-choice-text{
  color:#e3dfd7 !important;
  -webkit-text-fill-color:#e3dfd7 !important;
}
.ash-reply .ash-choice-check{
  color:#929996 !important;
  -webkit-text-fill-color:#929996 !important;
}
.ash-reply .ash-free-input{
  background:#101314 !important;
  color:#858b89 !important;
  -webkit-text-fill-color:#858b89 !important;
}
.ash-reply .ash-free-input strong{
  color:#c7c9c4 !important;
  -webkit-text-fill-color:#c7c9c4 !important;
}

/* 8. 本回合变化 */
.ash-reply .ash-change,
.ash-reply .ash-change span{
  color:#afb3ae !important;
  -webkit-text-fill-color:#afb3ae !important;
}
.ash-reply .ash-change i,
.ash-reply .ash-change-icon{
  color:#e49a68 !important;
  -webkit-text-fill-color:#e49a68 !important;
}
.ash-reply .ash-change strong{
  color:#e3dfd7 !important;
  -webkit-text-fill-color:#e3dfd7 !important;
}

/* 9. 玩家当前状态 */
.ash-reply .ash-player{background:#15191b !important}
.ash-reply .ash-player-name{
  color:#f2eee5 !important;
  -webkit-text-fill-color:#f2eee5 !important;
}
.ash-reply .ash-player-role{
  color:#e49a68 !important;
  -webkit-text-fill-color:#e49a68 !important;
}
.ash-reply .ash-chip,
.ash-reply .ash-status-chip{
  background:#101415 !important;
  color:#9aa09d !important;
  -webkit-text-fill-color:#9aa09d !important;
}
.ash-reply .ash-chip b,
.ash-reply .ash-status-chip b{
  color:#e0ddd5 !important;
  -webkit-text-fill-color:#e0ddd5 !important;
}

/* 10. 环境信息 */
.ash-reply .ash-env,
.ash-reply .ash-environment{
  background:#101415 !important;
}
.ash-reply .ash-env div,
.ash-reply .ash-env-line{
  color:#969c99 !important;
  -webkit-text-fill-color:#969c99 !important;
}
.ash-reply .ash-env strong,
.ash-reply .ash-env-line strong{
  color:#e0ddd5 !important;
  -webkit-text-fill-color:#e0ddd5 !important;
}

/* 11. 状态栏三栏 */
.ash-reply .ash-overview-col,
.ash-reply .ash-status-section{
  background:#15191b !important;
}
.ash-reply .ash-section-label,
.ash-reply .ash-status-label{
  color:#7b8380 !important;
  -webkit-text-fill-color:#7b8380 !important;
}
.ash-reply .ash-kv,
.ash-reply .ash-kv span,
.ash-reply .ash-stat-line{
  color:#979d99 !important;
  -webkit-text-fill-color:#979d99 !important;
}
.ash-reply .ash-kv b,
.ash-reply .ash-kv strong,
.ash-reply .ash-stat-line b{
  color:#ddd9d1 !important;
  -webkit-text-fill-color:#ddd9d1 !important;
}

/* 12. 队伍 */
.ash-reply .ash-member{
  background:#101415 !important;
}
.ash-reply .ash-member-top b{
  color:#e3dfd7 !important;
  -webkit-text-fill-color:#e3dfd7 !important;
}
.ash-reply .ash-member-top span{
  color:#8f9693 !important;
  -webkit-text-fill-color:#8f9693 !important;
}
.ash-reply .ash-member-sub{
  color:#787f7c !important;
  -webkit-text-fill-color:#787f7c !important;
}
.ash-reply .ash-party-summary,
.ash-reply .ash-party-summary span{
  color:#7e8582 !important;
  -webkit-text-fill-color:#7e8582 !important;
}

/* 13. 当前任务 */
.ash-reply .ash-quest-title{
  color:#f0ece3 !important;
  -webkit-text-fill-color:#f0ece3 !important;
}
.ash-reply .ash-quest-desc,
.ash-reply .ash-quest-sub{
  color:#8c938f !important;
  -webkit-text-fill-color:#8c938f !important;
}
.ash-reply .ash-quest-pill,
.ash-reply .ash-quest-time{
  color:#cfa478 !important;
  -webkit-text-fill-color:#cfa478 !important;
}

/* 14. 佣兵团 / 据点 */
.ash-reply .ash-company-col{background:#15191b !important}
.ash-reply .ash-company-name{
  color:#e8e4db !important;
  -webkit-text-fill-color:#e8e4db !important;
}
.ash-reply .ash-company-sub{
  color:#7d8582 !important;
  -webkit-text-fill-color:#7d8582 !important;
}
.ash-reply .ash-progress-head,
.ash-reply .ash-progress-head span{
  color:#8d9491 !important;
  -webkit-text-fill-color:#8d9491 !important;
}
.ash-reply .ash-progress-head b{
  color:#d9d6cf !important;
  -webkit-text-fill-color:#d9d6cf !important;
}
.ash-reply .ash-base-item{
  background:#101415 !important;
  color:#919794 !important;
  -webkit-text-fill-color:#919794 !important;
}
.ash-reply .ash-base-item b{
  color:#d8d5ce !important;
  -webkit-text-fill-color:#d8d5ce !important;
}
.ash-reply .ash-company-alert{
  background:#1d1a16 !important;
  color:#b0a18d !important;
  -webkit-text-fill-color:#b0a18d !important;
}

/* 15. 底部资产与资源 */
.ash-reply .ash-assets{background:#0f1213 !important}
.ash-reply .ash-asset{
  color:#858c89 !important;
  -webkit-text-fill-color:#858c89 !important;
}
.ash-reply .ash-asset b{
  color:#d8d5ce !important;
  -webkit-text-fill-color:#d8d5ce !important;
}

/* 16. 条件标签 / 预览标签 */
.ash-reply .ash-preview-flag{
  color:#69716f !important;
  -webkit-text-fill-color:#69716f !important;
}

/* 17. 酒馆主题对按钮的覆盖 */
.mes_text .ash-reply button,
.message-content .ash-reply button,
.message_content .ash-reply button,
.chat-message-content .ash-reply button{
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}

/* 18. 链接 */
.ash-reply a{
  color:#d99061 !important;
  -webkit-text-fill-color:#d99061 !important;
}

/* 19. 移动端保持 V2 FULL 原布局，仅增强不覆盖 */
@media(max-width:800px){
  .ash-reply .ash-npc-grid,
  .ash-reply .ash-overview-top,
  .ash-reply .ash-company-grid{
    grid-template-columns:1fr !important;
  }
}


/* =========================================================
   V3.1 顶部角色信息卡重构
   将 ash-overview-top 从“状态栏半截”改为可独立成立的顶部身份卡
   ========================================================= */

.ash-reply .ash-overview-top{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:stretch !important;
  width:100% !important;
  margin:0 0 14px !important;
  border:1px solid #343a3d !important;
  border-radius:12px !important;
  overflow:hidden !important;
  background:#15191b !important;
}

/* 左侧角色身份 */
.ash-reply .ash-overview-top .ash-player{
  min-width:0 !important;
  padding:15px 17px 14px !important;
  background:#15191b !important;
}

.ash-reply .ash-overview-top .ash-player-row{
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  min-height:28px !important;
  flex-wrap:wrap !important;
}

.ash-reply .ash-overview-top .ash-player-name{
  color:#f2eee5 !important;
  -webkit-text-fill-color:#f2eee5 !important;
  font-size:19px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
}

.ash-reply .ash-overview-top .ash-player-role{
  position:relative !important;
  top:1px !important;
  color:#e49a68 !important;
  -webkit-text-fill-color:#e49a68 !important;
  font-size:10px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:.04em !important;
}

.ash-reply .ash-overview-top .ash-chips{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  flex-wrap:wrap !important;
  margin-top:10px !important;
}

.ash-reply .ash-overview-top .ash-chip{
  min-height:24px !important;
  padding:3px 7px !important;
  white-space:nowrap !important;
}

/* 右侧地点环境：不再限制成狭窄小列 */
.ash-reply .ash-overview-top .ash-env{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  min-width:235px !important;
  max-width:340px !important;
  padding:13px 16px !important;
  border-left:1px solid #292f31 !important;
  border-bottom:0 !important;
  background:#101415 !important;
}

.ash-reply .ash-overview-top .ash-env div{
  display:block !important;
  margin:1px 0 !important;
  color:#8f9693 !important;
  -webkit-text-fill-color:#8f9693 !important;
  font-size:9.5px !important;
  line-height:1.55 !important;
  white-space:normal !important;
}

.ash-reply .ash-overview-top .ash-env div:first-child,
.ash-reply .ash-overview-top .ash-env strong{
  color:#d9d6ce !important;
  -webkit-text-fill-color:#d9d6ce !important;
  font-size:10px !important;
  font-weight:750 !important;
}

/* 若模型使用旧的 ash-environment 类，也保持同样视觉 */
.ash-reply .ash-overview-top .ash-environment{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  min-width:235px !important;
  max-width:340px !important;
  padding:13px 16px !important;
  border-left:1px solid #292f31 !important;
  background:#101415 !important;
}

.ash-reply .ash-overview-top .ash-env-line{
  margin:1px 0 !important;
  color:#8f9693 !important;
  -webkit-text-fill-color:#8f9693 !important;
  font-size:9.5px !important;
  line-height:1.55 !important;
}

/* 防止正文卡和顶部身份卡粘在一起 */
.ash-reply .ash-overview-top + .ash-story,
.ash-reply .ash-overview-top + .ash-block{
  margin-top:0 !important;
}

/* 如果后面紧跟完整状态主体，仍保留独立卡片视觉，不强行拼接 */
.ash-reply .ash-overview-top + .ash-overview-main{
  margin-top:0 !important;
  border-top:1px solid #343a3d !important;
  border-radius:12px 12px 0 0 !important;
}

/* 中等宽度：环境信息仍右置，但收窄 */
@media(max-width:760px){
  .ash-reply .ash-overview-top{
    grid-template-columns:1fr !important;
  }

  .ash-reply .ash-overview-top .ash-env,
  .ash-reply .ash-overview-top .ash-environment{
    min-width:0 !important;
    max-width:none !important;
    border-left:0 !important;
    border-top:1px solid #292f31 !important;
  }
}

/* 手机：地点/时间改为横向自动换行，减少纵向高度 */
@media(max-width:520px){
  .ash-reply .ash-overview-top .ash-env,
  .ash-reply .ash-overview-top .ash-environment{
    display:flex !important;
    flex-direction:row !important;
    justify-content:flex-start !important;
    gap:5px 12px !important;
    flex-wrap:wrap !important;
    padding:10px 14px !important;
  }

  .ash-reply .ash-overview-top .ash-env div,
  .ash-reply .ash-overview-top .ash-env-line{
    width:auto !important;
    margin:0 !important;
  }
}


/* =========================================================
   V3.2 标签与辅助文字可读性增强
   ========================================================= */

.ash-reply .ash-overview-top .ash-player-role{font-size:11px !important;}

.ash-reply .ash-overview-top .ash-chip,
.ash-reply .ash-chip,
.ash-reply .ash-status-chip{
  min-height:27px !important;
  padding:4px 8px !important;
  font-size:10px !important;
  line-height:1.35 !important;
}

.ash-reply .ash-overview-top .ash-env div,
.ash-reply .ash-overview-top .ash-env-line,
.ash-reply .ash-env div,
.ash-reply .ash-env-line{
  font-size:10.5px !important;
  line-height:1.65 !important;
}

.ash-reply .ash-overview-top .ash-env div:first-child,
.ash-reply .ash-overview-top .ash-env strong{font-size:11px !important;}

.ash-reply .ash-npc-role{font-size:11px !important;}
.ash-reply .ash-npc-desc{font-size:12px !important;line-height:1.7 !important;}
.ash-reply .ash-tag{padding:5px 8px !important;font-size:10px !important;line-height:1.25 !important;}
.ash-reply .ash-npc-kv{font-size:11px !important;}
.ash-reply .ash-npc-note{font-size:10px !important;}

.ash-reply .ash-block-head{font-size:12px !important;}
.ash-reply .ash-block-head small{font-size:10px !important;}
.ash-reply .ash-choice-note{font-size:11px !important;line-height:1.65 !important;}
.ash-reply .ash-choice-type{font-size:10.5px !important;}
.ash-reply .ash-choice-text{font-size:12px !important;line-height:1.6 !important;}
.ash-reply .ash-choice-index{font-size:9.5px !important;}
.ash-reply .ash-choice-check{margin-top:8px !important;padding:3px 6px !important;font-size:9.5px !important;line-height:1.3 !important;}
.ash-reply .ash-free-input{padding:10px 11px !important;font-size:11px !important;line-height:1.55 !important;}

.ash-reply .ash-change{font-size:11px !important;}
.ash-reply .ash-section-label,
.ash-reply .ash-status-label{font-size:11px !important;}
.ash-reply .ash-kv,
.ash-reply .ash-stat-line{font-size:10.5px !important;}

.ash-reply .ash-member-top{font-size:11px !important;}
.ash-reply .ash-member-sub{font-size:9.5px !important;line-height:1.45 !important;}
.ash-reply .ash-party-summary{font-size:9.5px !important;}

.ash-reply .ash-quest-title{font-size:12px !important;}
.ash-reply .ash-quest-desc,
.ash-reply .ash-quest-sub{font-size:10px !important;line-height:1.65 !important;}
.ash-reply .ash-quest-pill,
.ash-reply .ash-quest-time{padding:3px 6px !important;font-size:9px !important;}

.ash-reply .ash-company-name{font-size:13px !important;}
.ash-reply .ash-company-sub{font-size:9.5px !important;}
.ash-reply .ash-progress-head{font-size:9.5px !important;}
.ash-reply .ash-base-item{padding:6px 7px !important;font-size:9.5px !important;}
.ash-reply .ash-company-alert{font-size:9.5px !important;}

.ash-reply .ash-asset{padding:9px 12px !important;font-size:9.5px !important;}

.ash-reply .ash-die small,
.ash-reply .ash-die-label{font-size:10.5px !important;}
.ash-reply .ash-calc-row,
.ash-reply .ash-calc-total{font-size:12.5px !important;}
.ash-reply .ash-check-result{font-size:14px !important;}

@media(max-width:620px){
  .ash-reply .ash-choice-text{font-size:11.5px !important;}
  .ash-reply .ash-npc-desc{font-size:11.5px !important;}
  .ash-reply .ash-overview-top .ash-chip,
  .ash-reply .ash-chip,
  .ash-reply .ash-status-chip{font-size:9.5px !important;}
}