/* Merge Screen Styles */
.merge-pane {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.merge-hint-card {
  padding: .625rem .75rem;
  border-radius: 10px;
  font-size: .8125rem;
}

.merge-hint-card .hint {
  margin-top: .25rem;
  font-size: .75rem;
  line-height: 1.35;
}

.merge-section {
  padding: .625rem .75rem;
  border-radius: 12px;
}

.merge-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.merge-head h3 {
  margin: 0;
  font-size: .875rem;
}

.merge-quick-btns {
  display: flex;
  gap: .25rem;
}

.merge-quick-btns .btn-sm {
  height: 24px;
  font-size: .6875rem;
  padding: 0 .4rem;
}

.merge-selection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  max-height: 280px;
  overflow-y: auto;
  padding: .25rem;
}

@media (max-width: 1200px) {
  .merge-selection-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .merge-selection-list {
    grid-template-columns: 1fr;
  }
}

.merge-col-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .625rem;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: all .12s ease;
  user-select: none;
  min-width: 0;
}

.merge-col-item:hover {
  background: #fdfdfd;
}

.merge-col-item.selected {
  background: #eff6ff;
  border-color: #2563eb;
}

.merge-col-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
  cursor: pointer;
  flex-shrink: 0;
}

.merge-col-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  overflow: hidden;
}

.merge-col-name {
  font-size: .8125rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merge-col-meta {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .6875rem;
  color: var(--gray);
}

.merge-config {
  padding: .625rem .75rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.merge-config h3 {
  margin: 0;
  font-size: .875rem;
}

.merge-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  cursor: pointer;
  font-size: .75rem;
}

.merge-checkbox-row input[type="checkbox"] {
  margin-top: .15rem;
  accent-color: var(--purple);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.merge-checkbox-row b {
  font-size: .8125rem;
  color: var(--ink);
}

.merge-checkbox-row .hint {
  font-size: .6875rem;
  margin-top: 1px;
}

.merge-action-bar {
  margin-top: .25rem;
}

.merge-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 800;
}

.merge-submit-btn .i {
  width: 16px;
  height: 16px;
}

/* Notice Modal */
.merge-notice-box {
  max-width: 330px;
}

.notice-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-bottom: .75rem;
}

.notice-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.notice-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.notice-stat-lbl {
  font-size: .625rem;
  font-weight: 700;
  color: var(--gray);
  margin-top: .125rem;
}

.notice-stat-removed {
  background: #fef2f2;
  border-color: #ef4444;
}

.notice-stat-removed .notice-stat-num {
  color: #dc2626;
}

.notice-stat-unique {
  background: #f0fdf4;
  border-color: #22c55e;
}

.notice-stat-unique .notice-stat-num {
  color: #16a34a;
}

.notice-alert-msg {
  background: #fef9c3;
  border: 1.5px solid #eab308;
  border-radius: 8px;
  padding: .5rem .625rem;
  font-size: .75rem;
  font-weight: 700;
  color: #854d0e;
  line-height: 1.35;
  margin-bottom: .75rem;
}

.merge-notice-actions {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.merge-notice-actions .btn-sm {
  width: 100%;
  justify-content: center;
}
