/* =========================================================
   《遗嘱之外》回复栏与状态栏 CSS · V2动态群像适配
   使用方式：每轮回复最外层使用 <div class="yw">...</div>
   所有样式均限定在 .yw 内，避免影响酒馆其他界面。
   ========================================================= */

.yw {
  --yw-bg: #080708;
  --yw-bg-2: #0e0b0e;
  --yw-panel: rgba(19, 16, 19, 0.97);
  --yw-panel-2: rgba(29, 22, 27, 0.94);
  --yw-panel-3: rgba(43, 29, 35, 0.86);
  --yw-paper: #f1eadf;
  --yw-paper-2: #d4c9bb;
  --yw-muted: #9a8e87;
  --yw-dim: #6f6562;
  --yw-gold: #d8ad4f;
  --yw-gold-hi: #ffe099;
  --yw-gold-soft: rgba(216, 173, 79, 0.16);
  --yw-wine: #6e2138;
  --yw-wine-2: #9a3e59;
  --yw-line: rgba(230, 190, 92, 0.22);
  --yw-line-soft: rgba(255, 255, 255, 0.07);
  --yw-good: #9eb89a;
  --yw-bad: #c78a8a;
  --yw-info: #92a8bd;
  --yw-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --yw-r-xl: 24px;
  --yw-r-lg: 18px;
  --yw-r-md: 13px;
  --yw-r-sm: 9px;

  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 12px auto 22px;
  color: var(--yw-paper);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "Microsoft YaHei", serif;
  font-size: 15px;
  line-height: 1.86;
  isolation: isolate;
}

.yw, .yw * { box-sizing: border-box; }

.yw::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -2;
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 4%, rgba(110, 33, 56, 0.28), transparent 33%),
    radial-gradient(circle at 92% 92%, rgba(216, 173, 79, 0.09), transparent 28%),
    linear-gradient(145deg, #070608 0%, #100c10 52%, #080708 100%);
  box-shadow: var(--yw-shadow);
}

.yw::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(230, 190, 92, 0.18);
  border-radius: 30px;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.009) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .65;
}

.yw button,
.yw summary { font: inherit; }

/* ---------- 顶部场景栏 ---------- */
.yw-head {
  position: relative;
  overflow: hidden;
  padding: 22px 25px 19px;
  border: 1px solid var(--yw-line);
  border-radius: var(--yw-r-xl);
  background:
    linear-gradient(120deg, rgba(110, 33, 56, 0.30), transparent 45%),
    linear-gradient(180deg, rgba(27, 22, 26, 0.98), rgba(14, 12, 15, 0.98));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 16px 36px rgba(0,0,0,.25);
}

.yw-head::after {
  content: "遗嘱之外";
  position: absolute;
  right: 17px;
  bottom: -15px;
  color: rgba(255, 224, 153, 0.035);
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: .13em;
  white-space: nowrap;
  pointer-events: none;
}

.yw-head-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.yw-chapter {
  color: var(--yw-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.yw-date {
  color: var(--yw-paper-2);
  font-size: 12px;
  letter-spacing: .04em;
}

.yw-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--yw-gold-hi);
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.3;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(216, 173, 79, 0.15);
}

.yw-loc {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 9px;
  color: var(--yw-muted);
  font-size: 12px;
}

.yw-loc span::before {
  content: "◆";
  margin-right: 7px;
  color: rgba(216, 173, 79, .62);
  font-size: 8px;
  vertical-align: 1px;
}

/* ---------- 正文 ---------- */
.yw-story {
  position: relative;
  margin-top: 14px;
  padding: clamp(23px, 4vw, 38px);
  border: 1px solid var(--yw-line-soft);
  border-radius: var(--yw-r-xl);
  background:
    linear-gradient(100deg, rgba(110, 33, 56, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(22, 19, 22, .98), rgba(13, 11, 14, .98));
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}

.yw-story::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--yw-wine-2), var(--yw-gold), transparent);
  opacity: .72;
}

