/* 资源与生活（生存玩法 Dimon，2026-09-27）：在台词本的样式上加表格、档位条、小图 */
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 6px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.profile .label { font-weight: 600; }
.profile .seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.profile .seg button { border: 0; border-radius: 0; padding: 7px 16px; background: transparent; }
.profile .seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
.profile .seg button.pending { outline: 2px solid var(--edit-line); outline-offset: -2px; }
.profile .note { flex: 1 1 360px; font-size: 13px; color: var(--muted); }

.life .sec { margin-top: 18px; }
.life .sec > h2 { font-size: 22px; margin: 18px 0 4px; letter-spacing: 1px; }
.life .sec > .intro { color: var(--muted); margin: 0 0 12px; font-size: 14px; max-width: 900px; line-height: 1.7; }
.life .card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.life .card h3 { font-size: 16px; margin: 0 0 4px; }
.life .card .hint { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.life .grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }

table.vals { width: 100%; border-collapse: collapse; font-size: 14px; }
table.vals th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.vals td { padding: 4px 6px; border-bottom: 1px dashed #ece7dd; vertical-align: middle; }
table.vals td.name { width: 46%; }
table.vals td.name small { color: var(--muted); display: block; font-size: 12px; }
table.vals tr.hide { display: none; }
.val { display: inline-flex; align-items: center; gap: 4px; }
.val input[type=number] { width: 84px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: right; }
.val input[type=text] { width: 100%; min-width: 120px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.val textarea { width: 100%; min-width: 220px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; resize: vertical; }
.val textarea.edited { background: var(--edit); border-color: var(--edit-line); }
.val input.edited { background: var(--edit); border-color: var(--edit-line); }
.val input.same { color: #b3ac9f; }
.val input.over { font-weight: 600; color: var(--accent); }
.val .clr { border: 0; padding: 0 4px; background: none; color: var(--muted); font-size: 15px; line-height: 1; }
.val .clr:hover { color: var(--error); }
.val input.active-col { box-shadow: inset 0 -2px 0 var(--accent); }
.col-active { color: var(--accent) !important; font-weight: 600 !important; }

.cond { margin-bottom: 12px; }
.cond .src { color: var(--muted); font-size: 13px; }
.lv { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.lv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 4px; }
.lv-head .tag { font-size: 11px; background: #dff0dc; border-radius: 4px; padding: 1px 6px; }
.lines { font-size: 13px; color: var(--muted); margin-top: 6px; }
.lines b { font-weight: 600; margin-right: 4px; }
.lines b.fuko { color: var(--fuko); }
.lines b.storm { color: var(--storm); }
.lines a { margin-left: 8px; color: var(--accent); }
.lines .miss { color: var(--error); }

.slots { display: grid; grid-template-columns: minmax(120px, 1.4fr) 1fr 1fr 40px; gap: 4px 10px; align-items: center; font-size: 14px; }
.slots .h { color: var(--muted); font-size: 12px; }
.hot { font-size: 11px; color: #b5542b; border: 1px solid #e7b9a5; border-radius: 4px; padding: 0 4px; }

.wish-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.who { font-size: 12px; border-radius: 4px; padding: 1px 7px; }
.who.fuko { background: var(--fuko-soft); color: var(--fuko); }
.who.storm { background: var(--storm-soft); color: var(--storm); }
.facts { font-size: 13px; color: var(--muted); margin: 4px 0 6px; line-height: 1.7; }

svg.chart { width: 100%; max-width: 640px; height: auto; display: block; }
svg.chart text { font-size: 11px; fill: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 4px 0; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 5px; }
.bars { display: grid; grid-template-columns: minmax(160px, 1.2fr) 3fr; gap: 6px 12px; font-size: 13px; align-items: center; }
.bar3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 3px; }
.bar3 .b { position: relative; height: 16px; border-radius: 3px; overflow: hidden; }
.bar3 .b { background: #efebe2; }
.bar3 .b span { position: absolute; inset: 0 auto 0 0; background: #8d6444; }
.bar3 .b span.loose { background: #d9a93c; }
.bar3 .b em { position: absolute; right: 6px; top: 0; font-style: normal; font-size: 11px; line-height: 16px; color: #3f372d; }
.bars > div { display: grid; gap: 3px; padding: 4px 0; }
.legend i.lg-std { background: #8d6444; }
.legend i.lg-loose { background: #d9a93c; }
.subhead { margin: 18px 0 8px; font-size: 17px; }
.hint.gap { margin-top: 8px; }
.diff-row.life-diff { grid-template-columns: 72px minmax(0, 1fr); }
.when-grid { display: grid; grid-template-columns: 80px repeat(5, 1fr); gap: 4px 8px; align-items: center; font-size: 13px; }
.bullet { width: 74px; height: 22px; }
