/* xiaomeow · 天龙归来 —— 亮色主题
 *
 * 一套代码两种形态（老板 2026-11-02 定）：
 *   · 网页（默认）：顶部横向导航，内容居中限宽 —— 参考 tkf.xiaomeow.cn 的形式
 *   · 客户端壳（?mode=app）：左侧工作栏可折叠，左下角账号
 * 两套导航共用同一份 HTML（#navWeb / #navApp），由 app.js 同步选中态。
 */

:root {
  --bg: #FAF9F5;
  --rail: #F2F0E9;
  --panel: #FFFFFF;
  --raised: #FBFAF6;
  --line: #E3DFD3;
  --line-soft: #EFECE3;
  --ink: #23211C;
  --muted: #6E6A60;
  --mute2: #9A958A;
  --accent: #A87A16;
  --accent-hi: #8A6410;
  --accent-bg: #FBF3DF;
  --accent-bd: #E8D8AE;
  --green: #3F7D4E;
  --red: #B4483C;
  --shadow: 0 1px 2px rgba(35, 33, 28, .05);
  --radius: 10px;
  --rail-w: 208px;
  --rail-w-min: 56px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.55 "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============ 网页形态：顶部导航 ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  height: 54px; padding: 0 22px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tb-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.tb-logo {
  width: 11px; height: 11px; border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), #D8AE55);
}
/* 主名「天龙八部归来」，xiaomeow 商标挂在这几个字的右下角 */
.tb-text { display: flex; flex-direction: column; line-height: 1.1; }
.tb-name {
  font-size: 15px; font-weight: 600; letter-spacing: .4px; color: var(--ink);
}
.tb-mark {
  font-size: 9px; color: var(--mute2); letter-spacing: 1px;
  align-self: flex-end; text-transform: lowercase; margin-top: 1px;
}

.tb-nav { display: flex; align-items: center; gap: 4px; }
.tb-nav a {
  display: block; padding: 7px 13px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 13px;
  border-bottom: 2px solid transparent;
}
.tb-nav a:hover { color: var(--ink); background: var(--raised); }
.tb-nav a.on {
  color: var(--accent); font-weight: 600;
  background: var(--accent-bg); border-bottom-color: var(--accent);
}

.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 顶栏胶囊：时钟 / 模式（参考 tkf 站的形态） */
.tb-chip {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 15px; box-shadow: var(--shadow);
  color: var(--muted); font: inherit; font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tb-clock { cursor: default; }
.tb-clock svg { color: var(--mute2); }

.tb-mode { cursor: pointer; padding: 0 11px; }
.tb-mode:hover { border-color: var(--accent-bd); background: var(--accent-bg); }
.tb-mode-label { color: var(--mute2); }
.tb-mode b { color: var(--accent); font-weight: 600; letter-spacing: .3px; }
.tb-mode svg { color: var(--mute2); margin-left: 1px; }
.tb-mode:hover svg { color: var(--accent); }

/* ---- 个人中心：头像 + 悬停下拉 ---- */
.tb-user { position: relative; }

.tb-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 248px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(35, 33, 28, .13);
  /* 悬停动效：淡入 + 轻微上移 + 微小缩放 */
  opacity: 0; transform: translateY(-6px) scale(.97);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s cubic-bezier(.2, .8, .3, 1);
  z-index: 40;
}
.tb-user:hover .tb-dropdown,
.tb-dropdown.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
/* 鼠标从按钮移到面板之间不留缝，避免悬停断掉 */
.tb-user::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px;
}