.yw-story p {
  margin: 0 0 1.15em;
  color: var(--yw-paper-2);
  text-align: justify;
  text-justify: inter-ideograph;
  letter-spacing: .025em;
}

.yw-story p:last-child { margin-bottom: 0; }

.yw-name {
  color: var(--yw-gold-hi);
  font-weight: 700;
  letter-spacing: .035em;
}

.yw-em {
  color: var(--yw-paper);
  font-weight: 700;
}

.yw-whisper {
  color: #c8bbc2;
  font-style: italic;
}

.yw-doc {
  position: relative;
  margin: 22px 0;
  padding: 19px 21px 18px 24px;
  border: 1px solid rgba(216,173,79,.22);
  border-left: 3px solid var(--yw-gold);
  border-radius: 4px var(--yw-r-md) var(--yw-r-md) 4px;
  background: rgba(216,173,79,.045);
  color: #dfd3c3;
  font-size: 14px;
  line-height: 1.8;
}

.yw-doc::before {
  content: "DOCUMENT";
  display: block;
  margin-bottom: 8px;
  color: var(--yw-gold);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
}

.yw-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0;
  color: var(--yw-gold);
  font-size: 10px;
  letter-spacing: .2em;
}

.yw-divider::before,
.yw-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yw-line), transparent);
}

/* ---------- 变化结算 ---------- */
.yw-result {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--yw-line-soft);
  border-radius: var(--yw-r-lg);
  background: linear-gradient(135deg, rgba(31, 23, 28, .95), rgba(16, 13, 16, .97));
}

.yw-sec-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--yw-gold-hi);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .1em;
}

.yw-sec-title::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--yw-gold);
  box-shadow: 0 0 9px rgba(216,173,79,.45);
}

.yw-changes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.yw-change {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--yw-r-sm);
  background: rgba(255,255,255,.018);
  color: var(--yw-paper-2);
  font-size: 12px;
  line-height: 1.55;
}

.yw-change b { color: var(--yw-paper); }
.yw-up { color: var(--yw-good); font-weight: 700; }
.yw-down { color: var(--yw-bad); font-weight: 700; }
.yw-new { color: #c8b483; font-weight: 700; }

/* ---------- 选项 ---------- */
.yw-actions {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--yw-line);
  border-radius: var(--yw-r-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(216,173,79,.07), transparent 34%),
    rgba(15, 12, 15, .97);
}

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

.yw-option {
  position: relative;
  min-height: 64px;
  padding: 13px 14px 13px 48px;
  border: 1px solid rgba(216,173,79,.17);
  border-radius: var(--yw-r-md);
  background: linear-gradient(135deg, rgba(38,29,34,.78), rgba(21,17,21,.92));
  color: var(--yw-paper-2);
  line-height: 1.55;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.yw-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255,224,153,.48);
  background: linear-gradient(135deg, rgba(74,39,51,.58), rgba(24,19,23,.96));
}

.yw-key {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,173,79,.38);
  border-radius: 7px;
  color: var(--yw-gold-hi);
  background: rgba(216,173,79,.07);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.yw-option strong {
  display: block;
  color: var(--yw-paper);
  font-size: 13px;
  font-weight: 700;
}

.yw-option small {
  display: block;
  margin-top: 3px;
  color: var(--yw-muted);
  font-size: 10px;
  line-height: 1.45;
}

.yw-free {
  grid-column: 1 / -1;
  min-height: auto;
  border-style: dashed;
  background: rgba(255,255,255,.012);
}

/* ---------- 状态栏总容器 ---------- */
.yw-status {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--yw-line);
  border-radius: var(--yw-r-xl);
  background: linear-gradient(180deg, rgba(19,16,19,.98), rgba(10,9,11,.99));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.yw-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px 14px;
}

.yw-status-name {
  color: var(--yw-gold-hi);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
}

.yw-status-note {
  color: var(--yw-dim);
  font-size: 10px;
  letter-spacing: .04em;
}

.yw-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 11px;
}

