/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  /* 始终预留纵向滚动条槽位：筛选后列表变短、滚动条消失时页面宽度不变，避免卡片网格重排抖动 */
  scrollbar-gutter: stable;
}
body {
  background: #ffffff;
  color: #1f2329;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
}
.hidden { display: none !important; }
.dim { color: #9ca3af; }
button { font-family: inherit; cursor: pointer; }

/* ===== 顶部导航栏 ===== */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 20px; height: 52px;
  background: #ffffff; border-bottom: 1px solid #e5e7eb;
}
.nav-left { display: flex; align-items: center; gap: 8px; }
.logo-wrap { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; }
.logo { font-weight: 700; font-size: 15px; letter-spacing: 1px; }
/* 导航栏 Beta 提示：灰色圆角标签，字号/字重与左侧标题一致并紧贴 */
.beta-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; padding: 0 9px;
  border: 1px solid #d1d5db; border-radius: 999px;
  background: #f3f4f6; color: #1f2329;
  font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 1px;
}
.nav-btn {
  border: none; background: transparent; padding: 6px 14px;
  font-size: 14px; color: #4b5563; border-radius: 6px;
}
.nav-btn:hover { background: #f3f4f6; }
.nav-btn.active { background: #2563eb; color: #fff; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.uid-label { font-size: 13px; color: #4b5563; white-space: nowrap; }
/* UID 组合框：可输入 + 下拉候选 */
.uid-combo { position: relative; }
.uid-input {
  height: 32px; width: 112px; padding: 0 10px;
  border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; outline: none;
}
.uid-input:focus { border-color: #2563eb; }
.uid-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 60;
  width: 112px; max-height: 240px; overflow-y: auto;   /* 与输入框同宽 */
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.uid-item {
  padding: 8px 12px; cursor: pointer; font-size: 13px; color: #1f2329;
}
.uid-item:hover { background: #f3f4f6; }
.uid-del {
  height: 32px; width: 32px; border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; color: #9ca3af; font-size: 16px; line-height: 1;
}
.uid-del:hover { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }

/* ===== 提示条（固定于浏览器底部，向上弹出，不占布局） ===== */
.notice {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 200; max-width: min(92vw, 720px);
  padding: 10px 18px; font-size: 13px; border-radius: 8px;
  background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  animation: notice-up .22s ease-out;
}
.notice.ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
@keyframes notice-up {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== 主区域 ===== */
main { max-width: 1180px; margin: 0 auto; padding: 20px; }
.empty { text-align: center; padding: 80px 0; color: #6b7280; line-height: 2; }

/* ===== 玩家卡片 ===== */
.player-card {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 18px; background: #fafafa;
}
.player-card .nick { font-size: 18px; font-weight: 700; }
.player-card .sig { color: #6b7280; }
.badge-src {
  font-size: 12px; padding: 2px 8px; border-radius: 10px;
  background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe;
}
.badge-src.cache { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.enka-cd {
  font-size: 12px; color: #6b7280; padding: 2px 8px;
  border: 1px dashed #d1d5db; border-radius: 10px; background: #fff;
}

/* ===== 使用说明 ===== */
.help-content {
  padding: 0 20px 40px; color: #1f2329; font-size: 14px; text-align: left;
}
.help-content p { margin: 0; line-height: 1.7; }
.help-content .help-warn { color: #dc2626; font-weight: 700; margin-bottom: 6px; }
.help-content .help-group-title {
  margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: #1f2329;
  padding-bottom: 4px; border-bottom: 1px solid #e5e7eb;
}
/* 使用说明页：cache 导出/导入 */
.help-export { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.help-export button {
  width: 132px; height: 30px; padding: 0; border: 1px solid #2563eb; border-radius: 6px;
  background: #2563eb; color: #fff; font-size: 13px; cursor: pointer;
}
.help-export button:hover { background: #1d4ed8; border-color: #1d4ed8; }
.help-export button:disabled { opacity: .6; cursor: default; background: #2563eb; border-color: #2563eb; }
.help-export .dim { color: #6b7280; font-size: 12px; }
/* 系统设置：消息气泡时间 */
#setNoticeSeconds {
  width: calc(4ch + 18px); height: 30px; padding: 0 8px;
  border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 13px;
  -webkit-appearance: textfield; appearance: textfield;
}
#setNoticeSeconds::-webkit-outer-spin-button,
#setNoticeSeconds::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 系统设置：更新的角色排在最前 */
#setFreshFirst { width: 16px; height: 16px; margin: 0; accent-color: #2563eb; cursor: pointer; }

/* ===== buff 说明气泡 ===== */
.buff-tip {
  position: fixed; z-index: 200; max-width: 360px;
  padding: 10px 14px; font-size: 12px; line-height: 1.7; color: #1f2329;
  background: #fff; border: 1px solid #d1d5db; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15); white-space: pre-wrap; word-break: break-word;
  pointer-events: none;
}

/* ===== 角色网格 ===== */
.group-title { font-size: 15px; font-weight: 700; margin: 18px 0 10px; color: #374151; }

/* 角色列表筛选栏 */
.char-filter { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; flex-wrap: wrap; }
.f-sel {
  height: 32px; min-width: 104px; padding: 0 8px;
  border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 13px;
}
.f-count { font-size: 12px; }
/* 读取展柜按钮：位于筛选栏开头 */
.btn-refresh {
  /* 固定宽度：按钮文案在「读取展柜 / 更新中… / 倒计时」间切换时不改变尺寸 */
  height: 32px; width: 88px; padding: 0; box-sizing: border-box;
  border: 1px solid #2563eb; border-radius: 6px;
  background: #2563eb; color: #fff; font-size: 13px; cursor: pointer;
}
.btn-refresh:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; }
.btn-refresh:disabled { cursor: not-allowed; opacity: .65; }
.char-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.char-card {
  position: relative;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fff;
  padding: 14px 10px 10px; text-align: center; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.char-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); }
/* 最近更新角色的右上角绿点 */
.char-card .fresh-dot {
  position: absolute; top: 8px; right: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
  box-shadow: 0 0 0 1px #22c55e;
  animation: fresh-pulse 1.6s ease-in-out infinite;
}
@keyframes fresh-pulse {
  0%, 100% { box-shadow: 0 0 0 1px #22c55e, 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 1px #22c55e, 0 0 0 5px rgba(34,197,94,0); }
}
.char-card .icon-wrap {
  width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%;
  background: #f3f4f6; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 2px solid #e5e7eb;
}
.char-card .icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.char-card .icon-wrap .fallback { font-size: 26px; font-weight: 700; color: #9ca3af; }
.char-card.rarity-4 .icon-wrap { border-color: #d4a24e; }
.char-card.rarity-3 .icon-wrap { border-color: #a78bfa; }
.char-card .cname { font-weight: 700; font-size: 14px; }
.char-card .cname .r4 { color: #b45309; }
.char-card .cname .r3 { color: #7c3aed; }
.char-card .csub { color: #6b7280; font-size: 12px; margin-top: 3px; }
.char-card .ctags { margin-top: 6px; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 1px 7px; border-radius: 9px;
  background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb;
}
.tag.talent { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.tag.potential { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tag.warn { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }

/* ===== 详情弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.35);
  /* 顶部对齐固定：切换页签时窗口高度变化不会导致弹窗上下位移 */
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: calc(6vh - 24px);   /* 整体上移一行高度 */
}
.modal {
  position: relative; width: min(880px, 94vw); max-height: calc(88vh + 48px); overflow-y: auto;
  scrollbar-gutter: stable;   /* 预留滚动条位置，切换页签时宽度不跳动 */
  background: #fff; border-radius: 12px; padding: 24px 28px;
}
.modal-close {
  position: absolute; top: 10px; right: 14px;
  border: none; background: transparent; font-size: 24px; color: #9ca3af; line-height: 1;
}
.modal-close:hover { color: #111; }

.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.detail-head .icon-wrap {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  border: 3px solid #e5e7eb; background: #f3f4f6; flex-shrink: 0;
}
.detail-head .icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.detail-head .icon-wrap .fallback { font-size: 30px; font-weight: 700; color: #9ca3af; }
.detail-head h2 { font-size: 20px; }
.detail-head .sub { color: #6b7280; margin-top: 4px; }
.detail-head .tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

.section { margin-top: 18px; }
.section > h3 {
  font-size: 14px; color: #374151; border-left: 3px solid #2563eb;
  padding-left: 8px; margin-bottom: 10px;
}

/* 面板：单一 grid，按宽度自动换行 */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.panel-item {
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 12px;
  display: flex; justify-content: space-between; background: #fafafa;
}
.panel-item .k { color: #6b7280; }
.panel-item .v { font-weight: 700; }
.panel-item .v .over { color: #dc2626; }   /* 暴击率超出上限（锋御 200%/其余 100%）时整串红字 */
/* 面板「自身增益」「队友增益」按钮：与其他面板项同尺寸字体，默认白底，按下蓝底 */
.panel-item.panel-btn {
  background: #fff; cursor: pointer; font: inherit; color: #374151;
  justify-content: center; border: 1px solid #e5e7eb;
}
.panel-item.panel-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* 技能 */
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 12px;
  background: #fff; display: flex; gap: 8px; align-items: center;
}
.skill-chip .lv { font-weight: 700; color: #2563eb; }

/* 音擎 */
.weapon-row { display: flex; align-items: stretch; gap: 16px; }
.weapon-box {
  display: flex; gap: 14px; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 12px 16px; background: #fafafa; align-items: center; flex: 0 0 auto;
}
.weapon-box img { width: 56px; height: 56px; object-fit: contain; }
.weapon-box .wname { font-weight: 700; }
.weapon-box .wstats { color: #4b5563; margin-top: 4px; font-size: 13px; }
.weapon-effect {
  flex: 1 1 auto; min-width: 0; margin-top: 0; padding-left: 16px;
  border-left: 1px dashed #d1d5db; font-size: 13px; color: #4b5563; line-height: 1.7;
}

/* 驱动盘：按 1~6 号位顺序，默认宽度（弹窗 880px）一行三个，宽度不足自动换行 */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.disc-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 10px; display: flex; gap: 8px; }
.disc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.disc-card .dhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.disc-card .dhead img { width: 30px; height: 30px; object-fit: contain; }
.disc-card .suit { font-weight: 700; font-size: 13px; }
.disc-card .main { color: #b45309; font-size: 13px; margin-bottom: 4px; }
.disc-card .subs { font-size: 12px; color: #4b5563; line-height: 1.7; }
/* 驱动盘左侧：套装图标 + 等级 / 得分 / 词条数 / 毕业率，虚线与右侧词条区分隔 */
.disc-side {
  flex-shrink: 0; border-right: 1px dashed #e5e7eb; padding-right: 10px;
  display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #4b5563;
  min-width: 92px;
}
.disc-side .ds-line { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.disc-side .ds-line .k { color: #9ca3af; }
.set-line { font-size: 12px; color: #166534; margin-top: 8px; }

/* 两件套 / 四件套说明 */
.set-lines { font-size: 12px; color: #4b5563; margin-bottom: 10px; line-height: 1.7; }
.set-line-row .k { color: #2563eb; font-weight: 700; }

/* 详情弹窗页签 */
.detail-head { flex-wrap: wrap; }
.detail-head .head-info { flex: 1; min-width: 240px; }
.detail-head .head-actions {
  display: grid; grid-template-columns: repeat(2, auto); gap: 8px;
  margin-left: auto; align-content: center;
}
.dtab {
  font-family: inherit; font-size: 13px; padding: 6px 16px; border-radius: 9px;
  border: 1px solid #e5e7eb; background: #fff; color: #4b5563; cursor: pointer;
  white-space: nowrap;
}
.dtab:hover { background: #f9fafb; }
.dtab.active { background: #2563eb; border-color: #2563eb; color: #fff; }

.adjust-btn {
  font-family: inherit; font-size: 13px; padding: 7px 16px; border-radius: 9px;
  border: 1px solid #2563eb; background: #2563eb; color: #fff; cursor: pointer;
}
.adjust-btn:hover { background: #1d4ed8; border-color: #1d4ed8; }
.team-sel {
  font-family: inherit; font-size: 13px; padding: 5px 8px;
  border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #1f2329;
  width: calc(7em + 18px); min-width: 0;   /* 容纳 7 个全角字符（含左右内边距与边框） */
}
.team-sel:focus { border-color: #2563eb; outline: none; }
/* 队友组合框：可输入 + 下拉候选 */
.team-combo { position: relative; }
.team-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 80;
  min-width: 100%; width: max-content; max-width: 260px; max-height: 240px; overflow-y: auto;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.team-item { padding: 7px 10px; cursor: pointer; font-size: 13px; color: #1f2329; white-space: nowrap; }
.team-item:hover, .team-item.active { background: #f3f4f6; }
.team-item.dim { color: #9ca3af; cursor: default; }
.team-item.dim:hover { background: transparent; }

/* 词条得分 */
.score-total { margin-top: 10px; font-size: 13px; }
.score-total .sep { color: #d1d5db; margin: 0 6px; }   /* 词条间隔点：灰色 */
.score-total .wk { color: #2563eb; }                   /* 括号内数值：蓝色，字体大小与正文一致 */
.score-total .build-note { color: #9ca3af; }            /* 配装说明：灰色 */

/* 词条替换 */
.replace-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.replace-row .k { color: #6b7280; }
.replace-sel {
  height: 28px; padding: 0 6px; border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; font-size: 13px;
}
.replace-input {
  width: 56px; height: 28px; padding: 0 6px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.replace-input::-webkit-outer-spin-button,
.replace-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.replace-input:focus { border-color: #2563eb; }
.btn-replace-calc {
  height: 28px; width: calc(5em + 2px); padding: 0; border: 1px solid #2563eb; border-radius: 6px;
  background: #2563eb; color: #fff; font-size: 13px; cursor: pointer;
  text-align: center;   /* 宽度固定约 5 个全角字符，"计算"两字居中 */
}
.btn-replace-calc:hover { background: #1d4ed8; border-color: #1d4ed8; }
.replace-result { margin-left: 4px; }
.replace-result-val { color: #2563eb; }
.replace-result-val.neg { color: #dc2626; }   /* 负提升：括号及数值为红色 */

/* 主词条替换 / 副词条计算：左右并排，计算按钮右侧留 4 个全角字符后接虚线分隔 */
.replace-wrap { display: flex; align-items: stretch; }
.replace-wrap > .section { min-width: 0; }
.replace-wrap > .section:first-child { flex: 0 0 auto; }
.replace-wrap > .section:first-child .btn-replace-calc { margin-right: 4em; }
.replace-wrap > .section:last-child { flex: 1 1 auto; border-left: 1px dashed #d1d5db; padding-left: 24px; }
/* 副词条计算：左列与右侧网格同为两行（28px/行），计算按钮在左上、词条数结果在左下 */
/* 左列宽度固定为按钮宽度，按钮与词条之间固定留 1 个全角字符，结果长度变化不影响词条位置 */
.calc-body { display: flex; gap: 1em; }
.calc-side { display: grid; grid-template-rows: repeat(2, 28px); gap: 8px; width: calc(5em + 2px); }
.calc-result { display: flex; align-items: center; font-size: 13px; color: inherit; white-space: nowrap; }
.calc-result-val { color: #2563eb; }
.calc-grid {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px;
  flex: 1 1 auto; min-width: 0; font-size: 13px;
}
.calc-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; }
.calc-item .k { color: #6b7280; }
.calc-input {
  width: 52px; height: 28px; padding: 0 4px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; text-align: center; outline: none;
}
.calc-input:focus { border-color: #2563eb; }

/* ===== 调整增益（buff） ===== */
.buff-team { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 6px; align-items: center; }
.buff-team-btns { margin-left: auto; display: flex; gap: 10px; }   /* 取消/保存与队友下拉同行 */
.buff-team-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.buff-team-item .k { color: #6b7280; }
.buff-group { margin-top: 14px; }
.buff-group-title {
  font-weight: 700; font-size: 13px; color: #1f2329;
  border-bottom: 1px solid #e5e7eb; padding-bottom: 6px; margin-bottom: 4px;
}
.buff-row {
  display: flex; align-items: center; gap: 12px; padding: 5px 0;
  font-size: 12px; border-bottom: 1px dashed #f3f4f6;
}
.buff-main { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.buff-main input[type=checkbox] { accent-color: #2563eb; }
.buff-name { color: #1f2329; font-weight: 600; }
/* 提升对象标签：1 自身 / 2 队友 / 3 全体 */
.buff-tag { font-size: 11px; line-height: 1; padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
.buff-tag.t1 { color: #92400e; background: #fef3c7; }
.buff-tag.t2 { color: #1d4ed8; background: #dbeafe; }
.buff-tag.t3 { color: #047857; background: #d1fae5; }
/* 作用技能提示标签：仅展示参考，不参与计算 */
.buff-tag.skill { color: #4b5563; background: #f3f4f6; }
.buff-val { color: #4b5563; }
.buff-cov-wrap { white-space: nowrap; color: #6b7280; }
.buff-cov-wrap input {
  width: 58px; padding: 3px 6px; border: 1px solid #e5e7eb; border-radius: 6px;
  font-family: inherit; font-size: 12px; text-align: right; color: #1f2329;
}
/* 异常伤害占比：与覆盖率输入框同款样式，宽度按 6 位数字 */
#anomRatio { width: calc(6ch + 18px); }
.btn-ghost, .btn-primary {
  font-family: inherit; font-size: 13px; padding: 7px 18px; border-radius: 9px; cursor: pointer;
}
.btn-ghost { border: 1px solid #e5e7eb; background: #fff; color: #4b5563; }
.btn-ghost:hover { background: #f9fafb; }
.btn-primary { border: 1px solid #2563eb; background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* 影画（折叠块，复用 res-block 样式，已激活高亮） */
details.res-block.mc summary { color: #9ca3af; }
details.res-block.mc.on { border-color: #f9a8d4; background: #fdf2f8; }
details.res-block.mc.on summary { color: #1f2329; }

/* 本地资料 */
details.res-block { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px; }
details.res-block summary { padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 13px; }
details.res-block .body { padding: 0 12px 10px; font-size: 12px; color: #4b5563; line-height: 1.8; white-space: pre-wrap; }
table.mult { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
table.mult th, table.mult td { border: 1px solid #e5e7eb; padding: 4px 8px; text-align: left; }
table.mult th { background: #f9fafb; }

.loading { text-align: center; padding: 60px 0; color: #6b7280; }
