.mylist-page{ padding-top: 14px; padding-bottom: 18px; }

.mylist-table thead th{ white-space: nowrap; }

/* table stripes (Bootstrap 依存なし) */
.mylist-table tbody tr:nth-child(odd){
  background: rgba(0,0,0,.03);
}
.mylist-table tbody tr:hover{
  background: rgba(0,0,0,.06);
}

.mylist-table td:nth-child(4),
.mylist-table th:nth-child(4){
  width: 250px !important;
  min-width: 250px !important;  
}

.mylist-table td:nth-child(5),
.mylist-table th:nth-child(5){
  width: 150px !important;
  min-width: 150px !important;
}

.mylist-x{
  width: 28px; height: 28px;
  border: 1px solid rgba(220,53,69,.35);
  background: rgba(220,53,69,.06);
  color: #dc3545;
  border-radius: 8px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.mylist-x:hover{ background: rgba(220,53,69,.12); }

/* icons */
.mhn-icon{
  width: 22px; height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}
.mhn-icon-weapon{ width: 22px; height: 22px; }
.mhn-icon-series{ width: 22px; height: 22px; }
.mhn-icon-element{ width: 22px; height: 22px; }

/* equip cell */
.equip-cell{ display:flex; flex-direction:column; gap:4px; }
.equip-line1{ display:flex; align-items:center; flex-wrap:wrap; gap:0; }
.equip-weapon-name{ margin-left: 2px; }
.equip-line2{ display:flex; align-items:center; flex-wrap:wrap; }
.equip-line2 .mhn-icon{ margin-right: 4px; }

/* chips */
.chip-wrap{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 3px 8px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  background: rgba(0,0,0,.03);
  font-size: 12px;
  line-height: 1.2;
}
.chip-sub{ color: rgba(0,0,0,.6); font-size: 11px; }
.chip-rate{
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(13,110,253,.10);
  color: rgba(13,110,253,1);
  font-size: 11px;
}

/* params */
.param-wrap{ display:flex; flex-direction:column; gap:3px; }
.param-line{ display:flex; align-items:baseline; gap:10px; font-size: 12px; }
.param-k{ min-width: 60px; color: rgba(0,0,0,.65); }
.param-v{ font-weight: 600; }
.param-note{ margin-left: 6px; font-size: 11px; color: rgba(0,0,0,.45); }
.param-disabled{ opacity: .45; }

@media (max-width: 768px){
  /* スマホでは登録日を隠しても見やすい */
  .mylist-table th:nth-child(8),
  .mylist-table td:nth-child(8){
    display:none;
  }
}

/* 期待値列を中央寄せ */
.mylist-table th:nth-child(2),
.mylist-table td:nth-child(2),
.mylist-table th:nth-child(3),
.mylist-table td:nth-child(3){
  text-align: center !important;
}

.equipbuild-link{
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.equipbuild-link:hover{
  text-decoration: underline;
}

.mylist-table thead th.th-sort{
  cursor: pointer;
  user-select: none;
}

.mylist-table thead th .sort-mark{
  margin-left: 6px;
  font-size: 12px;
  opacity: .7;
}

/* ===== Rate popup ===== */
.rate-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  z-index: 2000;
}

.rate-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  max-height: min(80vh, calc(100vh - 24px));
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #d7e0ea;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: none;
  z-index: 2001;
}

.rate-modal-head{
  position: sticky;
  top: 0;
  background: #f8fafc;
  border-bottom: 1px solid #e5edf5;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rate-modal-title{
  font-weight: 700;
  color: #1f2937;
}

.rate-modal-body{
  padding: 10px 12px;
}

.rate-modal-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.rate-table{
  width: 100%;
  border-collapse: collapse;
}

.rate-table th,
.rate-table td{
  border-top: 1px solid #e5edf5;
  padding: 6px 6px;
  font-size: 13px;
  vertical-align: top;
}

.rate-table th{
  background: #f8fafc;
  color: #374151;
}

.rate-pill{
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  font-size: 12px;
  background: #fff;
}

.rate-modal-note{
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}