.yw-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--yw-line-soft);
  border-radius: var(--yw-r-lg);
  background: linear-gradient(145deg, rgba(31,24,29,.84), rgba(17,14,17,.91));
}

.yw-panel-wide { grid-column: 1 / -1; }

.yw-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.yw-panel-title h3 {
  margin: 0;
  color: var(--yw-gold-hi);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.yw-panel-title span {
  color: var(--yw-dim);
  font-size: 9px;
  letter-spacing: .1em;
}

/* ---------- 家族局势 ---------- */
.yw-recog {
  padding: 15px;
  border: 1px solid rgba(216,173,79,.20);
  border-radius: var(--yw-r-md);
  background: linear-gradient(100deg, rgba(110,33,56,.22), rgba(216,173,79,.035));
}

.yw-recog-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.yw-recog-label {
  color: var(--yw-paper-2);
  font-size: 11px;
  letter-spacing: .08em;
}

.yw-recog-num {
  color: var(--yw-gold-hi);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
}

.yw-recog-num small {
  margin-left: 7px;
  color: var(--yw-paper-2);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .08em;
}

.yw-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.45);
}

.yw-fill {
  width: var(--v, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yw-wine-2), var(--yw-gold), var(--yw-gold-hi));
  box-shadow: 0 0 13px rgba(216,173,79,.30);
}

.yw-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  margin-top: 12px;
}

.yw-fact {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  color: var(--yw-muted);
  font-size: 10px;
  line-height: 1.45;
}

.yw-fact b {
  overflow: hidden;
  color: var(--yw-paper-2);
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 玩家信息 ---------- */
.yw-player {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px;
}

.yw-data {
  min-width: 0;
  padding: 8px 9px;
  border-bottom: 1px solid rgba(255,255,255,.045);
}

.yw-data span {
  display: block;
  margin-bottom: 2px;
  color: var(--yw-dim);
  font-size: 9px;
  letter-spacing: .08em;
}

.yw-data b {
  display: block;
  overflow: hidden;
  color: var(--yw-paper-2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yw-data-long { grid-column: 1 / -1; }
.yw-data-long b { white-space: normal; }

/* ---------- 核心角色卡 ---------- */
.yw-core-list { display: grid; gap: 11px; }

.yw-core {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(216,173,79,.16);
  border-radius: var(--yw-r-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(216,173,79,.06), transparent 34%),
    linear-gradient(135deg, rgba(47,31,38,.74), rgba(18,15,18,.94));
}

.yw-core::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--yw-wine-2), var(--yw-gold));
}

.yw-core-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.yw-core-name {
  margin: 0;
  color: var(--yw-gold-hi);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: .08em;
}

.yw-core-id {
  margin-top: 3px;
  color: var(--yw-muted);
  font-size: 10px;
}

.yw-relation {
  padding: 4px 8px;
  border: 1px solid rgba(216,173,79,.21);
  border-radius: 999px;
  color: #d4c297;
  background: rgba(216,173,79,.055);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

.yw-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.yw-value {
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(0,0,0,.17);
}

.yw-value-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--yw-muted);
  font-size: 9px;
}

.yw-value-top b {
  color: var(--yw-paper);
  font-family: Georgia, serif;
  font-size: 12px;
}

.yw-mini-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.yw-mini-fill {
  width: var(--v, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yw-wine-2), var(--yw-gold));
}

.yw-core-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px;
}

.yw-info {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 8px;
  background: rgba(255,255,255,.014);
}

.yw-info span {
  display: block;
  margin-bottom: 3px;
  color: var(--yw-dim);
  font-size: 8px;
  letter-spacing: .1em;
}

