.overlay {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 24px;
}

.modal {
  background: var(--color-bg-card, #080908);
  border: 1px solid var(--color-border, #161a16);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-height: 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #1e1e2e);
}

.title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary, #e0e0e0);
}

.count {
  font-size: 12px;
  background: var(--bg-secondary, #14141f);
  border: 1px solid var(--border, #1e1e2e);
  border-radius: 10px;
  padding: 2px 8px;
  color: var(--text-muted, #888);
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.refreshBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-secondary, #14141f);
  border: 1px solid var(--border, #1e1e2e);
  border-radius: 6px;
  color: var(--text-muted, #888);
  cursor: pointer;
  &:hover { color: var(--text-primary, #e0e0e0); }
}

.closeBtn {
  background: none;
  border: none;
  color: var(--text-muted, #888);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  &:hover { background: var(--bg-hover, #1a1a2e); color: var(--text-primary, #e0e0e0); }
}

.body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.empty {
  color: var(--text-muted, #666);
  font-size: 13px;
  padding: 30px 0;
  text-align: center;
  line-height: 1.6;
}

.hint {
  font-size: 12px;
  color: var(--text-muted, #555);
}

/* Tool Groups */
.toolGroup {
  margin-bottom: 16px;
}

.toolHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.toolEmoji {
  font-size: 16px;
}

.toolLabel {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #e0e0e0);
}

.toolCount {
  font-size: 11px;
  color: var(--text-muted, #888);
}

.toolMissing {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 140, 0, 0.15);
  color: #ff8c00;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Model Rows */
.modelList {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 24px;
}

.modelRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg-secondary, #14141f);
  &:hover { background: var(--bg-hover, #1a1a2e); }
}

.modelIcon {
  font-size: 12px;
}

.modelName {
  color: var(--text-primary, #e0e0e0);
  min-width: 120px;
}

.modelTier {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  background: rgba(0, 200, 255, 0.1);
  color: #00c8ff;
  border-radius: 3px;
}

.modelId {
  flex: 1;
  color: var(--text-muted, #888);
  font-family: 'SF Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.disableBtn {
  background: none;
  border: none;
  color: var(--text-muted, #666);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  &:hover { color: #dc3545; background: rgba(220, 53, 69, 0.1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