.dd-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; }
.dd-meta { min-width: 0; }
.dd-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dd-mail {
  font-size: 11px; color: var(--mute2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dd-badge {
  margin-left: auto; flex: 0 0 auto;
  font-size: 10px; padding: 2px 7px; border-radius: 9px;
  background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-bd);
}
.dd-badge.free { background: var(--raised); color: var(--mute2); border-color: var(--line); }

.dd-divider { height: 1px; background: var(--line-soft); margin: 4px 6px; }

.dd-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: none; border-radius: 8px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
.dd-item:hover { background: var(--accent-bg); color: var(--accent); }
.dd-item.danger:hover { background: #FBEDEB; color: var(--red); }
.dd-item .dd-ico { width: 15px; text-align: center; opacity: .8; }
a.dd-item { text-decoration: none; }  /* 账号中心是外链，别带下划线 */

.tb-account {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 14px 5px 6px; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--muted);
  box-shadow: var(--shadow);
}
.tb-account:hover { border-color: var(--accent-bd); color: var(--accent); }
.tb-account.logged { background: var(--accent-bg); border-color: var(--accent-bd); color: var(--accent); }
.tba-avatar {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; border: 1px solid var(--accent-bd);
  flex: 0 0 24px;
}
.tba-avatar svg { color: var(--mute2); }
.tba-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-account.logged .tba-avatar { background: var(--accent); color: #fff; border-color: var(--accent); }

.dd-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px; overflow: hidden;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.dd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-account.logged .tba-avatar { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ 客户端形态：左工作栏 ============ */
.rail {
  display: none;
  width: var(--rail-w); flex: 0 0 var(--rail-w);
  background: var(--rail); border-right: 1px solid var(--line);
  flex-direction: column; padding: 10px 8px;
  transition: width .16s ease, flex-basis .16s ease;
  overflow: hidden;
}
.rail.collapsed { width: var(--rail-w-min); flex-basis: var(--rail-w-min); }

.rail-head {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 12px; white-space: nowrap;
}
.rail-logo {
  width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), #D8AE55);
}
.rail-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.rail-title { font-size: 13px; font-weight: 600; letter-spacing: .2px; }
/* 商标挂在产品名右下角，比产品名更小更淡 */
.rail-product {
  font-size: 9px; color: var(--mute2); letter-spacing: .8px;
  align-self: flex-end; text-transform: lowercase;
}
.rail.collapsed .rail-text { display: none; }

.rail-nav { display: flex; flex-direction: column; gap: 3px; }
.rail-nav a {
  display: flex; align-items: center; gap: 9px;
  border-left: 3px solid transparent; border-radius: 8px;
  padding: 9px 9px; color: var(--muted); text-decoration: none;
  font-size: 13px; white-space: nowrap;
}
.rail-nav a:hover { background: #E9E6DC; color: var(--ink); }
.rail-nav a.on {
  background: var(--accent-bg); color: var(--accent);
  border-left-color: var(--accent); font-weight: 600;
}
.ni-icon {
  flex: 0 0 22px; width: 22px; height: 22px; line-height: 22px; text-align: center;
  border-radius: 6px; background: #E5E1D5; color: var(--muted); font-size: 11px;
}
.rail-nav a.on .ni-icon { background: var(--accent); color: #fff; }
.rail.collapsed .ni-text { display: none; }
.rail.collapsed .rail-nav a { justify-content: center; padding: 9px 4px; }

.rail-spacer { flex: 1; }

.rail-account {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 8px; margin-bottom: 6px; border-radius: 8px;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
}
.rail-account:hover { background: #E9E6DC; border-color: var(--line); }
.acc-avatar {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; border: 1px solid var(--accent-bd);
}
.acc-meta { min-width: 0; }
.acc-name { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.acc-sub { font-size: 10px; color: var(--mute2); }
.rail.collapsed .acc-meta { display: none; }
.rail.collapsed .rail-account { justify-content: center; padding: 6px 4px; }

.rail-collapse {
  background: transparent; border: 1px solid var(--line); border-radius: 7px;
  color: var(--mute2); cursor: pointer; padding: 5px 0; font-size: 12px;
  font-family: inherit;
}
.rail-collapse:hover { color: var(--accent); border-color: var(--accent-bd); background: var(--accent-bg); }

/* ---- 客户端模式：切换到左栏布局 ---- */
body.app-mode { display: flex; height: 100vh; overflow: hidden; }
body.app-mode .topbar { display: none; }
body.app-mode .rail { display: flex; }
body.app-mode .content { flex: 1; min-width: 0; overflow: auto; }
body.app-mode .page { max-width: none; }

/* ============ 内容区 ============ */
.content { padding: 0; }
.page { max-width: 1440px; margin: 0 auto; padding: 18px 24px 32px; }
.page-loading { padding: 44px; color: var(--mute2); }

.page-head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.page-title { font-size: 19px; font-weight: 600; }
.page-sub { font-size: 11px; color: var(--mute2); margin-top: 2px; }
.page-actions { margin-left: auto; display: flex; gap: 7px; align-items: flex-end; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 14px;
}
.card + .card { margin-top: 10px; }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-head .t { font-size: 12px; font-weight: 600; color: var(--accent); }
.card-head .hint { font-size: 11px; color: var(--mute2); }
.card-head .actions { margin-left: auto; display: flex; gap: 6px; }

.btn {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 13px; font: inherit; font-size: 12px; cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:hover { border-color: #CFC9B8; background: var(--raised); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent-bd); background: var(--accent-bg); }
.btn-sm { padding: 3px 9px; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

input, select {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 9px; font: inherit; font-size: 12px; box-shadow: var(--shadow);
}
input:focus, select:focus {
  outline: none; border-color: var(--accent-bd);
  box-shadow: 0 0 0 3px rgba(168, 122, 22, .1);
}
input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }

/* 表格 */
.table-wrap { background: var(--panel); border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  position: sticky; top: 0; z-index: 2; background: var(--rail);
  color: var(--muted); font-weight: 600; font-size: 11px;
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; letter-spacing: .3px;
}
thead th.num { text-align: right; }
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--accent); }
thead th.on { color: var(--accent); }
thead th.on::after { content: " ↓"; }
tbody tr { border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .1s; }
tbody tr:nth-child(even) { background: #FDFCF9; }
tbody tr:hover { background: var(--accent-bg); }
tbody tr.sel { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); }
tbody td { padding: 6px 12px; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.money { color: var(--green); font-weight: 500; }
tr.top1 { background: #FFF8E6 !important; }
tr.top1:hover { background: #FFF2D6 !important; }
.s-hi { color: var(--accent); font-weight: 600; }

.controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.ctrl-label { color: var(--mute2); font-size: 11px; white-space: nowrap; }
.seg { display: flex; gap: 4px; }
.seg button {
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 12px; font: inherit; font-size: 12px;
  cursor: pointer; box-shadow: var(--shadow);
}
.seg button:hover { color: var(--ink); border-color: #CFC9B8; }
.seg button.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.seg button small { opacity: .75; margin-left: 4px; font-size: 11px; }

.empty { padding: 44px 20px; color: var(--mute2); text-align: center; }
.muted { color: var(--mute2); }

/* ============ 装备模拟 ============ */
.sim-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 12px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.sim-bar .grow { flex: 1; }

.sim-layout { display: flex; gap: 10px; align-items: flex-start; }

.slot-list {
  width: 196px; flex: 0 0 196px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 7px; max-height: calc(100vh - 200px); overflow: auto;
}
.slot-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 8px; border-radius: 7px; cursor: pointer;
  border-left: 3px solid transparent;
}
.slot-item:hover { background: var(--raised); }
.slot-item.on { background: var(--accent-bg); border-left-color: var(--accent); }
.slot-item .sid { color: var(--mute2); font-size: 10px; width: 24px; flex: 0 0 24px; }
.slot-item .sname { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-item .sdot { width: 6px; height: 6px; border-radius: 50%; background: transparent; flex: 0 0 6px; }
.slot-item.dirty .sdot { background: var(--accent); }

.sim-main { flex: 1; min-width: 0; }
.sim-side { width: 330px; flex: 0 0 330px; }

.sec-title {
  font-size: 12px; font-weight: 600; color: var(--accent);
  margin: 0 0 8px; display: flex; align-items: center; gap: 8px;
}
.sec-title .hint { font-weight: 400; color: var(--mute2); font-size: 11px; }

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.row:last-child { margin-bottom: 0; }
.row .lab { color: var(--mute2); font-size: 11px; width: 62px; flex: 0 0 62px; }

.entry {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-bottom: 1px solid var(--line-soft); font-size: 12px;
}
.entry:last-child { border-bottom: none; }
.entry .k { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.entry .v { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.entry .del { color: var(--mute2); cursor: pointer; border: none; background: none; font: inherit; }
.entry .del:hover { color: var(--red); }

.panel-group { margin-bottom: 10px; }
.panel-group h4 {
  margin: 0 0 4px; font-size: 11px; color: var(--mute2); font-weight: 600; letter-spacing: .3px;
}
.panel-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px;
}
.panel-row .k { color: var(--muted); flex: 1; }
.panel-row .base { color: var(--mute2); font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
.panel-row .now { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; font-weight: 500; }
.panel-row .dl { font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; font-size: 11px; }
.panel-row .dl.up { color: var(--green); }
.panel-row .dl.down { color: var(--red); }
.panel-row.changed { background: #FFFBF0; }

.tip {
  background: var(--accent-bg); border: 1px solid var(--accent-bd);
  border-radius: 8px; padding: 8px 11px; font-size: 12px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.tip .grow { flex: 1; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #D8D3C4; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #C4BEAC; }

/* 窄屏 */
@media (max-width: 1180px) {
  .sim-side { display: none; }
}
@media (max-width: 860px) {
  .tb-mark { display: none; }
  .tb-nav a { padding: 7px 9px; font-size: 12px; }
  .slot-list { width: 150px; flex-basis: 150px; }
  .page { padding: 14px; }
}

/* ============ 登录 / 注册 / 找回密码 弹窗 ============ */
.auth-mask {
  position: fixed; inset: 0; background: rgba(35, 33, 28, .38);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.auth-box {
  width: 420px; max-width: 100%; background: var(--panel);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(35, 33, 28, .22);
  padding: 22px 24px 18px; position: relative;
}
.auth-close {
  position: absolute; right: 14px; top: 12px;
  width: 30px; height: 30px; border: none; border-radius: 7px;
  background: transparent; color: var(--mute2); font-size: 17px;
  line-height: 1; cursor: pointer;
}
.auth-close:hover { background: var(--raised); color: var(--ink); }

.auth-title { font-size: 19px; font-weight: 600; color: var(--ink); }
.auth-sub { font-size: 12px; color: var(--mute2); margin: 4px 0 18px; }

.auth-field { margin-bottom: 14px; }
.auth-label {
  display: block; font-size: 13px; color: var(--ink); margin-bottom: 7px;
}
.auth-input {
  width: 100%; height: 44px; padding: 0 13px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--ink); font: inherit; font-size: 14px;
}
.auth-input::placeholder { color: var(--mute2); }
.auth-input:focus {
  outline: none; border-color: var(--accent-bd);
  box-shadow: 0 0 0 3px rgba(168, 122, 22, .1);
}

.auth-submit {
  width: 100%; height: 44px; border: none; border-radius: 9px;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.auth-submit:hover { background: var(--accent-hi); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; }

.auth-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--mute2); font-size: 12px; margin: 16px 0;
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line-soft);
}
.auth-alt {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--ink); font: inherit; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-alt:hover { border-color: var(--accent-bd); background: var(--accent-bg); }
.auth-alt .qq { color: #12B7F5; font-weight: 700; letter-spacing: -.5px; }

.auth-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
}
.auth-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 12.5px;
}
.auth-link:hover { color: var(--accent); }
.auth-msg { min-height: 18px; font-size: 12px; margin: 2px 0 10px; color: var(--red); }
.auth-msg.ok { color: var(--green); }
.auth-code-row { display: flex; gap: 8px; }
.auth-code-row .auth-input { flex: 1; }
.auth-code-btn {
  flex: 0 0 auto; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
  color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.auth-code-btn:hover:not(:disabled) { border-color: var(--accent-bd); color: var(--accent); }
.auth-code-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============ 落位面板 ============ */
.pn-layout { display: flex; gap: 10px; align-items: flex-start; }

.pn-top { display: grid; gap: 6px; margin-bottom: 6px; }
.pn-mid { display: flex; gap: 6px; align-items: flex-start; }
.pn-left { display: flex; flex-direction: column; gap: 6px; width: 118px; flex: 0 0 118px; }

.pn-slot {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 8px; min-height: 62px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow);
}
.pn-slot.filled { border-color: var(--accent-bd); background: #FFFDF6; }
.pn-slot-type {
  font-size: 10px; color: var(--mute2); letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pn-slot-name {
  font-size: 12px; color: var(--ink); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pn-slot:not(.filled) .pn-slot-name { color: var(--mute2); font-weight: 400; }
.pn-slot-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.pn-tag {
  font-size: 9.5px; padding: 1px 5px; border-radius: 4px;
  background: var(--raised); color: var(--muted); border: 1px solid var(--line-soft);
}
.pn-tag.carve { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-bd); }

.pn-char {
  flex: 1; min-width: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pn-char-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid var(--accent-bd);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.pn-char-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.pn-char-lv { font-size: 12px; color: var(--mute2); }
.pn-char-stat {
  margin-top: 8px; font-size: 12px; color: var(--muted);
  display: flex; gap: 8px; align-items: baseline;
}
.pn-char-stat b { color: var(--accent); font-size: 15px; }

.pn-attr {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px;
}
.pn-attr:last-child { border-bottom: none; }
.pn-attr .k { color: var(--muted); }
.pn-attr .v { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.pn-attr .v.empty { color: var(--mute2); font-weight: 400; }