.yw-info b {
  display: block;
  color: var(--yw-paper-2);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.yw-info-wide { grid-column: 1 / -1; }

.yw-body-state {
  grid-column: 1 / -1;
  padding: 10px 11px;
  border: 1px solid rgba(154,62,89,.28);
  border-radius: 9px;
  background: rgba(110,33,56,.105);
}

.yw-body-state span {
  display: block;
  margin-bottom: 4px;
  color: #c897a6;
  font-size: 8px;
  letter-spacing: .1em;
}

.yw-body-state p {
  margin: 0;
  color: #d8c4ca;
  font-size: 10px;
  line-height: 1.65;
}

.yw-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.yw-tag {
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 999px;
  color: var(--yw-muted);
  background: rgba(255,255,255,.018);
  font-size: 8px;
  line-height: 1.4;
}

/* ---------- 附近角色 ---------- */
.yw-near-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}

.yw-near {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: var(--yw-r-md);
  background: rgba(255,255,255,.015);
}

.yw-near-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.yw-near-name {
  color: var(--yw-paper);
  font-size: 12px;
  font-weight: 700;
}

.yw-near-pos {
  color: var(--yw-dim);
  font-size: 8px;
  text-align: right;
}

.yw-near p {
  margin: 0 0 7px;
  color: var(--yw-muted);
  font-size: 9px;
  line-height: 1.55;
}

.yw-near-state {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.yw-near-state span {
  padding: 3px 6px;
  border-radius: 6px;
  color: #b8aaa5;
  background: rgba(255,255,255,.028);
  font-size: 8px;
  line-height: 1.35;
}

/* ---------- 折叠总览 ---------- */
.yw-fold {
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--yw-line-soft);
  border-radius: var(--yw-r-lg);
  background: rgba(255,255,255,.012);
}

.yw-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  color: var(--yw-paper-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  user-select: none;
}

.yw-fold > summary::-webkit-details-marker { display: none; }

.yw-fold > summary::after {
  content: "+";
  color: var(--yw-gold);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.yw-fold[open] > summary::after { content: "−"; }
.yw-fold[open] > summary { border-bottom: 1px solid var(--yw-line-soft); }

.yw-fold-body { padding: 12px; }

.yw-rel-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--yw-muted);
  font-size: 9px;
}

.yw-rel-table th,
.yw-rel-table td {
  overflow: hidden;
  padding: 8px 7px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yw-rel-table th {
  color: var(--yw-dim);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .08em;
}

.yw-rel-table td:first-child {
  color: var(--yw-paper-2);
  font-weight: 700;
}

.yw-rel-table td:nth-child(2),
.yw-rel-table td:nth-child(3),
.yw-rel-table td:nth-child(4) {
  color: #cfbd93;
  font-family: Georgia, serif;
}

.yw-rel-table tr:last-child td { border-bottom: 0; }

/* ---------- V2 近期事项 ---------- */
.yw-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 9px;
}

.yw-listbox {
  padding: 11px;
  border-radius: var(--yw-r-md);
  background: rgba(255,255,255,.015);
}

.yw-listbox h4 {
  margin: 0 0 8px;
  color: #d1be93;
  font-size: 9px;
  letter-spacing: .1em;
}

.yw-listbox ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yw-listbox li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 11px;
  color: var(--yw-muted);
  font-size: 9px;
  line-height: 1.52;
}

.yw-listbox li:last-child { margin-bottom: 0; }

.yw-listbox li::before {
  content: "·";
  position: absolute;
  left: 1px;
  color: var(--yw-gold);
}


/* =========================================================
   V2 · 动态豪门群像适配
   今日动态 / 年度阶段 / 近期事项 / 暗线弱化
   ========================================================= */

/* ---------- 年度阶段小徽章 ---------- */
.yw-stage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(216,173,79,.19);
  border-radius: 999px;
  color: #d8c59c;
  background: rgba(216,173,79,.045);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .07em;
  white-space: nowrap;
}

.yw-stage::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yw-gold);
  box-shadow: 0 0 8px rgba(216,173,79,.45);
}

/* ---------- 今日动态：六人世界导航 ---------- */
.yw-daily {
  position: relative;
  overflow: hidden;
  border-color: rgba(216,173,79,.13);
  background:
    radial-gradient(circle at 95% 5%, rgba(216,173,79,.045), transparent 28%),
    linear-gradient(145deg, rgba(27,22,26,.88), rgba(14,12,15,.96));
}

