/* components.css —— 搜索/筛选/卡片/表格/分页组件样式 */
.srow { display: flex; gap: 6px; margin-bottom: 8px; }
.srow input[type="search"] {
  flex: 1; min-width: 0; font-size: 15px; padding: 9px 12px;
  border: 1px solid #e0c49b; border-radius: 10px; background: #fff; color: #2b2b2b;
}
.xbtn {
  flex: none; padding: 0 14px; font-size: 14px; color: #8a5a2b;
  background: #f3e3cd; border: 1px solid #e0c49b; border-radius: 10px; cursor: pointer;
}
.frow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.frow .cap { font-size: 13px; font-weight: 700; color: #8a5a2b; margin-right: 2px; }
.chip {
  font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid #e6ddcb; background: #fff; color: #ada69b; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: #f3e3cd; border-color: #e0c49b; color: #8a5a2b; font-weight: 700; }
.chip.evil[aria-pressed="true"] { background: #f6d9d6; border-color: #d8a5a0; color: #a02c22; }
select.pick, .frow input[type="search"] {
  font-size: 13px; padding: 6px 8px; border: 1px solid #e0c49b; border-radius: 8px; background: #fff; color: #2b2b2b;
  max-width: 100%;
}
.sortrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.meta { font-size: 13px; color: #8e8e8e; margin: 8px 0; }
.role {
  display: grid; grid-template-columns: 44px 1fr; gap: 10px;
  background: #fff; border: 1px solid #e8dcc6; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px;
}
.role img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #f6efe2; }
.role .noimg {
  width: 44px; height: 44px; border-radius: 8px; background: #f6efe2; color: #b9a58a;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.role h3 { font-size: 16px; font-weight: 800; }
.role h3 .en { font-size: 12px; font-weight: 400; color: #8e8e8e; margin-left: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.pill {
  font-size: 12px; padding: 1px 10px; border-radius: 999px;
  background: #eef3fb; border: 1px solid #c9d8f0; color: #1a5fbf; white-space: nowrap;
}
.pill.sao { background: #f3e9d6; border-color: #e0c49b; color: #8a5a2b; }
.pill.creator { background: #f4f4f4; border-color: #ddd; color: #666; }
.pill.evil { background: #fbe9e7; border-color: #e0a49e; color: #a02c22; }
.role .ab { font-size: 14px; margin-top: 2px; }
.role details.en { font-size: 12px; color: #777; margin-top: 4px; }
.role details.en summary { cursor: pointer; }
.role .tags { font-size: 12px; color: #8e8e8e; margin-top: 4px; }
table.roles { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.roles th, table.roles td { border: 1px solid #e8dcc6; padding: 6px 8px; vertical-align: top; }
table.roles th { background: #f6efe2; cursor: pointer; white-space: nowrap; user-select: none; }
table.roles th .dir { color: #8a5a2b; }
table.roles td img { width: 32px; height: 32px; object-fit: contain; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 14px 0; }
.pager button {
  min-width: 34px; padding: 6px 10px; font-size: 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid #e0c49b; background: #fff; color: #8a5a2b;
}
.pager button[disabled] { opacity: .35; cursor: default; }
.pager button.cur { background: #8a5a2b; color: #fff; border-color: #8a5a2b; font-weight: 700; }
.pager .total { font-size: 13px; color: #8e8e8e; }