.yw-daily::before {
  content: "TODAY";
  position: absolute;
  right: 12px;
  bottom: -8px;
  color: rgba(255,224,153,.025);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: .16em;
  pointer-events: none;
}

.yw-daily-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}

.yw-daily-item {
  min-width: 0;
  padding: 11px 12px 10px;
  border: 1px solid rgba(255,255,255,.052);
  border-radius: var(--yw-r-md);
  background: rgba(255,255,255,.014);
}

.yw-daily-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.yw-daily-name {
  overflow: hidden;
  color: var(--yw-paper);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yw-daily-pos {
  overflow: hidden;
  color: var(--yw-dim);
  font-size: 8px;
  line-height: 1.35;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yw-daily-task {
  min-height: 30px;
  color: var(--yw-muted);
  font-size: 9px;
  line-height: 1.5;
}

.yw-daily-access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 3px 6px;
  border-radius: 6px;
  color: #b8aaa5;
  background: rgba(255,255,255,.025);
  font-size: 8px;
  line-height: 1.35;
}

.yw-daily-access::before {
  content: "◆";
  color: rgba(216,173,79,.55);
  font-size: 6px;
}

.yw-daily-access.is-open {
  color: #cdbf9e;
  background: rgba(216,173,79,.055);
}

.yw-daily-access.is-invite {
  color: #d9c48f;
  border: 1px solid rgba(216,173,79,.13);
  background: rgba(110,33,56,.12);
}

.yw-daily-access.is-private {
  color: #8d8380;
}

/* ---------- 近期事项：主次视觉 ---------- */
.yw-lists-v2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr .85fr;
  gap: 9px;
}

.yw-listbox {
  border: 1px solid rgba(255,255,255,.04);
}

.yw-listbox.is-appointment {
  background: linear-gradient(145deg, rgba(45,31,37,.28), rgba(255,255,255,.012));
}

.yw-listbox.is-family {
  background: rgba(216,173,79,.018);
}

.yw-listbox.is-darkline {
  opacity: .72;
  border-style: dashed;
  border-color: rgba(146,168,189,.11);
  background: rgba(146,168,189,.018);
}

.yw-listbox.is-darkline h4 {
  color: #8f9da8;
}

.yw-listbox.is-darkline li {
  color: #827d7c;
}

.yw-listbox.is-darkline li::before {
  color: #73889b;
}

.yw-list-count {
  margin-left: 5px;
  color: var(--yw-dim);
  font-family: Georgia, serif;
  font-size: 8px;
  font-weight: 400;
}

/* ---------- 关系总览 V2：忙碌事项留更多空间 ---------- */
.yw-rel-table-v2 th:nth-child(1),
.yw-rel-table-v2 td:nth-child(1) { width: 13%; }

.yw-rel-table-v2 th:nth-child(2),
.yw-rel-table-v2 td:nth-child(2),
.yw-rel-table-v2 th:nth-child(3),
.yw-rel-table-v2 td:nth-child(3),
.yw-rel-table-v2 th:nth-child(4),
.yw-rel-table-v2 td:nth-child(4) { width: 8%; text-align: center; }

.yw-rel-table-v2 th:nth-child(5),
.yw-rel-table-v2 td:nth-child(5) { width: 22%; }

.yw-rel-table-v2 th:nth-child(6),
.yw-rel-table-v2 td:nth-child(6) {
  width: 41%;
  white-space: normal;
  line-height: 1.45;
}

/* ---------- 家族局势 V2辅助 ---------- */
.yw-observation {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin-top: 10px;
}

.yw-observation .yw-fact {
  display: block;
  min-height: 48px;
}

.yw-observation .yw-fact span {
  display: block;
  margin-bottom: 3px;
  color: var(--yw-dim);
  font-size: 8px;
  letter-spacing: .07em;
}

.yw-observation .yw-fact b {
  display: block;
  color: var(--yw-paper-2);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

/* 旧案只在当前真正涉及时出现的小型附注 */
.yw-darkline-note {
  margin-top: 9px;
  padding: 7px 9px;
  border-left: 2px solid rgba(146,168,189,.28);
  color: #7f8589;
  background: rgba(146,168,189,.022);
  font-size: 8px;
  line-height: 1.5;
}

.yw-darkline-note b {
  color: #98a6b1;
  font-weight: 600;
}

/* ---------- V2 响应式 ---------- */
@media (max-width: 860px) {
  .yw-daily-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .yw-lists-v2 { grid-template-columns: 1fr 1fr; }
  .yw-listbox.is-darkline { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .yw-daily-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .yw-lists-v2 { grid-template-columns: 1fr; }
  .yw-listbox.is-darkline { grid-column: auto; }
  .yw-observation { grid-template-columns: 1fr; }

  /* 手机端保留“当前忙碌”，优先隐藏关系标签 */
  .yw-rel-table-v2 th:nth-child(5),
  .yw-rel-table-v2 td:nth-child(5) { display: none; }

  .yw-rel-table-v2 th:nth-child(6),
  .yw-rel-table-v2 td:nth-child(6) {
    display: table-cell;
    width: auto;
  }
}

@media (max-width: 440px) {
  .yw-daily-list { grid-template-columns: 1fr; }
  .yw-daily-task { min-height: auto; }

  /* 极窄屏只保留姓名、三数值、当前忙碌 */
  .yw-rel-table-v2 th:nth-child(5),
  .yw-rel-table-v2 td:nth-child(5) { display: none; }

  .yw-rel-table-v2 th:nth-child(6),
  .yw-rel-table-v2 td:nth-child(6) {
    display: table-cell;
    white-space: normal;
  }
}

/* ---------- 页脚 ---------- */
.yw-foot {
  padding: 13px 4px 2px;
  color: var(--yw-dim);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .08em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .yw { font-size: 14px; line-height: 1.82; }
  .yw::before, .yw::after { inset: -6px; border-radius: 22px; }
  .yw-head { padding: 18px 17px 16px; border-radius: 18px; }
  .yw-head-top { align-items: flex-start; flex-direction: column; gap: 3px; }
  .yw-story { padding: 23px 19px 24px; border-radius: 18px; }
  .yw-story::before { top: 20px; bottom: 20px; }
  .yw-changes, .yw-options, .yw-grid { grid-template-columns: 1fr; }
  .yw-free, .yw-panel-wide { grid-column: auto; }
  .yw-status { padding: 9px; border-radius: 18px; }
  .yw-facts, .yw-player, .yw-core-info, .yw-near-list { grid-template-columns: 1fr; }
  .yw-data-long, .yw-info-wide, .yw-body-state { grid-column: auto; }
  .yw-values { gap: 5px; }
  .yw-value { padding: 8px 7px; }
  .yw-lists { grid-template-columns: 1fr; }
  .yw-rel-table:not(.yw-rel-table-v2) th:nth-child(6), .yw-rel-table:not(.yw-rel-table-v2) td:nth-child(6) { display: none; }
}

@media (max-width: 440px) {
  .yw { margin-top: 5px; font-size: 13.5px; }
  .yw-title { letter-spacing: .035em; }
  .yw-head::after { display: none; }
  .yw-options { gap: 8px; }
  .yw-option { min-height: 58px; padding-left: 44px; }
  .yw-status-head { align-items: flex-start; flex-direction: column; gap: 1px; }
  .yw-core-top { align-items: flex-start; flex-direction: column; }
  .yw-relation { white-space: normal; }
  .yw-values { grid-template-columns: 1fr; }
  .yw-rel-table:not(.yw-rel-table-v2) th:nth-child(5), .yw-rel-table:not(.yw-rel-table-v2) td:nth-child(5) { display: none; }
}

/* 酒馆环境可能关闭动画，CSS本身不依赖动画。 */
@media (prefers-reduced-motion: reduce) {
  .yw-option { transition: none; }
}